# mythicmeta/examplecontainers architecture

> Architecture diagram of the GitHub repository mythicmeta/examplecontainers, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-06). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/mythicmeta/examplecontainers
- Repository: https://github.com/mythicmeta/examplecontainers

## Overview

ExampleContainers demonstrates Mythic service containers in Go and Python. The principal workflow is container startup registering payload, C2, translation, webhook, logging, and eventing capabilities with Mythic; payload and C2 definitions support operator tasking and agent communication. The Go entry point explicitly initializes services, while Python imports service modules before starting Mythic’s service runner. README documents RabbitMQ for payload/C2/logger/webhooks and gRPC for translation. Some Python integrations and several Go implementations are unsampled, so their internal calls are not inferred.

Main entry points: [`Payload_Type/go_services/main.go`](https://github.com/mythicmeta/examplecontainers/blob/main/Payload_Type/go_services/main.go) (Go Runner), [`Payload_Type/python_services/main.py`](https://github.com/mythicmeta/examplecontainers/blob/main/Payload_Type/python_services/main.py) (Python Runner), [`Payload_Type/python_services/websocket/mythic/c2_functions/websocket.py`](https://github.com/mythicmeta/examplecontainers/blob/main/Payload_Type/python_services/websocket/mythic/c2_functions/websocket.py) (Websocket Profile), [`Payload_Type/python_services/basic_python_agent`](https://github.com/mythicmeta/examplecontainers/tree/main/Payload_Type/python_services/basic_python_agent) (Apfell Payload)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_go["Go Services"]
  node_go_main["Go Runner<br/>[main.go]"]
end

subgraph group_py["Python Services"]
  node_py_main["Python Runner<br/>[main.py]"]
end

subgraph group_payload["Payload Capabilities"]
  node_go_agent["Go Agent Payload<br/>[builder.go]"]
  node_py_agent["Apfell Payload"]
  node_py_commands["Command Augment"]
end

subgraph group_c2["C2 Profiles"]
  node_go_http["HTTP C2 Definition<br/>[builder.go]"]
  node_ws_profile["Websocket Profile<br/>[websocket.py]"]
  node_ws_main["Websocket Server Runner<br/>[main.go]"]
  node_ws_server["Websocket Server<br/>[server.go]"]
end

subgraph group_shared["Shared Services"]
  node_go_translation["Go Translation<br/>[translations.go]"]
  node_go_webhook["Go Webhooks"]
  node_go_logger["Go Logger<br/>[initialize.go]"]
  node_go_events["Go Eventing"]
  node_go_auth["Go Auth<br/>[initialize.go]"]
  node_py_event["Python Eventing<br/>[my_eventing.py]"]
  node_py_translation["Python Translation<br/>[translator.py]"]
  node_py_logger["Python Logger<br/>[logger.py]"]
  node_py_webhook["Python Webhook<br/>[webhook.py]"]
end

node_mythic(("Mythic Server"))
node_external_rabbit["RabbitMQ"]
node_external_grpc(("gRPC"))

node_go_main -->|"initializes"| node_go_agent
node_go_main -->|"initializes"| node_go_http
node_go_main -->|"initializes"| node_go_translation
node_go_main -->|"initializes"| node_go_webhook
node_go_main -->|"initializes"| node_go_logger
node_go_main -->|"initializes"| node_go_events
node_go_main -->|"initializes"| node_go_auth
node_go_main -->|"starts services"| node_mythic
node_py_main -->|"imports"| node_py_agent
node_py_main -->|"imports"| node_ws_profile
node_py_main -->|"imports"| node_py_translation
node_py_main -->|"imports"| node_py_logger
node_py_main -->|"imports"| node_py_commands
node_py_main -->|"imports"| node_py_event
node_py_main -->|"starts services"| node_mythic
node_ws_main -->|"creates and runs"| node_ws_server
node_ws_profile -->|"configures binary"| node_ws_main
node_py_agent -.->|"syncs definitions"| node_mythic
node_py_commands -.->|"syncs definitions"| node_mythic
node_ws_profile -.->|"syncs definitions"| node_mythic
node_go_agent -.->|"connects via"| node_external_rabbit
node_go_http -.->|"connects via"| node_external_rabbit
node_go_logger -.->|"connects via"| node_external_rabbit
node_go_webhook -.->|"connects via"| node_external_rabbit
node_go_translation -.->|"connects via"| node_external_grpc
node_py_agent -.->|"connects via"| node_external_rabbit
node_ws_profile -.->|"connects via"| node_external_rabbit
node_py_logger -.->|"connects via"| node_external_rabbit
node_py_webhook -.->|"connects via"| node_external_rabbit
node_py_translation -.->|"connects via"| node_external_grpc

click node_go_main "https://github.com/mythicmeta/examplecontainers/blob/main/Payload_Type/go_services/main.go"
click node_go_agent "https://github.com/mythicmeta/examplecontainers/blob/main/Payload_Type/go_services/basic_agent/agentfunctions/builder.go"
click node_go_http "https://github.com/mythicmeta/examplecontainers/blob/main/Payload_Type/go_services/http/c2functions/builder.go"
click node_go_translation "https://github.com/mythicmeta/examplecontainers/blob/main/Payload_Type/go_services/no_actual_translation/translationfunctions/translations.go"
click node_go_webhook "https://github.com/mythicmeta/examplecontainers/tree/main/Payload_Type/go_services/my_webhooks"
click node_go_logger "https://github.com/mythicmeta/examplecontainers/blob/main/Payload_Type/go_services/my_logger/initialize.go"
click node_go_events "https://github.com/mythicmeta/examplecontainers/tree/main/Payload_Type/go_services/my_event_processor"
click node_go_auth "https://github.com/mythicmeta/examplecontainers/blob/main/Payload_Type/go_services/my_auth/initialize.go"
click node_py_main "https://github.com/mythicmeta/examplecontainers/blob/main/Payload_Type/python_services/main.py"
click node_py_agent "https://github.com/mythicmeta/examplecontainers/tree/main/Payload_Type/python_services/basic_python_agent"
click node_py_commands "https://github.com/mythicmeta/examplecontainers/tree/main/Payload_Type/python_services/basic_command_augment"
click node_py_event "https://github.com/mythicmeta/examplecontainers/blob/main/Payload_Type/python_services/basic_eventer/my_eventing.py"
click node_py_translation "https://github.com/mythicmeta/examplecontainers/blob/main/Payload_Type/python_services/translator/translator.py"
click node_py_logger "https://github.com/mythicmeta/examplecontainers/blob/main/Payload_Type/python_services/my_logger/logger.py"
click node_py_webhook "https://github.com/mythicmeta/examplecontainers/blob/main/Payload_Type/python_services/mywebhook/webhook.py"
click node_ws_profile "https://github.com/mythicmeta/examplecontainers/blob/main/Payload_Type/python_services/websocket/mythic/c2_functions/websocket.py"
click node_ws_main "https://github.com/mythicmeta/examplecontainers/blob/main/Payload_Type/python_services/websocket/c2_code/src/main.go"
click node_ws_server "https://github.com/mythicmeta/examplecontainers/blob/main/Payload_Type/python_services/websocket/c2_code/src/pkg/servers/server.go"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_go_main toneBlue
class node_py_main toneAmber
class node_go_agent,node_py_agent,node_py_commands,node_mythic toneMint
class node_go_http,node_ws_profile,node_ws_main,node_ws_server toneRose
class node_go_translation,node_go_webhook,node_go_logger,node_go_events,node_go_auth,node_py_event,node_py_translation,node_py_logger,node_py_webhook,node_external_rabbit,node_external_grpc toneIndigo
```

## Components

### Go Services

- [Go Runner](https://github.com/mythicmeta/examplecontainers/blob/main/Payload_Type/go_services/main.go): `Payload_Type/go_services/main.go`

### Python Services

- [Python Runner](https://github.com/mythicmeta/examplecontainers/blob/main/Payload_Type/python_services/main.py): `Payload_Type/python_services/main.py`

### Payload Capabilities

- [Go Agent Payload](https://github.com/mythicmeta/examplecontainers/blob/main/Payload_Type/go_services/basic_agent/agentfunctions/builder.go): `Payload_Type/go_services/basic_agent/agentfunctions/builder.go`
- [Apfell Payload](https://github.com/mythicmeta/examplecontainers/tree/main/Payload_Type/python_services/basic_python_agent): `Payload_Type/python_services/basic_python_agent`
- [Command Augment](https://github.com/mythicmeta/examplecontainers/tree/main/Payload_Type/python_services/basic_command_augment): `Payload_Type/python_services/basic_command_augment`

### C2 Profiles

- [HTTP C2 Definition](https://github.com/mythicmeta/examplecontainers/blob/main/Payload_Type/go_services/http/c2functions/builder.go): `Payload_Type/go_services/http/c2functions/builder.go`
- [Websocket Profile](https://github.com/mythicmeta/examplecontainers/blob/main/Payload_Type/python_services/websocket/mythic/c2_functions/websocket.py): `Payload_Type/python_services/websocket/mythic/c2_functions/websocket.py`
- [Websocket Server Runner](https://github.com/mythicmeta/examplecontainers/blob/main/Payload_Type/python_services/websocket/c2_code/src/main.go): `Payload_Type/python_services/websocket/c2_code/src/main.go`
- [Websocket Server](https://github.com/mythicmeta/examplecontainers/blob/main/Payload_Type/python_services/websocket/c2_code/src/pkg/servers/server.go): `Payload_Type/python_services/websocket/c2_code/src/pkg/servers/server.go`

### Shared Services

- [Go Translation](https://github.com/mythicmeta/examplecontainers/blob/main/Payload_Type/go_services/no_actual_translation/translationfunctions/translations.go): `Payload_Type/go_services/no_actual_translation/translationfunctions/translations.go`
- [Go Webhooks](https://github.com/mythicmeta/examplecontainers/tree/main/Payload_Type/go_services/my_webhooks): `Payload_Type/go_services/my_webhooks`
- [Go Logger](https://github.com/mythicmeta/examplecontainers/blob/main/Payload_Type/go_services/my_logger/initialize.go): `Payload_Type/go_services/my_logger/initialize.go`
- [Go Eventing](https://github.com/mythicmeta/examplecontainers/tree/main/Payload_Type/go_services/my_event_processor): `Payload_Type/go_services/my_event_processor`
- [Go Auth](https://github.com/mythicmeta/examplecontainers/blob/main/Payload_Type/go_services/my_auth/initialize.go): `Payload_Type/go_services/my_auth/initialize.go`
- [Python Eventing](https://github.com/mythicmeta/examplecontainers/blob/main/Payload_Type/python_services/basic_eventer/my_eventing.py): `Payload_Type/python_services/basic_eventer/my_eventing.py`
- [Python Translation](https://github.com/mythicmeta/examplecontainers/blob/main/Payload_Type/python_services/translator/translator.py): `Payload_Type/python_services/translator/translator.py`
- [Python Logger](https://github.com/mythicmeta/examplecontainers/blob/main/Payload_Type/python_services/my_logger/logger.py): `Payload_Type/python_services/my_logger/logger.py`
- [Python Webhook](https://github.com/mythicmeta/examplecontainers/blob/main/Payload_Type/python_services/mywebhook/webhook.py): `Payload_Type/python_services/mywebhook/webhook.py`

### Other components

- **Mythic Server**
- **RabbitMQ**
- **gRPC**

## Connections

- Go Runner → Go Agent Payload: initializes (evidence: `Payload_Type/go_services/main.go`)
- Go Runner → HTTP C2 Definition: initializes (evidence: `Payload_Type/go_services/main.go`)
- Go Runner → Go Translation: initializes (evidence: `Payload_Type/go_services/main.go`)
- Go Runner → Go Webhooks: initializes (evidence: `Payload_Type/go_services/main.go`)
- Go Runner → Go Logger: initializes (evidence: `Payload_Type/go_services/main.go`)
- Go Runner → Go Eventing: initializes (evidence: `Payload_Type/go_services/main.go`)
- Go Runner → Go Auth: initializes (evidence: `Payload_Type/go_services/main.go`)
- Go Runner → Mythic Server: starts services (evidence: `Payload_Type/go_services/main.go`)
- Python Runner → Apfell Payload: imports (evidence: `Payload_Type/python_services/main.py`)
- Python Runner → Websocket Profile: imports (evidence: `Payload_Type/python_services/main.py`)
- Python Runner → Python Translation: imports (evidence: `Payload_Type/python_services/main.py`)
- Python Runner → Python Logger: imports (evidence: `Payload_Type/python_services/main.py`)
- Python Runner → Command Augment: imports (evidence: `Payload_Type/python_services/main.py`)
- Python Runner → Python Eventing: imports (evidence: `Payload_Type/python_services/main.py`)
- Python Runner → Mythic Server: starts services (evidence: `Payload_Type/python_services/main.py`)
- Websocket Server Runner → Websocket Server: creates and runs (evidence: `Payload_Type/python_services/websocket/c2_code/src/main.go`)
- Websocket Profile → Websocket Server Runner: configures binary (evidence: `Payload_Type/python_services/websocket/mythic/c2_functions/websocket.py`)
- Apfell Payload → Mythic Server: syncs definitions
- Command Augment → Mythic Server: syncs definitions
- Websocket Profile → Mythic Server: syncs definitions
- Go Agent Payload → RabbitMQ: connects via
- HTTP C2 Definition → RabbitMQ: connects via
- Go Logger → RabbitMQ: connects via
- Go Webhooks → RabbitMQ: connects via
- Go Translation → gRPC: connects via
- Apfell Payload → RabbitMQ: connects via
- Websocket Profile → RabbitMQ: connects via
- Python Logger → RabbitMQ: connects via
- Python Webhook → RabbitMQ: connects via
- Python Translation → gRPC: connects via
