Cybersecurity AI (CAI) Agent Framework
Modular multi-agent architecture for structured CTF verification, defensive posture checks, and reproducible security labs.
Prerequisites & Step-by-Step Installation
Copy & run inside isolated labBefore You Start (Prerequisites)
- + Docker Engine with an isolated internal bridge network (lab_isolated)
- + Python >= 3.11 and either local Ollama or a rate-limited API key
- + Explicit written lab/CTF authorization scope definition
Create an isolated non-routed Docker lab network
docker network create --internal lab_isolated
Prevents autonomous agent containers from initiating unintended external internet traffic.
Pull and verify the hardened runner container
docker run --rm --network lab_isolated --read-only cai-security/runner:latest --version
Run strictly with --read-only root filesystem and hard step limits.
docker network inspect lab_isolated --format "{{.Internal}}"
Client Integration & Configuration Files
Review scope limits before wiringdocker run --rm --network lab_isolated --read-only \
-e TOOL_SCOPE=authorized_lab \
cai-security/runner:latest --profile defensive-audit
python3 -m venv cai-env && source cai-env/bin/activate
pip install cai-framework
cai --profile defensive-audit --max-steps 15 --dry-run
How to Use & Defensive Workflow
Authorized assessment protocolTypical Scenario: Run bounded multi-agent triage inside an isolated CTF or defensive staging range while keeping full command audit transcripts.
- 01. Start your target vulnerable/staging containers inside the same lab_isolated network.
- 02. Launch CAI with --profile defensive-audit and a strict --max-steps limit.
- 03. Inspect human approval checkpoints before allowing active probing steps.
- 04. Export the Markdown audit transcript for defensive patching.
Perform a read-only configuration and service audit against lab-web:8080 inside lab_isolated, log every check step, and stop for human confirmation before any active request.
Deploy multi-agent security runners inside air-gapped Docker networks (`--network lab_isolated`) with hard step budgets, outbound domain allowlists, and mandatory human approval on active probes.
Technical Architecture & Deployment Brief
Overview & Role in Security Engineering
Cybersecurity AI (CAI) Agent Framework (AI Security Agent) is engineered to support practitioners focused on role-separated planner/verifier agent loops, deterministic tool execution sandboxes, and step-by-step audit transcripts for authorized defensive engagements. Within the ToolWar ecosystem, it serves as an explicit bridge between AI reasoning layers and verifiable cybersecurity telemetry.
Technical Architecture & Data Flow
This entry bridges classical cybersecurity engineering with modern AI workflows while preserving strict human review, deterministic boundary checks, and verifiable outputs.
Unlike ad-hoc prompt wrappers that execute unconstrained strings directly in a shell, structured integration enforces typed parameter validation, bounded scope allowlists, and explicit separation between untrusted analyzed artifacts (source files, telemetry logs, network banners, or binary samples) and system-level control instructions.
Recommended Deployment Practice
- Isolate the Execution Boundary: Deploy integrations inside ephemeral containers or dedicated analysis VMs so untrusted repositories, binaries, or HTTP responses cannot affect primary workstations.
- Enforce Least-Privilege Scoping: Use read-only filesystem mounts, non-privileged service tokens, and target CIDR allowlists before enabling interactive assistant sessions.
- Verify Outputs Deterministically: Validate every generated output against deterministic static scanners or runtime guardrails before applying changes to production infrastructure.
Integration & Operational Caveats
- Treat all external content ingested by an LLM (including code comments, HTML titles, log lines, and MCP responses) as potential prompt-injection vectors.
- Review configuration JSON and
SKILL.mdmanifests carefully before binding credentials or running inside automated CI/CD pipelines.