# cybersecua/cyberstrikeai architecture

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

- Interactive diagram: https://gitdiagram.com/cybersecua/cyberstrikeai
- Repository: https://github.com/cybersecua/cyberstrikeai

## Overview

CyberStrikeAI is an AI-powered penetration-testing platform. A user submits a conversational test through the web UI or Telegram; the server routes it to an AI agent, which can invoke security tools and MCP services, then present findings and manage results. Distinct capabilities include reconnaissance, vulnerability tracking, attack-chain analysis, knowledge retrieval, batch execution, and file management. The README documents these product branches; sampled source confirms server initialization, knowledge-tool registration, and selected storage and integration behavior. Many handler-to-subsystem calls were not shown, so those links are omitted or marked unverified.

Main entry points: [`internal/agent/agent.go`](https://github.com/cybersecua/cyberstrikeai/blob/main/internal/agent/agent.go) (AI Agent), [`internal/handler`](https://github.com/cybersecua/cyberstrikeai/tree/main/internal/handler) (API Handlers), [`internal/app/app.go`](https://github.com/cybersecua/cyberstrikeai/blob/main/internal/app/app.go) (Application Router), [`plugins/burp-suite/cyberstrikeai-burp-extension/src/main/java/burp/CyberStrikeAIClient.java`](https://github.com/cybersecua/cyberstrikeai/blob/main/plugins/burp-suite/cyberstrikeai-burp-extension/src/main/java/burp/CyberStrikeAIClient.java) (Burp Suite Extension)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["User Interfaces"]
  node_web_ui["Web UI<br/>[chat.js]"]
  node_telegram["Telegram Bot<br/>[telegram.go]"]
end

subgraph group_runtime["AI Runtime"]
  node_server["HTTP Server<br/>[main.go]"]
  node_app["Application Router<br/>[app.go]"]
  node_handlers["API Handlers"]
  node_agent["AI Agent<br/>[agent.go]"]
  node_providers["Model Providers<br/>[anthropic.go]"]
  node_multiagent["Multi-Agent Orchestrator<br/>[orchestrator.go]"]
  node_roles["Roles and Skills<br/>[manager.go]"]
end

subgraph group_testing["Testing Capabilities"]
  node_tool_exec["Tool Execution<br/>[executor.go]"]
  node_recon["Recon Plugins<br/>[manager.go]"]
  node_vuln["Vulnerability Management<br/>[vulnerability.go]"]
  node_attackchain["Attack-Chain Analysis<br/>[builder.go]"]
  node_batch["Batch Task Queues"]
end

subgraph group_state["State and Results"]
  node_knowledge["Knowledge Retrieval<br/>[retriever.go]"]
  node_knowledge_store[("Knowledge Base Manager<br/>[manager.go]")]
  node_database[("SQLite Persistence<br/>[database.go]")]
  node_result_storage[("Result Archives<br/>[result_storage.go]")]
  node_filemanager[("Managed Files<br/>[filemanager.go]")]
end

subgraph group_integrations["Tool Integrations"]
  node_mcp_server["Native MCP Server<br/>[server.go]"]
  node_external_mcp["External MCP Federation"]
  node_burp["Burp Suite Extension"]
  node_simplejson["SSE JSON Parsing<br/>[SimpleJson.java]"]
  node_mcp_client["MCP Client SDK<br/>[client_sdk.go]"]
end

node_user(("Security Tester"))
node_telegram_user(("Telegram User"))

node_user -->|"submits tests"| node_web_ui
node_telegram_user -->|"sends commands"| node_telegram
node_web_ui -.->|"sends requests"| node_app
node_telegram -.->|"forwards requests"| node_agent
node_server -.->|"runs"| node_app
node_app -->|"routes requests"| node_handlers
node_handlers -.->|"dispatches tests"| node_agent
node_agent -->|"requests inference"| node_providers
node_agent -->|"delegates work"| node_multiagent
node_agent -->|"uses role skills"| node_roles
node_agent -->|"invokes tools"| node_tool_exec
node_tool_exec -.->|"runs plugin tools"| node_recon
node_handlers -.->|"manages findings"| node_vuln
node_handlers -.->|"builds attack chains"| node_attackchain
node_handlers -.->|"queues tasks"| node_batch
node_app -->|"registers retrieval"| node_knowledge
node_knowledge -.->|"retrieves knowledge"| node_knowledge_store
node_handlers -.->|"persists records"| node_database
node_agent -.->|"archives results"| node_result_storage
node_handlers -.->|"manages files"| node_filemanager
node_app -->|"registers tools"| node_mcp_server
node_agent -->|"invokes remote tools"| node_external_mcp
node_mcp_client -.->|"connects servers"| node_external_mcp
node_burp -->|"streams chat"| node_app
node_burp -->|"parses responses"| node_simplejson

click node_web_ui "https://github.com/cybersecua/cyberstrikeai/blob/main/web/static/js/chat.js"
click node_telegram "https://github.com/cybersecua/cyberstrikeai/blob/main/internal/robot/telegram.go"
click node_server "https://github.com/cybersecua/cyberstrikeai/blob/main/cmd/server/main.go"
click node_app "https://github.com/cybersecua/cyberstrikeai/blob/main/internal/app/app.go"
click node_handlers "https://github.com/cybersecua/cyberstrikeai/tree/main/internal/handler"
click node_agent "https://github.com/cybersecua/cyberstrikeai/blob/main/internal/agent/agent.go"
click node_providers "https://github.com/cybersecua/cyberstrikeai/blob/main/internal/openai/anthropic.go"
click node_multiagent "https://github.com/cybersecua/cyberstrikeai/blob/main/internal/multiagent/orchestrator.go"
click node_roles "https://github.com/cybersecua/cyberstrikeai/blob/main/internal/skills/manager.go"
click node_tool_exec "https://github.com/cybersecua/cyberstrikeai/blob/main/internal/security/executor.go"
click node_recon "https://github.com/cybersecua/cyberstrikeai/blob/main/internal/plugins/manager.go"
click node_vuln "https://github.com/cybersecua/cyberstrikeai/blob/main/internal/handler/vulnerability.go"
click node_attackchain "https://github.com/cybersecua/cyberstrikeai/blob/main/internal/attackchain/builder.go"
click node_batch "https://github.com/cybersecua/cyberstrikeai/blob/main/internal/handler/batch_task_manager.go"
click node_knowledge "https://github.com/cybersecua/cyberstrikeai/blob/main/internal/knowledge/retriever.go"
click node_knowledge_store "https://github.com/cybersecua/cyberstrikeai/blob/main/internal/knowledge/manager.go"
click node_database "https://github.com/cybersecua/cyberstrikeai/blob/main/internal/database/database.go"
click node_result_storage "https://github.com/cybersecua/cyberstrikeai/blob/main/internal/storage/result_storage.go"
click node_filemanager "https://github.com/cybersecua/cyberstrikeai/blob/main/internal/filemanager/filemanager.go"
click node_mcp_server "https://github.com/cybersecua/cyberstrikeai/blob/main/internal/mcp/server.go"
click node_external_mcp "https://github.com/cybersecua/cyberstrikeai/blob/main/internal/mcp/external_manager.go"
click node_burp "https://github.com/cybersecua/cyberstrikeai/blob/main/plugins/burp-suite/cyberstrikeai-burp-extension/src/main/java/burp/CyberStrikeAIClient.java"
click node_simplejson "https://github.com/cybersecua/cyberstrikeai/blob/main/plugins/burp-suite/cyberstrikeai-burp-extension/src/main/java/burp/SimpleJson.java"
click node_mcp_client "https://github.com/cybersecua/cyberstrikeai/blob/main/internal/mcp/client_sdk.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_web_ui,node_telegram,node_telegram_user toneBlue
class node_server,node_app,node_handlers,node_agent,node_providers,node_multiagent,node_roles toneAmber
class node_tool_exec,node_recon,node_vuln,node_attackchain,node_batch toneMint
class node_knowledge,node_knowledge_store,node_database,node_result_storage,node_filemanager toneRose
class node_mcp_server,node_external_mcp,node_burp,node_simplejson,node_mcp_client,node_user toneIndigo
```

## Components

### User Interfaces

- [Web UI](https://github.com/cybersecua/cyberstrikeai/blob/main/web/static/js/chat.js): `web/static/js/chat.js`
- [Telegram Bot](https://github.com/cybersecua/cyberstrikeai/blob/main/internal/robot/telegram.go): `internal/robot/telegram.go`

### AI Runtime

- [HTTP Server](https://github.com/cybersecua/cyberstrikeai/blob/main/cmd/server/main.go): `cmd/server/main.go`
- [Application Router](https://github.com/cybersecua/cyberstrikeai/blob/main/internal/app/app.go): `internal/app/app.go`
- [API Handlers](https://github.com/cybersecua/cyberstrikeai/tree/main/internal/handler): `internal/handler`
- [AI Agent](https://github.com/cybersecua/cyberstrikeai/blob/main/internal/agent/agent.go): `internal/agent/agent.go`
- [Model Providers](https://github.com/cybersecua/cyberstrikeai/blob/main/internal/openai/anthropic.go): `internal/openai/anthropic.go`
- [Multi-Agent Orchestrator](https://github.com/cybersecua/cyberstrikeai/blob/main/internal/multiagent/orchestrator.go): `internal/multiagent/orchestrator.go`
- [Roles and Skills](https://github.com/cybersecua/cyberstrikeai/blob/main/internal/skills/manager.go): `internal/skills/manager.go`

### Testing Capabilities

- [Tool Execution](https://github.com/cybersecua/cyberstrikeai/blob/main/internal/security/executor.go): `internal/security/executor.go`
- [Recon Plugins](https://github.com/cybersecua/cyberstrikeai/blob/main/internal/plugins/manager.go): `internal/plugins/manager.go`
- [Vulnerability Management](https://github.com/cybersecua/cyberstrikeai/blob/main/internal/handler/vulnerability.go): `internal/handler/vulnerability.go`
- [Attack-Chain Analysis](https://github.com/cybersecua/cyberstrikeai/blob/main/internal/attackchain/builder.go): `internal/attackchain/builder.go`
- [Batch Task Queues](https://github.com/cybersecua/cyberstrikeai/blob/main/internal/handler/batch_task_manager.go): `internal/handler/batch_task_manager.go`

### State and Results

- [Knowledge Retrieval](https://github.com/cybersecua/cyberstrikeai/blob/main/internal/knowledge/retriever.go): `internal/knowledge/retriever.go`
- [Knowledge Base Manager](https://github.com/cybersecua/cyberstrikeai/blob/main/internal/knowledge/manager.go): `internal/knowledge/manager.go`
- [SQLite Persistence](https://github.com/cybersecua/cyberstrikeai/blob/main/internal/database/database.go): `internal/database/database.go`
- [Result Archives](https://github.com/cybersecua/cyberstrikeai/blob/main/internal/storage/result_storage.go): `internal/storage/result_storage.go`
- [Managed Files](https://github.com/cybersecua/cyberstrikeai/blob/main/internal/filemanager/filemanager.go): `internal/filemanager/filemanager.go`

### Tool Integrations

- [Native MCP Server](https://github.com/cybersecua/cyberstrikeai/blob/main/internal/mcp/server.go): `internal/mcp/server.go`
- [External MCP Federation](https://github.com/cybersecua/cyberstrikeai/blob/main/internal/mcp/external_manager.go): `internal/mcp/external_manager.go`
- [Burp Suite Extension](https://github.com/cybersecua/cyberstrikeai/blob/main/plugins/burp-suite/cyberstrikeai-burp-extension/src/main/java/burp/CyberStrikeAIClient.java): `plugins/burp-suite/cyberstrikeai-burp-extension/src/main/java/burp/CyberStrikeAIClient.java`
- [SSE JSON Parsing](https://github.com/cybersecua/cyberstrikeai/blob/main/plugins/burp-suite/cyberstrikeai-burp-extension/src/main/java/burp/SimpleJson.java): `plugins/burp-suite/cyberstrikeai-burp-extension/src/main/java/burp/SimpleJson.java`
- [MCP Client SDK](https://github.com/cybersecua/cyberstrikeai/blob/main/internal/mcp/client_sdk.go): `internal/mcp/client_sdk.go`

### Other components

- **Security Tester**
- **Telegram User**

## Connections

- Security Tester → Web UI: submits tests (evidence: `README.md`)
- Telegram User → Telegram Bot: sends commands (evidence: `README.md`)
- Web UI → Application Router: sends requests
- Telegram Bot → AI Agent: forwards requests
- HTTP Server → Application Router: runs
- Application Router → API Handlers: routes requests (evidence: `internal/app/app.go`)
- API Handlers → AI Agent: dispatches tests
- AI Agent → Model Providers: requests inference (evidence: `README.md`)
- AI Agent → Multi-Agent Orchestrator: delegates work (evidence: `README.md`)
- AI Agent → Roles and Skills: uses role skills (evidence: `README.md`)
- AI Agent → Tool Execution: invokes tools (evidence: `README.md`)
- Tool Execution → Recon Plugins: runs plugin tools
- API Handlers → Vulnerability Management: manages findings
- API Handlers → Attack-Chain Analysis: builds attack chains
- API Handlers → Batch Task Queues: queues tasks
- Application Router → Knowledge Retrieval: registers retrieval (evidence: `internal/app/app.go`)
- Knowledge Retrieval → Knowledge Base Manager: retrieves knowledge
- API Handlers → SQLite Persistence: persists records
- AI Agent → Result Archives: archives results
- API Handlers → Managed Files: manages files
- Application Router → Native MCP Server: registers tools (evidence: `internal/app/app.go`)
- AI Agent → External MCP Federation: invokes remote tools (evidence: `README.md`)
- MCP Client SDK → External MCP Federation: connects servers
- Burp Suite Extension → Application Router: streams chat (evidence: `plugins/burp-suite/cyberstrikeai-burp-extension/src/main/java/burp/CyberStrikeAIClient.java`)
- Burp Suite Extension → SSE JSON Parsing: parses responses (evidence: `plugins/burp-suite/cyberstrikeai-burp-extension/src/main/java/burp/CyberStrikeAIClient.java`)
