agentleFS
mahumadadmahumadad/quarry/skills/core/research-first/SKILL.md

research-first

Skill1 starsChanged 11 days agoMITView on GitHub

Mandatory pre-hunt intelligence gathering from knowledge base. Before writing ANY payload, consult references/vuln-classes/{class}.md and references/chains/ for known patterns.

12 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use council.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • MicrosoftSkill

    council

    Convene the persona panel — six orthogonal review lenses — on a target. Cold independent fan-out, debate-to-consensus, synthesized verdict with recorded dissent and a roster manifest.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 11 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Never start with novel payloads.

    line 64
  2. Distinctive:

    Note the bypass: if any WAF/filter was circumvented

    line 70
  3. Distinctive:

    Before any hunt agent fires its first payload:

    line 76
  4. Very specific:

    Don't cargo-cult payloads.

    line 95

“Common” is measured: kept by at least 6 in 10 of the 11 edited versions of this file we could read. “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

Research-First Discipline

Rule: NO payload leaves your hands without consulting the knowledge base.

Why This Exists

AI agents waste 40-60% of tool calls reinventing known techniques. The knowledge base (references/vuln-classes/ and references/chains/) contains field-tested payloads, bypass patterns, and chain recipes that cover the common cases. Skipping this step means slower engagements, weaker findings, and missed chains.

Protocol

Before Every Hunt

  1. Identify the vuln class you're about to test (e.g., xss, sqli, ssrf).
  2. Read the cheatsheet: references/vuln-classes/{class}.md
    • Detection payloads (what to try first)
    • Bypass patterns per WAF/framework
    • Validation criteria (when is it real)
    • Common mistakes for this class
  3. Read chain patterns: references/chains/chain-patterns.md
    • What chains from this vuln class
    • What chains INTO this vuln class
    • Known escalation paths
  4. Check AppProfile (engine/app_profile.py):
    • What tech stack? → Use framework-specific payloads
    • What WAF/CDN? → Use known bypass patterns
    • What auth mechanism? → Adapt to session handling
  5. Check Brain (engine/brain.py):
    • What capabilities do we already have? → Skip redundant probes
    • What was already tried? → Don't repeat exhausted vectors
    • What vectors are active? → Coordinate, don't collide

Payload Selection Order

1. Known-good payload from cheatsheet for this tech stack
2. Variant of known-good adapted to observed WAF/encoding
3. Novel payload (only after 1 and 2 exhausted)

Never start with novel payloads. The cheatsheet payloads have been field- tested; novel payloads haven't.

After Every Finding

  1. Record the working payload back to the Brain
  2. Note the bypass if any WAF/filter was circumvented
  3. Check chain anchors in the hunt skill's Chain Anchors section
  4. Update capabilities in the Brain for chain engine

Validation Gate

Before any hunt agent fires its first payload:

□ vuln-class cheatsheet loaded? → if not, load it
□ AppProfile consulted? → if not, read it
□ Brain checked for prior work? → if not, check it
□ Payload from cheatsheet, not invented? → if novel, justify why

Failing this gate means the agent skipped research. The engagement controller SHOULD reject the action and force a research pass.

Gotchas

  • Cheatsheets are starting points, not exhaustive. If the target uses an unusual framework, the agent MUST adapt — but start from the closest known pattern.
  • Bypass patterns age fast. If a known bypass fails, mark it exhausted in the Brain and try the next one.
  • Don't cargo-cult payloads. A cheatsheet payload for PHP won't work on Node.js SSTI. Match the payload to the confirmed tech stack.

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.