- 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.
Claude models were capped at 4096 output tokens, causing agent ReAct chains
to consume the entire budget before writing JSON findings. All findings were
silently lost to truncation.
Changes:
- max_tokens_for() returns 16384 for claude-* models
- max_tokens_for() promoted to pub(crate) for cross-module use
- models.rs warns on stderr when finish_reason=length with partial content
- pipeline.rs exploit loop detects output length near token ceiling and
warns operator about likely truncation when 0 findings extracted
- New test: claude_models_get_extended_output asserts 16k
When the claims validator downgrades a finding for unproven impact,
the severity was capped to Low regardless of the vulnerability class.
This caused real issues like XML-RPC brute force (CWE-307) and SSRF
(CWE-918) to report as Low when they warrant Medium at minimum.
Adds cwe_severity_floor() that sets a minimum severity per CWE class:
- High floor: RCE, SQLi, deserialization, SSTI, code injection
- Medium floor: SSRF, brute force, auth bypass, path traversal,
outdated components, XXE, IDOR, CSRF, XSS, open redirect
DeepSeek API only accepts deepseek-v4-pro and deepseek-flash.
Previous names (deepseek-r2, deepseek-v4.1, deepseek-v4) returned
400 Bad Request, causing all agents to fail silently.
Also wires Settings default model into New Engagement wizard so
the provider/model pre-selects when creating a new run.
- Replace free-text model input with grouped select dropdown (19 providers)
- Add DeepSeek R2/V4/V4.1/V4 Pro models to provider registry
- Persist API keys to disk (~/.neurosploit/keys.json, mode 0600) with load on startup
- Add key verification for 13 cloud providers (keyProbe)
- Fix broken select dropdowns in dark mode (remove appearance:none)
- Wire --agent-tools flag into every web-launched test for 200+ toolbox tools
Add standalone MCP installer package (mcp/) that builds, links and
registers the NeuroSploit MCP server globally for Claude Code, Cursor,
Windsurf and VS Code.
New MCP tools (9): neo4j, sandbox, capability, provenance, reactive,
knowledge, graph_chains, mcp_profiles, config — total 48 tools.
Install: bash mcp/install.sh
C2 framework: local daemon with HTTP listener, session management, task
dispatch, beacon protocol. WebShell support for persistent access through
web endpoints. Full CLI surface (neurosploit c2/webshell), MCP tools, REPL
commands, and web console integration with real-time session monitoring.
Toolbox: 200+ real security tools catalog (nmap, ffuf, sqlmap, nuclei, etc.)
with structured output parsing, MCP tool server integration, and auto-install.
Runner executes tools with timeout, audit trail, and output capture. Catalog
is data-driven via tools/toolbox.json.
MCP: expanded tool surface for C2 sessions, task management, webshell
operations, and toolbox execution. All tools share one implementation with
CLI, REPL, and web console.
Web UI: C2 dashboard with session cards, task panels, webshell terminal.
Toolbox browser with search, run modal, and output viewer. API endpoints
for all operations.
Pipeline: toolbox integration for auto-running tools during engagements
when autonomy level permits.
0 build errors, test suite passes.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Reactive engine (--reactive): event-driven planner/worker loop replaces fixed
phases. Planner wakes on graph changes, workers claim intents from shared queue.
Includes heartbeat lease for worker liveness, intelligent reason trigger (skip
replan when graph unchanged), hint injection for operator-in-the-loop, and
session resume/conclude fallback to salvage partial work on failure.
Graph reasoning: BFS chain discovery from confirmed findings to untested assets,
LLM-driven strategy decisions, graph enrichment after findings. Wired into
planner loop (chain discovery when idle) and worker loop (enrich neighbors).
Knowledge base: agent markdowns as searchable methodology repository. Keyword
overlap scoring with CWE bonus. Dynamically injected into worker prompts per
task for context-aware testing guidance.
MCP profiles: pre-configured tool sets per test type (Web/Playwright,
MobileAndroid/REA, MobileIos/REA, BinaryAnalysis/REA, BurpSuite). Auto-register
via --mcp-profile flag. Tool allowlists and prompt context per profile.
CLI: --reactive, --mcp-profile, --autonomy flags. Web UI: wizard fields for
autonomy/MCP profile/reactive toggle, Reactive Engine info modal with feature
grid, MCP Profile modal with tool cards, Settings page reactive config card.
604 tests pass, 0 errors.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
dual_build adds in-scope recon assets and records findings as intent->finding with
anchors; idempotent, validation updates status in place, out-of-scope hosts and URLs
never enter. graphs/dual-graph.json now exists for the planner prompt, cold digests
and the Neo4j sync.
- inject extracted operator constraints into every recon/exploit prompt
- skip recon commands that violate a constraint (e.g. no port scan)
- fold settled exploration history into digests in the prompt block, persisted
next to the graph; any I/O error falls back to the plain summary
Add five pure, unit-tested harness modules inspired by Artex's operating model:
- cold_digest: fold settled exploration nodes into digests for the planner prompt
- constraints: self-contained operator deny/allow rules with command-level blocking
- intent_queue: single-generator queue (only planner/operator create intents)
- wrapup: settlement phase when turns or time run out
- retest: reproduced/fixed/inconclusive verdicts with an explicit evidence bar
Bump version to 4.4.1 (Cargo, web, installers, README) and add release notes.
OLLAMA_BASE_URL without the /v1 suffix produced requests to
/chat/completions instead of /v1/chat/completions, causing every
Ollama call to 404. Also default to the provider's first listed model
when --model ollama: is passed with an empty model name.
Closes#52
- usage.rs records provider-reported input/output/cached tokens per agent
(HTTP API, claude CLI, codex) and writes usage.json plus a run summary.
Observational only; budget gates are unchanged.
- NEUROSPLOIT_PROMPT_PREFIX=1 moves the block shared by all exploit agents
to the front of the system message so provider prompt caches can hit.
Off by default; the prompt is unchanged when unset.
Temperature was hardcoded to 0.2 in the API chat body. Add a
temperature_for() helper reading NEUROSPLOIT_TEMPERATURE (clamped to
0.0..=2.0, default 0.2) and a global --temperature CLI flag that sets it
before dispatch, so both run and the REPL honour it. HTTP API path only;
subscription-CLI backends expose no temperature knob.
Closes#49
Add Website + Docs badges and a website/live-docs line to the header, pointing
to the new GitHub Pages site and its tutorial page.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Pipeline: keep ALL candidate findings after validation instead of
discarding vote-rejected ones. Rejected findings are marked with
review_status="rejected" so the UI can distinguish them visually.
Previously 11 findings during a run would shrink to 2 after validation
— now all 13 appear with their status clearly indicated.
Web console: implement working search/filter for Pentests list
(#pentestSearch) and Issues page (#issuesSearch, severity dropdown,
status dropdown). Previously the search inputs existed in HTML but had
no event listeners — typing in them did nothing.
Replace the naive heuristic_select() with a recon-driven scoring engine that
analyzes 30+ surface detection flags (WAF, CDN, SPA, frameworks, cloud, DB,
auth, API, etc.) and uses them to:
- Negatively filter agents for technologies NOT detected in recon (-10 penalty)
- Conditionally apply baseline scores only when surface supports the class
- Boost WAF-bypass/smuggling agents when WAF/CDN is detected (+8)
- Reduce injection baseline behind WAFs (sqli_error gets +1 not +4)
- Context-boost auth/API/SPA/CDN/template agents per detected surface
- Expand signal mappings from ~23 to 60+ (frameworks, CDNs, WAFs, patterns)
Also improve the LLM selector (SELECT_SYS) with explicit elimination rules
and hard exclusions (no DB agents without direct DB port, no cloud agents
without cloud endpoints), and double the recon context from 3000 to 6000 chars.
- mcp_hot_reload.rs: watches mcp.servers.json for mid-run changes,
rewrites .mcp.json so next agent spawn picks up new MCP servers
(e.g. Playwright) without restarting the engagement. Includes
add_server/remove_server helpers for REPL integration.
- reference_prompts: new RunConfig field accepting paths to .md files
(e.g. pentest methodology guides) injected into every agent prompt
as supplementary testing material (capped at 8000 chars each).
- autonomy levels: "cautious", "standard", "aggressive", "full" —
shape how aggressively agents explore. Higher levels encourage
creative lateral testing, tool installs, WAF bypasses, zero-day
hunting, and exhaustive business logic exploration.