Skip to content
aelsPublic

About

Hypothesis-driven red-team plugin for AI agents, with deterministic routing, evidence gates, and a curated security-skill library. For authorized security testing only.

Resources

Contributing

Security policy

Stars

110 stars

Watchers

1 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

Repository files navigation

RedCat. Use when ARTEX is failing.

A hypothesis-driven red-team plugin (pentest harness) for AI agents. For authorized security testing only.

Most pentest skills are pipelines: recon-> scan -> exploit -> report. If a step fails, they just move on. This plugin works like a human tester instead: every observation becomes a hypothesis, every hypothesis is proved or disproved with evidence, and a failure sends you back, not forward. A machine-checked ledger keeps the whole engagement honest.

It combines three parts:

  • Brain — Black-cat methodology. One-time authorization gate, an attack state machine with backward edges (RECON <-> ENUMERATE <-> VALIDATE -> EXPLOIT -> POST-EXPLOIT -> REPORT), an append-only case ledger, and a machine exit gate: you cannot write the final report until every confirmed finding has observation + reproduction + impact evidence (verify --report).
  • Bookkeeping — deterministic routing and gates. A router script picks the right technique file from your task text, an entry gate blocks all action until scope is locked, and a CI script proves the whole index is coherent.
  • Content — a library of 1687 curated skills. Collected from 112 upstream GitHub repos plus local RedCat skills, scored one by one, best-per-topic, duplicates removed. Covers the full kill chain: recon, web, AD, cloud, database, reversing, evasion, privesc, lateral movement, C2/exfil, wireless/IoT/hardware, web3, crypto, AI/LLM, exploit development, reporting.

The library lives outside the skill folder on purpose: agents read one skill file only when the router names it. Nothing is auto-loaded into context.

Why RedCat

  • Unlike ARTEX, RedCat is not autonomous. RedCat is a surgical knife, and you are still the surgeon.
  • Most complete and deep recon skill among all other pentest/redteam harnesses. My own knowledge of 20+ years of hacking.
  • Most complete skill library, sorted and ranked. No trash.
  • Own skill router to handle a large skill library. Most of the skills are rewritten in STE, saving context.
  • Over 20k$ in bounty programs earned.
  • Over 100+ targets pwned (including Fortune 500), where artex failed.
  • Hardened scope disciplene. Really.
  • Truly model-agnostic. Skills that expands model own knowledge, but never limits it.
  • Installs missing tools on the fly, cuz 100+ of them will be used.
  • Works almost like a human, googling what the model doesn't know (new vulns, unknown behaviors).
  • Component deep-dive skill. RedCat will identify, find, download, decrypt, and pwn IoT firmware (if find any exposed) by its own to break into a target.
  • curl-impersonate/curl_cffi with real Chrome fingerprint everywhere. No curl. It's 2026 after all.
  • Initially RedCat was made for war. But made with love. Use it responsibly. FBI is not a joke.

Requirements

  • Python 3.9+ (all scripts are stdlib-only)
  • git

Installation

Claude Code (recommended, easiest)

Two commands inside Claude Code:

/plugin marketplace add aels/redcat
/plugin install redcat@redcat

Then start it:

/skill redcat

That is all. The plugin ships its skills, hooks, scripts, and the full library in one package. A SessionStart hook reloads your case state automatically when you come back to a project.

If you prefer a local copy:

git clone https://github.com/aels/redcat.git
cd redcat
/plugin marketplace add .
/plugin install redcat@redcat

Hermes Agent (NousResearch)

git clone https://github.com/aels/redcat.git ~/.hermes/plugins/redcat

Then register the skill directory as an external (read-only) source in your Hermes config.yaml:

skills:
  external_dirs:
    - ~/.hermes/plugins/redcat/skills

Restart Hermes. The skill appears as redcat. Note: install the whole repo, not a bare SKILL.md URL — the router, scripts, and library are separate folders that the skill needs at runtime. If the library is not found, set:

export REDCAT_LIBRARY=~/.hermes/plugins/redcat/library

Gemini CLI

Gemini CLI discovers skills in ~/.gemini/skills/ (user-wide) or .gemini/skills/ (per project). One-time setup:

git clone https://github.com/aels/redcat.git ~/.local/share/redcat
mkdir -p ~/.gemini/skills
ln -s ~/.local/share/redcat/skills/redcat ~/.gemini/skills/redcat
export REDCAT_LIBRARY=~/.local/share/redcat/library   # add to your shell profile

Restart Gemini CLI. Activate with a prompt like: use the redcat skill for this authorized test.

OpenCode

OpenCode reads skills from ~/.agents/skills/ (shared standard) and ~/.config/opencode/skills/:

git clone https://github.com/aels/redcat.git ~/.local/share/redcat
mkdir -p ~/.config/opencode/skills
ln -s ~/.local/share/redcat/skills/redcat ~/.config/opencode/skills/redcat
export REDCAT_LIBRARY=~/.local/share/redcat/library   # add to your shell profile

Optionally allow the skill in opencode.json:

{ "permission": { "skill": { "redcat": "allow" } } }

Any other agent that supports the Agent Skills standard (Codex CLI, Cursor, etc.)

The skill is a plain folder of Markdown + Python. Generic install:

git clone https://github.com/aels/redcat.git ~/.local/share/redcat
mkdir -p ~/.agents/skills
ln -s ~/.local/share/redcat/skills/redcat ~/.agents/skills/redcat
export REDCAT_LIBRARY=~/.local/share/redcat/library

If your agent does not scan ~/.agents/skills/, just tell it once: "Read and follow ~/.local/share/redcat/skills/redcat/SKILL.md". Everything else is triggered from that file.

Updating

cd <where you cloned> && git pull

Claude Code users: /plugin marketplace update redcat.


First run (what happens)

  1. You describe the target. The skill asks once about authorization: scope, depth, time window, egress rules. Answers are locked for the session.
  2. It runs scripts/route.py --hint "<your task>" and opens exactly one router from techniques/ (15 routers: recon, web, ad, cloud, database, reversing, evasion, privesc, lateral, c2-exfil, special, fuzzing-vulnrepro, exploit-dev, reporting, methodology).
  3. The router points to a specific library skill (library/...). Only that file is read.
  4. In Engagement mode every hypothesis, evidence item (SHA-256 hashed artifacts), and verdict goes to case/ledger.jsonl — append-only, machine-checked.
  5. Before the report, case_ledger.py verify --report must pass: every confirmed finding needs observation + reproduction + impact, and no provisional verdicts may remain. If it fails, the report is blocked.

Two machine gates protect you: case_guard.py at the start (no locked scope → no action), verify --report at the end (no complete evidence chain → no report).

Testing

python3 skills/redcat/scripts/smoke.py .        # end-to-end smoke test
python3 skills/redcat/scripts/verify_index.py .  # routing coherence + ranker data checks
python3 skills/redcat/scripts/golden_rank.py .   # golden/property tests of ranker v2

All must print PASS. They run in CI on every change. After editing library/INDEX.tsv, regenerate the ranker statistics with python3 skills/redcat/scripts/build_rank.py --index library/INDEX.tsv --out library/INDEX.rank.json (verify_index.py fails on a stale library/INDEX.rank.json).

Repository layout

.claude-plugin/          plugin + marketplace manifests
hooks/hooks.json         SessionStart hook (reloads case blackboard)
skills/redcat/
├── SKILL.md             core: auth gate, modes, routing, state machine, hard rules
├── techniques/          15 router files (signal -> hypothesis -> library pointer)
├── scripts/             case_ledger.py, route.py, case_guard.py, build_rank.py,
│                        verify_index.py, smoke.py, golden_rank.py, session_context.py
│                        (+ data/: domain_tokens.txt, synonyms.tsv, adjacency.tsv)
└── templates/           scope.md, finding-report.md, engagement-report.md
library/                 1687 curated skills + INDEX/MANIFEST/LINKS/GAPS + license evidence
NOTICE.md                upstream credits and per-skill provenance
LICENSE                  MIT (glue code; upstream keeps its own licenses)

Legal

This plugin is for explicitly authorized security testing only: your own systems, signed penetration-testing contracts, bug-bounty scope, CTF/lab environments. The authorization gate exists to lock scope before any action. You are responsible for having permission for every target you test.

Redistribution

The bundled library retains upstream provenance and license evidence in NOTICE.md, library/LICENSES.tsv, and library/upstream-licenses/. Upstream content remains under its own license. Content without an explicit permissive license is included only with the maintainer's intended usage rights; review obligations before redistribution.

Credits

About

Hypothesis-driven red-team plugin for AI agents, with deterministic routing, evidence gates, and a curated security-skill library. For authorized security testing only.

Resources

Contributing

Security policy

Stars

110 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages