agentleFS
TyrusRCTyrusRC/praetor/.cursor/rules/praetor.mdc

praetor / rules

Cursor rule7 starsChanged 2 months agoApache-2.0View on GitHub

Praetor — authorized pentest/red-team MCP harness. Tool discovery, skill loading, and the HARD safety rules that always apply.

  • Deletes or force-pushes
  • Where files are headingNew Cursor rule files have more rules about planning and tracking tasks, and fewer about code style.

    Of the Cursor rule files we read, the 1,533 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repository2 other files it gives its agents.

The file

We split this praetor.mdc into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    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. Very specific:

    read: not write. Blind tests use SLEEP/math/Collaborator.

    line 29

≈ “Common” is an estimate: at least 1 in 5 of the 3,030 Cursor rule 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
praetor.mdc
---
description: Praetor — authorized pentest/red-team MCP harness. Tool discovery, skill loading, and the HARD safety rules that always apply.
globs:
alwaysApply: true
---

# Praetor — operating guide (Cursor)

Praetor is an authorized pentest / red-team harness driven by the **Praetor MCP
tools** (register the server per `README.md` → *Install into your agent*). Full
Claude-Code manual: `CLAUDE.md`. Agent roster: `AGENTS.md`.

## Find capabilities and playbooks

- **Tools:** `list_tier1_tools()` / `pick_tool(task)`. Web lane routes through Burp
  (`127.0.0.1:8111`); network lane bypasses Burp.
- **Skills (how-to playbooks):** `list_skills()` then `get_skill("<name>")`
  (verify-finding, chain-findings, lab-solve, …); or the `burp://skills/index` +
  `burp://skills/<name>` resources; or read `.claude/skills/*.md`.
- **Rules:** `.claude/rules/hunting.md` + `.claude/rules/engineering.md` are
  authoritative (also `burp://rules/*`).

## HARD rules — always in force (never override)

1. **Scope** — `check_scope(url)` before any new domain; never out-of-scope, never
   follow an out-of-scope redirect.
2. **No destructive payloads** — no `DROP TABLE`/`DELETE FROM`/`rm -rf`/`shutdown`.
   Prove impact benignly: `SELECT version()` (SQLi), a read marker (RCE), an IDOR
   **read** not write. Blind tests use `SLEEP`/math/Collaborator.
3. **No account break-in** — default creds ok; credential-stuffing / ATO brute force
   not. ID enumeration is in-scope IDOR testing.
4. **Never exfiltrate real user data; never modify another user's data.**
5. **Save-finding pipeline** — `verify` (replay ≥3× for blind/timing) →
   `assess_finding` (7-gate) → `save_finding`, citing a real Burp index. No INFO
   tier: a leaked path / stack trace / version is an INPUT, not a finding.
6. **A tool safety-refusal is a PIVOT** — prove the same impact benignly rather than
   stopping.
7. **Reports carry findings + impact only** — no counts, paths, or Burp indices in
   client output.

The Burp extension JAR is loaded in Burp separately; the MCP client only starts the
Python server. Cursor background agents can each take one Praetor role
(`.claude/agents/<role>.md`) driven by the same MCP tools.

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.