222 Commits
Author SHA1 Message Date
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 8aca22eeed feat(ops): collection, exfiltration and OPSEC/evasion
- collect: per-run collection manifest (size + SHA-256 + sensitivity), file
  staging/verification, and context checklists
- exfil: chunked HTTPS upload to an operator endpoint, size-capped and
  hash-verified, gated by the operator checkpoint (exfil id)
- evasion: OPSEC profile + fingerprint self-check; --evasion drops the
  X-NeuroSploit-Scan header to reduce attribution
- CLI: neurosploit collect|exfil|evasion
2026-12-01 14:23:28 -03:00
CyberSecurityUP 324d3d0507 feat(c2): HTTP MCP transport + C2 auto-tasking (any MCP C2)
- 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
2026-12-01 14:15:53 -03:00
CyberSecurityUP bf44396522 feat(c2): generic MCP C2 session reuse (any stdio MCP, not just ours)
- mcp_client: minimal stdio MCP client (initialize/tools.list/tools.call),
  newline JSON-RPC, ${VAR:-default} expansion
- c2_reuse: import/normalize sessions from any C2 (Sliver/Havoc/Mythic/Adaptix/CS
  export shapes), pick the best existing session for a target, persist 0600,
  inject a reuse prompt block into chain/worker prompts
- c2x sync --profile <sliver|havoc|mythic|adaptix> or --command <stdio-mcp>:
  discovers the session-listing tool (sliver_sessions/havoc_demons/mythic_callbacks/
  get_live_beacons, or pattern), calls it, imports the result — provider-agnostic
- CLI: neurosploit c2x {sync,import,list,reuse,context}
2026-12-01 14:08:36 -03:00
CyberSecurityUP bb9fcbbb14 feat(pivot): health-aware route selection + auto-reroute
- 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
2026-12-01 13:58:51 -03:00
CyberSecurityUP 3a1612effd feat(checkpoint): operator gates for high-impact actions
- 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
2026-12-01 13:55:12 -03:00
CyberSecurityUP ffa6f8cae5 feat(ad): deterministic AD receipts + fact-gated AD chain planning
- 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}
2026-12-01 13:45:49 -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 e95b040826 feat: complete chisel auto-pivot module with PivotManager, proxychains, OS detection
Chisel auto-pivot (chisel_pivot.rs):
- Full PivotManager with async tunnel lifecycle (allocate/active/failed/teardown)
- OS detection from shell output (Linux/Windows/Unknown)
- Upload method selection (curl/wget/certutil/powershell/scp/smb)
- Proxychains config generation and command wrapping
- Nmap proxy args, chisel client/server command builders
- Internal range extraction from ifconfig/ipconfig output
- auto_pivot probe with runner closure pattern
- 32 tests (unit + async integration)

Browser handoff (browser_handoff.rs) — previously committed, unchanged:
- 27 tests passing

Version bump to v4.4.3
2026-11-29 16:17:34 -03:00
CyberSecurityUP c66d49f624 feat: bidirectional browser handoff and chisel auto-pivot modules
Browser handoff (browser_handoff.rs):
- BrowserOwner state machine (Agent/Operator/Idle)
- HandoffManager with session lifecycle, takeover/handback
- CDP command builders (navigate, cookies, screenshot)
- State capture/restore JS scripts (localStorage, forms, scroll)
- Agent prompt integration (pause/resume messages)
- Web UI SSE events (browser:takeover, browser:handback)
- 27 tests

Chisel auto-pivot (chisel_pivot.rs):
- PivotTunnel with full lifecycle (Pending/Deploying/Active/Failed/Closed)
- ChiselPivotManager with tunnel creation, routing, subnet mapping
- Shell command generators (server, client, upload for Linux/Windows)
- Proxychains config generation and command wrapping
- Agent prompt context injection for active tunnels/routes
- Web UI SSE events (pivot:established, pivot:closed)
- 26 tests
2026-11-29 16:14:01 -03:00
CyberSecurityUP aae74e7597 feat: reactive probe integration, Havoc/Mythic C2 profiles, CVSS 4.0 scoring
- reactive_bridge.rs: wire DNS, TLS/SSL, cloud, GraphQL deterministic probes
  into reactive engine — probes run after recon, before LLM agents, loot feeds
  dual graph and agent prompt context via shell runner closure
- mcp_profiles.rs: Havoc C2 profile (15 tools: demons, listeners, shell, BOF,
  .NET assembly, token manipulation, SMB pivot, credential store) and Mythic C2
  profile (16 tools: callbacks, tasks, payloads, credentials, SOCKS, port
  forwarding, lateral movement, persistence, assembly, BOF, keylogger)
- reactive_bridge.rs: profile matching for havoc/mythic keywords
- setup.sh: optional install for Havoc C2 (NEUROSPLOIT_HAVOC_C2=1) and Mythic
  C2 (NEUROSPLOIT_MYTHIC_C2=1)
- cvss.rs: CVSS 4.0 support — Cvss4 struct, parse/score/severity, detect_version,
  parse_any unified parser, formula-based scoring with exploit maturity modifier,
  22 new tests (961 total passing)
2026-11-29 14:25:06 -03:00
CyberSecurityUP b93bedb225 feat: deterministic DNS, TLS/SSL, cloud, and GraphQL security probes + cloud doctrines
- dns_probe.rs (370 lines, 27 tests): zone transfer (AXFR), SPF/DKIM/DMARC
  analysis, DNSSEC check, NS/MX/SOA/TXT enumeration, reverse DNS, subdomain
  discovery via common DKIM selectors
- ssl_probe.rs (530 lines, 28 tests): certificate chain parsing, expiry check,
  weak protocol detection (SSLv3/TLS1.0/TLS1.1), HSTS validation, self-signed
  detection, weak key/SHA-1 signature, hostname mismatch, wildcard matching
- cloud_probe.rs (340 lines, 29 tests): IMDS v1/v2 reachability, Azure/GCP
  metadata endpoints, S3 bucket ACL, Azure blob anonymous access, GCS bucket
  enumeration, cloud target extraction from recon text
- graphql_probe.rs (380 lines, 16 tests): introspection detection, field
  suggestion abuse, batch query DoS test, debug mode detection, sensitive field
  enumeration, mutation listing
- cloud_infrastructure.md: 10-method cloud pentesting doctrine (CWE-16)
- container_kubernetes.md: 10-method K8s/container security doctrine (CWE-250)

940 tests passing (was 840). All probes follow runner closure pattern — no LLM,
deterministic fact extraction only.
2026-11-29 14:10:32 -03:00
CyberSecurityUP e91fdb383b feat: Sliver C2 + AdaptixC2 MCP profiles, C2 operations doctrine, setup integration
- mcp_profiles.rs: SliverC2 profile (sessions, beacons, listeners, pivoting, creds, hosts)
  and AdaptixC2 profile (80+ tools: BOFs, execute-assembly, Kerberos, SOCKS, port-forwarding,
  UAC bypass, privesc checks, credential dumping)
- reactive_bridge.rs: profile matching for sliver/adaptix/c2 keywords
- c2_operations.md: 12-method doctrine for C2 post-exploitation (listener setup, session
  management, enumeration, lateral movement) with authorization-gated boundaries
- setup.sh: optional install for sec-sliver-c2-mcp (NEUROSPLOIT_SLIVER_C2=1) and
  AdaptixC2_mcp (NEUROSPLOIT_ADAPTIX_C2=1) with dependency management
2026-11-29 12:48:59 -03:00
CyberSecurityUP 3285dd5a46 feat: deterministic goal decomposition and tracking for attack chain
- goals.rs: GoalTracker with per-profile standard goal sets (infra/web/mobile/cloud),
  operator instruction parsing, loot-based auto-marking, and structured planner context
- 27 tests covering goal lifecycle, sub-goal completion propagation, profile generation,
  instruction parsing, loot pattern matching, and JSON serialization
2026-11-29 12:37:04 -03:00
CyberSecurityUP 7064338872 feat: nday auto-exploit verification, deep SAST 0day analysis, binary/source doctrine
- nday_restore.rs: 3-phase CVE verification (nuclei templates, exploit-db PoC classification, GitHub PoC search), safe types auto-verified, destructive types never run
- deep_sast.rs: 60+ regex patterns across 15 languages for 0day-class vulnerabilities (function pointers, callbacks, type confusion, integer overflow, UAF, double-free, format strings, deserialization, TOCTOU, vtable corruption, jump tables, symbol hijack, syscalls, race conditions)
- Pipeline wiring: nday_restore in infra pre-agent phase after svc_probe, deep_sast in whitebox pre-agent phase injected as FACTS to LLM doctrine
- 3 doctrine files: nday_exploit_verification.md (10 methods), zeroday_code_analysis.md (12 methods), binary_zeroday_analysis.md (10 methods)
- 814 tests passing (+45 new from nday_restore + deep_sast)
2026-11-28 20:39:53 -03:00
CyberSecurityUP 4298d339b5 feat: JWT deterministic probe, 35-file attack knowledge base, full MITRE-ATT&CK doctrine coverage
- jwt_probe.rs: deterministic JWT attack module (alg:none, kid path-traversal,
  weak-HMAC cracking, RS256→HS256 key-confusion) with live curl verification,
  wired into attack_chain pipeline alongside credtest/privesc/svc_probe

- 25 vuln doctrine files covering web attack classes: SQLi, NoSQLi, XSS, SSRF,
  SSTI, XXE, CSRF, CORS, IDOR, OAuth, JWT, deserialization, race conditions,
  path traversal, prototype pollution, GraphQL, business logic, HTTP smuggling,
  file upload, command injection, weak crypto, cache poisoning, WebSocket,
  SAML, XS-Leaks

- 10 infra doctrine files covering full-host/AD attack lifecycle: privilege
  escalation (89 lines, 30+ CVEs per OS, GTFOBins/LOLBAS as living refs),
  persistence (8 Linux + 20 Windows methods), credential access, defense
  evasion, discovery/lateral movement with pivoting, initial access, binary
  exploitation, code/process injection (14 techniques), CTF methodology,
  Active Directory (45 techniques across 8 categories including ADCS ESC1-15,
  Kerberos ticket abuse, delegation, coercion, trust abuse)

- All doctrine files are generic methodology (not hardcoded answers), loaded
  by knowledge.rs regex parser and agents.rs folder-keyed loader

Sources: ired.team, HackTricks, PortSwigger labs, Juice Shop solutions,
HTB writeups, Awesome-Red-Team-Operations, /opt/Labs/ course material
2026-11-28 20:19:27 -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 54e8b13035 feat: pluggable LLM providers, kernel/binary recon, iterative tool-calling, mobile/binary pipeline
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.
2026-11-28 14:18:53 -03:00
CyberSecurityUP b85f5a2867 fix: register threat_actors module so the harness builds
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
2026-11-24 02:25:13 -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 3aa2beb4b8 feat: expand Mistral provider — add mistral-small, mistral-medium, ministral-8b, ministral-3b models 2026-11-22 16:44:51 -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 f6996d6f4e feat(pivot): multi-hop pivot-proxy engine + CADP tri-forest DC compromise
Add permanent pivot.rs module with PivotManager supporting 7 tunnel methods
(portproxy, chisel, WinRM SOCKS, SSH dynamic, ligolo, socat, proxychains).
Pipeline auto-detects unreachable subnets, establishes tunnels through
compromised pivot hosts, and injects routing instructions into chain agents.

New --pivot-proxy CLI flag (auto|off|host:domain:user:pass).

CADP Lab Results (all via neurosploit agents):
- DC01-AUREON (aureon.local) COMPROMISED - NTDS dump, 11 account hashes
- DC01-HELIX (helix.local) COMPROMISED - NTDS dump, 8 account hashes
- DC01-VANGUARD (vanguard.local) COMPROMISED - 24MB NTDS.dit, EA access
- Triple-hop portproxy chain: DMZ -> AUREON -> HELIX -> VANGUARD
- 199 findings merged, 18 Critical, 27 High
- Full loot database with hashes, kerberos keys, LSA secrets
2026-11-22 01:19:11 -03:00
CyberSecurityUP d4ec86ef1b feat(agents,chain): AD internal-pivot tradecraft for autonomous forest compromise
- 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.
2026-11-21 17:57:05 -03:00
CyberSecurityUP 5a3fe4a7b8 feat(engine): keep useful findings, optional validator, stealth mode, planner model
- 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.
2026-11-21 16:15:31 -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
CyberSecurityUP bf2754ece6 feat(harness): cross-domain attack path chaining engine
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.
2026-11-20 14:55:22 -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 20acca87b8 fix(harness): raise Claude max_tokens to 16k and add truncation detection
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
2026-11-18 22:41:23 -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 c7591164ad feat(harness): CWE-based severity floor prevents over-downgrading
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
2026-11-18 20:04:00 -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
CyberSecurityUP 19ead71279 feat(mcp): global MCP server package with 48 security 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
2026-11-18 10:09:00 -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 d52ad78f4c feat(graph): populate the dual graph from recon and findings at every graph checkpoint
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.
2026-11-15 22:59:47 -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 bc0a223674 feat(harness): wire operator constraints and cold digests into the pipeline
- 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
2026-11-15 22:32:15 -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 836f74edb9 feat(harness): cross-worker trace search, checkpoint/rollback, intent negotiation
Three Artex-inspired features:

1. Cross-worker trace search (traces.rs): search(), who_observed(),
   search_prompt_block() with secret redaction — agents query what
   other workers observed without reading full traces.

2. Checkpoint/rollback (exploration_graph.rs): checkpoint(), rollback(),
   list_checkpoints(), auto_checkpoint(), rollback_before() — snapshot
   dual-graph state between phases, rollback failed branches.

3. Collaborative intent negotiation (planner.rs): Negotiator with
   AgentProfile scoring, multi-agent bid resolution, capacity-aware
   assignment, specialization matching. negotiate_and_assign() applies
   results to todolist. complete_with_profile()/fail_with_profile()
   track agent success rates for future rounds.

All 557 tests pass.
2026-11-14 12:41:23 -03:00