# its-a-feature/mythic architecture

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

- Interactive diagram: https://gitdiagram.com/its-a-feature/mythic
- Repository: https://github.com/its-a-feature/mythic

## Overview

Mythic is a collaborative red-team operations framework: operators use a browser UI to manage callbacks, tasking, payloads, C2 profiles, and supporting operational features, while mythic-cli manages the deployed containers and installs separately maintained agents and profiles. The sampled UI shows Apollo-backed application setup, routed pages, and task-search rendering. Several feature modules and server subsystems are present in the tree but were not sampled, so their internal wiring is not asserted.

Main entry points: [`MythicReactUI/src/components/App.js`](https://github.com/its-a-feature/mythic/blob/master/MythicReactUI/src/components/App.js) (App routing), [`MythicReactUI/src/index.js`](https://github.com/its-a-feature/mythic/blob/master/MythicReactUI/src/index.js) (UI bootstrap), [`Mythic_CLI/src/cmd/rootCmd.go`](https://github.com/its-a-feature/mythic/blob/master/Mythic_CLI/src/cmd/rootCmd.go) (mythic-cli), [`MythicReactUI/src/components/pages/Search/SearchTabTasks.js`](https://github.com/its-a-feature/mythic/blob/master/MythicReactUI/src/components/pages/Search/SearchTabTasks.js) (Task search)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["Operator interface"]
  node_ui_boot["UI bootstrap<br/>[index.js]"]
  node_app_routes["App routing<br/>[App.js]"]
  node_ui_state["UI state and cache<br/>[cache.js]"]
end

subgraph group_operations["Operations workflow"]
  node_task_search["Task search<br/>[SearchTabTasks.js]"]
  node_task_display["Task display<br/>[TaskDisplay.js]"]
  node_callback_ops["Callbacks and tasking"]
  node_response_view["Task responses"]
  node_other_features["Operations features"]
end

subgraph group_management["Payload management"]
  node_payload_builder["Payload creation"]
  node_wrapper_builder["Wrapper creation"]
  node_payload_inventory["Payload inventory"]
  node_c2_agents["Payload types and C2"]
end

subgraph group_server["Core services"]
  node_mythic_api["Mythic API"]
  node_mythic_server["Mythic server<br/>[main.go]"]
  node_eventing["Event processing"]
  node_database[("Mythic database<br/>[schema.go]")]
end

subgraph group_deployment["Deployment management"]
  node_cli["mythic-cli<br/>[rootCmd.go]"]
  node_containers["Mythic containers"]
  node_agents_profiles["Agents and C2 profiles"]
end

node_operator(("Operator"))

node_operator -->|"uses"| node_ui_boot
node_ui_boot -->|"renders"| node_app_routes
node_app_routes -->|"routes to"| node_callback_ops
node_app_routes -->|"routes to"| node_payload_builder
node_app_routes -->|"routes to"| node_wrapper_builder
node_app_routes -->|"routes to"| node_c2_agents
node_task_search -->|"renders"| node_task_display
node_ui_boot -.->|"queries"| node_mythic_api
node_cli -->|"starts"| node_containers
node_cli -->|"installs"| node_agents_profiles

click node_ui_boot "https://github.com/its-a-feature/mythic/blob/master/MythicReactUI/src/index.js"
click node_app_routes "https://github.com/its-a-feature/mythic/blob/master/MythicReactUI/src/components/App.js"
click node_ui_state "https://github.com/its-a-feature/mythic/blob/master/MythicReactUI/src/cache.js"
click node_task_search "https://github.com/its-a-feature/mythic/blob/master/MythicReactUI/src/components/pages/Search/SearchTabTasks.js"
click node_task_display "https://github.com/its-a-feature/mythic/blob/master/MythicReactUI/src/components/pages/Callbacks/TaskDisplay.js"
click node_callback_ops "https://github.com/its-a-feature/mythic/tree/master/MythicReactUI/src/components/pages/Callbacks"
click node_response_view "https://github.com/its-a-feature/mythic/tree/master/MythicReactUI/src/components/pages/Callbacks"
click node_payload_builder "https://github.com/its-a-feature/mythic/tree/master/MythicReactUI/src/components/pages/CreatePayload"
click node_wrapper_builder "https://github.com/its-a-feature/mythic/tree/master/MythicReactUI/src/components/pages/CreateWrapper"
click node_payload_inventory "https://github.com/its-a-feature/mythic/tree/master/MythicReactUI/src/components/pages/Payloads"
click node_c2_agents "https://github.com/its-a-feature/mythic/blob/master/MythicReactUI/src/components/pages/PayloadTypesC2Profiles/PayloadTypesC2Profiles.js"
click node_other_features "https://github.com/its-a-feature/mythic/tree/master/MythicReactUI/src/components/pages"
click node_mythic_server "https://github.com/its-a-feature/mythic/blob/master/mythic-docker/src/main.go"
click node_eventing "https://github.com/its-a-feature/mythic/blob/master/mythic-docker/src/eventing/database_processing.go"
click node_database "https://github.com/its-a-feature/mythic/blob/master/mythic-docker/src/database/schema.go"
click node_cli "https://github.com/its-a-feature/mythic/blob/master/Mythic_CLI/src/cmd/rootCmd.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_ui_boot,node_app_routes,node_ui_state toneBlue
class node_task_search,node_task_display,node_callback_ops,node_response_view,node_other_features toneAmber
class node_payload_builder,node_wrapper_builder,node_payload_inventory,node_c2_agents toneMint
class node_mythic_api,node_mythic_server,node_eventing,node_database toneRose
class node_cli,node_containers,node_agents_profiles,node_operator toneIndigo
```

## Components

### Operator interface

- [UI bootstrap](https://github.com/its-a-feature/mythic/blob/master/MythicReactUI/src/index.js): `MythicReactUI/src/index.js`
- [App routing](https://github.com/its-a-feature/mythic/blob/master/MythicReactUI/src/components/App.js): `MythicReactUI/src/components/App.js`
- [UI state and cache](https://github.com/its-a-feature/mythic/blob/master/MythicReactUI/src/cache.js): `MythicReactUI/src/cache.js`

### Operations workflow

- [Task search](https://github.com/its-a-feature/mythic/blob/master/MythicReactUI/src/components/pages/Search/SearchTabTasks.js): `MythicReactUI/src/components/pages/Search/SearchTabTasks.js`
- [Task display](https://github.com/its-a-feature/mythic/blob/master/MythicReactUI/src/components/pages/Callbacks/TaskDisplay.js): `MythicReactUI/src/components/pages/Callbacks/TaskDisplay.js`
- [Callbacks and tasking](https://github.com/its-a-feature/mythic/tree/master/MythicReactUI/src/components/pages/Callbacks): `MythicReactUI/src/components/pages/Callbacks`
- [Task responses](https://github.com/its-a-feature/mythic/tree/master/MythicReactUI/src/components/pages/Callbacks): `MythicReactUI/src/components/pages/Callbacks`
- [Operations features](https://github.com/its-a-feature/mythic/tree/master/MythicReactUI/src/components/pages): `MythicReactUI/src/components/pages`

### Payload management

- [Payload creation](https://github.com/its-a-feature/mythic/tree/master/MythicReactUI/src/components/pages/CreatePayload): `MythicReactUI/src/components/pages/CreatePayload`
- [Wrapper creation](https://github.com/its-a-feature/mythic/tree/master/MythicReactUI/src/components/pages/CreateWrapper): `MythicReactUI/src/components/pages/CreateWrapper`
- [Payload inventory](https://github.com/its-a-feature/mythic/tree/master/MythicReactUI/src/components/pages/Payloads): `MythicReactUI/src/components/pages/Payloads`
- [Payload types and C2](https://github.com/its-a-feature/mythic/blob/master/MythicReactUI/src/components/pages/PayloadTypesC2Profiles/PayloadTypesC2Profiles.js): `MythicReactUI/src/components/pages/PayloadTypesC2Profiles/PayloadTypesC2Profiles.js`

### Core services

- **Mythic API**
- [Mythic server](https://github.com/its-a-feature/mythic/blob/master/mythic-docker/src/main.go): `mythic-docker/src/main.go`
- [Event processing](https://github.com/its-a-feature/mythic/blob/master/mythic-docker/src/eventing/database_processing.go): `mythic-docker/src/eventing/database_processing.go`
- [Mythic database](https://github.com/its-a-feature/mythic/blob/master/mythic-docker/src/database/schema.go): `mythic-docker/src/database/schema.go`

### Deployment management

- [mythic-cli](https://github.com/its-a-feature/mythic/blob/master/Mythic_CLI/src/cmd/rootCmd.go): `Mythic_CLI/src/cmd/rootCmd.go`
- **Mythic containers**
- **Agents and C2 profiles**

### Other components

- **Operator**

## Connections

- Operator → UI bootstrap: uses (evidence: `README.md`)
- UI bootstrap → App routing: renders (evidence: `MythicReactUI/src/index.js`)
- App routing → Callbacks and tasking: routes to (evidence: `MythicReactUI/src/components/App.js`)
- App routing → Payload creation: routes to (evidence: `MythicReactUI/src/components/App.js`)
- App routing → Wrapper creation: routes to (evidence: `MythicReactUI/src/components/App.js`)
- App routing → Payload types and C2: routes to (evidence: `MythicReactUI/src/components/App.js`)
- Task search → Task display: renders (evidence: `MythicReactUI/src/components/pages/Search/SearchTabTasks.js`)
- UI bootstrap → Mythic API: queries
- mythic-cli → Mythic containers: starts (evidence: `README.md`)
- mythic-cli → Agents and C2 profiles: installs (evidence: `README.md`)
