User Guide

September 30, 2025 · View on GitHub

Cyber-AutoAgent is an autonomous security assessment tool with a React-based terminal interface providing real-time operation monitoring and interactive configuration.

Prerequisites

RequirementPurpose
Node.js 20+React interface runtime
Docker DesktopContainerized agent execution
AWS credentials or OllamaModel provider access
AuthorizationWritten permission to test targets

Legal Notice: Only test systems you own or have explicit written permission to assess. Unauthorized testing is illegal. Users assume full responsibility for legal and ethical use.

Installation

cd src/modules/interfaces/react
npm install
npm run build
npm start

First launch guides you through Docker setup, deployment mode selection, and provider configuration.

Deployment Modes

ModeExecutionObservabilityUse Case
Local CLIDirect PythonNoneDevelopment
Single ContainerDocker isolatedNoneBasic assessments
Full StackDocker ComposeLangfuse includedProduction

Select during setup or change via /setup command.

Configuration

Configuration persists to ~/.cyber-autoagent/config.json.

Model Providers

AWS Bedrock:

export AWS_ACCESS_KEY_ID=your_key
export AWS_SECRET_ACCESS_KEY=your_secret
export AWS_REGION=us-east-1

Ollama (Local):

ollama serve
ollama pull qwen3-coder:30b-a3b-q4_K_M
ollama pull mxbai-embed-large

LiteLLM:

export OPENAI_API_KEY=your_key
# or
export ANTHROPIC_API_KEY=your_key

Configuration Commands

CommandFunction
/configView current settings
/config editInteractive editor
/providerChange model provider
/setupRe-run initial setup
/healthSystem status check

Running Assessments

Interactive Mode

# In interface
/module              # Select general or ctf
target: https://testphp.vulnweb.com
objective: Identify SQL injection vulnerabilities
execute              # Start assessment

Command Line Mode

cyber-react \
  --target "https://testphp.vulnweb.com" \
  --objective "Identify OWASP Top 10 vulnerabilities" \
  --module general \
  --iterations 50 \
  --auto-run

Command Line Flags

FlagDefaultDescription
--target, -tRequiredTarget system URL or IP
--objective, -oRequiredAssessment objective
--module, -mgeneralSecurity module: general, ctf
--iterations, -i100Maximum tool executions
--providerbedrockModel provider
--auto-runfalseSkip interactive prompts
--auto-approvefalseAuto-approve tool executions
--memory-modeautoMemory: auto or fresh
--deployment-modeAutolocal-cli, single-container, full-stack

Operation Modules

ModulePurposeKey Features
generalWeb application securityAdvanced recon, payload testing, auth analysis
ctfCTF challengesFlag recognition, exploit chains, success detection

Monitoring

Interface Display

SectionInformation
HeaderOperation ID, target, module, deployment mode
MainAgent reasoning, tool executions, outputs, findings
FooterStep progress, tokens, costs, memory ops, time

Observability (Full Stack)

URL: http://localhost:3000
Login: admin@cyber-autoagent.com / changeme

Output Structure

outputs/
└── <target>/
    ├── OP_<timestamp>/
    │   ├── report.md              # Assessment report
    │   ├── logs/
    │   │   └── cyber_operations.log
    │   └── utils/
    └── memory/                    # Persistent across operations

Memory System

ModeBehaviorUse Case
autoLoads existing memory, stores new findingsIterative testing
freshEmpty memory, no historical contextBaseline assessments

Control via /config edit or --memory-mode flag.

Docker Management

# Start full stack
docker-compose up -d

# Check status
docker-compose ps

# View logs
docker-compose logs -f

# Stop
docker-compose down

# Reset all data
docker-compose down -v

Alternative Execution

Python Direct

python src/cyberautoagent.py \
  --target "http://testphp.vulnweb.com" \
  --objective "SQL injection assessment" \
  --provider bedrock \
  --module general \
  --iterations 50

Requirements: Python 3.10+, dependencies installed

Docker Standalone

docker build -t cyber-autoagent .

docker run --rm \
  -e AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID} \
  -e AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY} \
  -v $(pwd)/outputs:/app/outputs \
  cyber-autoagent \
  --target "http://example.com" \
  --objective "Security assessment"

Troubleshooting

Application Issues

ProblemSolution
React app won't startrm -rf node_modules && npm install && npm run build
Configuration errorsrm ~/.cyber-autoagent/config.json && cyber-react
Docker connectivitydocker info to verify daemon running
Node version issuesVerify Node.js 20+ with node --version

Provider Issues

ProviderVerification Command
Bedrockaws sts get-caller-identity
Ollamacurl http://localhost:11434/api/version
LiteLLMecho $OPENAI_API_KEY

Operation Issues

IssueResolution
Assessment not startingCheck provider credentials, Docker status, target accessibility
Assessment stuckReview step in footer, check tool outputs for errors
Out of memoryReduce iterations, use fresh memory mode, clear old outputs
Port conflictsChange ports in docker-compose.yml or stop conflicting services

Examples

Web Application Assessment

cyber-react \
  -m general \
  -t "https://testphp.vulnweb.com" \
  -o "OWASP Top 10 assessment" \
  -i 50

API Security Testing

cyber-react \
  -m general \
  -t "https://api.example.com" \
  -o "Authentication testing" \
  -i 75 \
  --auto-approve

CTF Challenge

cyber-react \
  -m ctf \
  -t "http://challenge.ctf:8080" \
  -o "Extract flag" \
  -i 100

Automated Scan

cyber-react \
  -t "192.168.1.100" \
  -o "Network security assessment" \
  --auto-run \
  --auto-approve \
  --headless

Best Practices

Assessment Workflow

PhaseActions
BeforeObtain written authorization, verify Docker running, check provider connectivity, test target accessibility
DuringMonitor real-time outputs, review tool effectiveness, track token usage, check finding severity
AfterReview complete report, verify findings accuracy, document methodology, archive outputs

Configuration Guidelines

SettingRecommendation
IterationsStart with 25-50, increase to 100-200 for comprehensive testing
ModuleUse general for web apps, ctf for competitions
Auto-approveOnly for trusted environments
ObservabilityEnable for production assessments
Memory modeAuto for iterative testing, fresh for baselines

Required Before Use

RequirementDescription
Written authorizationExplicit permission to test target systems
Legal complianceUnderstanding of applicable laws and regulations
Impact assessmentEnsure testing won't affect production services
Scope documentationClearly defined testing boundaries
Disclosure practicesResponsible vulnerability reporting procedures

Responsible Disclosure

If vulnerabilities are discovered during authorized testing:

StepAction
1Report to system owner promptly with clear reproduction steps
2Allow reasonable remediation time (typically 90 days)
3Do not publicly disclose until patched
4Follow coordinated disclosure practices

Open Source Notice: This software is provided "as is" without warranty. Contributors and maintainers assume no liability for misuse or damages.

Additional Resources

ResourceLocation
Architecture Guidearchitecture.md
Memory Systemmemory.md
Deployment Guidedeployment.md
Module Development../src/modules/operation_plugins/README.md
Terminal Architectureterminal-frontend.md
GitHub IssuesReport bugs and request features