Commit Graph
353 Commits
Author SHA1 Message Date
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
Joas A Santos 1e435d2c5d Merge pull request #68 from JoasASantos/fix/graph-detail-and-reload-view
fix(web): graph finding detail + don't resume finished run on reload
2026-11-21 09:47:39 -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
Joas A Santos c1fc328c58 Merge pull request #67 from JoasASantos/fix/host-scope-voter-and-graph-ui
fix(harness,web): host-mode scope wiring, host-aware validator, graph UI
2026-11-21 09:45:24 -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
Joas A Santos f261369614 Merge pull request #66 from JoasASantos/feat/cag-anti-hallucination
feat(harness): CAG anti-hallucination pipeline + cross-domain attack path chaining
2026-11-20 14:56:36 -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
Joas A Santos 851f965935 Merge pull request #65 from JoasASantos/fix/output-truncation-safeguards
fix(harness): raise Claude max_tokens to 16k and add truncation detection
2026-11-18 22:41:50 -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
Joas A Santos 3062dabf05 Merge pull request #64 from JoasASantos/feat/severity-floor
feat(harness): CWE-based severity floor prevents over-downgrading
2026-11-18 20:06:28 -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
Joas A Santos ea7c702151 Merge pull request #63 from JoasASantos/fix/deepseek-model-names
fix(deepseek): correct model names to match API
2026-11-18 17:12:34 -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
Joas A Santos ee4f4403bb Merge pull request #62 from JoasASantos/feat/web-ui-improvements
feat(web): model selector, key persistence, toolbox and UI fixes
2026-11-18 15:54:27 -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.
v4.4.3
2026-11-18 10:17:11 -03:00
Joas A Santos 150110cd45 Merge pull request #61 from JoasASantos/feat/reactive-engine
feat(mcp): global MCP server package with 48 security tools
2026-11-18 10:09:29 -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
Joas A Santos 571bc8d35e Merge pull request #60 from JoasASantos/feat/reactive-engine
feat(c2+toolbox): C2 framework, 200+ security tools catalog, WebShells and MCP integration
2026-11-18 09:24:21 -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
Joas A Santos b9abdaa0c9 Merge pull request #59 from JoasASantos/feat/reactive-engine
feat(reactive): event-driven engine with graph reasoning, knowledge base, MCP profiles and web UI
2026-11-17 20:21:55 -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
Joas A Santos 259d15910c Merge pull request #58 from JoasASantos/release/v4.4.2
chore(release): v4.4.2
v4.4.2
2026-11-15 23:05:07 -03:00
CyberSecurityUP c1a15f2e84 chore(release): v4.4.2 — managed Neo4j and populated exploration graph 2026-11-15 23:04:45 -03:00
Joas A Santos 1c4e509d8a Merge pull request #57 from JoasASantos/feat/populate-dual-graph
feat(graph): populate the dual graph from recon and findings
2026-11-15 23:00:05 -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
Joas A Santos cdc4a15e73 Merge pull request #56 from JoasASantos/feat/neo4j-graph
feat(graph): managed Neo4j, exploration graph sync and chain leads
2026-11-15 22:57:36 -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
Joas A Santos 718404ec35 Merge pull request #55 from JoasASantos/feat/wire-ops-modules
feat(harness): wire operator constraints and cold digests into the pipeline
2026-11-15 22:32:35 -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
Joas A Santos e236765d12 Merge pull request #54 from JoasASantos/feat/artex-inspired-economy
feat(harness): Artex-inspired operations engineering + v4.4.1
v4.4.1
2026-11-15 22:29:41 -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
Joas A Santos 889a713080 Merge pull request #53 from JoasASantos/feat/artex-inspired-economy
feat(harness): Artex-inspired adaptive autonomy engine + trace search + negotiation
2026-11-15 16:44:09 -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
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 da136453d3 fix(harness): resolve Ollama 404 by auto-appending /v1 to base URL
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
2026-11-14 12:17:28 -03:00
Joas A Santos f7de9a6b4c Merge pull request #51 from JoasASantos/feat/artex-inspired-economy
feat(harness): per-agent token ledger and opt-in shared prompt prefix
2026-11-09 10:46:02 -03:00
CyberSecurityUP 23c2fc684f feat(harness): per-agent token ledger and opt-in shared prompt prefix
- 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.
2026-11-09 10:45:42 -03:00
CyberSecurityUP 14afa7e8ca feat(harness,cli): expose model sampling temperature
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
2026-11-04 20:34:56 -03:00
CyberSecurityUPandClaude Opus 4.8 92e8959f4e docs(readme): link the website and live docs (neurosploitai.github.io)
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>
2026-10-19 00:21:41 -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.
v4.4.0
2026-10-18 23:30:46 -03:00
CyberSecurityUP 48a40317f1 feat(harness): recon-driven agent selection with negative filtering and stack-aware scoring
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.
2026-10-18 22:52:05 -03:00
CyberSecurityUP e4f6b42f37 feat(harness): add MCP hot-reload, reference prompts, and agent autonomy levels
- 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.
2026-10-18 22:28:26 -03:00
CyberSecurityUP afa11bcb67 chore(web): bump web console version to v4.4.0 2026-10-18 19:54:40 -03:00
CyberSecurityUP cd3da990d9 chore: bump version to v4.4.0 and update README with resilience features 2026-10-18 19:52:51 -03:00
CyberSecurityUP 5af21f13f0 feat(harness): add LLM dedup, budget warnings, agent nudge, image budget, and run resume
- LLM-based finding dedup: fast-path deterministic (title+endpoint, CWE+endpoint) + LLM semantic judge for fuzzy cases
- Progressive budget warnings at 70/85/95% with stop-new-agents gate at 95%
- Token tracking on ModelPool (record_tokens on every completion, set_token_limit from budget config)
- Agent lifecycle nudge: retry failed agents up to 3x with progressively simplified prompts
- Image budget enforcement: cap base64 screenshots in prompts, strip-all for recovery
- Run snapshot/resume: persist RunSnapshot to workdir, skip already-completed agents on resume
- 21 unit tests for all new features (500 total pass)
2026-10-18 19:52:10 -03:00