- 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.
- Attack-graph finding panel now falls back to the finding's real fields
(payload, evidence, impact, remediation, endpoint) when the derived
where/what/fix texts are empty — host/AD findings were selecting but
showing no detail. Adds PAYLOAD/COMMAND and EVIDENCE (what was done)
blocks so each step shows the exact command and observed proof.
- tryResumeActiveJob only re-attaches a job that is still running; a
finished/stopped/interrupted job no longer hijacks every page reload
onto its stale live screen.
Engine:
- host mode now applies --session-in-scope/-environment/-policy via
apply_authorization; previously parsed but ignored, so the scope guard
admitted only the single target and every pivot host (other subnets /
forests) was treated as out-of-scope.
- AUTHORIZATION_PREAMBLE rewritten: drop the judgment-suppressing lines
("not yours to re-litigate", "do not stop claiming authorization is
unverifiable") that read as coercion and triggered recon refusals;
state the engagement facts and keep the agent's own judgment.
- VOTE_SYS / REFUTE_SYS made modality-aware: command+nonce output (SSH,
WinRM, SMB, MSSQL, DCSync, nxc Pwn3d!) counts as concrete proof, not
only HTTP request/response. Privesc-to-root/SYSTEM/DA, RCE, credential
dumping and auth bypass are High/Critical when the evidence proves them.
Web validation unchanged (still requires concrete proof).
Web console:
- run history: a CLI-launched run (not owned by a console job) stays
"running" while its run dir shows a recent audit.jsonl heartbeat,
instead of being falsely shown as interrupted.
- attack graph: barycenter ordering so connected nodes align across
columns and edges read as clean left-to-right chains, not a crossing grid.
- chains tab: clamp overflowing move/ref/title text so long chain strings
and native tooltips no longer spill off-screen.
Model attack paths by capability exchange instead of CWE identity: each
finding declares the artifacts it *provides* and the artifacts it
*requires*, and steps link when one produces what the next consumes.
New crates/harness/src/attack_path.rs:
- 36 artifact types (password hash, Kerberos ticket, machine account /
keytab, bearer + cloud token, API key, cert/key, shell, local admin,
implant, domain user/admin, cloud role, tenant admin, DB sysadmin,
internal reach, source code, sensitive data, agent control, ...).
- Reach rules decide what may cross an asset boundary: HostLocal stays
on the host, Realm travels inside a domain/tenant (with fuzzy realm
matching for CORP\user vs corp.local vs ad:corp), Portable travels
anywhere. This is what lets a token lifted from process memory reach
a cloud control plane while still refusing bogus host-to-host jumps.
- 17 domain planes classified from agent name, CWE, MITRE id, endpoint
and evidence text: web, api, network, host, Active Directory, cloud,
identity, container, mobile, binary, firmware, AI/LLM, supply chain,
wireless, social, physical, OT.
- Timeline-aware DAG (observed_at stamped at validation; a later step
can never enable an earlier one), typed nodes mirroring the kill
chain view (exploited weakness, discovered/compromised credential,
accessed resource, loaded implant, established session, impact) and
14 impact terminals up to domain and full tenant compromise.
- Path enumeration with budget, prefix and weakness-sequence dedupe,
Jaccard diversity filter and impact/severity/pivot scoring.
- Renderers: Mermaid, ASCII, JSON, Markdown.
Integration:
- pipeline: stamps observed_at, persists loot.json (previously the
chaining rounds' loot only ever existed inside a prompt), folds loot
into the graph and logs the best path.
- chain::repair: no longer discards legitimate cross-host links; it
consults portable_link instead of requiring a host match.
- report: "Attack paths" section in Markdown, HTML and Typst/PDF, plus
attack-paths.json and attack-paths.mmd run artifacts (redacted).
- CLI: neurosploit paths <run> [--top N] [--mermaid] [--json] [--save].
15 unit tests cover web, API, mobile, binary, AD, cloud, identity, OT
and AI chains, the host-local isolation guard, and the renderers.