Command Palette

Search for a command to run...

UnylyUnyly
Весь каталог

Revelen

БесплатноПоддерживается

Learn reverse engineering step by step, through MCP

GitHubEmbed

Описание

Learn reverse engineering step by step, through MCP

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 labs

Tools

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.

Web labs (new in 0.5.0, comparisons in 0.6.0)

Investigate how a public website behaves, from the evidence of one browser visit:

Tool What it does
revelen_start_web_lab Visits one public address once, in an isolated read-only Chromium, records its requests (secrets removed), then closes the browser
revelen_get_network_timeline The requests in order: number, method, status, type, address, size, time
revelen_inspect_request One request in detail, with a short cleaned preview of small text or JSON answers
revelen_list_evidence The evidence, labelled observed, interpretation, hypothesis or unknown
revelen_compare_network_activity Lists what can be clicked or searched on the page; then repeats the visit, does one of those things, and shows which requests came after it
revelen_web_hint / revelen_web_answer Graded hints for the open lesson (where the page comes from, then what an action asked for), and an answer check made from the evidence
revelen_web_progress / revelen_stop_web_lab List saved labs to resume one, or delete one

Web labs need Playwright's Chromium once: npx playwright install chromium. Binary labs work without it. They refuse local and private addresses (checked on every connection, not just the first), never send forms or log in, and keep no cookies or tokens. Design, security limits and measurements: docs/web-labs.md.

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 test

Connect to your AI assistant

Claude Code:

claude mcp add revelen -- node C:\path\to\Revelen\dist\index.js

Cursor (.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@revelen

Then 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/web/                🌐 web labs: policy, egress proxy, capture, cleaning, evidence, lesson, store, tools
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

  • Guided lessons with quizzes and saved progress
  • More labs (numbers, letters, a simple XOR disguise)
  • npx revelen package
  • 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

from github.com/ahmedi56/Revelen

Установить Revelen в Claude Desktop, Claude Code, Cursor

Рекомендуется · одна команда, все IDE
unyly install revelen

Ставит в Claude Desktop, Claude Code, Cursor и VS Code — сам разбирается с npx, uvx и сборкой из исходников.

Впервые? Поставь CLI: curl -fsSL https://unyly.org/install | sh

Или настроить вручную

Выполни в терминале:

claude mcp add revelen -- npx -y revelen

Пошаговые гайды: как установить Revelen

FAQ

Revelen MCP бесплатный?

Да, Revelen MCP бесплатный — установка в пару кликов через Unyly без оплаты.

Нужен ли API-ключ для Revelen?

Нет, Revelen работает без API-ключей и переменных окружения.

Revelen — hosted или self-hosted?

Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.

Как установить Revelen в Claude Desktop, Claude Code или Cursor?

Открой Revelen на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.

Изменения

Версии и запрашиваемые доступы со временем.

  • Новая версия опубликована

Похожие MCP

Compare Revelen with

Не уверен что выбрать?

Найди свой стек за 60 секунд

Автор?

Embed-бейдж для README

Похожее

Все в категории development