agentleFS
zyphr-labszyphr-labs/bounty-harness/.claude/skills/privesc/SKILL.md

privesc

Skill1 starsChanged 3 months agoMITView on GitHub

This is a thin human-facing router. Use skill.yaml as the source of truth for exact commands, inputs, outputs, and workflow chaining.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Start with linux-quick-enum unless prior evidence points to a more specific workflow.

    line 16
  2. Very specific:

    Follow each workflow next mapping in skill.yaml after reviewing generated findings.

    line 17
  3. Distinctive:

    If a workflow has no script reference, treat it as a manual or tool-native workflow and use the closest phase runbook when available.

    line 18

≈ “Common” is an estimate: at least 1 in 5 of the 372,429 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Privesc

Overview

Privilege escalation enumeration and exploitation — Linux SUID, sudo, capabilities, cron, Docker/K8s escape

This is a thin human-facing router. Use skill.yaml as the source of truth for exact commands, inputs, outputs, and workflow chaining.

Quick Reference

  • Skill: privesc
  • Severity range: high, critical
  • Required tools: curl, python3, find, netstat, docker, kubectl
  • Expected input files: None listed in skill.yaml.
  • Scope check: confirm authorization before running intrusive or authenticated testing.

Workflow Selection

  • Start with linux-quick-enum unless prior evidence points to a more specific workflow.
  • Follow each workflow next mapping in skill.yaml after reviewing generated findings.
  • If a workflow has no script reference, treat it as a manual or tool-native workflow and use the closest phase runbook when available.
  • Runbooks: use runbooks/ and select the closest phase runbook when workflow names do not map 1:1.

Available Workflows

WorkflowPurposeScript pathsPrimary outputsEvidence
linux-quick-enumQuick Linux privilege escalation enumerationNo script reference in skill.yaml command.$OUTDIR/privesc/id.txt<br>$OUTDIR/privesc/sudo.txt<br>$OUTDIR/privesc/suid.txt<br>$OUTDIR/privesc/caps.txt<br>...$OUTDIR/privesc/evidence/
auto-enumRun automated enumeration tool (linPEAS)No script reference in skill.yaml command.$OUTDIR/privesc/linpeas_output.txt$OUTDIR/privesc/evidence/
suid-exploitCheck SUID binaries against GTFOBins for exploitationNo script reference in skill.yaml command.$OUTDIR/privesc/suid_analysis.txt$OUTDIR/privesc/evidence/
sudo-exploitCheck sudo permissions against GTFOBinsNo script reference in skill.yaml command.$OUTDIR/privesc/sudo_analysis.txt$OUTDIR/privesc/evidence/
capability-abuseAnalyze Linux capabilities for exploitation pathsNo script reference in skill.yaml command.$OUTDIR/privesc/dangerous_caps.txt$OUTDIR/privesc/evidence/
cron-abuseCheck for writable cron jobs and PATH abuseNo script reference in skill.yaml command.$OUTDIR/privesc/cron_analysis.txt$OUTDIR/privesc/evidence/
docker-escapeCheck if running in container and enumerate escape vectorsNo script reference in skill.yaml command.$OUTDIR/privesc/docker_escape.txt$OUTDIR/privesc/evidence/
credential-huntSearch for credentials in config files and historyNo script reference in skill.yaml command.$OUTDIR/privesc/credentials.txt<br>$OUTDIR/privesc/history.txt$OUTDIR/privesc/evidence/
evidencePackage privesc findingsNo script reference in skill.yaml command.$EVIDENCE_DIR/privesc/$EVIDENCE_DIR/privesc/

Evidence Required

  • Save raw request and response data for each confirmed finding.
  • Include timestamps, affected target, exact workflow name, tool versions, and reproduction steps.
  • Store screenshots or terminal captures in the workflow evidence directory when the workflow defines one.
  • Credential-hunting workflows may surface live passwords, tokens, session secrets, and authorization material from host config and history; redact and sanitize these values before they leave the host. Keep raw credential output local-only, never committed to git, and ensure evidence directories are covered by gitignore so secrets are never committed.
  • Evidence templates from skill.yaml:
  • suid: Output of find / -perm -4000 with GTFOBins cross-reference
  • sudo_escape: sudo -l output with GTFOBins cross-reference

References

  • Source of truth: skill.yaml
  • Runbooks: runbooks/
  • OWASP WSTG: WSTG-ATHZ-01, WSTG-ATHZ-02, WSTG-ATHZ-03, WSTG-ATHZ-04

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.