<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Batuhan AYRIBAS</title>
    <description>The latest articles on DEV Community by Batuhan AYRIBAS (@rootcastle).</description>
    <link>https://dev.to/rootcastle</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4222899%2F8cd19499-9c96-42d8-a1d5-6752934444f1.jpg</url>
      <title>DEV Community: Batuhan AYRIBAS</title>
      <link>https://dev.to/rootcastle</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rootcastle"/>
    <language>en</language>
    <item>
      <title>Reverse Engineering with AI Agents: Introducing REI Skills and the REA Workbench</title>
      <dc:creator>Batuhan AYRIBAS</dc:creator>
      <pubDate>Mon, 02 Nov 2026 18:14:14 +0000</pubDate>
      <link>https://dev.to/rootcastle/reverse-engineering-with-ai-agents-introducing-rei-skills-and-the-rea-workbench-27p0</link>
      <guid>https://dev.to/rootcastle/reverse-engineering-with-ai-agents-introducing-rei-skills-and-the-rea-workbench-27p0</guid>
      <description>&lt;p&gt;&lt;strong&gt;895 validated agent skills. 21 AI development targets. 12 specialized reverse-engineering skills. One open-source engineering toolkit.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;AI coding agents can generate software surprisingly well. But what happens when the source code is missing?&lt;/p&gt;

&lt;p&gt;What if you need to inspect an unfamiliar binary, understand an Android APK, investigate embedded firmware, compare WebAssembly modules, or reconstruct an undocumented protocol?&lt;/p&gt;

&lt;p&gt;A plausible explanation from an AI model is not evidence.&lt;/p&gt;

&lt;p&gt;That's one of the problems we're trying to address with &lt;strong&gt;REI Skills&lt;/strong&gt; and &lt;strong&gt;REI REA&lt;/strong&gt;, developed at Rootcastle Engineering &amp;amp; Innovation.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://rootcastleco.github.io/rei-skills/" rel="noopener noreferrer"&gt;Explore the Live Developer Hub&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://github.com/rootcastleco/rei-skills" rel="noopener noreferrer"&gt;View REI Skills on GitHub&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The Problem: AI Agents Need Engineering Discipline
&lt;/h2&gt;

&lt;p&gt;Most AI assistants are good at generating plausible explanations. Reverse engineering requires something different.&lt;/p&gt;

&lt;p&gt;An investigator needs to establish:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;What can actually be observed in an artifact?&lt;/li&gt;
&lt;li&gt;Which conclusions are inferred rather than verified?&lt;/li&gt;
&lt;li&gt;Which tools produced each finding?&lt;/li&gt;
&lt;li&gt;Can another engineer reproduce the result?&lt;/li&gt;
&lt;li&gt;What remains unknown?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;An AI agent that confidently invents a function's purpose is potentially more dangerous than one that simply says, "I don't know."&lt;/p&gt;

&lt;p&gt;We wanted to make evidence tracking, repeatability, and explicit uncertainty part of the workflow.&lt;/p&gt;

&lt;h2&gt;
  
  
  Introducing REI Skills
&lt;/h2&gt;

&lt;p&gt;REI Skills is an open-source registry and management layer for engineering workflows used by AI coding agents.&lt;/p&gt;

&lt;p&gt;The current repository contains:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;895 validated skills&lt;/strong&gt; across 10 engineering categories.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;21 AI development targets&lt;/strong&gt;, including Claude Code, Codex, Gemini CLI, Cursor, and other environments.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A smart skill router&lt;/strong&gt; that recommends relevant skills from the task description and workspace context.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A built-in MCP server&lt;/strong&gt; for skill discovery, retrieval, and installation.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Engineering workflows&lt;/strong&gt; covering development, architecture, security, infrastructure, testing, and data systems.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;REI REA&lt;/strong&gt;, a specialized reverse-engineering skill suite with an optional executable workbench.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The registry includes original Rootcastle skills alongside curated work from the wider open-source ecosystem, with source attribution and validation.&lt;/p&gt;

&lt;p&gt;The goal is not to load hundreds of instructions into every agent conversation. It's to identify and load the right procedures for the problem.&lt;/p&gt;

&lt;h3&gt;
  
  
  Install REI Skills
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx rei-skills
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Or install specifically for an AI assistant:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx rei-skills &lt;span class="nt"&gt;--claude&lt;/span&gt;
npx rei-skills &lt;span class="nt"&gt;--codex&lt;/span&gt;
npx rei-skills &lt;span class="nt"&gt;--gemini&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Explore the available tools:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx rei-skills search firmware
npx rei-skills targets
npx rei-skills doctor
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  REI REA: Reverse Engineering as a Verifiable Workflow
&lt;/h2&gt;

&lt;p&gt;This is the part of the project I'm particularly interested in developing further.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;REI REA (Reverse Engineering Workbench)&lt;/strong&gt; integrates 12 specialized agent skills:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Investigation area&lt;/th&gt;
&lt;th&gt;Focus&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Native binaries&lt;/td&gt;
&lt;td&gt;PE, ELF, Mach-O, COFF&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Android applications&lt;/td&gt;
&lt;td&gt;APK, AAB, DEX, JNI&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Firmware and IoT&lt;/td&gt;
&lt;td&gt;Embedded Linux, MCU, UEFI, telemetry&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Electron and JavaScript&lt;/td&gt;
&lt;td&gt;ASAR packages, IPC, preload scripts&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;WebAssembly and managed code&lt;/td&gt;
&lt;td&gt;WASM, .NET, JVM&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Network protocols&lt;/td&gt;
&lt;td&gt;HAR, PCAP, telemetry frames&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Digital forensics&lt;/td&gt;
&lt;td&gt;Evidence indexing and case records&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Reconstruction&lt;/td&gt;
&lt;td&gt;Behavioral specifications and differential testing&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;These skills guide the investigation. They do not imply that every format has a fully automated executable analyzer.&lt;/p&gt;

&lt;p&gt;The optional Python workbench provides the actual local analysis capabilities.&lt;/p&gt;

&lt;h3&gt;
  
  
  Install the Reverse Engineering Skills
&lt;/h3&gt;

&lt;p&gt;For Codex:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx rei-skills add rei-rea &lt;span class="nt"&gt;--codex&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For Claude Code:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx rei-skills add rei-rea &lt;span class="nt"&gt;--claude&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For Cursor:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx rei-skills add rei-rea &lt;span class="nt"&gt;--cursor&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The bundled skills provide investigation procedures, tool selection guidance, and evidence requirements.&lt;/p&gt;

&lt;h3&gt;
  
  
  Optional: Install the Python Workbench
&lt;/h3&gt;

&lt;p&gt;The executable component is maintained separately:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/rootcastleco/Rei-Reverse-engineer" rel="noopener noreferrer"&gt;REI Reverse Engineering on GitHub&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/rootcastleco/Rei-Reverse-engineer.git
&lt;span class="nb"&gt;cd &lt;/span&gt;Rei-Reverse-engineer

python &lt;span class="nt"&gt;-m&lt;/span&gt; pip &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;-e&lt;/span&gt; &lt;span class="nb"&gt;.&lt;/span&gt;

rei-rea &lt;span class="nt"&gt;--version&lt;/span&gt;
rei-rea tools doctor
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The workbench targets Python 3.10+ and does not require third-party Python runtime dependencies.&lt;/p&gt;

&lt;p&gt;Its built-in capabilities include bounded PE, ELF, and WebAssembly v1 parsing, structural comparisons, SHA-256 artifact identification, and evidence case management.&lt;/p&gt;

&lt;p&gt;External static analysis tools require installation and explicit permission.&lt;/p&gt;

&lt;h2&gt;
  
  
  A Reproducible Example: Comparing Two WebAssembly Binaries
&lt;/h2&gt;

&lt;p&gt;Let's use a practical example.&lt;/p&gt;

&lt;p&gt;Suppose an embedded telemetry component is delivered as two WebAssembly modules.&lt;/p&gt;

&lt;p&gt;You have version 1 and version 2, but no source-level change log.&lt;/p&gt;

&lt;p&gt;What changed?&lt;/p&gt;

&lt;p&gt;REI REA includes harmless WebAssembly fixtures and a recorded demonstration of structural analysis.&lt;/p&gt;

&lt;p&gt;Clone the skill repository:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/rootcastleco/rei-skills.git
&lt;span class="nb"&gt;cd &lt;/span&gt;rei-skills
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;With the optional REA workbench installed, inspect the first module:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;rei-rea inspect &lt;span class="se"&gt;\&lt;/span&gt;
  examples/rei-rea-demo/fixtures/telemetry-filter-v1.wasm
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then compare both versions:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;rei-rea diff &lt;span class="se"&gt;\&lt;/span&gt;
  examples/rei-rea-demo/fixtures/telemetry-filter-v1.wasm &lt;span class="se"&gt;\&lt;/span&gt;
  examples/rei-rea-demo/fixtures/telemetry-filter-v2.wasm
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The repository's recorded demonstration identifies two structural additions:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;New imported function:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;env.audit_log_frame&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;New exported function:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;validate_packet_header&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;These are observable changes in the module structure.&lt;/p&gt;

&lt;p&gt;But here's the important distinction:&lt;/p&gt;

&lt;p&gt;An added function named &lt;code&gt;validate_packet_header&lt;/code&gt; does not prove that packet validation is correct, secure, or even invoked.&lt;/p&gt;

&lt;p&gt;Those are separate hypotheses requiring further evidence.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Observed:&lt;/strong&gt; The exported function exists.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Inferred:&lt;/strong&gt; The function may relate to packet-header validation.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Unknown:&lt;/strong&gt; Its complete behavior and whether it is exercised at runtime.&lt;/p&gt;

&lt;p&gt;That distinction is central to REI REA's investigation model.&lt;/p&gt;

&lt;p&gt;You can inspect the reproducible fixtures and captured output in the &lt;a href="https://github.com/rootcastleco/rei-skills/tree/main/examples/rei-rea-demo" rel="noopener noreferrer"&gt;demo directory&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Evidence Before Conclusions
&lt;/h2&gt;

&lt;p&gt;REI REA provides a hash-linked evidence workflow intended to make investigations inspectable.&lt;/p&gt;

&lt;p&gt;The basic process is:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Identify the target artifact and calculate its SHA-256 hash.&lt;/li&gt;
&lt;li&gt;Select the appropriate format-specific analysis workflow.&lt;/li&gt;
&lt;li&gt;Record observed structures and findings.&lt;/li&gt;
&lt;li&gt;Separate confirmed observations from interpretations.&lt;/li&gt;
&lt;li&gt;Preserve evidence and verify recorded case integrity.&lt;/li&gt;
&lt;li&gt;Use differential tests to evaluate reconstructed behavior.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This matters particularly when investigating firmware, protocols, and software where an incorrect assumption can propagate into implementation decisions.&lt;/p&gt;

&lt;h2&gt;
  
  
  MCP Integration
&lt;/h2&gt;

&lt;p&gt;REI Skills also provides a Model Context Protocol server for discovering and managing skills.&lt;/p&gt;

&lt;p&gt;Start it with:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx rei-skills mcp
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The optional REI REA workbench has its own local MCP server:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;rei-rea mcp
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The REA server exposes 14 tools for operations including artifact inspection, structural analysis, comparisons, investigation planning, and evidence verification.&lt;/p&gt;

&lt;p&gt;This allows MCP-capable coding assistants to interact with the local workbench through explicit tool boundaries rather than relying entirely on text-based reasoning.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Works Today, and What Doesn't
&lt;/h2&gt;

&lt;p&gt;I think it's important to distinguish implemented capabilities from planned integrations.&lt;/p&gt;

&lt;p&gt;The current REA workbench includes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Built-in bounded parsers for PE, ELF, and WebAssembly v1.&lt;/li&gt;
&lt;li&gt;Structural diffing.&lt;/li&gt;
&lt;li&gt;SHA-256 evidence tracking.&lt;/li&gt;
&lt;li&gt;A local SQLite forensic casebook.&lt;/li&gt;
&lt;li&gt;14 MCP tools.&lt;/li&gt;
&lt;li&gt;11 optional static external-tool adapters.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The tool discovery catalog lists 124 tools, but &lt;strong&gt;cataloged does not mean installed or executable&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Live Ghidra, IDA, JADX, and Frida automation remains on the roadmap.&lt;/p&gt;

&lt;p&gt;We are also not positioning the project as an autonomous exploitation framework. The current workbench emphasizes authorized, read-only investigation.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Open Source?
&lt;/h2&gt;

&lt;p&gt;Reverse engineering benefits from independently verifiable findings.&lt;/p&gt;

&lt;p&gt;If a tool identifies an import, an export, or a binary difference, another engineer should be able to inspect the relevant artifact and reproduce that observation.&lt;/p&gt;

&lt;p&gt;The same principle applies to agent skills.&lt;/p&gt;

&lt;p&gt;A reusable engineering procedure should have defined inputs, limitations, and verification steps—not just an impressive prompt.&lt;/p&gt;

&lt;p&gt;That's the direction we're pursuing with REI Skills.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try It and Help Shape the Next Release
&lt;/h2&gt;

&lt;p&gt;The project is public, and contributions are welcome.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Live Developer Hub:&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://rootcastleco.github.io/rei-skills/" rel="noopener noreferrer"&gt;https://rootcastleco.github.io/rei-skills/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;REI Skills GitHub:&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://github.com/rootcastleco/rei-skills" rel="noopener noreferrer"&gt;https://github.com/rootcastleco/rei-skills&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;REI Reverse Engineering Workbench:&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://github.com/rootcastleco/Rei-Reverse-engineer" rel="noopener noreferrer"&gt;https://github.com/rootcastleco/Rei-Reverse-engineer&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you work with firmware, embedded systems, Android internals, binary analysis, protocols, or AI agent infrastructure, I'd be interested in your feedback.&lt;/p&gt;

&lt;p&gt;In particular:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Which reverse-engineering workflow would you actually trust an AI agent to perform, and what evidence would you require before accepting its conclusions?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;That's a more interesting engineering question than whether an AI can produce a convincing answer.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Built by Rootcastle Engineering &amp;amp; Innovation. Open source, reproducible workflows, and an engineering-first approach to AI tooling.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>agents</category>
      <category>ai</category>
      <category>opensource</category>
      <category>security</category>
    </item>
  </channel>
</rss>
