agentleFS
MysterionRiseMysterionRise/ctf-kit/skills/reverse/SKILL.md

reverse

Skill12 starsChanged 9 months agoMITView on GitHub

Solve CTF reverse engineering challenges: disassembly, decompilation, key/password finding, algorithm analysis, and anti-debug bypass. Use when given binaries to analyze statically — crackmes, keygens, obfuscated code. Triggers: .exe .elf .apk .jar .pyc files, "disassemble", "decompile", "keygen", "crackme", "find the password", "anti-debugging", radare2/Ghidra output, assembly code. Tools: radare2, Ghidra, objdump, ltrace, strace, jadx, uncompyle6. NOT for exploitation/pwn (use pwn) or malware triage (use forensics).

3 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions3 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 3

    1. AsiaOstrich/universal-dev-standards★ 84same name
    2. AsiaOstrich/EngramGraph★ 4same name
    3. Carchar91/recipient-aware-ai★ 4same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository15 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this command for challenges involving:

    line 20
  2. Distinctive:

    ELF (Linux): Use radare2 or Ghidra for analysis

    line 57
  3. Distinctive:

    PE (Windows): Check for .NET (use dnSpy)

    line 58
  4. Distinctive:

    Write keygen or patch binary

    line 66
  5. Very specific:

    When using /ctf-kit:team-solve with a reverse engineering challenge, the lead spawns 3 specialists:

    line 88

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

CTF Reverse

Analyze and solve reverse engineering challenges.

When to Use

Use this command for challenges involving:

  • ELF/PE binaries requiring analysis
  • Algorithm understanding
  • Key/password finding
  • Malware analysis
  • Obfuscated code

Bundled Scripts

  • check-tools.sh — Verify required reversing tools are installed
  • run-radare2.sh — Initial binary analysis with structured output. Lists functions, strings, and flags interesting functions (main, flag, win, check, verify, password, secret). Outputs JSON with function list and analysis suggestions.

Instructions

  1. First check tool availability: bash scripts/check-tools.sh
  2. Start with radare2 analysis (outputs structured JSON):

    bash scripts/run-radare2.sh $ARGUMENTS
    bash scripts/run-radare2.sh <binary> main    # disassemble specific function

    JSON output includes:

    • functions[]: all functions with address, size, name
    • interesting_functions[]: functions matching CTF keywords (main, flag, win, check, verify, password, secret, decrypt)
    • strings[]: strings found in binary
    • info: binary metadata (arch, format, etc.)
  3. Based on JSON findings, focus analysis:
    • interesting_functions found → decompile them: r2 -c "aa; pdc @ <function>" <binary>
    • Strings with flag patterns → trace cross-references
    • Multiple check/verify functions → trace validation logic
  4. For different binary types:

    ELF (Linux): Use radare2 or Ghidra for analysis PE (Windows): Check for .NET (use dnSpy) Java/Android: jadx app.jar or jadx app.apk Python: uncompyle6 file.pyc or pycdc file.pyc

Analysis Workflow

  1. run-radare2.sh binary → identify interesting functions from JSON
  2. Decompile target functions → understand algorithm
  3. Write keygen or patch binary
  4. Test solution

Common Patterns

PatternMeaning
strcmp, strncmpString comparison
memcmpMemory comparison
XOR loopSimple encryption
check_, verify_Validation functions
win, flagTarget functions

macOS / Apple Silicon

For dynamic analysis of Linux ELF binaries on macOS, use the pwn skill's container wrapper ../pwn/scripts/pwn-docker.sh. ltrace/strace and plain gdb do not work under emulation; debug via qemu-x86_64 -g 1234 ./binary + pwndbg -ex 'target remote :1234' ./binary and trace syscalls with qemu-x86_64 -strace ./binary.

Team Roles

When using /ctf-kit:team-solve with a reverse engineering challenge, the lead spawns 3 specialists:

RoleTeammate NameFocusToolsFirst Action
Static Analyststatic-reverserDisassembly, decompilation, function listing, string analysis, control flow graphsradare2, Ghidra, objdump, scripts/run-radare2.shList functions, find interesting ones (main, check, verify, flag), decompile them
Dynamic Analystdynamic-reverserRuntime behavior, breakpoints, anti-debug bypass, library call tracing, input/output mappinggdb, ltrace, strace, LD_PRELOADRun with ltrace/strace, set breakpoints on strcmp/memcmp, trace validation logic
Algorithm Solveralgo-solverKeygen writing, constraint solving, algorithm reimplementation, z3 SAT solving, symbolic executionpython3, z3, sageReimplement the validation algorithm from decompiled code, write solver/keygen

Workflow coordination

Reverse engineering has a natural pipeline:

  1. Static analyst maps the binary → identifies key functions and algorithm structure
  2. Dynamic analyst confirms behavior → finds actual values, bypasses anti-debug
  3. Algorithm solver writes the solution → uses both static and dynamic findings

But all 3 can start in parallel — static and dynamic analysis are independent.

When to broadcast

  • Static: "Main calls check_password() which XORs input with key at 0x4020" — algo solver starts reimplementing
  • Dynamic: "strcmp compares against runtime-computed string, anti-debug detected (ptrace)" — static analyst looks for the check
  • Algo solver: "Constraint solver found valid input: PASSWORD" — others verify
  • Any: "Found the flag" — immediate broadcast, all stop

Example Usage

/ctf-kit:reverse ./crackme
/ctf-kit:reverse ./challenge.exe
/ctf-kit:reverse app.apk

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.