Logo Cerberus Re

Cerberus Re

Cộng đồng
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.

Tổng quan

Nhà phát hànhOwenPawl
Kho mãcerberus-re-skill
Tên kỹ năngcerberus-re
Sao
219
Bản fork
23
Tệp đi kèm
255
Giấy phépApache-2.0
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 255 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được OwenPawl công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Cerberus Re trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/OwenPawl/cerberus-re-skill/tree/main
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/OwenPawl/cerberus-re-skill.git \
  .claude/skills/cerberus-re
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Cerberus Re trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Cerberus Re ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Cerberus Re với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

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.

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

và 140 tệp khác.

Câu hỏi thường gặp

Kỹ năng AI Cerberus Re làm được gì?

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.

Vì sao nên dùng Cerberus Re trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Cerberus Re là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Cerberus Re trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/OwenPawl/cerberus-re-skill/tree/main. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Cerberus Re?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Cerberus Re với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Cerberus Re với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Cerberus Re có miễn phí không?

Có. Kỹ năng này được OwenPawl phát hành trên GitHub theo giấy phép Apache-2.0. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇