112 Commits
Author SHA1 Message Date
Joas A SantosandClaude Opus 5 0076e8715e feat(chat): a chat view in the console, over the engagement's own records
Backend: conversations persist under .neurosploit/chats, /api/chat/:id/send
drives `neurosploit chat` and relays its JSON lines over SSE. The first
message names the conversation, because a list of "New conversation" stops
being usable at about two.

Frontend: conversation list, message stream, model picker over the providers
that actually have a key, and an @ picker.

The @ picker is the point. It offers runs, targets and a findings search, and
those resolve server-side out of runs/ before the model sees anything — so an
answer quotes a finding that exists rather than describing the class of thing
it might be. Verified: asked how many findings a run had and at what severity,
it answered "2 findings, both Low", which is what that run holds.

What the resolver could NOT resolve is rendered in the answer's footer. A
reference that silently vanishes reads as the model not knowing, when it was
never told — and that is the failure an operator would misread as the target
being clean.

Answers render through a small markdown pass that escapes first, so a
finding's evidence cannot inject markup into the console.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-12-04 14:44:30 -03:00
Joas A SantosandClaude Opus 5 7c255ada3e fix(web): severity counts from /api/issues, FAIR dedup and damping, modal markup
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>
2026-12-04 10:48:22 -03:00
Joas A SantosandClaude Opus 4.6 76ce3101cc fix(web): dashboard stats in pentests view, toolbox JSON parse, PR review modal
- 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>
2026-12-04 10:36:29 -03:00
Joas A SantosandClaude Opus 4.6 796447ab89 feat(v5): enhanced Kali worker, user registration, login UI overhaul
- Dockerfile.kali: add Ghidra 11.2.1 for headless RE analysis, evil-winrm,
  awscli, kubectl, mitmproxy, gdb/ltrace/strace, aircrack-ng, JDK 17
- server.js: add /api/auth/register endpoint (first user = admin),
  fix auth status response keys for login page consistency
- login.html: redesigned login with registration flow, improved
  glassmorphism styling, better error handling and animations

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-12-04 10:22:34 -03:00
Joas A SantosandClaude Opus 4.6 eabfffe4c1 fix(web): pg pool dedup, DATABASE_URL support, login token key consistency
- 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>
2026-12-04 10:15:57 -03:00
Joas A SantosandClaude Opus 4.6 14cefda590 feat(v5): planner/worker architecture, RE integration, LLM failover, traffic recording
Phase 2 of the v5 autonomous refactoring:

- Planner/Worker loop (planner_loop.rs): intent-driven exploration with
  shared graph state, dependency tracking, parallel worker execution,
  budget-aware termination. Opt-in via NEUROSPLOIT_PLANNER=1. Wired
  into all 6 pipeline modes (web, host, whitebox, greybox, container,
  mobile).

- LLM failover pool (llm_pool.rs): per-provider circuit breakers with
  configurable threshold/recovery, rate limiting, noise profiles
  (quiet/balanced/aggressive), provider health tracking.

- Reverse engineering integration (re_integration.rs): Ghidra headless
  decompilation with fallback to objdump/readelf/strings. Binary triage,
  vuln pattern detection, attack surface scoring.

- Traffic recording (traffic_record.rs): full HTTP capture with WAF
  detection, search, HAR export, JSON persistence.

- Finding dedup (finding_dedup.rs): BM25-based similarity scoring.
- Hypothesis tracking (hypothesis.rs): open/closed investigation directions.
- Noise profiles (noise_profile.rs): quiet/balanced/aggressive pacing.
- Scope relaxation: auto_expand_discovered, follow_auth_redirects, expand_asn.
- PostgreSQL wiring with full schema.

Build: 0 errors, 0 warnings, 1150 tests passing.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-12-04 10:13:21 -03:00
Joas A SantosandClaude Opus 4.6 2a3e13aeef feat(harness): v5 phase 2 — planner/worker, LLM failover, RE, traffic recording
Planner/Worker architecture:
- Intent-graph-driven exploration with LLM planner emitting ExplorationIntents
- Async workers claim and execute intents in parallel
- Plan → execute → harvest → replan loop until convergence
- Dependency-aware intent scheduling

LLM failover pool:
- Circuit breaker per provider (threshold + timeout recovery)
- Token bucket rate limiter per provider
- FailoverChain auto-detects providers from env API keys
- Health tracking: latency, error rate, total tokens
- complete_with_failover() wraps pool calls with health recording

Reverse engineering integration:
- Ghidra headless + radare2 binary analysis backends
- BinaryInfo, FunctionInfo, StringInfo, ImportInfo extraction
- VulnIndicator scoring (dangerous functions, format strings, crypto)
- Attack surface scoring algorithm
- format_for_llm() injects analysis into agent prompts
- re_pipeline() async entry point returning Finding vec

Traffic recording:
- Full HTTP request/response recording with HAR 1.2 export
- TrafficEntry with agent attribution, tags, finding linkage
- WAF detection from response patterns
- Global store with search, filter, stats
- JSON persistence + HAR export at run end

Finding dedup:
- BM25-based textual similarity deduplication
- Multi-signal scoring: vuln type, endpoint, parameter, token overlap
- Higher severity/evidence kept on merge

Hypothesis tracking:
- Investigation directions with Open/Confirmed/Disproved lifecycle
- Evidence accumulation (for/against)
- generate_from_recon() creates initial hypotheses
- Persistence across rounds via JSON save/load

Noise profiles:
- Quiet/Balanced/Aggressive scan pacing
- Tool-specific rate-limit flags injected into agent prompts
- nmap, nuclei, httpx, katana, ffuf, dalfox, sqlmap, gobuster, feroxbuster

Scope relaxation:
- auto_expand_discovered, follow_auth_redirects, expand_asn_ranges
- registrable_domain() helper for scope expansion

Build: 0 errors, 0 warnings, 1150 tests passing.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-12-04 10:13:02 -03:00
Joas A SantosandClaude Opus 4.6 1c7a0d0a9b feat(web): auth system, Morse provider, SSE exploration events
Auth middleware (zero external deps):
- JWT + scrypt authentication in server.js
- Auto-generated default credentials from env vars
- Rate-limited login (10/min), change-password, verify endpoints
- Glass-morphism login page with first-login detection

Morse provider:
- Added to server.js PROVIDERS array and .env.example
- Uncensored open-weight models with native tool calling

Frontend:
- Bearer token injection in api() calls
- 401 auto-redirect to login
- SSE exploration round events

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-12-04 01:37:14 -03:00
Joas A Santos 00c5c87bff feat: add traffic store for browser captures (#115) 2026-12-03 22:48:50 -03:00
CyberSecurityUP 7e8110350d fix(web): model selection race + stale custom id override
- 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
2026-12-03 11:16:20 -03:00
CyberSecurityUP 2173ac8930 fix(web): continue phase + run deep-link/new-tab; portable recon grep
- 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
2026-12-03 11:09:52 -03:00
CyberSecurityUP e9cb75128d fix: report only validated findings; keep candidates as leads
- 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
2026-12-03 10:01:45 -03:00
CyberSecurityUP b29917381f fix(web): apply Settings Engine (reactive/phased) to the wizard
- choosing Phased in Settings now unchecks the wizard Reactive engine box
- avoids the checkbox default re-enabling reactive and skipping tool recon
2026-12-03 09:37:30 -03:00
CyberSecurityUP 80748b0c74 fix(web): keep the saved default model after the live catalog loads
- 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
2026-12-03 09:28:15 -03:00
CyberSecurityUP 53cef9e5a9 fix(web): authentication button always opens the Target login tab
- reset the Auth & Keys tab on every open instead of keeping the last one
- Authentication -> Target login, rules -> Scope, infra creds -> Files
2026-12-03 09:23:06 -03:00
CyberSecurityUP 4e61368f16 fix: collapse and reject /admin WAF/SPA false positives; evasion prompt
- 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
2026-12-02 22:35:32 -03:00
CyberSecurityUP fe98870c0e feat: add OrcaRouter provider and two-step default model picker
- OrcaRouter (api.orcarouter.ai/v1, ORCAROUTER_API_KEY): registry,
  sk-orca- prefix detection, auto-config, web catalog + key verify
- Settings > Defaults: provider -> model, listing only usable providers,
  with the live model catalog
2026-12-02 20:56:51 -03:00
CyberSecurityUP d2e464ff4f fix: CLI/web parity for auto-config opt-outs; AD facts from dual graph
- add --no-revalidate / --no-evasion / --no-sandbox for CLI parity
- web resume preserves sandbox/reactive/revalidate/evasion and forwards
  the NEUROSPLOIT_NO_* opt-outs
- autoconfig no longer overrides explicitly-set env (including 0)
- ad_recipe facts_from_run reads dual-graph.json as well as reactive-state
2026-12-02 15:04:11 -03:00
CyberSecurityUP 2ed7ec6a51 fix: reactive seeds target from prose recon; add --no-reactive off switch
- add_recon always seeds the target asset and extracts in-scope URLs /
  subdomains from free text, so a prose recon answer no longer leaves the
  graph empty (which made the planner quiesce with 0 findings)
- --no-reactive / NEUROSPLOIT_NO_REACTIVE=1 and unchecking the web toggle
  now actually disable reactive and fall back to the phased pipeline
2026-12-02 14:44:32 -03:00
CyberSecurityUP 60f6b40fc9 feat(web): surface auto-config defaults in the wizard
- PoC re-validation and OPSEC evasion default on; sandbox defaults to Auto
  (Kali if available)
- unchecking a default or picking "This host" sends the matching
  NEUROSPLOIT_NO_* opt-out so the front-end choice wins
- wire --evasion into run/session args; drop the duplicate More options toggle
2026-12-02 13:15:59 -03:00
CyberSecurityUP bf4c31dacb feat: auto-config safe defaults, live model catalogs, CVE/AD in flow
- autoconfig enables reactive (Black), models, tools, MCP, economy, PoC
  re-validation, OPSEC evasion and an already-present Kali sandbox, each
  with a NEUROSPLOIT_NO_* opt-out; authorization/safety stays explicit
- CVE lookup folded into pipeline/reactive recon (no separate cve command)
- AD/privesc recipes injected into agent prompts from run facts
- web: live model catalog for every provider plus a custom model id, and
  OpenRouter model ids fixed
2026-12-02 13:08:55 -03:00
CyberSecurityUP 983b00a1dc chore(release): v4.6.0 — MCP & C2 operator tools, installers, red-team engine 2026-12-01 23:58:34 -03:00
CyberSecurityUP b02f10569a feat(web): MCP & C2 operator tools + built-in profiles
- new MCP & C2 page under Operator tools: connect a C2 (profile / configured
  MCP server / HTTP URL) in a modal, list built-in C2 profiles (sliver/havoc/
  mythic/adaptix/cobaltstrike), test MCP servers with a real initialize+tools/list,
  add/remove custom MCP servers, and task reused sessions
- backend /api/operator/* routes proxying c2x and probing stdio/HTTP MCP
- CLI: neurosploit tools mcp profiles (+ json resolves C2 profiles)
- simplified captions, centered layout, sane empty states, single input focus ring
2026-12-01 18:58:31 -03:00
Joas A SantosandClaude Opus 5.5 aa89175a82 chore: use neutral example names in comments and tests
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 16:28:54 -03:00
Joas A SantosandClaude Opus 5.5 a1573d0e9c feat(web,harness): v5 console redesign, test-type-aware reports and graph
Web console
- New design system (dark/light), grouped sidebar, command palette, mobile app bar.
- Home quick-start with type detection, setup checklist, resumable wizard drafts.
- 4-step wizard with per-test-type fields, asset picker, depth presets and
  allow-listed "More options" CLI flags; agent step with surface/OWASP/category
  facets and per-type recommendations.
- Finding sheet: structured narrative, step-by-step PoC, white-box code viewer
  (real source, syntax colours, evidence-anchored vulnerable lines).
- Attack graph: type-aware lanes, compact nodes, per-node inspector, path focus,
  asset anchoring, decluttered overview.
- Chains, dependencies, traces, deliverables, projects portfolio, assets,
  toolbox, settings (single AI key, subscriptions check, Neo4j), scope & safety
  split (global vs per test) with engagement-authorization letter.
- Continuous testing for GitHub repos: PR/commit triage by security relevance,
  test only changes above a threshold.

Server
- Routes: subscriptions check, source excerpts, authorization letter,
  continuous testing, run flag allow-list.

Harness
- Test kind classifier (web/code/infra/mobile/ai/cloud) stamped on findings;
  kind-aware report layout and repro steps (no curl for AD/code).
- Report redesign; rejected findings no longer shown as confirmed;
  attribution sentence removed from findings.
- Evidence integrity accepts declared pivots; credential-exposure CWE floor.
- Graph memory anchors findings to the real host (IP + hostname, pivots).
- NEUROSPLOIT_AUTHORIZATION env for every run mode.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 16:27:55 -03:00
CyberSecurityUP e820cc6ebb feat(web): console UI redesign (v5) 2026-12-01 14:38:58 -03:00
CyberSecurityUP dfe6f7bab6 feat: step-level worker activity + cost-governed worker tool loop
- 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
2026-12-01 11:17:57 -03:00
CyberSecurityUP b0378e8df5 feat: credential economy, phishing run wiring and AWS Bedrock provider
- economy module: redacted vault for phishing captures + secrets harvested from
  JS/source/config; CLI (list/status/harvest/secret/export/reuse), creds.yaml
  export, loot/attack-path folding and redacted prompt reuse
- wire --phish/--phish-authorization/--phish-capture/--economy into the run;
  fail-closed bootstrap, doctrine + live artifact context injection
- phish captures auto-record into the economy (password + session cookies)
- add AWS Bedrock provider: native SigV4-signed Converse API (no OpenAI shim),
  AWS credential/region env chain, bedrock:<model-id>
- bump version to 4.5.0
2026-11-30 22:41:44 -03:00
CyberSecurityUP f0c14141fb feat: add Evilginx phishing module with phishlet generation, web UI and audit gating
- harness phish module: policy/allow-lists, phishlet templates, Evilginx
  lifecycle, campaign/lure records and capture ingestion (0600 + audit.jsonl)
- disabled by default; enable requires an authorization reference; target and
  lure domains must be allow-listed; capture requires explicit opt-in; secrets
  redacted in API responses
- CLI: neurosploit phish status/enable/install/setup/start/stop/phishlet/
  campaign/capture/events
- web console: Phishing view + /api/phish routes; toolbox + .env entries
2026-11-30 17:01:02 -03:00
CyberSecurityUP dc7fd3e7a2 feat: deterministic cred/privesc chaining, service->CVE lookup, web console modes
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.
2026-11-28 17:16:40 -03:00
CyberSecurityUP 54d8e86039 fix(web): correct API contract, wiring, XSS, graph and report bugs
- 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.
2026-11-24 02:32:21 -03:00
CyberSecurityUP c27afff929 fix: robust multi-model markup stripping, finding quality fields, improved finding modal
json_extract: strip DeepSeek v4.1 single-pipe DSML XML tags, Qwen/Llama/Gemma/Mistral
special tokens, function_call/invoke/parameter wrappers with attributes. Fixes #74.

types/pipeline: 7 new Finding fields (finding_type, validation_level, detection_method,
source_file, affected_endpoint, evidence_type, preconditions_checked), clean_finding_title(),
SAST-aware findings_md() with validation levels and preconditions section.

report: separate Source Location vs Affected Endpoint rows, validation level display,
preconditions checked highlight box.

frontend: wider finding modal (960px), collapsible script cards with language badges,
lazy-load script content, copy buttons on PoC steps/payload/evidence, filtered
"Related scripts" section (only scripts matching the finding's context).
2026-11-23 19:47:47 -03:00
CyberSecurityUP 7a77378ef9 feat: Neo4j planner intelligence, kill chain highlight, engagement edges, SIGIL rename, frontend fixes
- Neo4j shortestPath + attack suggestions wired into planner context (upgrade #5)
- Kill chain toggle with golden glow highlight on attack path nodes/edges (upgrade #4)
- Engagement ID stamped on Neo4j edges, not just nodes (upgrade #8)
- SIGIL renamed from JOASNSCOPE to NEUROSPLOIT in provenance + oob
- Frontend: CVSS overflow fix, filter labels, sidebar filter sync, project matching,
  project column in pentests, manage-runs modal, chains layout fix
2026-11-22 13:11:29 -03:00
CyberSecurityUP dba1902431 feat: graph asset context, DSML fix, engagement marker, doctor, Neo4j queries, agent detail, chains UI
- Graph finding detail: show target host, domain, access method (direct/pivot), kill chain position
- Graph filters: severity/status/subnet dropdowns, kill chain coverage bar
- Agents tab: clickable rows expand to show per-agent findings with severity/status
- Chains tab: color-coded edge badges, confidence bars, move cards with type classification
- Re-validate button per finding in graph detail panel
- Fix #71: strip DeepSeek DSML/tool_call markup before JSON extraction
- --engagement/--test-id flag: stamps runs, Neo4j nodes, status.json for grouping
- neurosploit doctor: pre-flight health check (API keys, tools, Neo4j, Docker, agents, disk)
- Neo4j queryable: shortestPath, owned nodes, next moves queries for planner
- Multi-range scope: parse comma/semicolon-separated CIDRs
- Structured logging: StructuredLog with agent/phase/level context
- Prior findings reuse: load confirmed findings from previous runs of same target
- Coverage API: kill chain + OWASP + MITRE mapping endpoint
- Engagement field in runs listing and detail
2026-11-22 11:47:03 -03:00
CyberSecurityUP 512f041910 feat: MCP profiles, graph filters, OpenSearch, cache, ingest, improve, repro, tunnel
New harness modules: cache (universal completion cache), improve (self-review),
ingest (IP/Swagger/OVPN/RoE parser), logship (OpenSearch integration), limits
(rate/budget guards), repro (PoC reproduction with REVEALSECRET vault), tunnel
(ngrok + HTTP callback sink). MCP profiles for 12 testing modes (Web, Mobile,
Binary, BurpSuite, CobaltStrike, Infra, AD, Cloud, Kali, Nmap, Full, Custom).

Frontend: clickable graph legend filters, node IP/domain/port info subtitles,
wider nodes for readability, projects/orgs views, vault/guardrails/integrations
views, scope subdomain expansion, version badge removal.

CLI: new subcommands (logs, tunnel, ingest, improve, repro), MCP profile flag.
README redesigned with architecture diagram, MCP profiles table, provider list.
2026-11-22 02:20:18 -03:00
CyberSecurityUP 197215c897 fix(web): graph finding detail + don't resume finished run on reload
- 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.
2026-11-21 09:47:22 -03:00
CyberSecurityUP b442159636 fix(harness,web): host-mode scope wiring, host-aware validator, graph UI
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.
2026-11-21 09:44:49 -03:00
CyberSecurityUPandClaude Opus 4.6 d3a9726a74 feat(harness): CAG (Context-Augmented Generation) anti-hallucination pipeline
Agents behind WAF/CDN (Cloudflare etc.) were fabricating HTTP evidence
when curl returned challenge pages instead of real application responses.
This implements a full CAG pipeline that pre-collects HTTP evidence and
injects it into agent context, eliminating hallucinated findings.

CAG pipeline:
- cag_collect(): pre-fetches all discovered endpoints before agents run
  - Browser mode (Playwright headless) when WAF detected
  - curl mode for non-WAF targets
  - Collects status, security headers, response body per endpoint
  - Probes sensitive paths (.env, .git/HEAD, robots.txt, xmlrpc.php etc.)
- CagCache persisted to cag_cache.json in run directory
- CAG_DOCTRINE prompt: agents told to analyze provided data, not fabricate
- cag_grounding_gate(): post-agent cross-reference against cache, demotes
  findings where pre-fetched evidence contradicts agent claims

Integrated into 4 web-facing run modes:
- run() (main web engagement)
- run_greybox() (source + live)
- run_host() (infrastructure)
- run_ai() (AI/LLM endpoint testing)

Additional changes:
- WAF anti-hallucination gate: replay endpoints, demote if WAF blocks
- CF_BYPASS_EXPLOIT_HINT updated to reference CAG data
- max_tokens bumped to 32k for Claude models (output truncation fix)
- 7 new/rewritten agent files (ARTEX-level depth):
  - js_analysis.md, secret_scanning.md (rewritten)
  - chain_secret_to_takeover.md, chain_web_deep_exploit.md (new)
  - sourcemap_exposure.md, bypass_403.md (new)
  - java4shell_detect.md, php2shell_exploit.md, php2shell_scan.md (new)
- CHAIN_DOCTRINE: sourcemap harvest, transitive secret extraction
- Web UI improvements

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CgQHN9UbgqguQuyeND7PWF
2026-11-19 12:23:10 -03:00
CyberSecurityUP 19b0f7f810 feat(harness): deep crawl, preflight check, circuit breaker, recon reuse, output fix
- Deep crawl/spider: katana depth 5, 3000 URL cap, endpoint discovery,
  JS extraction, form extraction, ffuf/feroxbuster content discovery
- Agent selector: mandatory OWASP baseline, aim for 40-80 agents,
  generous inclusion policy, endpoint coverage rule
- Recon context expanded: 8000/10000 chars (was 3500/6000)
- Preflight model check: validates API key + model responds before
  launching agents, aborts immediately on 404/auth error
- Circuit breaker: in-flight tracking aborts remaining agents when
  >1/3 fail; post-mortem groups errors by pattern for diagnostics
- Recon reuse: caches recon per host in .neurosploit/recon_cache/,
  diffs on re-runs showing new/removed endpoints
- Output tokens: Claude models 4096 -> 16384 (was truncating ReAct
  chains mid-JSON, losing all parsed findings)
- TypeSafe pruning disabled by default via NEUROSPLOIT_TYPESAFE=off
- Web UI: adaptive dashboard redesign with color-coded stats, icons,
  progress bar fix, setStat helper
- claims.rs: cwe_severity_floor made public
2026-11-18 22:03:07 -03:00
CyberSecurityUP 143654ec19 fix(deepseek): correct model names to match API (v4-pro, flash)
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.
2026-11-18 17:12:16 -03:00
CyberSecurityUP 0677c14437 feat(web): model selector, key persistence, toolbox integration and UI fixes
- 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
2026-11-18 15:54:03 -03:00
CyberSecurityUP 9a2ae9a1aa chore(release): v4.4.3 — global MCP server, C2, reactive engine, 200+ tools
Version bump to 4.4.3 across Cargo.toml, web, MCP package and docs.
Release notes added to RELEASE.md.
2026-11-18 10:17:11 -03:00
CyberSecurityUPandClaude Opus 4.6 27ff689265 feat(c2+toolbox): C2 framework, 200+ security tools catalog, WebShells and MCP integration
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>
2026-11-18 09:20:56 -03:00
CyberSecurityUPandClaude Opus 4.6 408d59d9de feat(reactive): event-driven engine with graph reasoning, knowledge base, MCP profiles and web UI
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>
2026-11-17 20:16:44 -03:00
CyberSecurityUP c1a15f2e84 chore(release): v4.4.2 — managed Neo4j and populated exploration graph 2026-11-15 23:04:45 -03:00
CyberSecurityUP 9a02f81486 feat(graph): managed Neo4j (docker up/down/status/sync), exploration graph sync and chain leads
- neurosploit neo4j up|down|status|info|sync: start a loopback-only Neo4j in Docker,
  generated password stored 0600, passed to Docker via env (not argv)
- harness resolves the managed instance automatically (explicit --neo4j / NEO4J_URI win)
- neo4j_exploration: MERGE assets + exploration graph, closed-enum labels/rel types,
  free text only as parameters; chain query surfaces untested assets next to findings
- pipeline pushes the exploration graph at graph checkpoints and injects chain leads
- web backend: /api/neo4j/status|up|down and /api/runs/<id>/neo4j-sync
- docker-compose.neo4j.yml, .env.example and TUTORIAL updates
2026-11-15 22:55:01 -03:00
CyberSecurityUP 2fe170c456 feat(harness): operations engineering modules and v4.4.1 release
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.
2026-11-15 22:29:12 -03:00
CyberSecurityUP 7fd79e4ebc feat(harness,web): Artex-inspired adaptive autonomy engine
Five new modules for adaptive, self-directed exploitation:

- adaptive.rs: payload mutation engine — tech-stack-aware generation,
  WAF bypass evolution, response-driven mutation, per-engagement journal
- request_analyzer.rs: HTTP response intelligence — reflection detection
  with context-aware XSS suggestions, error fingerprinting, differential
  analysis (baseline vs attack), parameter discovery, auth context
- exploration_graph.rs: dual-graph architecture — global asset graph +
  per-engagement exploration graph with causality edges and bidirectional
  anchors driving a live coverage map
- planner.rs: reactive event-driven planner — coverage-driven, fact-driven,
  chain-driven, hint-driven intent generation with persistent todolist
  and dependency sequencing
- noise_governor.rs: adaptive rate control — per-host throttling, 429/503
  exponential backoff, request caching/dedup, stealth mode

Integration:
- pipeline.rs injects adaptive context into agent prompts
- RECON_SYS enhanced with dnsgen, favicon hash, waymore techniques
- Web UI: new Adaptive tab with live dashboard for all subsystems
- Server: parses adaptive_json/graph_json/planner_json/noise_json events
2026-11-14 12:17:46 -03:00
CyberSecurityUP ccc13cf933 fix(harness,web): preserve rejected findings and add search filters
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.
2026-10-18 23:30:46 -03:00
CyberSecurityUP afa11bcb67 chore(web): bump web console version to v4.4.0 2026-10-18 19:54:40 -03:00