๐ง NeuroSploit v4.4.3
Autonomous, multi-model penetration-testing harness โ Rust, CLI-first.
by Joas A Santos & Red Team Leaders
---
## What is NeuroSploit?
**NeuroSploit is an autonomous penetration-testing tool.** You point it at a
target; it does the security assessment on its own and hands you a report โ
recon, exploitation, chaining findings into real impact, and validation, with no
human driving each step.
The key idea: **the harness is the pentester, not the model.** Instead of asking
one LLM to "hack this", a Rust engine runs the methodology โ it picks the right
specialist agents for what it finds, runs them in parallel, re-sends every claim
over the wire to confirm it's real, and has a second model check each finding
before it's reported. The LLMs are the hands; the harness is the discipline that
keeps them honest. That's why it finds more and invents less than running a model
directly.
It's **CLI-first** (with a web console and a TUI), **open source (MIT)**, and runs
on **your own API keys or a local subscription** โ nothing about your targets
leaves your machine unless you send it.
---
Give NeuroSploit a **URL, a source repo, a running app, or a host/IP**. A Rust
harness (`tokio`) drives a **pool of LLMs** โ via **API key** or local
**subscription** (Claude Code / Codex / Gemini / Grok) โ and runs the whole
engagement for you:
```
recon โโถ pick only the agents that fit the surface โโถ exploit in parallel
โโถ wire-check every claim โโถ cross-model vote โโถ chain into deeper impact โโถ report
```
It won't invent findings: **every claim needs a receipt** (raw tool output or a
`file:line`), is **re-sent by the harness itself** to confirm it reproduces, and
is adjudicated by a **second model** before it reaches the report.
> โญ Useful? **Star the repo.**
> ๐ Website & live docs: **[neurosploitai.github.io](https://neurosploitai.github.io/)** ยท **[Tutorial & Guide](https://neurosploitai.github.io/docs.html)**
> ๐ Deep dive: **[TUTORIAL.md](TUTORIAL.md)** ยท changelog: **[RELEASE.md](RELEASE.md)** ยท honest comparison: **[BENCHMARK.md](BENCHMARK.md)**
## Install
**Linux / macOS** (x64 & arm64):
```bash
curl -fsSL https://raw.githubusercontent.com/JoasASantos/NeuroSploit/main/setup.sh | bash
```
**Windows** (PowerShell):
```powershell
irm https://raw.githubusercontent.com/JoasASantos/NeuroSploit/main/install.ps1 | iex
```
The installer sets up Rust if missing, builds the release binary, and links
`neurosploit` onto your PATH. Build by hand instead:
```bash
git clone https://github.com/JoasASantos/NeuroSploit && cd NeuroSploit/neurosploit-rs
cargo build --release # โ target/release/neurosploit
```
## Quick start
```bash
# just run it โ the interactive session asks everything, in plain language:
neurosploit
# black-box, subscription login (no API key):
neurosploit run http://testphp.vulnweb.com/ --subscription --model anthropic:claude-opus-4-8 -v
# white-box โ review a source repo (file:line evidence):
neurosploit whitebox /path/to/repo --subscription --model anthropic:claude-opus-4-8 -v
# web console โ a browser UI over the same CLI:
cd web && npm start # โ http://localhost:4173
```
No subscription? Use an **API key** for any provider instead โ see [TUTORIAL.md](TUTORIAL.md#authentication).
## Modes
| Mode | Command | What it does |
|------|---------|-------------|
| **Black-box** | `neurosploit run ` | recon โ select โ exploit โ vote โ report |
| **White-box** | `neurosploit whitebox ` | source / SAST review (file:line evidence) |
| **Grey-box** | `neurosploit greybox --url ` | code review **+** live exploitation together |
| **Host / Infra** | `neurosploit host --creds creds.yaml` | Linux / Windows / AD + cloud (AWS/GCP/Azure) |
| **AI / LLM** | `neurosploit aitest ` | jailbreaks, prompt injection, OWASP LLM Top 10 / MCP |
| **Mobile / Binary** | `neurosploit mobile ` | RE a local artifact (Ghidra / MobSF / Frida) |
| **Container** | `neurosploit container ` | OCI image scan + SBOM (trivy/grype/syft) |
| **Mission Control** | `neurosploit tui ` | live TUI panels + a composer you type in mid-run |
## Add-ons: Toolbox, MCP tool servers, C2 & WebShells
- **Toolbox (225 tools, opt-in).** Run the right pentest tool instead of only
curl/scripts: nmap, rustscan, httpx, nuclei, ffuf, netexec, impacket,
bloodhound, trivy, apktool, ghidra and more. `neurosploit tools list` /
`run nmap --target 10.0.0.5`; `--tools` gives agents the doctrine and
`--agent-tools` lets API models request cataloged tools in a bounded loop.
- **MCP tool servers.** Curated nmap / Kali / Playwright / Burp / REA templates:
`neurosploit tools mcp add nmap`, then run with `--mcp`.
- **C2 & WebShell management (authorized internal engagements only).** Disabled
by default; enabling requires an authorization reference. Listeners, sessions,
tasks, payloads, persistence/lateral opt-ins, WebShell exec/file ops, and an
append-only audit trail under `.neurosploit/c2/`.
See [`docs/TOOLBOX.md`](docs/TOOLBOX.md) for guardrails and the full surface.
## What makes it different
- **The harness is the pentester.** Agent selection is recon-driven; findings
**chain** (reduce a foothold to a primitive โ exec / read / write / SSRF /
identity / secret โ then pivot), each stage proven and non-destructive.
- **Wire-bound evidence** โ every reported exchange is re-sent through a
scope-guarded replay engine and checked against recorded traffic. A claim the
wire contradicts can't stand as confirmed.
- **Attack knowledge graph (Neo4j optional)** โ the run is a typed graph of
hosts, services, findings, credentials and impact, spanning **web and internal
network**. It directs the next move during the run and is written to `graph/`
even without a database.
- **Deterministic validation** โ per-CWE validators judge the measured
request/response bytes, not the model's prose. Grounding gate, POMDP belief and
an anti-hallucination check demote anything the evidence doesn't support.
- **Secrets never leak the report** โ credentials the agents observe become
`$SECRET_n` in every human-facing report; raw values stay in the run's vault for
re-testing only.
- **Execution resilience** โ classified error handling (7 error types), exponential
backoff (5 retries, 2sโ90s), crash-state salvage (partial findings survive agent
failure), agent lifecycle nudge (3 retries with simplified prompts), progressive
budget warnings (70/85/95%), and run snapshot/resume so interrupted engagements
pick up where they left off.
- **LLM-powered dedup** โ deterministic fast-path for exact matches, plus a
semantic LLM judge for findings with different wording but the same root cause.
- **486 markdown agents** across web, code (SAST), AI, infra/AD/cloud, chains and
recon โ each a self-contained playbook you can read, edit or add to.
- **Run via API key or subscription**, 19 providers, including local & CPU-only
(`ollama:` / `llamacpp:`) with no data leaving the host.
## Web console
```bash
cd web && npm start # โ http://localhost:4173
```
A browser UI that drives the **same CLI** โ no second engine. Launch and watch a
run live, then per finding:
- **Attack graph** โ host โ service โ finding โ credential โ impact, every edge
marked confirmed / needs-validation / hypothesis, ordered by kill-chain stage.
- **Wire evidence** โ the real request/response pairs behind a finding (baseline
vs. attack, the identity pair, matrix probes, the oracle), each tagged with its
wire provenance โ the proof as bytes, not prose.
- **Re-test one finding** โ re-run its proof through the replay engine; the dated
history shows a finding drift to "gone" over time.
- **Transcript viewer** โ any agent's run, split into navigable blocks; search
spans every agent.
- Chains, dependency todolist, recorded traffic, deliverables, PDF export.
## What a run leaves behind
Every run is a self-contained folder, `runs/ns--/`:
| File | Contents |
|------|----------|
| `report.html` ยท `report.pdf` ยท `report.md` | the report (PDF via Typst), secrets redacted |
| `findings.json` / `findings.md` | validated findings (raw, for tools & re-testing) |
| `report.sarif` | SARIF 2.1.0 for CI code-scanning |
| `graph/` | attack chains, dependency todolist, Cypher + JSON export |
| `attack-paths.json` ยท `attack-paths.mmd` | cross-domain attack paths (graph + Mermaid timeline) |
| `loot.json` | credentials, tokens, hosts and endpoints the chaining rounds carried forward |
| `recon.json` ยท `exploitation.md` ยท `traces/` | surface, transcript, per-agent traces |
| `pocs/` ยท `evidence/` | runnable PoCs and proof screenshots |
## Attack paths
A single weakness is one step. The engagement is the sequence, and the sequence
is what produces the impact: a traversal on a hypervisor yields root, root
yields a machine-account keytab, the keytab authenticates to the directory, a
share holds a database password, the database runs commands, the service
account becomes SYSTEM, SYSTEM reads a domain admin hash out of memory, that
hash reaches a workstation, and the workstation's process memory holds a cloud
token that ends in a tenant administrator.
NeuroSploit derives that sequence after every agent has reported, across every
kind of test it runs โ web, API, mobile, binaries, firmware, hosts, internal
network, Active Directory, cloud, SaaS identity, containers, CI/CD and supply
chain, AI/LLM agents, wireless, OT. Chaining is on what each step **produces**
and the next one **consumes** (a hash, a ticket, a token, a shell, an implant,
a file, reach into a network), and a link is drawn only where that material
could actually travel:
- **host-local** access (a shell, a writable service, a database role) stays on
the host it was obtained on;
- **realm-wide** material (domain identities, Kerberos tickets, cloud roles)
moves inside its directory or tenant, with realm names matched across their
spellings (`CORP\\user`, `corp.local`, `CORP.LOCAL`);
- **portable** material (passwords, hashes, API keys, bearer tokens) moves
anywhere, because that is what an attacker does with it.
```bash
neurosploit paths # ranked paths, on the run's own timeline
neurosploit paths --mermaid # the graph
neurosploit paths --json # nodes + edges for your own tooling
```
The same view is written into `report.md`, `report.html` and the PDF, and each
finding's `chains_from` is filled with the causes that were derived for it.
## Integrations
GitHub / GitLab PR review gate (`neurosploit pr --fail-on critical`),
`@neurosploit` mention bot, one Jira card per finding, MCP server
(`neurosploit mcp`), compliance mapping (PCI-DSS / HIPAA / SOC 2 / GDPR). See
**[TUTORIAL.md](TUTORIAL.md)**.
## Safety
For **authorized** testing only. Agents stay in scope, never run destructive / DoS
actions, and require proof of exploitation. You are responsible for having
permission for every target.
## Credits & license
**Joas A Santos** & **Red Team Leaders** โ MIT.
> This is the slim, **Rust-only** distribution (`neurosploit-rs/` + `agents_md/`).
> The older Python engine and web GUIs live on the `v3.4.0` branch.