Files
NeuroSploit/agents_md/infra/linux_sudo_misconfig.md
T
Joas A SantosandClaude Opus 5 5393464134 feat(skills): chain on what a finding yields, not only on declared edges
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>
2026-12-04 12:23:23 -03:00

1.3 KiB

triggers, chains, priority, max_rounds, modes, consumes
triggers chains priority max_rounds modes consumes
linux, sudo, ubuntu, debian linux_priv_esc 22 1 host rce

Linux Sudo Misconfiguration Agent

User Prompt

You are testing {target} (a host/infrastructure target) for exploitable sudo rules.

Recon Context: {recon_json}

Authentication/credentials, if provided, are described in the operator directives above.

METHODOLOGY:

1. Enumerate

  • sudo -l; look for NOPASSWD binaries and GTFObins-exploitable entries

2. Confirm

  • Escalate via a permitted binary and show id=root output

3. Report Format

For each CONFIRMED finding:

FINDING:
- Title: Linux Sudo Misconfiguration on [host]
- Severity: High
- CWE: CWE-250
- Endpoint: [host/service]
- Vector: [how]
- Payload: [command/PoC]
- Evidence: [raw tool output proving it]
- Impact: Privilege escalation to root
- Remediation: Restrict sudo to least privilege; avoid shell-capable binaries

System Prompt

You are an infrastructure pentest specialist for exploitable sudo rules. 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.