revelen
v0.4.0
Published
Learn reverse engineering step by step, through MCP
Maintainers
Readme
█▀█ █▀▀ █ █ █▀▀ █ █▀▀ █▄ █
█▀▄ ██▄ ▀▄▀ ██▄ █▄▄ ██▄ █ ▀█
[ Learn reverse engineering step by step, through MCP ]Revelen
Revelen is an educational MCP server that helps you learn reverse engineering with an AI assistant (Claude Code, Cursor, VS Code). Instead of dumping a whole program at once, it shows you one small piece at a time, explains the instructions you meet, and keeps the output compact.
It uses REA with Ghidra to read programs. The AI talks only to Revelen; Revelen decides what to show.
Claude / Cursor ──► Revelen (MCP) ──► REA ──► Ghidra ──► lab program
explains, compacts,
only opens its own labsTools
| Tool | What it does |
|---|---|
| revelen_explain_concept | Explains an assembly instruction (MOV, CMP, TEST, SETZ, LEA, JZ…) with an analogy and example |
| revelen_find_strings | Searches the text stored inside a lab program and shows where it lives |
| revelen_show_function | Shows one function's assembly, compacted and labelled with clues you've found |
| revelen_check_setup | Checks Node, REA, Ghidra, Java, GCC and the labs, and gives the exact fix for anything missing |
| revelen_story | Teaches a lab as a real-life security story in plain words, one step at a time. Instant, with no machine code unless you ask |
| revelen_progress | Lists the labs in order, what you have solved, and what to do next |
| revelen_check_solution | Checks the password, PIN or word you found, without ever revealing the answer |
| revelen_quiz / revelen_answer_quiz | Asks one multiple-choice question on an instruction and checks your choice |
Labs
| Lab | What you hunt | The new idea |
|---|---|---|
| level1_strings | A password | Text in the code is stored as readable text in the .exe |
| level2_pin | A PIN | A number hides inside an instruction, written in hexadecimal |
| level3_letters | A word | Letters are numbers (ASCII), so a word can hide as a row of numbers |
| level4_xor | A word | XOR scrambles with a key, and the same XOR undoes it |
Your progress (labs solved, lesson cards read, quiz questions passed) is saved in .revelen\progress.json in your home folder.
Token savings
Revelen's optimizer folds standard prologue/epilogue code, shortens addresses to offsets and labels known addresses. It never removes logic (compares, tests, calls, jumps).
Measured on the Level 1 lab (check_password): ~1,366 → ~101 tokens, about 93% smaller than REA's raw JSON. Token counts are estimated at ~4 characters per token; results vary by program.
Requirements (Windows x64)
- Node.js 22.19+ or 24.11+
- REA:
npm install --global rea-agents - Ghidra 12.1.4 and a full JDK 21 (e.g. Eclipse Temurin)
- GCC to build the labs (e.g.
winget install BrechtSanders.WinLibs.POSIX.UCRT)
Set these environment variables (adjust the paths):
[Environment]::SetEnvironmentVariable("GHIDRA_INSTALL_DIR", "C:\tools\ghidra_12.1.4_PUBLIC", "User")
[Environment]::SetEnvironmentVariable("REA_ANALYSIS_PROVIDER", "ghidra", "User")
[Environment]::SetEnvironmentVariable("JAVA_HOME", "C:\Program Files\Eclipse Adoptium\jdk-21...", "User")Check with rea doctor: the ghidra checks should be ok: true.
Install
git clone https://github.com/ahmedi56/Revelen.git
cd Revelen
npm install
npm run build
gcc labs\level1_strings.c -o labs\level1_strings.exe
gcc labs\level2_pin.c -o labs\level2_pin.exe
gcc labs\level3_letters.c -o labs\level3_letters.exe
gcc labs\level4_xor.c -o labs\level4_xor.exe
npm testConnect to your AI assistant
Claude Code:
claude mcp add revelen -- node C:\path\to\Revelen\dist\index.jsCursor (.cursor/mcp.json):
{ "mcpServers": { "revelen": { "command": "node", "args": ["C:\\path\\to\\Revelen\\dist\\index.js"] } } }Then ask: "Using Revelen, search the level1_strings lab for text and explain what you find."
Claude Code plugin
The repository is also a Claude Code plugin. It starts Revelen for you (through npx) and adds two skills:
| Skill | What it does |
|---|---|
| reverse-engineer | Leads an investigation of a lab one step at a time: clues, one function, one question |
| explain-simply | Explains any instruction or idea with an everyday analogy and small steps |
/plugin marketplace add ahmedi56/Revelen
/plugin install revelen@revelenThen ask: "Help me reverse engineer the level1_strings lab."
When Revelen runs through npx it lives in a temporary folder, so keep your built labs in a folder of your own and point REVELEN_LABS_DIR at it:
[Environment]::SetEnvironmentVariable("REVELEN_LABS_DIR", "C:\path\to\Revelen\labs", "User")Project anatomy
src/index.ts 🧠 MCP server: the tools Claude can call
src/bridge/rea.ts ✋ runs REA as a child process, parses its JSON
src/optimizer/compact.ts 🫁 compacts output without dropping logic
src/tutor/concepts.ts 🎓 instruction explanations
src/tutor/lessons.ts 🗺️ the labs in order, with answer fingerprints (never the answers)
src/tutor/quizzes.ts ❓ multiple-choice questions
src/progress.ts 📓 saves what you have done in your home folder
src/doctor.ts 🩺 the setup check
src/labs.ts 🚪 only opens programs inside labs/
labs/ 🏋️ practice programs (source only; build them yourself)
test/ ✅ smoke tests with a fake REA + optimizer tests
.claude-plugin/ 🔌 plugin manifest + marketplace entry
skills/ 📚 the two teaching skills (plain Markdown)Roadmap
- [x] Guided lessons with quizzes and saved progress
- [x] More labs (numbers, letters, a simple XOR disguise)
- [x]
npx revelenpackage - [x] Claude Code plugin with two skills
Responsible use
Revelen is for learning on its own lab programs and on software you own or are authorized to analyze. Follow the licenses of the tools it uses (REA, Ghidra) and of any software you study.
License
MIT
