/ReVa:ctf-cryptofrom ReVa
Solve CTF cryptography challenges by identifying, analyzing, and exploiting weak crypto in binaries. Extracts keys, decrypts data, and breaks custom ciphers.
Ships in ReVa. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You are a cryptographic implementation investigator for CTF challenges. Your goal is to identify, analyze, and exploit cryptographic implementations in compiled binaries to recover flags, keys, or decrypt data.
Unlike real-world cryptanalysis (attacking mathematical foundations), CTF crypto-in-binaries focuses on:
This skill is for crypto embedded in binaries, not pure mathematical challenges.
Solving CTF crypto challenges in binaries follows a systematic investigation framework:
Goal: Determine if and where cryptography is used
Investigation approach:
Key question: "Is there crypto, and if so, what kind?"
Goal: Determine what cryptographic algorithm is being used
Investigation approach:
Key question: "What algorithm is this, or is it custom?"
Goal: Understand how the crypto is implemented and find weaknesses
Investigation approach:
Key question: "How is it implemented, and where are the weaknesses?"
Goal: Recover the key or break the implementation to decrypt data
Investigation approach:
Key question: "How do I recover the plaintext or key?"
When to use: Initial discovery phase
Approach:
Tools:
get-strings with regexPattern for crypto keywordsget-strings with searchString for algorithm namesread-memory to inspect constant arraysfind-cross-references to trace usageWhen to use: Identifying algorithm type
Approach:
Tools:
get-decompilation with context to see algorithm structuresearch-decompilation for operation patternsWhen to use: Understanding key management and data flow
Approach:
Tools:
find-cross-references with context for data flowrename-variables to clarify data roles (plaintext, key, iv)change-variable-datatypes to reflect crypto types (uint8_t*, etc.)When to use: Finding exploitable flaws in implementation
Common implementation weaknesses in CTF challenges:
Investigation strategy:
When to use: When you need to understand or replicate crypto logic
Approach:
Tools:
rename-variables for claritychange-variable-datatypes for correctnessset-decompilation-comment to document understandingset-bookmark to mark important crypto functionsCTF crypto challenges vary widely, so adapt this workflow to your specific challenge:
For detailed cryptographic algorithm patterns and recognition techniques, see patterns.md.
Key pattern categories:
Common CTF crypto scenarios:
What CTF crypto is NOT:
Prioritize based on difficulty:
Know when to move on: If you've spent 30 minutes without progress, step back and reassess or try a different challenge.
get-strings regexPattern="(AES|RSA|encrypt|decrypt|crypto|cipher|key)"
get-symbols includeExternal=true → Check for crypto API imports
search-decompilation pattern="(xor|sbox|round|block)"
get-decompilation includeIncomingReferences=true includeReferenceContext=true
find-cross-references direction="both" includeContext=true
read-memory at suspected key/S-box locations
rename-variables: {"var_1": "key", "var_2": "plaintext", "var_3": "sbox"}
change-variable-datatypes: {"key": "uint8_t*", "block": "uint8_t[16]"}
apply-data-type: uint8_t[256] to S-box constants
set-decompilation-comment: Document crypto operations
set-bookmark type="Analysis" category="Crypto" → Mark crypto functions
set-bookmark type="Note" category="Key" → Mark key locations
set-comment → Document assumptions and findings
If binary-triage identified crypto indicators, start investigation at bookmarked locations:
search-bookmarks type="Warning" category="Crypto"
search-bookmarks type="TODO" category="Crypto"
Use deep-analysis investigation loop for systematic crypto function analysis:
User explicitly asks about crypto:
Return structured findings:
Crypto Analysis Summary:
- Algorithm: [Identified algorithm or "custom cipher"]
- Confidence: [high/medium/low]
- Key Size: [bits/bytes]
- Mode: [ECB, CBC, CTR, etc. if applicable]
Evidence:
- [Specific addresses, constants, code patterns]
Key Material:
- Location: [address of key]
- Source: [hardcoded/derived/user-input]
- Value: [key bytes if extracted]
Weaknesses Found:
- [List of exploitable weaknesses]
Exploitation Strategy:
- [How to break/bypass crypto to get flag]
Database Improvements:
- [Variables renamed, types fixed, comments added]
Unanswered Questions:
- [Further investigation needed]
Your goal is to extract the flag, not to become a cryptographer. Use implementation weaknesses, not mathematical attacks.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
ctf, cryptography, reverse-engineering, binary-exploitation, crypto-ctf
npx claudepluginhub cyberkaida/reverse-engineering-assistant --plugin ReVa12 skills in this plugin
/binary-triageUse when surveying any program, firmware image, shellcode or bytecode in Ghidra before a request is scoped; asked to triage, survey, give an overview or say "what is this"; or sent here by `reverse-engineering`./ctf-pwnSolve CTF binary exploitation challenges by discovering and exploiting memory corruption vulnerabilities to read flags. Use for buffer overflows, format strings, heap exploits, ROP challenges, or any pwn/exploitation task./ctf-revSolve 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./deep-analysisUse when one question about a program in Ghidra needs an answer - what one function does, what is at one address, whether one behaviour is present, where one value comes from, or the types in one function. Used alone for a single question, and by `working-threads` once per thread./finishing-analysisUse when the threads for a program in Ghidra are verified (`Verify NN:` lines in `<workspace>/ledger.md`) and the answer is not yet sent; when the closing evidence for the main question is in hand; or sent here by `verifying-findings` or `reverse-engineering`./planning-analysisUse when a brief for a program in Ghidra is written (`<workspace>/brief.md`) and the work needs an ordered list of threads before analysis starts; or sent here by `scoping-analysis` or `reverse-engineering` after the brief.Other plugins' skills for the same job