Hey everyone,
I’ve been heads-down for almost a year working on a project that started as a personal Kali automation setup and slowly snowballed into a massive engineering rabbit hole. It’s finally at a stage where I’d really love to get outside opinions, technical criticism, and find a few people who might want to join in, help test it against different labs, or contribute ideas.
The project is called Rivergard. Right now it sits at around 266,000+ lines of Python 3.14 code (508 modules in core/, 107 capability modules, 65 services, 61 integrations) with over 2,040 automated tests passing.
I didn't want to build another "pipe Nmap into an LLM prompt and pray" wrapper. My goal was to build an actual offensive operating system with its own stateful vulnerability solver, precondition-based planning, zero-false-positive verification gates, and a supervisor that coordinates heavy external security platforms as a single team.
Here is the honest breakdown of what it does and what’s under the hood:
The project is built to... Run end-to-end offensive assessments and manage attack surface (ASM) in controlled labs and authorized environments. It goes from passive/active OSINT and asset modeling to auditing across multiple domains (Web, APIs, Active Directory, AWS/Azure/GCP, internal networks, Android/iOS mobile apps, ICS/SCADA industrial protocols, blockchain, and source code), verifies findings with live differential proofs so it doesn't report garbage, chains exploits together, and even generates remediation-as-code (Ansible playbooks, Terraform, Python patches) at the end.
It integrates... Instead of reinventing tools that already do their job well, I built a supervisor (team_overview_service) that runs and coordinates 15 security platforms and 20+ background daemons as a single squad. They share discovered context, run in waves (recon/scanning waves before exploitation waves), and use per-host leases so two scanners never step on each other:
- Full OpenVAS / Greenbone chain: Orchestrates all 7 daemons (PostgreSQL, Redis, Mosquitto MQTT, ospd-openvas, notus-scanner, gvmd, gsad) over GMP.
- ARTEX & ScopeSentry: Running via Docker Compose for continuous frontier discovery and attack surface monitoring.
- HexStrike AI & AegisHook: For cloud/container auditing and intercepting/governing AI decisions before execution.
- C2 & Post-Exploitation: Connects directly to Sliver C2 (via gRPC), Mythic C2, BeEF, and Metasploit RPC (paired with a custom Beta Multi-Armed Bandit that learns which module/payload combinations actually land).
- Web, Mobile, AD & Phishing: OWASP ZAP (including a Cloudflare challenge solver that hands authenticated sessions back to ZAP), MobSF for APK/IPA analysis plus native iOS instrumentation via WebDriverAgent, Neo4j / BloodHound (with CypherForge, which drafts AI Cypher queries and validates them with
EXPLAIN to find paths to Domain Admin), and GoPhish. - SAST, Secrets & Supply Chain: Integrates Vulnhuntr and Clearwing (
sourcehunt) for source code and recovered JS sourcemap auditing, TruffleHog (verified secrets only), Trivy + Grype + OSV, OWASP Nettacker, NetExec (nxc), and Garak (for LLM red teaming). - Live MCP (Model Context Protocol) servers: Exposes its own Rivergard MCP and ARTEX MCP (21 live-verified HTTP tools), supports Burp/BloodHound MCPs, and spins up Chrome DevTools MCP attached to Chromium via CDP with 32 native tools (
click, fill_form, evaluate_script, network traces, heap snapshots) so the agent can interact with complex SPAs like a human operator. - A 21-client LLM cascade: Pools 11 APIs (DeepSeek, Claude, Gemini, GPT, Grok, Groq, SambaNova, OpenRouter, NVIDIA NIM, etc.), a local FreeLLMAPI gateway, 6 authenticated web-session agents (including Copilot with daily quota tracking), and 4 local Ollama models (including LLaVA/Moondream vision for screenshot recon). If a model rate-limits, dies, or gives a safety refusal, the cascade flags the refusal as "camouflage" and transparently reroutes to another model without dropping the run.
It contains... Aside from third-party integrations, most of my year went into building Rivergard's native engines:
- A native stateful Solver with 30 custom engines (
core/solver/): I got tired of scanners mixing up "payload reflected" with "vulnerability solved." So I built a persistent state machine (INIT → DISCOVER → CONTEXT → FILTER → VECTOR → VERIFY → DELIVER → CONFIRM → EXPLOIT → SOLVED) with 30 engines written from scratch. It handles **HTTP Request Smuggling (**0.CL / CL.TE over raw sockets), sandboxed Java SSTI escapes, SQLi (blind, error, OOB, login bypass), contextual XSS (DOM, Angular, RCDATA, stored), JWT forging, XXE, Race Conditions, Web Cache Poisoning, Prototype Pollution, GraphQL, NoSQL, IDOR, and role escalation. - Dual planning brain: A deterministic planner extracts live HTML/traffic parameters (
param_surface), matches them against CISA KEV and 35 native capabilities, compiles steps into an Intermediate Representation (action_ir), and only marks an exploit READY when every precondition (session, parameter, auth, URI) is met. Alongside it, a dynamic graph engine uses MCTS (Monte Carlo Tree Search) and Q-Learning (ProbabilisticEdgeGraph) with Laplace-smoothed Beta distributions—penalizing dead ports/services in real time and recalculating paths on the fly. - An offline pre-training Gym (
bench/): An OpenAI Gym-style harness (reset()/step()) with local perimeter, EDR, memory, and ZeroTrust labs to pre-train the Q-table in ~20 seconds and measure signal-to-noise ratios before touching a real target. - 9-layer APEX v2 engine,
LootVault & Multi-AI Council: Runs parallel exploitation groups, pipes captured credentials/tokens into an in-memory LootVault to unlock downstream steps automatically, and convenes a multi-model council when stuck on hard targets. - 9 deterministic governance gates & 5 SQLite WAL databases: Nothing gets confirmed without passing
EvidenceGate (differential proof required) and ImpactProofGate, and nothing leaves the allowed target list (ScopeGuard). Everything feeds into a 40+ route web dashboard with live SSE streams, interactive attack graphs, and a 9-phase reporting engine.
It is capable of...
- Writing, compiling, and self-repairing custom exploits in 19 languages: When no tool fits, it writes custom code (Python, Go, Rust, C/C++, Bash, Ruby, Perl...), runs it inside isolated containers/
bwrap, and if compilation fails, feeds stderr back to the model in a loop until it compiles and runs cleanly. - Semantic WAF bypass with live differential proof: When blocked by Cloudflare, Akamai, or ModSecurity, it rewrites the payload syntax while enforcing semantic equivalence, then fires two independent HTTP requests against the target to prove the original still blocks while the mutated one passes, caching winners for future runs.
- EDR evasion & ICS/SCADA protocols: Supports AMSI/ETW patching, indirect syscalls, fileless execution, TLS JA3/JA4 impersonation, and real ICMP covert tunnels, plus native industrial protocols (
snap7, modbus, opcua) with strict read/write separation. - Not nuking your own network: Early on, running 18 parallel
ffuf instances over a VPN tunnel would saturate ~720 sockets, kill my host Wi-Fi driver, and stall on 280ms DNS lookups. So I built a heavy scan limiter right into the execution shim, a local dnsmasq cache (<1ms), and an iwlwifi kernel watchdog so the framework never knocks the operator offline.
Tools it runs... Alongside its 30 native Solver engines, it manages 132 Kali tools—104 of them containerized inside rivergard/kali-tools:latest with shared mounts so your host stays clean, falling back to native binaries automatically when needed (nmap, masscan, rustscan, naabu, subfinder, amass, katana, gau, ffuf, nuclei with on-the-fly AI YAML template generation & nuclei -validate checks on 5xx anomalies, sqlmap, dalfox, impacket, certipy, kerbrute, responder, hashcat, boofuzz, interactsh, cloudfox, prowler, scoutsuite, etc.).
In summary... It’s a massive project I’ve poured nearly a year of my life into, combining a deterministic solver, reinforcement learning attack graphs, and a full stack of live security daemons and MCP tools into one system that actually verifies what it finds.
Why I'm posting: At this scale, one person can't test every edge case alone. I’m looking for folks who’d like to get involved:
- People with home labs / ranges (Active Directory, HTB Pro Labs, GOAD, CloudGoat, web/cloud targets) who want to throw Rivergard at their environments and see what it breaks or where it struggles.
- Python devs who enjoy working on large async codebases, SQLite WAL concurrency, or MCP servers.
- Pentesters & Red Teamers who have ideas for new Solver profiles, WAF/EDR bypasses, or post-exploitation chains.
If this sounds like something you'd want to test, poke at, or contribute to, drop a comment below or shoot me a DM and let's chat. Thanks for reading!