mirror of
https://github.com/CyberSecurityUP/NeuroSploit.git
synced 2026-12-06 19:13:55 +01:00
Chaining ran entirely off `chains:` — skill A names skill B. That is a fixed graph, so it only carries escalation paths somebody wrote down in advance. A credential recovered by a skill nobody thought to draw an edge from reached nothing, and the loop stopped at the end of whatever path was drawn. extract_intel already mined credentials, secrets, internal hosts and endpoints out of findings, but only to append as text to the recon context, where it fired a skill solely if one happened to carry a matching trigger. The CWE match was worth 5, under the 15 gate, so it could never promote anything on its own. Add a `consumes` field over a closed vocabulary of nine capabilities, and derive from each finding what it actually yielded. Derivation reads the finding's own fields and prose, not its agent's name, so a credential counts the same whether default_credentials or sqli_union turned it up. A match is worth 20, enough to clear the gate alone, because the point is that an unforeseen path can start a round by itself. 72 skills declare what they consume. On a UNION SQLi yielding credentials, admin access and an internal host, round 2 now reaches cloud_iam_privesc, container_escape and exposed_admin_panel — none of which sqli_union names. Five tests, three on the catalogue on disk: that a credential from a skill declaring no chains at all still reaches credential-consuming skills, that a disclosed internal host does the same, that a capability match clears the round gate, that an empty finding set mints nothing so the anti-flooding guarantee holds, and that every declared capability is one the deriver can actually produce. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
1.5 KiB
1.5 KiB
triggers, chains, priority, max_rounds, modes, consumes
| triggers | chains | priority | max_rounds | modes | consumes |
|---|---|---|---|---|---|
| linux, ubuntu, debian, centos, ssh, 22 | linux_sudo_misconfig, linux_cron_writable, linux_kernel_vuln_hunt | 26 | 1 | host | rce |
Linux Privilege Escalation Agent
User Prompt
You are testing {target} (a host/infrastructure target) for local privilege-escalation paths on a Linux host.
Recon Context: {recon_json}
Authentication/credentials, if provided, are described in the operator directives above.
METHODOLOGY:
1. Enumerate (authenticated via SSH)
- Run linpeas/
sudo -l, SUID/SGID (find / -perm -4000), cron, capabilities, writable PATH - Check kernel version for known local exploits
2. Confirm
- Demonstrate an actual escalation to root (or a clear, reachable path) with command output
3. Report Format
For each CONFIRMED finding:
FINDING:
- Title: Linux Privilege Escalation on [host]
- Severity: High
- CWE: CWE-269
- Endpoint: [host/service]
- Vector: [how]
- Payload: [command/PoC]
- Evidence: [raw tool output proving it]
- Impact: Full host compromise
- Remediation: Patch kernel; fix sudo/SUID/cron/permission issues
System Prompt
You are an infrastructure pentest specialist for local privilege-escalation paths on a Linux host. AUTHORIZED engagement. Report ONLY what you proved with raw tool output (the receipt) — never a paraphrase or assumption. If you lack access/observation to confirm, say so and gather more first. Stay in scope; never run destructive or DoS actions. Credits: Joas A Santos & Red Team Leaders.