Severity cards read 0 for critical/high/medium/low: /api/db/stats is empty
without PostgreSQL and per-run `severities` is unpopulated. Count from
/api/issues, which carries the per-finding severity.
FAIR exposure read $400M most likely / $1.6B max. Two modelling errors:
the same finding reported by several agents was counted once per report,
and thirty criticals on one host were summed as thirty independent
breaches. Collapse duplicates on (title, target), then damp additional
findings per target harmonically — an attacker compromises a host once.
Lands at $89.2M / $362M on the same data.
PR review modal used classes that are not display:block, so labels and
inputs ran inline. Use the field-group / field-label / field-help pattern
the other modals use.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
- Move dashboardStats into pentests view (was global, polluting all pages)
- Make stats cards reflect actual run data from file storage
- Fix toolbox JSON parsing: separate stdout/stderr in runCli, handle
array JSON in toolsCall (was only matching object patterns)
- Add New PR Review modal with repo/PR input form
- Target table click now switches to pentests view
- Dashboard cards: severity-colored layout with CSS
- Strip redundant Storage card from stats
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Remove duplicate pgPool/pgQuery/pgSaveRun/pgCompleteRun/pgGetRuns/pgGetFindings
declarations in server.js (caused SyntaxError at startup)
- Add DATABASE_URL connection string support alongside NS_PG_*/POSTGRES_* env vars
- Add connection test on startup with graceful fallback to file storage
- Fix login.html localStorage key mismatch: getItem('ns-token') → 'ns_token'
to match the key used by setItem and app.js
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Hierarchical budget system inspired by ARTEX:
- BudgetLedger: thread-safe per-agent and total cost tracking
- ModelPricing: per-million-token pricing for all major providers
(Anthropic, OpenAI, DeepSeek, Gemini, Qwen, Groq + fallback)
- NEUROSPLOIT_BUDGET_USD env var for max spend enforcement
- wrap_up_mode() at 95% (5% reserve for validation/reporting)
- Cost recording wired into all 4 LLM completion paths
- cost.json persistence to workdir
- Human-readable cost report with top-8 agent breakdown
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Track tested endpoints × vulnerability classes to identify attack surface gaps:
- 55+ web vuln classes, 30+ infra, 17 cloud, 20 mobile, 17 binary
- CWE-to-class mapping for 40+ CWE IDs
- Agent name inference when CWE is missing
- Technology-aware filtering (e.g., GraphQL classes only when detected)
- Gap analysis with priority ranking
- Persistence to coverage.json for cross-run accumulation
- Integrated into exploration loop for all modes
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Major pipeline enhancements:
1. Reusable exploration_loop() function wired into ALL modes:
- run() (web), run_host(), run_greybox(), run_whitebox(),
run_container(), run_mobile()
- Skill-driven chained exploitation with FindingIntel extraction
- Re-recon enrichment: discovered intel feeds back into agent context
2. Deterministic sourcemap harvest:
- Scans JS bundles for .map files after CAG collect
- Extracts secrets (AWS keys, API keys, GitHub PATs, passwords)
- Discovers API endpoints from source code
- Feeds intel into recon context for all agents
3. WAF adaptive bypass:
- Vendor-specific bypass strategies based on probe detection
- Covers Cloudflare, Akamai, AWS WAF, Imperva, ModSecurity,
F5/BIG-IP, Sucuri, Fastly, Azure Front Door
- Injected into shared_block for all exploit agents
4. attack_chain() wired into whitebox, container, mobile modes
(previously only web and host had it)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Transform agent markdown files into skills with structured frontmatter:
- triggers: signal patterns that activate the skill
- chains_from: other skills whose findings trigger this one
- cwes: mapped CWE IDs for coverage tracking
- priority: base priority for skill routing
- max_rounds: execution budget per skill
New skill.rs module:
- SkillCatalog: loads and indexes all skill files
- SkillRouter: scores skills based on recon signals + findings
- FindingIntel: extracts credentials, endpoints, secrets from findings
- ExplorationBudget: configurable round/skill limits via env vars
- next_round(): selects next skills to run based on current findings
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Models such as DeepSeek emit DSML, Hermes or JSON action markup instead of
findings JSON, which dropped the agent's work. Parse those dialects, map
shell-style calls onto catalog tools (refusing chaining and redirects), and
run them in scope before asking the model for findings. The agentic loop
accepts the same recovered call as a normal action.
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
- Playwright Chromium records same-origin XHR/fetch, JS bundles and cookie names
- raw capture saved under traffic/; compact endpoint block injected into recon
- scope/auth/evasion UA honored; 60s timeout kills node + Chromium group
- best-effort with NEUROSPLOIT_BROWSER_RECON=0 opt-out
- replay a safe GET and store the real request/response as evidence
- sourcemap must be served and parse; admin rejects redirect/WAF/SPA/shell;
rate/IDOR without a receipt become leads; generic findings go through judge
- only validated findings are reported; the rest are leads
- default UA is the browser UA under evasion; explicit NEUROSPLOIT_UA still wins
- browser Accept/Accept-Language; scan header stays dropped
- recon curl/katana/nuclei/ffuf carry the same UA
- live catalog no longer re-applies the old/default model after the operator
changed it while the fetch was in flight
- custom provider:model is cleared when it conflicts with the selected provider
- model card, selects and run body stay in sync
- replace GNU grep -P in recon with perl (macOS/BSD)
- pause/continue sets phase running and recognises the CLI's resuming lines
- runs open in a new tab via ?run=<id>, Ctrl/Cmd/middle-click or the new link
- validate_with_persist returns validated only; needs-review/rejected go to leads.json
- web reloads findings.json at job completion so the final table is the validated list
- no more agent-recorded candidates counted as High/Medium findings
- the saved model can exist only in the live /models list, not the seed
list; the select fell back to the first model and Save persisted it
- Settings and the wizard now re-select the saved/preferred model after the
live catalog replaces the options
- evasion prompt no longer instructs agents to send X-NeuroSploit-Scan
- inject WAF bypass doctrine whenever a CDN/WAF is detected
- admin guard: 3xx/block/SPA/public-JS routes are not exposed admin
- dedup admin claims across agents; reject redirect/identical-baseline claims
- web: do not add --agent-tools twice
- Cloudflare can serve the block page with 200; classify it via the specific
'Sorry, you have been blocked' / 'Cloudflare Ray ID' wording
- judge_evidence rejects findings whose attack exchange is edge-blocked or
throttled (the app was never tested)
- regression test for the 200 block page
- host recon runs in its own process group and SIGKILLs the group on timeout (gau/katana no longer outlive the run)
- when an agent replies with tool-call markup instead of JSON, ask once for a JSON-only answer over the same evidence
- remember an unreachable Neo4j for the process so later graph phases skip it silently
- warn when many agents are pinned with --max-agents 0 and when vote-n exceeds distinct models