/c2-mythic:mythic-implant-developmentfrom c2-mythic
Guides building Mythic C2 framework agents/implants from scratch, covering C2 channels, target platforms, agent languages, commands, encryption, and OPSEC requirements.
Ships in c2-mythic. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Use this skill when developing a new agent (implant/payload) for the Mythic C2 framework. This includes:
Do not use this skill for:
CRITICAL: Before writing any code, you MUST ask the user the following clarification questions. Do not assume defaults. Each answer significantly impacts the architecture.
C2 Channel: What communication channel should the agent use?
Target Platforms: What operating systems will the agent support?
Agent Language: What language or framework should the agent be written in?
Commands: What commands should the agent support initially?
Encryption: What key exchange / encryption model?
Mythic Container Language: Should the server-side definitions (commands, build logic) be written in Python or GoLang?
OPSEC is the highest priority throughout all development. Every piece of code produced must adhere to the following:
No hardcoded attributable strings - Never embed tool names, author names, framework identifiers, or any string that would allow attribution to the agent, its developer, or the C2 framework. This includes:
No embedded debug messages - Never include debug print statements, logging calls, or verbose error messages in production agent code. Debug output must be:
String handling - All strings that could be signatured should be:
Network indicators - Minimize network-level signatures:
Build artifacts - Ensure clean builds:
Mythic OPSEC hooks - Implement opsec_pre and opsec_post checks on commands that create detectable artifacts (process creation, file writes, network connections). See OPSEC Checking.
Follow these steps in order. Each step references documentation pages that should be loaded for detailed specifications.
Create the Mythic-compatible project structure. This is critical - Mythic expects a specific folder layout for the container to sync properly.
Read: Project Layout
Key deliverables:
Dockerfile using appropriate Mythic base imagemain.py or main.go entry point for the Mythic containerThe project should follow the External Agent template format:
your-agent/
Payload_Type/
your_agent_name/
Dockerfile
main.py (or main.go + Makefile)
your_agent_name/
mythic/
agent_functions/
builder.py (or agentfunctions/*.go)
command1.py
command2.py
...
agent_code/
<your agent source code in whatever language>
Set up the build environment within the Docker container.
CRITICAL: The build() function runs INSIDE the container. Docker is NOT available inside the container. All compilers and tools your agent needs must be installed in the Dockerfile. You cannot use docker build, docker run, or any Docker-in-Docker commands from the build function.
Select the appropriate Mythic base image for your container language:
itsafeaturemythic/mythic_python_base:latest - Python definitionsitsafeaturemythic/mythic_go_base:latest - Go definitionsitsafeaturemythic/mythic_python_go:latest - Python definitions + Go compileritsafeaturemythic/mythic_go_macos:latest - Go definitions + macOS SDKitsafeaturemythic/mythic_python_macos:latest - Python definitions + macOS SDKitsafeaturemythic/mythic_go_dotnet:latest - Go definitions + .NET SDKInstall any additional build tools in the Dockerfile via RUN commands (Rust toolchain, cross-compilers, MinGW, etc.)
For Go-based containers, create a Makefile with build and run targets
The agent code is compiled inside this container when the build() function calls compilers/tools via subprocess (Python) or os/exec (Go)
This is the core of the agent. Implement the message protocol in the agent's language.
Read these references in order:
Base64(UUID + EncBlob(JSON))Implementation order within the agent:
IV (16 bytes) + Ciphertext + HMACget_tasking on interval, process commands, post_response with resultsAdd the commands the user requested. Each command has two parts:
Read: Commands and Create Tasking
For each command:
CommandBase / command struct with metadata (name, description, MITRE ATT&CK mapping, help text)TaskArguments / argument struct with parameterscreate_go_tasking for any server-side preprocessingopsec_pre/opsec_post checks where the command creates detectable artifactsFor additional features, consult:
Create the server-side container code that defines the agent to Mythic.
Read: Payload Type Definition
Key deliverables:
name, supported_os, c2_profiles (NOT supported_c2_profiles), build_parameters, mythic_encryptsName, SupportedOS, SupportedC2Profiles, BuildParameters, MythicEncryptsDatasubprocess (Python) or os/exec (Go)supports_dynamic_loading)BuildResponse with the final payload bytesCommandBase and TaskArgumentsSee also:
For detailed documentation on each topic, consult the following pages. Load only the pages you need to conserve context.
Full index: Reference Index
| Topic | Reference | When to Use |
|---|---|---|
| Project structure | Project Layout | Setting up the repo/container |
| Agent definition | Payload Type Definition | Defining the agent class and build |
| Wire format | Agent Message Format | Implementing message encoding |
| First contact | Initial Checkin | Implementing checkin + key exchange |
| Fetch tasks | Get Tasking | Implementing the task loop |
| Return output | Post Response | Sending task results |
| Download files | File Downloads | Agent -> Mythic file transfer |
| Upload files | File Uploads | Mythic -> Agent file transfer |
| Command defs | Commands | Defining commands and parameters |
| Task processing | Create Tasking | Server-side task preprocessing |
| OPSEC gates | OPSEC Checking | Pre/post task OPSEC checks |
| Custom format | Translation Containers | Non-JSON / custom crypto |
| C2 profiles | C2 Profile Definition | Building a custom C2 profile |
| SOCKS proxy | SOCKS | SOCKS5 tunneling through agent |
| Reverse port fwd | Reverse Port Forward | Reverse port forwarding through agent |
| P2P mesh | P2P Connections | Peer-to-peer agent linking |
| Sync lifecycle | Container Syncing | Understanding container registration |
agents/openai.yaml (opens in a new tab)assets/icon.png (opens in a new tab)assets/icon.svg (opens in a new tab)references/agent-message-format.md (opens in a new tab)references/c2-profile-definition.md (opens in a new tab)references/commands.md (opens in a new tab)references/container-syncing.md (opens in a new tab)references/create-tasking.md (opens in a new tab)references/file-downloads.md (opens in a new tab)references/file-uploads.md (opens in a new tab)references/get-tasking.md (opens in a new tab)references/index.md (opens in a new tab)references/initial-checkin.md (opens in a new tab)references/opsec-checking.md (opens in a new tab)references/p2p-connections.md (opens in a new tab)references/payload-type-definition.md (opens in a new tab)references/post-response.md (opens in a new tab)references/project-layout.md (opens in a new tab)references/rpfwd.md (opens in a new tab)references/socks.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub specterops/skills --plugin c2-mythic3 skills in this plugin
/mythic-profilesDevelop Mythic C2 profiles/listeners and transport containers. Use when designing, implementing, modifying, or validating Mythic C2 profile repositories like MythicC2Profiles, including HTTP/DNS/WebSocket/TCP/SMB-style egress or P2P profiles, C2Profile parameters, server binaries, redirector material, OPSEC checks, and payload-type integration./mythic-translation-containersDevelop Mythic translation containers for custom agent wire formats, custom encryption/decryption, and Mythic-to-agent message conversion. Use when a payload type sets translation_container, when mythic_encrypts is false with custom crypto, or when a C2 profile/agent needs non-JSON or binary message formats.Other plugins' skills for the same job