- mcp_client: Streamable-HTTP MCP client (initialize/tools.list/tools.call,
JSON or SSE, mcp-session-id) + a transport-agnostic McpTransport enum
- c2_reuse: sync via stdio OR http; auto-task a reused session with the C2's
exec tool (per-C2 preferred tool, schema-aware arg mapping via inputSchema),
gated by the operator checkpoint and recorded in activity
- c2x: sync --http/--header, task (execute through the best existing session);
works for Sliver/Havoc/Mythic/Adaptix and any custom stdio/HTTP MCP server
- verified end-to-end with mock stdio and mock HTTP MCP servers
- select_route: longest-prefix subnet match, alive-only, SOCKS preferred at equal prefix
- find_pivot_for picks the most specific pivot subnet (/24 over /16)
- ensure_tunnel reuses the best alive route (port-proxy requires an exact forward)
- health_check_all probes each tunnel's local SOCKS/forward port and marks dead
tunnels so the next chain round rebuilds instead of failing through a stale proxy
- route_for(target_ip, port) returns the per-host proxy/env; pipeline sweeps
tunnel health at the start of each chain round
- classify DCSync/ADCS abuse/delegation abuse/credential dumping/persistence/
lateral exec/phishing launch/destructive commands
- enforcement off|record|enforce (default off); enforce blocks unless the action
id is allow-listed (NEUROSPLOIT_CHECKPOINT_ALLOW / ALLOW_HIGH)
- gate in the agentic tool loop: blocked actions return an observation and are
recorded in activity/audit; --checkpoints flag + checkpoint classify CLI
- no behavior change when off
- ad_evidence: classify netexec/impacket/certipy output into typed receipts
(tgt, tgs, asrep, ldapbind, smbadmin, dcsync, adcs, delegation, cred) ->
facts ad:<kind>:<principal>@<host>; conservative by tool family + marker
- ad_recipe: dependency-gated AD chain (smb-auth -> roast/enum -> abuse* ->
dcsync* -> trust*), each step unlocks only when its prerequisite facts exist;
high_impact flag for the operator-checkpoint layer
- reactive worker (worker-tools path) classifies each tool run and feeds AD
facts into the exploration graph
- CLI: neurosploit adchain {classify,plan}
- activity store: append-only per-step log under <run>/activity with cross-worker
search/list/get and a prompt block (Artex-style process-level exchange)
- wire reactive workers to record tool steps and model observations by intent
- --worker-tools: bounded agentic tool loop per reactive worker (opt-in, off by
default) with a shared ToolBudget (calls/rounds/concurrency), priority-weighted
rounds, and cross-worker dedupe that reuses identical command output
- CLI + web /api/runs/:id/{activity,todolist} and a new
Workers tab (planner todolist + worker tape)
- no behavior change when the flag is off
Credential testing (credtest.rs) now covers tokens/API keys from a sourcemap
or .env leak (new "bearer" service, probed against common API paths) and
password logins to a web form (new "http-form" service, differential
Set-Cookie/error-text check) alongside the existing ssh/smb/winrm/http-basic
probes — a secret found by a whitebox/blackbox agent that previously had no
matching service now actually gets tried.
New privesc.rs: after credtest verifies an ssh/winrm foothold, runs the
standard enumeration (sudo -l, SUID/capabilities/cron on Linux; whoami /priv
and group membership on Windows) over that SAME session. NOPASSWD sudo and
local-admin-group membership are auto-confirmed and reported as verified
root/administrator access; SUID GTFOBins hits and SeImpersonate/
SeAssignPrimaryToken become cited hypotheses for the next round, not a
command the model has to invent from raw text. Wired into attack_chain right
after the existing credtest block.
New svc_probe.rs: run_host now runs nmap -sV deterministically against every
infra/network/AD/host target (not left to the model remembering to ask for
it), parses open ports/services/versions, runs a fixed read-only enrichment
probe per service (SNMP/LDAP/SMB/SQL/Redis/Mongo/NFS/RPC/VNC/FTP/Elastic/
Docker-API/WinRM/Kerberos), and looks each service+version up in the local
searchsploit mirror for candidate CVEs/exploits — "found a port, validated
the version, checked for a known exploit" now happens every run.
Web console: the "Host/Infra" tile is joined by separate Network and Active
Directory tiles (so an operator without a domain stops getting AD-only
agents), a new Mobile/Binary tile with a file-upload field wired to the
existing /api/upload endpoint and the CLI's --platform flag, and buildArgs
now forwards --platform for mobile runs. This finishes the mode/upload work
server.js already had in progress from the previous PR.
760 tests passing; release build clean.
Model integration:
- neurosploit key add/list/remove/detect: identify a provider from its key,
list real callable models, save it — CLI, REPL and web console share one
detector/keystore.
- custom_providers.rs: register any OpenAI-compatible endpoint under its own
name (mycorp:<model>) with no source change or rebuild; several can coexist.
- Added deepseek-v4-1-flash-1017, Venice AI, vLLM and LM Studio providers.
- Fixed --sandbox/--stealth/--neo4j/--engagement being silently dropped by
mobile/container/host/network/ad/cloud/greybox/tui/aitest (only `run` wired
them before).
Recon depth:
- codeindex.rs: whole-repo indexing for whitebox review (functions, routes,
call graph, sources/sinks/sanitizers) with cross-file attack-flow tracing,
replacing the old first-200-files slice. Multi-pass per-agent context within
a budget, plus a variant/circumvention-review doctrine for every SAST agent.
- kernel_recon.rs: deterministic Linux kernel facts over an authorized SSH
session (version, modules, SUID surface, sysctls) for the LLM to reason from.
- winbin_harvest.rs: pulls third-party Windows driver/service binaries off an
authorized host over SMB and runs them through the same deep binary pass.
- re_tools.rs: embedded read-only radare2/Ghidra/IDA/Frida helper scripts and
headless drivers, shared by the mobile/binary and Windows-harvest pipelines.
- 38 new mobile/iOS/Android/native-binary research agents (agents_md/mobile/
was empty before — `neurosploit mobile` ran zero agents).
- artifact.rs: resolve a local path or URL, classify by magic bytes, hash.
- profile.rs: network vs AD vs cloud:<provider> vs web agent-set restriction;
`run` now defaults to web-only agents (--all-agents lifts it).
Agentic capability / opsec:
- agentic_tools.rs: a real iterative tool-calling loop (call a tool, read its
actual output, decide the next one) replacing the one-shot batch picker;
wired into the existing recon tool round.
- noise_governor.rs: the per-host rate/jitter governor existed but was never
called anywhere — wired it into the new tool-calling loop under --stealth.
- credtest.rs: credentials surfaced by the attack-chain loop are now actually
tested (SSH/SMB/WinRM/HTTP-basic) between rounds instead of left for the
model to maybe act on; a verified one becomes a confirmed-foothold fact for
the next round.
- teamboard.rs: exploit agents in the same wave see each other's leads
(credentials, endpoints) as they land, with IDs so a finding can cite the
lead it was chained from (chains_from is now actually parsed and recorded).
- poc_gate.rs: lints PoC scripts for known false-positive patterns (success
printed in an error handler, unconditional success, self-injection, a script
that reimplements the bug instead of exercising the target) and lowers
confidence instead of trusting the script blindly.
- taint.rs: detects and strips "poison the AI agent" decoy comments (the
SpikeStrip pattern — a random hex key followed by a fabricated CVE/route)
regardless of payload wording, by their structural fingerprint.
- recon_compact.rs: semantic compaction of recon JSON (halves the largest
array, keeps every key) instead of a hard character truncation that silently
dropped the tail of the reply.
751 tests passing; release build clean.
setup.sh runs with set -e and pkg_install swallowed the package manager's
output, so a failed apt-get install nodejs killed the installer right after
"node missing — installing…" with no message. pkg_install is now best-effort
and prints the tail of the package manager's error on failure.
- API: per-finding re-validate now POSTs /retest (was a 404 /poc/:fid);
snapshot lifecycle uses phase/interrupted; run timestamps use ts.
- Wiring: recreate Neo4j graph button, drop dead listeners, re-run
restores mode via selectMode, modals close on Esc/outside click.
- Security: JS-string-safe inline handlers (jsq), escape WAF/chains/todo
fields that were injected raw.
- Robustness: boot survives a failing endpoint, SSE frames parsed
defensively, guarded currentJob, loadDetail/dashboard/stop errors.
- Terminal: swallow unknown CSI sequences, fix clear/complete cursor.
- Projects: collapse duplicate runs, targets on their own line.
- Runs: expose launch mode (whitebox no longer shown as blackbox).
- Attack graph: merge run findings missing from graph.json, warn to
recompute; normalized confidence and review-status across views.
- Report nav: replace dead report anchors with real HTML/PDF/MD links
plus in-app Findings/Attack graph shortcuts.
report.rs already calls crate::threat_actors::{markdown,match_actors}
but the module was never declared in lib.rs and the file was missing,
so main failed with E0433 (cannot find threat_actors in crate root).
Adds the threat-actor TTP-overlap module and registers it.
Closes#76
- CHAIN_SYS + ad_mssql_abuse + windows_winrm_access now encode the techniques
that get an engagement from a DMZ foothold to forest-root Domain Admin without
hand-holding:
- pivot FROM a domain-joined Windows host (it routes to forest subnets the
operator box cannot reach); one clean SOCKS hop, never stacked forwards.
- empty exec output = host AV deleting the dropped file -> use evil-winrm
interactive (streams over WinRM) or an AV-excluded path (C:\Tools), don't
conclude failure.
- application credential stores: dump DB credential tables (sa/db-read) — one
forest's app DB often holds the next forest's admin + the forest-root DA.
- prefer a direct credential login to a DC over fighting a tunnel/AV for
DCSync; secretsdump once a DA is held.
- Driven by observed CADP engagement walls (AV output suppression + forest
routing only via the pivot); generalizes to any segmented multi-forest AD.
- graph_memory: vote-rejected findings that carry a receipt (looted
credential/key/secret, evidence, payload) enter the graph as needs-review
instead of being dropped, so a useful key keeps its value and can seed
chain expansion.
- validator: --no-validate skips the vote (keep all with agent severity);
findings carrying a looted credential/secret/key are never rejected and
never auto-capped to Low — the leaked-key class stops being under-credited.
- stealth: --stealth injects an OPSEC directive into every agent (slow pacing,
live-off-the-land over noisy uploads, lockout-safe creds, clean tunnels,
cleanup) and lowers recon intensity, without dropping coverage.
- planner-model: --planner-model routes a second model into the pool so it
proposes alternative approaches and joins cross-model voting.
- RunConfig gains stealth/no_validate/planner_model; wired for host and run.