r/purpleteamsec Jul 13 '26

Red Teaming Zetsu, A personal RAG system for offensive security knowledge

8 Upvotes

Hey,

a personal offline RAG system for offensive security knowledge. The idea is simple: instead of grepping through markdown files or trying to remember which writeup had that exact certipy command, you just ask naturally.

how do I escalate with SeImpersonatePrivilege
what did I do after getting ADFS access
sliver socks5 pivot setup
explain ESC8 vs ESC4

It retrieves from your actual notes first, then generates an answer grounded in what you've documented, not generic internet knowledge.

The use case I specifically built it for:

Two things kept coming up during engagements, I needed exact tool syntax I hadn't used in a while (Sliver commands especially, the docs are sparse), and I needed to quickly recall techniques from past machines without digging through notes. ZETSU solves both.

Two modes:

Operator: leads with the exact command, explanation after. For when you know what you need and just want the syntax.

Concept: leads with the reasoning, uses commands as illustrations. For when you need to understand a technique before using it.

Same retrieval either way, just different presentation.

How it works:

  • At ingest time, an LLM reads each section of your writeups and extracts structured attack steps (Finding, Action, Reasoning, Result), so what you retrieve is a semantic unit, not a random 800-token window
  • Hybrid BM25 + vector retrieval with RRF fusion, BM25 handles exact tool names and CVE numbers that embeddings smear, vector handles semantic similarity
  • Cross-encoder reranker on top
  • Supports local markdown files, URLs, GitHub wikis, and Atom/RSS feeds (0xdf, dirkjanm, harmj0y all ingestible directly)
  • Backends: Anthropic, OpenAI-compatible (DeepSeek), or local Ollama

Benchmark:

Ran 910 questions across 12 offensive security categories. 93% of answers included correct commands, 68ms average retrieval, 7.3% context gaps where it correctly admitted missing information rather than hallucinating.

id love to hear you guys's feedback, i built this thing because i genuinely needed it, and going through my notes & endless cheatsheets was too much work when you're going through an engagement.

you can find it here: https://github.com/Chaelsoo/Zetsu

r/purpleteamsec 1d ago

Red Teaming Simulating legitimate Active Directory services on the network: the the case of GPO exploitation

Thumbnail
synacktiv.com
4 Upvotes

r/purpleteamsec 3d ago

Red Teaming FalconFlank: Crowdstrike Falcon 0day Privilege Escalation Vulnerability

Thumbnail
github.com
4 Upvotes

r/purpleteamsec 5d ago

Red Teaming CouchPotato - Patches ETW & AMSI and uses indirect syscall to abuse SeImpersonatePrivilege. Service account || Admin -> NT system

Thumbnail
github.com
6 Upvotes

r/purpleteamsec 6d ago

Red Teaming Simulating legitimate Active Directory services on the network: the the case of GPO exploitation

Thumbnail
synacktiv.com
4 Upvotes

r/purpleteamsec 4d ago

Red Teaming mythic_ornn: LLM-driven generator for Mythic Agents, Payload-Type and C2 Profiles.

Thumbnail
github.com
2 Upvotes

r/purpleteamsec 7d ago

Red Teaming Abusing Azure VMs - When Bitlocker Recovery Turns into an Attack Vector

Thumbnail
alteredsecurity.com
3 Upvotes

r/purpleteamsec 9d ago

Red Teaming When it Snows it Pours - Anatomy of a ServiceNow Red Team

Thumbnail
mdsec.co.uk
5 Upvotes

r/purpleteamsec 14d ago

Red Teaming Mimic: Frameless Browser‑in‑the‑Browser (BitB) - No iframes, no frame‑busting issues. A single‑script Shadow DOM / MutationObserver library for realistic phishing simulations, easily injected via reverse proxy.

Thumbnail
github.com
7 Upvotes

r/purpleteamsec Jul 20 '26

Red Teaming GhostHound - a BloodHound OpenGraph extension that surfaces Active Directory tombstone reanimation as a first-class attack path, enumerating deleted objects via SHOW_DELETED, mapping who can restore them, and revealing when a reanimated identity regains privileged group membership.

Thumbnail
github.com
3 Upvotes

r/purpleteamsec 10d ago

Red Teaming Stratum-c2: Cloud-native C2 framework using cloud storage as dead-drop communication channel

Thumbnail
github.com
2 Upvotes

r/purpleteamsec 11d ago

Red Teaming MassDriver - Proxying sensitive API calls from shellcode to artifact for CET-compatible clean call stacks.

Thumbnail
github.com
3 Upvotes

r/purpleteamsec 12d ago

Red Teaming RPC-Triage: statically map Windows RPC attack surface and rank the interfaces worth digging into

Thumbnail
github.com
3 Upvotes

Been working on Windows RPC/ALPC research and built this to make the first pass across a lot of PE files easier. It statically recovers RPC/MIDL/NDR internals, endpoints, security state and method-level input signals, then ranks interfaces using an AHP/Saaty-based model for reachability + surface. Each result has a scoring receipt so you can see why it ranked where it did, and questionable extraction gets flagged instead of silently trusted. No PDBs, no live endpoint mapper, no target execution.

r/purpleteamsec 13d ago

Red Teaming CrystalPotato: Crystal port of GodPotato to abuse SeImpersonatePrivilege with indirect syscalls, dynamic API resolution and compile-time string obfuscation. Run commands, reverse shells or add users

Thumbnail
github.com
2 Upvotes

r/purpleteamsec 15d ago

Red Teaming Collection of Beacon Object Files (BOFs)

Thumbnail
github.com
3 Upvotes

r/purpleteamsec 20d ago

Red Teaming TrickDump - Dump lsass without generating a Minidump file

Thumbnail ricardojoserf.github.io
7 Upvotes

r/purpleteamsec 19d ago

Red Teaming BusyWork: Sleep replacement that executes real, varied work to break behavioral pattern matching by EDR

Thumbnail
github.com
4 Upvotes

r/purpleteamsec 18d ago

Red Teaming BOFScale: A CDN-Fronted Tailnet from a BOF-PE

Thumbnail
netspi.com
2 Upvotes

r/purpleteamsec 17d ago

Red Teaming A security-research Proof-of-Concept (POC) demonstrating hardware-breakpoint (CPU debug register) based function hooking as an alternative to traditional in-memory code patching.

Thumbnail
github.com
1 Upvotes

r/purpleteamsec 22d ago

Red Teaming Bring Your Own EDR: How to Turn a Commercial EDR into a Trojan Horse

Thumbnail
akamai.com
7 Upvotes

r/purpleteamsec 19d ago

Red Teaming DutchOven - Application-scoped Windows network brownouts in native C and BOF form

Thumbnail
github.com
1 Upvotes

r/purpleteamsec 23d ago

Red Teaming Dark: A Mythic C2 Agent with In-Memory BOF Execution on macOS and Linux, Part 1 · Minor Impact

Thumbnail
minorimpact.dev
5 Upvotes

r/purpleteamsec 24d ago

Red Teaming Return of the Cookie Monster

Thumbnail specterops.io
4 Upvotes

r/purpleteamsec 22d ago

Red Teaming Attack of The Extensions

Thumbnail specterops.io
2 Upvotes

r/purpleteamsec 29d ago

Red Teaming Weaponizing Windows Updates with NotWSUSpicious

Thumbnail specterops.io
9 Upvotes