references/index.md

GitHub

Mythic Implant Development - Reference Index

This index lists all reference documentation available for Mythic agent development. Load only the pages you need to conserve context window space.

Phase 1: Project Setup

Page Description
Project Layout Container structure, Dockerfile templates, folder layout, main.py/main.go, External Agent repo format
Container Syncing How containers register with Mythic, sync triggers, cascading sync behavior

Phase 2: Agent Communication Protocol

Page Description
Agent Message Format Base wire format: Base64(UUID + EncBlob(JSON)), UUID types, encryption blob structure, delegate messages
Initial Checkin Plaintext checkin, static AES256, RSA encrypted key exchange, custom EKE, all crypto details
Get Tasking Request/response format for fetching tasks, tasking_size, delegate forwarding
Post Response Submitting task output, completion status, error handling, process_response hook
File Downloads Agent -> Mythic chunked file transfer protocol, registration, chunk numbering
File Uploads Mythic -> Agent chunked file pull protocol, File parameter UUIDs, RPC file access

Phase 3: Commands and Features

Page Description
Commands CommandBase class, TaskArguments, CommandParameters, parameter types, parameter groups
Create Tasking create_go_tasking function, available context, RPC calls, DisplayParams, completion functions
OPSEC Checking opsec_pre/opsec_post functions, blocking, bypass roles, execution order

Phase 4: Agent Definition and Build

Page Description
Payload Type Definition PayloadType class (Python + Go), BuildParameter types, build function, BuildResponse, build steps, on_new_callback

Phase 5: Advanced Features

Page Description
SOCKS SOCKS5 proxy through agent, message format, server_id tracking, RPC start/stop
Reverse Port Forward Reverse port forward through agent, agent-initiated connections, RPC start/stop
Translation Containers Custom message formats, custom encryption, staging_translation flow, gRPC transport
C2 Profile Definition C2Profile class, parameters, server_binary_path, P2P vs egress profiles
P2P Connections Edge reporting, delegate message format, automatic connection announcements