<!-- Copyright (c) 2026 defconxt. All rights reserved. -->
<!-- Licensed under AGPL-3.0 — see LICENSE file for details. -->
<!-- NERF is a trademark of defconxt. -->
---
name: configuring-mythic-c2
description: >-
  Configure Mythic C2 framework with custom agents, translation containers, and browser-based operation management for collaborative engagements.
domain: cybersecurity
subdomain: c2-frameworks
tags:
  - mythic
  - agents
  - translation-containers
  - web-ui
  - collaborative-c2
version: "1.0"
author: defconxt
license: AGPL-3.0
metadata:
  mitre-attack: ["T1071", "T1573"]
  cwe: ["CWE-300"]
  tools: ["Mythic", "Docker", "mythic-cli", "python3"]
---

# Configuring Mythic C2

## Overview

Configure Mythic C2 framework with custom agents, translation containers, and browser-based operation management for collaborative engagements.

## Prerequisites

| Tool / Requirement | Details |
|---|---|
| `Mythic` | Security tooling |
| `Docker` | Security tooling |
| `mythic-cli` | Security tooling |
| `python3` | Security tooling |
| Isolated lab environment for testing | Environment requirement |
| Authorization and signed Rules of Engagement (RoE) | Environment requirement |
| Relevant target samples or systems acquired through authorized channels | Environment requirement |

## Quick Reference

```bash
# Install Mythic
git clone https://github.com/its-a-feature/Mythic.git
cd Mythic && ./mythic-cli install github https://github.com/MythicAgents/apollo.git

# Start Mythic
./mythic-cli start

# Install additional agents
./mythic-cli install github https://github.com/MythicAgents/poseidon.git

# Generate payload via CLI
mythic-cli payload create --agent apollo --os windows \
    --callback-host https://myc2.example.com --callback-port 443

# Access web UI
# https://mythic-server:7443
```

## Workflow

### Step 1: Preparation and Reconnaissance

```bash
# Identify target and gather initial intelligence
file ./target_sample
mythic --version 2>/dev/null || echo "Install Mythic"

# Set up working directory
mkdir -p /tmp/configuring-mythic-c2/{output,logs,artifacts}
```

### Step 2: Primary Analysis

```bash
# Execute primary analysis with Mythic
# Refer to Quick Reference above for detailed commands
echo "[*] Running Configuring Mythic C2 with Mythic..."

# Log all operations
script -q /tmp/configuring-mythic-c2/logs/session.log
```

### Step 3: Deep Investigation

```bash
# Apply Docker for secondary analysis
echo "[*] Deep investigation with Docker..."

# Cross-reference findings
diff /tmp/configuring-mythic-c2/output/primary.json /tmp/configuring-mythic-c2/output/secondary.json
```

### Step 4: Documentation and Reporting

```bash
# Generate structured findings report
cat <<'EOF' > /tmp/configuring-mythic-c2/output/report.json
{
  "technique": "configuring-mythic-c2",
  "domain": "c2-frameworks",
  "tools_used": ["Mythic", "Docker"],
  "findings": [],
  "recommendations": []
}
EOF
```

## Detection

```yaml
title: Mythic C2 Detection
id: bc4a9374-43bb-40a9-a268-4ab3e8d22792
status: experimental
description: Detects suspicious activity related to configuring mythic c2 techniques in c2 frameworks context
logsource:
  category: network_connection
  product: windows
detection:
  selection:
    DestinationPort: 443
    Initiated: "true"
  condition: selection
level: high
tags:
  - attack.t1071
  - attack.t1573
  - attack.command_and_control
falsepositives:
  - Authorized penetration testing tools during scheduled assessments
```


**Detection Opportunities**

| Indicator | Source | Detection Logic |
|---|---|---|
| Mythic C2 Detection | windows/network_connection | Sigma rule (high) |
| ATT&CK Coverage | MITRE ATT&CK | T1071, T1573 |

## Verification

- [ ] Environment and tools verified and operational
- [ ] Target samples acquired through authorized channels
- [ ] Primary analysis completed with findings documented
- [ ] Secondary validation performed with independent tooling
- [ ] All artifacts preserved in structured output directory
- [ ] Detection opportunities documented for blue team

## References

- [MITRE ATT&CK T1071](https://attack.mitre.org/techniques/T1071) — Related technique
- [Mythic Documentation](https://mythic.org/) — Primary tooling
- [Docker Reference](https://docker.org/) — Secondary tooling
