How r4wd3r/llms-are-acd works
This repository studies autonomous cyber defense in CAGE-4, combining conventional agents, graph-based Cybermonic reinforcement learning, and LLM defenders. The principal workflow is to turn environment observations into agent inputs, select or generate a defense action, and submit it through an evaluation environment; Cybermonic training additionally learns from stored experience. The graph preserves documented evaluation and training capabilities. Some runtime wiring is supported only by the README or source-index references, so unsampled relationships are omitted.
Main entry points: submission.py Evaluation submission · cybermonic_train.py Cybermonic training · llm_policy.py LLM policy · graph_wrapper.py Graph wrapper
Components 20
Agent strategies
- Agent base
CybORG/Agents/SimpleAgents/BaseAgent.py - Red FSM
CybORG/Agents/SimpleAgents/FiniteStateRedAgent.py - Linear agent
CybORG/Agents/SimpleAgents/LinearAgent.py
LLM defense
- LLM defender
CybORG/Agents/LLMAgents/llm_agent.py - LLM observation wrapper
CybORG/Agents/LLMAgents/obs_wrapper.py - LLM policy
CybORG/Agents/LLMAgents/llm_policy.py - LLM configuration
CybORG/Agents/LLMAgents/config/config_vars.py - Model manager
CybORG/Agents/LLMAgents/llm_adapter/model_manager.py - Model backends
CybORG/Agents/LLMAgents/llm_adapter/backend/model_backend.py - OpenAI backend
CybORG/Agents/LLMAgents/llm_adapter/backend/openai.py - Communication vectors
CybORG/Agents/LLMAgents/comm_vector/CommVectorGenerator.py
Graph learning
- CAGE4 PPO
CybORG/Agents/CybermonicAgents/cage4.py - PPO memory
CybORG/Agents/CybermonicAgents/memory_buffer.py - Graph wrapper
CybORG/Agents/Wrappers/CybermonicWrappers/graph_wrapper.py - Observation graph
CybORG/Agents/Wrappers/CybermonicWrappers/observation_graph.py - Graph nodes
CybORG/Agents/Wrappers/CybermonicWrappers/nodes.py
Evaluation
- Evaluation submission
CybORG/Evaluation/Cybermonics/submission.py - Cybermonic training
cybermonic_train.py
Other components
- CAGE-4 environment
- LLM service
Connections 21
- Red FSM → Agent base: inherits
CybORG/Agents/SimpleAgents/FiniteStateRedAgent.py - Linear agent → Agent base: inherits
CybORG/Agents/SimpleAgents/LinearAgent.py - Graph wrapper → Observation graph: uses
CybORG/Agents/Wrappers/CybermonicWrappers/graph_wrapper.py - Observation graph → Graph nodes: uses
CybORG/Agents/Wrappers/CybermonicWrappers/observation_graph.py - CAGE4 PPO → PPO memory: stores experience
CybORG/Agents/CybermonicAgents/cage4.py - LLM defender → LLM observation wrapper: wraps observations
CybORG/Agents/LLMAgents/llm_agent.py - LLM policy → Model manager: requests generation
CybORG/Agents/LLMAgents/llm_policy.py - LLM policy → LLM configuration: loads settings
CybORG/Agents/LLMAgents/llm_policy.py - Model manager → Model backends: creates backend
CybORG/Agents/LLMAgents/llm_adapter/model_manager.py - OpenAI backend → Model backends: implements
CybORG/Agents/LLMAgents/llm_adapter/backend/openai.py - OpenAI backend → LLM service: requests completion
CybORG/Agents/LLMAgents/llm_adapter/backend/openai.py - Evaluation submission → LLM defender: configures defenders
CybORG/Evaluation/Cybermonics/submission.py - Evaluation submission → LLM policy: selects policy
CybORG/Evaluation/Cybermonics/submission.py - Evaluation submission → Graph wrapper: wraps environment
CybORG/Evaluation/Cybermonics/submission.py - Evaluation submission → Communication vectors: creates messages
CybORG/Evaluation/Cybermonics/submission.py - Evaluation submission → CAGE-4 environment: steps agents
CybORG/Evaluation/Cybermonics/submission.py - Cybermonic training → CAGE4 PPO: trains agent
cybermonic_train.py - Cybermonic training → PPO memory: uses experience
cybermonic_train.py - Cybermonic training → Graph wrapper: wraps observations
cybermonic_train.py - CAGE-4 environment → Red FSM: supplies observations
- CAGE-4 environment → Linear agent: supplies observations