agentleFS
mmgordon82mmgordon82/agent-skills/skills/security-hunt/SKILL.md

security-hunt

Skill3 starsChanged 8 days agoMITView on GitHub

Use when reviewing your own code or product for exploitable, remotely reachable vulnerabilities (SSRF, auth bypass, injection, RCE, path traversal, XSS). Keeps only findings where user input provably reaches a meaningful sink; drops noisy local-only patterns.

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 6 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this to find exploitable issues in your own code and products, not for a broad best-practices review.

    line 8
  2. Distinctive:

    Run static tooling where it helps, but treat it as triage input only.

    line 46
  3. Distinctive:

    Read the real code path end to end.

    line 47
  4. Distinctive:

    Check whether the issue is already tracked before writing it up.

    line 50
  5. Distinctive:

    keep only findings with a clear network or user-controlled route

    line 64
  6. Distinctive:

    Before reporting a finding:

    line 90

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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

Security hunt

Use this to find exploitable issues in your own code and products, not for a broad best-practices review. Bias toward remotely reachable, user-controlled attack paths and throw away patterns that are local-only or theoretical.

When to use

  • Scanning a repository for exploitable vulnerabilities before release
  • Triage where the question is "can someone actually exploit this?" rather than "is this theoretically unsafe?"

For edge and header checks on a deployed site, use web-perimeter-audit.

Patterns that matter

PatternCWETypical impact
SSRF through user-controlled URLsCWE-918internal network access, cloud metadata theft
Auth bypass in middleware or API guardsCWE-287unauthorized account or data access
Remote deserialization or upload-to-RCE pathsCWE-502code execution
SQL injection in reachable endpointsCWE-89data exfiltration, auth bypass, data destruction
Command injection in request handlersCWE-78code execution
Path traversal in file-serving pathsCWE-22arbitrary file read or write
Auto-triggered XSSCWE-79session theft, admin compromise

Skip these

Usually low-signal unless there is a concrete remote path or impact:

  • Local-only pickle.loads, torch.load or equivalent with no remote path
  • eval() or exec() in CLI-only tooling
  • shell=True on fully hardcoded commands
  • Missing security headers by themselves
  • Generic rate-limiting complaints without exploit impact
  • Self-XSS requiring the victim to paste code manually
  • CI/CD injection, unless the pipeline is part of this review
  • Demo, example or test-only code

Workflow

  1. Set scope: which repo, services and deployments are under review.
  2. Find real entrypoints: HTTP handlers, uploads, background jobs, webhooks, parsers and integration endpoints.
  3. Run static tooling where it helps, but treat it as triage input only.
  4. Read the real code path end to end.
  5. Prove user input reaches a meaningful sink.
  6. Confirm exploitability and impact with the smallest safe PoC, against a local or staging instance.
  7. Check whether the issue is already tracked before writing it up.

Triage loop

semgrep --config=auto --severity=ERROR --severity=WARNING --json

--config=auto pulls rules from the Semgrep registry over the network. For offline targets, point --config at a local ruleset (a vendored rules file or directory) instead.

Then filter by hand:

  • drop tests, demos, fixtures, vendored code
  • drop local-only or non-reachable paths
  • keep only findings with a clear network or user-controlled route

Finding format

## Description
[What the vulnerability is and why it matters]

## Vulnerable code
[File path, line range, and a small snippet]

## Proof of concept
[Minimal working request or script]

## Impact
[What an attacker can achieve]

## Affected version
[Version, commit, or deployment tested]

## Fix
[Smallest change that closes the path]

Quality gate

Before reporting a finding:

  • The code path is reachable from a real user or network boundary
  • The input is genuinely user-controlled
  • The sink is meaningful and exploitable
  • The PoC works
  • The issue is not already tracked, or already covered by a known advisory for a dependency

Adapted from affaan-m/everything-claude-code (MIT) @3f14a10: security-bounty-hunter.

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.