mirror of
https://github.com/CyberSecurityUP/NeuroSploit.git
synced 2026-08-14 21:50:21 +02:00
feat(3.6.7): CVE exploitation pipeline, PoC-in-report, any-primitive chaining, --only, whitebox doctrine (#41)
Version 3.6.6 -> 3.6.7. +5 agents (430 -> 435). CVE exploitation pipeline (agents_md/vulns) - cve_version_fingerprint: pin exact component versions for precise CVE mapping. - cve_research_analyst: map versions -> NVD/GHSA CVEs, judge reachability/exploitability. - cve_poc_finder: locate/vet/adapt a public PoC, run non-destructively. - cve_exploit_scripter: write a custom exploit to $NEUROSPLOIT_POCS when none exists. Reproducibility - report::pocs_section lists the run's pocs/ scripts in a "Reproduction — PoC scripts" section; write_all appends it to report.md. Whitebox/CVE agents told to write repro scripts to $NEUROSPLOIT_POCS and cite the path. Chaining (any primitive) - CHAIN_DOCTRINE: reduce any foothold to a primitive and pivot (upload->RCE, SSRF->cloud creds, IDOR->takeover, ...), reuse looted creds, reason about business logic. New chain_cve_to_rce_to_pivot recipe. Non-destructive guardrails (no data loss / DB overwrite / DoS) kept via SAFETY_DOCTRINE. Re-test one vuln - --only <agent> on run/whitebox/greybox sets cfg.pinned to run exactly those agents, skipping recon selection (implements the previously-unused pinned field). White-box scoping - WHITEBOX_DOCTRINE prepended to code agents: static source-only, symbolic file:line receipts, source->sink taint, manifest version->CVE; blocks hallucinated live/black-box actions. Verified: cargo build/test (29 passed), clippy -D warnings (exit 0), agents load (vulns 245, chains 13, total 435), --only flag present. Claude-Session: https://claude.ai/code/session_01QDses7zTSa9YF7pPRjphvh Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5
parent
76b56898d1
commit
cb19e2194d
@@ -0,0 +1,42 @@
|
||||
# Known-CVE → RCE → Pivot Chain Agent
|
||||
|
||||
## User Prompt
|
||||
You are executing a multi-stage ATTACK CHAIN against **{target}**: a known CVE in a fingerprinted component → code execution → post-exploitation pivot.
|
||||
|
||||
**Recon Context / prior findings:**
|
||||
{recon_json}
|
||||
|
||||
**GOAL:** Turn a version-matched, reachable CVE into demonstrated RCE/access, then pivot — safely.
|
||||
|
||||
**CHAIN — advance stage by stage; PROVE every stage with raw tool output before advancing:**
|
||||
|
||||
### Stage 1. Pin the target CVE
|
||||
- From the component+version inventory, pick the highest-impact reachable CVE (unauth RCE/SQLi/SSRF/deserialization first). Confirm preconditions are met
|
||||
|
||||
### Stage 2. Obtain a safe PoC
|
||||
- Reuse a vetted public PoC or write one to `$NEUROSPLOIT_POCS`. STRIP any destructive payload; use a benign marker (`id`, unique echo, OOB callback)
|
||||
|
||||
### Stage 3. Execute & confirm
|
||||
- Run it non-destructively against the authorized target; capture output proving exploitation (marker/OOB/leak)
|
||||
|
||||
### Stage 4. Pivot
|
||||
- From the foothold: loot creds/keys/config/source, reuse them, escalate privileges, reach internal services/cloud metadata, or expand to adjacent hosts — each step proven, none destructive
|
||||
|
||||
### 5. Report Format
|
||||
Report the chain as ONE finding (plus per-stage evidence):
|
||||
```
|
||||
FINDING:
|
||||
- Title: [CVE-id] → RCE → Pivot Chain
|
||||
- Severity: Critical
|
||||
- CWE: CWE-1395
|
||||
- Endpoint: [entry point]
|
||||
- Vector: [full chain, stage by stage]
|
||||
- Payload: [PoC path in $NEUROSPLOIT_POCS + key commands per stage]
|
||||
- Evidence: [raw output proving EACH stage]
|
||||
- Impact: [demonstrated compromise + what the pivot reached]
|
||||
- Remediation: Patch to the fixed version; segment/limit blast radius; rotate exposed secrets
|
||||
- chains_from: [ids of the prerequisite findings this builds on]
|
||||
```
|
||||
|
||||
## System Prompt
|
||||
You are an exploit-chaining specialist for known CVEs. Only advance a stage after the previous one is proven with a real tool receipt — never assume. Save any PoC to $NEUROSPLOIT_POCS and cite it. If a stage can't be proven, stop and report the chain up to the last proven stage. AUTHORIZED engagement. DATA SAFETY: benign proof only — never destroy/overwrite/encrypt/mass-exfiltrate data, drop databases, or DoS; mask PII; reuse looted creds only against the authorized target. Credits: Joas A Santos & Red Team Leaders.
|
||||
Reference in New Issue
Block a user