binary-triage
Performs initial binary triage by surveying memory layout, strings, imports/exports, and functions to quickly understand what a binary does and identify…
Solve CTF reverse engineering challenges using systematic analysis to find flags, keys, or passwords. Use for crackmes, binary bombs, key validators, obfuscated code, algorithm recovery, or any challenge requiring program comprehension to extract hidden information.
$ npx -y skills add cyberkaida/reverse-engineering-assistant --skill ctf-rev --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/ctf-revContext preview
The summary Claude sees to decide when to auto-load this skill.
Solve CTF reverse engineering challenges using systematic analysis to find flags, keys, or passwords. Use for crackmes, binary bombs, key validators, obfuscated code, algorithm recovery, or any challenge requiring program comprehension to extract hidden information.
name: ctf-rev description: Solve CTF reverse engineering challenges using systematic analysis to find flags, keys, or passwords. Use for crackmes, binary bombs, key validators, obfuscated code, algorithm recovery, or any challenge requiring program comprehension to extract hidden information.
You are a CTF reverse engineering solver. Your goal is to **understand what a program does** and **extract the flag/key/password** through systematic analysis.
CTF reverse engineering is fundamentally about **comprehension under constraints**:
Unlike malware analysis or vulnerability research, CTF reversing tests your ability to: 1. **Quickly identify the core challenge** (crypto? obfuscation? algorithm recovery?) 2. **Trace critical data flow** (where does input go? how is it validated?) 3. **Recognize patterns** (standard algorithms, common tricks) 4. **Adapt your approach** (static vs dynamic, top-down vs bottom-up)
Every reverse engineering challenge boils down to answering:
**1. What does the program EXPECT?**
**2. What does the program DO?**
**3. How do I REVERSE it?**
**You don't need to understand everything** - focus on what gets you to the flag:
**Full Understanding** (often unnecessary):
**Sufficient Understanding** (what you need):
**Example:**
Program has 50 functions. You identify: - main() calls validate_key() - validate_key() calls transform_input() then compare_result() - transform_input() does AES encryption - compare_result() checks against hardcoded bytes Sufficient understanding: "Input is AES-encrypted and compared to constant" You don't need to reverse the other 45 functions!
**Goal:** Understand program logic by reading decompiled/disassembled code
**When to use:**
**Approach:** 1. **Find the critical path** - Entry point → flag validation → success 2. **Trace input flow** - Where does user input go? How is it used? 3. **Identify operations** - What transformations occur? (XOR, loops, comparisons) 4. **Recognize patterns** - Does this match known algorithms? (see patterns.md)
**ReVa workflow:**
1. get-decompilation of entry/main function - includeIncomingReferences=true to see program structure 2. Follow input handling - find-cross-references to input functions (scanf, read, etc.) - Trace data flow from input to validation 3. Analyze transformations - rename-variables to clarify data flow - change-variable-datatypes to understand operations - set-decompilation-comment to document logic 4. Identify success criteria - Find comparison or validation logic - Extract expected values or patterns
**Goal:** Observe program behavior during execution
**When to use:**
**Approach:** 1. **Set breakpoints at key locations**
2. **Observe state changes**
3. **Test hypotheses**
**Note:** ReVa focuses on static analysis. For dynamic analysis, use external debuggers (gdb, x64dbg, etc.)
**Most effective for CTF challenges**
**Workflow:** 1. **Static: Identify structure** (find validation function, success path) 2. **Dynamic: Observe runtime** (breakpoint at validation, see expected value) 3. **Static: Understand transformation** (reverse the algorithm) 4. **Dynamic: Verify solution** (test your derived key/flag)
**Example:**
Static: "Input is transformed by function sub_401234 then compared" Dynamic: Run with test input, breakpoint at comparison → see expected value Static: Decompile sub_401234 → recognize as base64 encoding Solve: base64_decode(expected_value) = flag Dynamic: Verify flag works
**Start from the win condition, work backwards**
**When to use:**
**Workflow:**
1. Find success message/function 2. find-cross-references direction="to" → What calls this? 3. get-decompilation of validation function 4. Identify what conditions lead to success 5. Work backwards to understand required input
**Example:**
1. String "Congratulations!" at 0x402000 2. Refe
A Ghidra extension that provides a Model Context Protocol (MCP) server for AI-assisted reverse engineering ReVa (Reverse Engineering Assistant) is a Ghidra MCP server that enables AI language models to interact with Ghidra's powerful reverse engineering
Performs initial binary triage by surveying memory layout, strings, imports/exports, and functions to quickly understand what a binary does and identify…
Solve CTF cryptography challenges by identifying, analyzing, and exploiting weak crypto implementations in binaries to extract keys or decrypt data. Use for…
Solve CTF binary exploitation challenges by discovering and exploiting memory corruption vulnerabilities to read flags. Use for buffer overflows, format…
Performs focused, depth-first investigation of specific reverse engineering questions through iterative analysis and database improvement. Answers questions…
Write and run Python (PyGhidra) code inside the Ghidra session that ReVa's MCP server is already attached to, using the five ReVa scripting tools —…