Ares - Autonomous Security Operations Agent
LLM-coordinated autonomous security operations platform with two modes:
Red Team - 7 specialized agents orchestrated by an LLM coordination loop that autonomously chains 64+ Active Directory attack tools across the full kill chain, from recon through domain dominance. 14 concurrent automation modules monitor discovered state and dispatch attack chains without manual sequencing.
Blue Team - Multi-agent SOC investigation system that queries live Loki logs and Prometheus metrics, runs MITRE ATT&CK-mapped detection templates, tracks lateral movement, and writes detection rules back to Grafana. Evidence-driven chaining automatically dispatches follow-up investigations as new indicators surface.
Table of Contents
Architecture
Ares is a Rust workspace that compiles to a single ares binary with
subcommands (ares ops, ares orchestrator, ares worker, ares blue,
ares history, ares config):
| Crate |
Purpose |
ares-cli |
Unified binary - CLI, orchestrator, and worker |
ares-core |
Shared models, state management, Redis schema, telemetry |
ares-llm |
LLM providers (Anthropic, OpenAI, Ollama) + tool registry |
ares-tools |
Tool dispatch and execution framework |
Red Team Multi-Agent System
Local (this machine) Remote (K8s or EC2)
──────────────────── ───────────────────
ares --k8s / --ec2 → ares orchestrator (LLM coordination loop)
or `task` commands ares worker x7 (recon, credential_access,
cracker, acl, privesc, lateral, coercion)
Redis (state store + message broker)
The orchestrator dispatches tasks to specialized worker agents via Redis
queues. Workers execute tools (nmap, secretsdump, hashcat, etc.) and push
results back. The orchestrator never executes exploitation tools directly.
Agent Roles:
- RECON: Network scanning, BloodHound, user/share enumeration
- CREDENTIAL_ACCESS: secretsdump, kerberoasting, AS-REP roasting, password spray
- CRACKER: Offline hash cracking with hashcat/john
- ACL: BloodHound collection, ACL edge enumeration and ranked candidate paths, per-edge ACL primitives (shadow credentials, WriteDACL)
- PRIVESC: ADCS (ESC1-8), delegation attacks, MSSQL exploitation
- LATERAL: PSExec/WMI/WinRM, credential harvesting from compromised hosts
- COERCION: Responder, ntlmrelayx, PetitPotam
Blue Team Multi-Agent System
Local (this machine) Remote (K8s or EC2)
──────────────────── ───────────────────
ares --k8s / --ec2 → ares orchestrator (investigation coordination)
or `task` commands ares worker x4 (triage, threat_hunter,
lateral_analyst, escalation_triage)
Redis (state store + message broker)
Grafana (Loki logs + Prometheus metrics)
The blue orchestrator dispatches investigation tasks to specialized agents
via Redis queues. Agents query Loki/Prometheus for evidence and report
findings back. The orchestrator chains follow-up investigations based on
discovered evidence types.
Agent Roles:
- ORCHESTRATOR: Investigation lifecycle management, evidence-driven task chaining, report generation
- TRIAGE: Initial alert assessment, severity routing, first-pass IOC extraction, datasource discovery
- THREAT_HUNTER: Deep investigation with MITRE-mapped detection templates, evidence validation, attack chain reconstruction
- LATERAL_ANALYST: Multi-host compromise tracking, lateral movement graph construction, scope expansion
- ESCALATION_TRIAGE: High/critical severity review, escalation decisions, cross-investigation correlation
Quick Start
Prerequisites:
- Rust (stable toolchain)
- Task (recommended)
- 1Password CLI
for credential management (optional -
.env file also supported)
- Redis (for orchestrator/worker communication)
Build:
# Clone and build
git clone https://github.com/dreadnode/ares.git && cd ares
task rust:build # debug build
task rust:release # release build (recommended)
# Verify
./target/release/ares --help
Configure:
# Option 1: .env file
cp .env.example .env
# Edit .env with your API keys (ANTHROPIC_API_KEY, GRAFANA_SERVICE_ACCOUNT_TOKEN, etc.)
# Option 2: 1Password (auto-loaded by CLI)
# Configure items in 1Password, CLI loads them at startup
# Verify configuration
task ares:config:check
EC2 workflow (kali-ares)
The default deployment for ops is EC2 (kali-ares in the lab account,
us-west-1). Observability lives in a separate EKS cluster; the box reaches
it directly, the laptop reaches it via kubectl port-forward.
One-time setup:
# 1. AWS SSO — lab (kali-ares + secret) + the observability account
aws sso login --profile lab
aws sso login --profile infrastructure
# 2. Register the observability EKS context (for obs:forward). The alias must
# match OBS_CONTEXT (default `obs`; override it in .env).
aws eks update-kubeconfig --profile infrastructure --region <obs-region> \
--name <obs-cluster> --alias obs
# 3. Apple Silicon: enable Docker Desktop → Settings → General →
# "Use Rosetta for x86_64/amd64 emulation" (task ec2:deploy cross-compiles
# amd64 under Rosetta; QEMU segfaults rustc)
# 4. Populate .env from AWS Secrets Manager
./scripts/env-from-secrets.sh
Common gotchas:
- Tailscale MagicDNS (100.100.100.100) will eat EKS API endpoint lookups if
the node isn't approved by the tailnet admin. Sign in to Tailscale or add
a
/etc/hosts override for the EKS API endpoint.
task ec2:deploy must use an S3 bucket in the same account as
kali-ares (currently the lab account). Pass S3_BUCKET=<your-bucket>
when deploying, or set it in .env.
Run an op:
task run # fire-and-forget (blue enabled by default)
task run WAIT=true # wait for op completion, auto-fetch red report
task run WAIT=true CAPTURE=true # wait + capture Loki snapshot to S3 (waits
# for Loki flush, ~5 min after op end);
# prints the exact benchmark:replay command
Run an op with the code you just wrote:
task run launches against whatever binary is already on the box. When you are
testing a change, use ec2:e2e instead — it builds and deploys, proves the
deployed binary came from this build (and, with GATE_STRING, that it contains
your edit), restarts the workers, clears stale ops, launches, waits for both
teams to finish, and fetches the red and blue reports.
task ec2:e2e # blind start against dreadgoad
task ec2:e2e GATE_STRING='a log line you added' # also assert your edit shipped
task ec2:e2e CRED_USER=alice CRED_PASS='...' # assumed-breach start
task ec2:e2e SKIP_DEPLOY=true # reuse the on-box binary
It refuses to build from a checkout behind its upstream (ALLOW_STALE=true to
override) and refuses to target a host whose Name tag contains prod
(ALLOW_PROD=true). Full knob list: .taskfiles/ec2/scripts/e2e-op.sh.
Evaluate blue via replay:
# Provisions a fresh replay stack, imports the captured Loki timeline,
# runs a blue investigation against it, scores, tears down. Deterministic —
# rerun anytime without re-running red.
task benchmark:replay OP_ID=op-YYYYMMDD-HHMMSS
Reports land in ./reports/blue/investigations/inv-*.md with IOC-detection
score, MITRE technique coverage, and grade.
Blue tooling on the laptop (optional):
# Port-forward Loki+Grafana to localhost so ares blue commands
# work from the laptop.
task obs:forward # keep running in a separate terminal
task obs:status # health check the tunnels
CLI Reference
The ares binary is the unified interface for all operations. It supports
transparent remote execution via transport flags.
Transport Flags
# K8s: execute on orchestrator pod via kubectl
ares --k8s ares-red ops loot --latest
ares --k8s ares-blue blue status --latest
# EC2: execute on instance via AWS SSM
ares --ec2 kali-ares ops loot --latest
# Override defaults
ares --k8s ares-red --k8s-deploy ares-orchestrator ops list
ares --ec2 kali-ares --ec2-profile prod --ec2-region us-east-1 ops list
| Flag |
Default |
Description |
--k8s <NAMESPACE> |
|
K8s namespace (triggers kubectl exec) |
--k8s-deploy <NAME> |
auto-detect |
K8s deployment name |
--ec2 <NAME_TAG> |
|
EC2 Name tag (triggers SSM execution) |
--ec2-profile <PROFILE> |
lab |
AWS CLI profile |
--ec2-region <REGION> |
us-west-1 |
AWS region |
--env-file <PATH> |
auto .env |
Load env vars from file |
--secrets-from <SOURCE> |
|
Load secrets from provider (e.g., 1password) |
Commands
ops - Red team operation management:
| Subcommand |
Description |
submit |
Submit a new red team operation |
list |
List all operations |
status [--latest] |
Operation status |
loot [--latest] [--watch N] [--diff] |
Credentials, hashes, hosts |
tasks [--latest] [--status STATUS] [--role ROLE] |
Task listing |
runtime [--latest] |
Operation runtime |
report [--latest] [--regenerate] |
Generate report |
inject-credential |
Inject credential into state |
inject-hash |
Inject hash into state |
inject-host |
Inject host into state |
inject-vulnerability |
Inject vulnerability into state |
inject-domain-sid |
Inject domain SID |
stop [--latest] |
Graceful shutdown |
kill [--all] |
Stop + delete operations |
delete <ID> --force |
Delete operation data |
cleanup [--max-age-hours N] |
Clean old checkpoints |
export-detection [--latest] |
Detection playbook export |
correlate |
Red-blue correlation analysis |
evaluate |
Evaluate blue team detection |
blue - Blue team investigation management:
| Subcommand |
Description |
submit <ALERT_JSON> |
Submit investigation from alert |
from-operation [--latest] |
Submit from red team operation alerts |
watch [--poll-interval N] |
Continuous poll mode |
list |
List investigations |
status [--latest] |
Investigation status |
evidence [--latest] |
Collected evidence |
techniques [--latest] |
MITRE ATT&CK techniques |
triage-status [--latest] |
Triage decision audit trail |
operation-status [--latest] [--watch N] |
Aggregate status |
report [--latest] [--regenerate] |
Generate report |
cleanup [--all] [--max-age-hours N] |
Clean investigations |
history - Historical queries (PostgreSQL):
| Subcommand |
Description |
list [--domain D] [--since-days N] |
List past operations |
get <ID> |
Detailed operation info |
search-creds [--domain D] [--admin] |
Search credentials |
search-hashes [--cracked] |
Search hashes |
mitre-coverage [--since-days N] |
Technique coverage |
cost [--since-days N] |
Token usage and cost |
config - Configuration management:
| Subcommand |
Description |
show [--models] |
Show resolved config |
validate |
Validate config file |
set-model <ROLE> <MODEL> [--all] |
Set LLM model |
Red Team Operations
Start an Operation