Logo: Cerberus Re

Cerberus Re

Communautéit
OwenPawl
cerberus-re

Cerberus RE is a local Apple-focused reverse-engineering workbench for building a repeatable three-headed static/dynamic/instrumentation loop around Ghidra, LLDB, and Frida. Trigger when the user wants static Ghidra analysis, LLDB dynamic/live analysis, Frida instrumentation, decompilation, runtime traces, or structured reversing artifacts such as functions, strings, symbols, Objective-C metadata, Swift metadata, xrefs, and runtime hits.

Iwwersiicht

EditeurOwenPawl
Repositorycerberus-re-skill
Skill-Nummcerberus-re
Stären
219
Forks
23
Matgeliwwert Dateien
255
LizenzApache-2.0
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 255 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    OwenPawl huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Cerberus Re an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/OwenPawl/cerberus-re-skill/tree/main
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/OwenPawl/cerberus-re-skill.git \
  .claude/skills/cerberus-re
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Cerberus Re an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Cerberus Re automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Cerberus Re net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Cerberus RE

Use this skill for local Apple-focused reverse engineering with a repeatable three-headed static/dynamic/instrumentation loop around Ghidra, LLDB, and Frida. The public CLI is cerberus-re.

long-run-agent is a strongly encouraged companion dependency for substantial work. Use it to preserve mission state, claims, artifacts, failures, friction, and next actions while Cerberus RE handles static, dynamic, and instrumentation evidence. Cerberus RE can still run alone for bounded one-off tasks.

When driving through MCP, prefer cerberus-mcp. It exposes the core RE loop and composes long-run-agent's namespaced mission_* tools into the same local stdio server when the companion package or installed skill is available. Check mission_companion_status before assuming durable mission tools exist.

Operating Contract

  • Resolve the repo or installed skill root first. If working from this checkout, run commands from the repo root.
  • Prefer the Python CLI: cerberus-re or python3 -m cerberus_re_skill.
  • Prefer cerberus-mcp when the host supports MCP; use its typed envelope status rather than parsing prose.
  • Keep generated evidence as JSON or Markdown artifacts, not terminal-only output.
  • Use durable workspace paths under ~/ghidra-projects.
  • Preserve dirty worktree changes you did not make.
  • Capture runtime validation before treating runtime behavior as understood.
  • Keep ranking and prioritization framed as safe reverse-engineering workflow.
  • Runtime attach is guarded. Frida rechecks stay artifact-only unless --allow-runtime is explicit.
  • Mutating bridge calls require write=true; destructive bridge calls also require destructive=true.

First Commands

bash
git status --short --branch
python3 scripts/install_dependencies.py
cerberus-re doctor
cerberus-re bootstrap
cerberus-re bridge audit

Run python3 scripts/install_dependencies.py --execute from a fresh checkout when the host needs a local virtual environment or macOS Homebrew-managed dependencies.

Static Workflow

bash
cerberus-re import analyze <binary-or-source-ref> <project_name>
cerberus-re export apple-bundle <project_name> <program_name>
cerberus-re export xpc-surface <project_name> <program_name>

If a standalone Mach-O target fails while Ghidra resolves reexported dependencies, retry with:

bash
cerberus-re import analyze <binary-or-source-ref> <project_name> --skip-macho-reexports

Record that the resulting static view excludes reexport behavior.

For universal Mach-O targets, choose the intended runtime slice explicitly:

bash
cerberus-re import analyze <binary-or-source-ref> <project_name> --macho-arch arm64e

This stages a thin copy under the Cerberus RE workspace before import.

If a specific Ghidra analyzer reproducibly blocks import, disable only that named analyzer and record the exception in the evidence report:

bash
cerberus-re import analyze <binary-or-source-ref> <project_name> \
  --disable-analysis-option "Objective-C Selector Trampoline Analysis"

Runtime Workflow

Use LLDB when you can launch or safely attach to a process:

bash
cerberus-re validate lldb-trace <project> <program> \
  --launch-cmd <binary> \
  --symbols '<symbol-or-selector>' \
  --binary <binary>

Pass multiple LLDB trace symbols either by repeating --symbols or with a comma-separated value; both forms are normalized before tracing.

For dyld-cache-backed Apple frameworks, the live /System/Library/...framework path may be a stub without an on-disk Mach-O. Use the extracted dyld-cache binary for --binary, while the launch or attach target remains the live process under test.

If the static export under test is saved outside the default export tree, add:

bash
--function-inventory /path/to/function_inventory.json

Use Frida for guarded instrumentation:

bash
cerberus-re frida diagnose --target <binary>
cerberus-re frida validate-scripts --symbol '<ObjC method>' --class-name <Class>
cerberus-re frida recheck-attach \
  --target <owned-binary> \
  --symbol '<ObjC method>' \
  --capture-returns \
  --allow-runtime
cerberus-re frida recheck-attach \
  --attach-pid <pid> \
  --selector '<ObjC selector>' \
  --class-filter '<ClassSubstring>' \
  --require-runtime-hit \
  --allow-runtime
cerberus-re frida recheck-attach \
  --attach-pid <pid> \
  --selector '<ObjC selector>' \
  --exact-class '<KnownClass>' \
  --require-runtime-hit \
  --allow-runtime
cerberus-re frida recheck-attach \
  --target <owned-binary> \
  --native-symbol 'ExampleFramework!late_loaded_export' \
  --native-wait-seconds 3 \
  --native-arg-preview \
  --require-runtime-hit \
  --allow-runtime
cerberus-re frida gadget-probe <owned-binary> \
  --gadget /path/to/FridaGadget.dylib \
  --script /path/to/autonomous-probe.js \
  --stable-target-key <stable-owned-target-id> \
  --output-dir /tmp/cerberus-gadget-evidence \
  --allow-runtime

Prefer Module!symbol for native exports when the intended framework or dylib is known. Unqualified native symbols remain supported, but an installed zero-hit unqualified hook is ambiguous evidence and should usually be retried with module qualification. Exact ObjC method hooks (--symbol), selector-wide ObjC hooks (--selector), and native hooks (--native-symbol or --address) are separate Frida recheck modes; run separate commands when you need coverage from more than one mode. Native hooks always preserve raw register strings under args; --native-arg-preview adds bounded best-effort string/module previews for readable values. If task-port attachment is blocked for an owned analysis copy, gadget-probe can launch that copy with a content-addressed Gadget, configuration, and autonomous script through DYLD_INSERT_LIBRARIES. Treat this as launch-injection evidence, not proof that ordinary Frida attach works. for those registers without making signature-correctness claims.

After LLDB or Frida emits runtime_hits.json, correlate it back to static context:

bash
cerberus-re export runtime-enrich <project> <program> <runtime_hits.json>

Bridge Workflow

Use the live bridge when an interactive loop is faster than repeated exports:

bash
cerberus-re bridge arm <project_name> [program_name]
cerberus-re bridge sessions
cerberus-re bridge call /functions/search '{"query":"SomeFunction"}'
cerberus-re bridge call /decompile '{"function":"SomeFunction"}'
cerberus-re bridge close --project <project_name>

XPC Workflow

  • Export XPC surfaces with cerberus-re export xpc-surface.
  • If an XPC report shows zero counts, check warnings and missing_input_count before treating it as real absence evidence; pass --bundle-dir or explicit export JSON paths when using an Apple bundle saved outside the default export directory.
  • Merge surfaces with cerberus-re export xpc-graph.
  • Use owner hints only until imported owner evidence confirms or disproves them.
  • Generate harness skeletons only after service, protocol, and endpoint evidence are concrete enough to rank.
  • Recover NSXPCInterface factory/configuration evidence before planning a bounded remote method probe.

Validation

Before a milestone push or release closeout, run:

bash
python3 -m unittest discover -s tests
python3 -m compileall cerberus_re_skill scripts tests
python3 -m cerberus_re_skill polish release --mode quick --strict-command-surface
git diff --check
python3 -m cerberus_re_skill bridge audit

Add targeted live/static validation when changing Ghidra, LLDB, or Frida behavior.

References

Read only the file needed for the current task:

  • references/operating-workflows.md: detailed workflows and fallback rules.
  • references/command-surface.md: public CLI catalog.
  • references/output-files.md: artifact paths, schemas, and report meanings.
  • references/raw-bridge-recipes.md: bridge endpoint payloads and examples.
  • references/frida-diagnostics.md: Frida policy and validation guidance.
  • references/apple-macho-notes.md: Apple Mach-O and dyld target notes.
  • references/builtins.md: built-in Ghidra script caveats.
  • references/triage-outputs.md: triage output details.
  • references/triage-patterns.json: triage heuristic categories.
  • references/mcp-server.md: local stdio tools, composition, gates, and audit behavior.

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

An nach 140 weider Dateien.

Heefeg gestallte Froen

Wat mécht de KI-Skill Cerberus Re?

Cerberus RE is a local Apple-focused reverse-engineering workbench for building a repeatable three-headed static/dynamic/instrumentation loop around Ghidra, LLDB, and Frida. Trigger when the user wants static Ghidra analysis, LLDB dynamic/live analysis, Frida instrumentation, decompilation, runtime traces, or structured reversing artifacts such as functions, strings, symbols, Objective-C metadata, Swift metadata, xrefs, and runtime hits.

Firwat Cerberus Re op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Cerberus Re besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Cerberus Re an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/OwenPawl/cerberus-re-skill/tree/main an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Cerberus Re benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Cerberus Re benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Cerberus Re domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Cerberus Re gratis?

Jo. OwenPawl huet de Skill ënner der Lizenz Apache-2.0 op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇