Reverse Engineer Anything: What AI-Driven REA Means for Critical Infrastructure

Table of Contents

For decades, the most effective security control in a lot of OT environments wasn’t a firewall. It was the fact that reverse engineering a PLC was difficult, miserable, expensive work that only a few hundred people on the planet did well. Nobody wrote that control into a policy, it was just the nature of the beast.

Today, however, we have REA, short for Reverse Engineer Anything. And pretty much anyone with a keyboard and internet connection can leverage it. Adoption has been like wildfire; going from under 10,000 GitHub stars to more than 400,000 in about a month.

To be fair to REA, the tool isn’t the problem. It’s how it is being used, and by whom. Reverse engineering has gone from specialist craft to something you install from npm, equally available to your red team and to whoever is scanning port 102 tonight. The result? Plan as if every device, binary and protocol you run is readable, because for all intents and purposes, it is.

REA is an open-source, MIT-licensed tool, first published on GitHub in April 2026, that lets an AI coding agent drive Ghidra or IDA and report back on what it finds, no source code required. It installs from npm as an MCP server, so coding agents such as Claude Code, Cursor and Codex can call reverse engineering tools directly. It handles firmware, packet captures, native binaries, Android apps, .NET assemblies and websites, and it shows the evidence behind each finding.

Every serious ICS attack of the past decade had reverse engineering underneath it. TRISIS didn’t stumble onto the TriStation protocol by happenstance. What changed in 2026 is that you no longer need specialized knowledge; you literally just have to be able to write a couple of well-placed agent prompts.

DateEventWhat it shows
Oct 2026REA stars rise from under 10,000 to about 234,000 in eight days (blacklens.io); now over 400,000, with 100,000+ forksAgent-driven analysis of binaries, firmware (via Binwalk and Unblob) and packet captures is now a free, packaged workflow
Sep 2026Forescout Vedere Labs uses an AI agent with Ghidra to port a pre-auth RCE from a WAGO 750-852 to a 750-8318.5 hours and $535.74 to working code execution; payloads followed in 12 minutes; a later attempt bricked the PLC
Aug 2026Joint advisory AA26-231A (NSA, CISA, FBI, DOE, EPA)AI-generated Python scripts, disguised as monitoring tools, used against exposed Siemens S7 PLCs from S7-200 to S7-1500 F-series
Jul 2026FBI and EPA report unauthorized PLC access at 30+ water utilities in at least seven statesOperators locked out of controls; IP addresses changed remotely
Apr 2026Advisory AA26-097A on Iran-affiliated actors targeting internet-connected PLCsWater, energy and government facilities named; scope widened in July
2017–2024TRISIS, PIPEDREAM, FrostyGoopEach depended on reverse-engineered protocols or controller logic, built by well-resourced teams over months

Notice what AI has done is make old weaknesses (default passwords, exposed services, unpatched firmware) cheaper to exploit at scale. Given how many of those are knowingly or unknowingly sitting on the internet, that’s a lot.

Board briefings on this topic tend to land in one of two schools of thought. It’s either “autonomous AI will take down the grid” or “it’s just hype.” Both are wrong.

MythFact
AI agents are autonomously attacking industrial processes todayNo fully autonomous AI attack on ICS has been confirmed. Observed use is reconnaissance, script generation and exploit adaptation, with humans steering
REA lets anyone hack a PLC in an afternoonThe WAGO port took an expert 8.5 hours of guided sessions. The barrier is significantly lower but not gone
AI is finding brand-new ICS vulnerabilities at scaleYes, it is happening. But many more cases apply known weaknesses (default credentials, exposed services, unpatched firmware) faster and to more targets
Proprietary protocols and closed firmware protect usObscurity was never a control. It was a cost barrier, and agent-driven decompilation eliminated that.
“Hard to exploit” vulnerabilities can waitExploit difficulty is the variable AI erodes most. Prioritizing on difficulty alone is no longer a determinant factor. Cogent Research found average exploit development time fell from 125.3 days to 0.5 days between January 2025 and April 2026.
The only risk is a malicious AIDocumented AI-caused OT damage was an authorized agent bricking a PLC by mistake
Patch the named model and you’re coveredShared components (for example, the Nucleus RTOS stack) span product families. WAGO lists 19 affected models with no update available

The short version: Groups that couldn’t spell S7comm last year can now rent the expertise by the token.

Exposure is worst where you find long-lived embedded devices, firmware shared across a whole product family, and a security team of one person who also runs the help desk. The ratings below are our judgment, not an official ranking.

SectorMost readable targetsLikely impactExposure
Water and Wastewater SystemsInternet-facing PLCs, HMIs, telemetry RTUsTreatment or distribution disruption; already under active attackHigh
EnergySubstation IEDs, protection relays, DER and inverter firmware, gatewaysFaster weaponization of relay and inverter flaws across fleetsHigh
Critical ManufacturingPLC families, robot controllers, engineering softwareLine stoppage, logic tampering, IP theft from controller codeHigh
ChemicalSafety instrumented systems, batch controllersInterference with safety functions; S7-1500 F-series named in AA26-231AHigh
Healthcare and Public HealthMedical device firmware, building managementDevice unavailability; patient-safety riskHigh
Food and AgricultureSmall-plant PLCs, remote-managed controllersProduction and quality disruptionElevated
Transportation SystemsRail signaling, port cranes, traffic and pipeline SCADAPhysical safety and throughput impactElevated
DamsGate and spillway controllers, remote telemetryLow-frequency, high-consequence eventsElevated
Nuclear Reactors, Materials, and WasteBalance-of-plant and support systemsStrong regulation limits exposure; support systems remain readableElevated
Defense Industrial BaseManufacturing OT, supplier firmwareSupply chain compromise and IP lossElevated
Commercial FacilitiesBuilding automation (BACnet), HVAC, access controlPivot point into tenant networks; physical disruptionElevated
Government Services and FacilitiesBuilding systems, municipal utilitiesService disruption; named in AA26-097AElevated
CommunicationsNetwork appliances, edge and IoT firmwarePatch-diffing shrinks time to exploit for edge devicesElevated
Information TechnologyCommercial software, update and build pipelinesUpstream code read once, exploited across every downstream sectorElevated
Emergency ServicesDispatch systems, radio and vehicle telematicsDegraded response capacityModerate
Financial ServicesThick clients, mobile apps, embedded secretsCredential and API exposure; limited physical consequenceModerate

Note: A single readable component, such as an RTOS network stack, can expose a dozen sectors at once, and it doesn’t care which vertical your org chart put you in. Software supply chain multiplies everything: code read once upstream gets exploited downstream, everywhere.

Nobody needed AI to invent new tactics. REA-class tooling is making nefarious behavior easier to do, by more people, with less knowledge and with fewer resources. Mapped to MITRE ATT&CK for ICS (and Enterprise where noted):

PhaseTechniqueWhat REA-class tooling changesExample
Resource developmentObtain/Develop Capabilities: Exploits (T1588.005, T1587.004)Firmware updates are diffed by an agent to find the fixed flaw and build an n-day exploit in days, not weeksPatch for one model analyzed to attack unpatched siblings
ReconnaissanceSearch Open Technical Databases: Scan Databases (T1596.005); Internet Accessible Device (T0883)Shodan, Censys and ZoomEye results fed straight into agent toolingAA26-231A actors located S7 PLCs on TCP 102
Initial accessExploit Public-Facing Application (T0819); Exploitation of Remote Services (T0866)Exploits ported across device families sharing a vulnerable stackWAGO 750-831 pre-auth RCE via FTP
Initial accessHardcoded Credentials (T0891); Default Credentials (T0812)Agents extract embedded keys and passwords from firmware images in minutesOne hard-coded secret exposes every unit in a product line
DiscoveryRemote System Information Discovery (T0888); Point & Tag Identification (T0861)Agents decode proprietary protocols from packet captures and engineering project filesMapping which tags control which pumps or breakers
CollectionProgram Upload (T0845)Uploaded ladder logic is read and explained by an agent, revealing process intentPulling S7 logic via python-snap7
EvasionMasquerading (T0849); Standard Application Layer Protocol (T0869)Scripts built to look and talk like legitimate monitoring toolsAA26-231A scripts disguised as monitoring utilities
ExecutionUnauthorized Command Message (T0855); Modify Parameter (T0836)Protocol-aware tooling generated for Modbus, S7comm, DNP3 and CODESYS without deep expertiseFrostyGoop-style Modbus commands, now cheaper to build
PersistenceModify Program (T0889); Module Firmware (T0839)Logic and firmware modification becomes reachable for mid-tier actorsMalicious changes to reusable PLC code modules (AA26-097A update)
ImpactLoss of Safety (T0880); Manipulation of View (T0832); Denial of Service (T0814)Faster path to safety-system and HMI tampering; failed exploits can brick devicesAgent flash write permanently disabled a PLC

The good news, such as it is: every row above leaves tracks in network traffic, logic changes or engineering workstation behavior. An AI-written script still has to talk to the PLC. Being able to know what you have, understanding what you are looking at, receiving prioritized alerts with context and being able to arrest and/or preempt an attack will help you catch it, whoever or whatever wrote it.

The average time to develop an exploit fell from 125.3 days in January 2025 to 0.5 days by April 2026

(Cogent Research, via Dark Reading)

1. Treat government guidance as the floor, not the finish line

CISA’s Cross-Sector Cybersecurity Performance Goals, NIST SP 800-82r3, ISA/IEC 62443, MITRE ATT&CK for ICS, and sector rules such as NERC CIP and TSA security directives define the minimum. Read the joint advisories too. AA26-231A and AA26-097A aren’t press releases; they list indicators you can hunt for this afternoon. Abroad, NIS2 and the EU Cyber Resilience Act raise the bar on operators and product makers. Compliance is where the conversation starts. No adversary has ever checked whether you passed your audit first.

Example: Consider a water utility that meets its compliance checklist but still has a PLC on TCP 102 facing the internet. AA26-231A names that exact condition. Compliance says “pass"; exposure says otherwise.

2. Know behavior, not just make and model

An inventory that lists “Siemens S7-1200, firmware 4.2" tells you what you bought. It doesn’t tell you what that controller talks to, who downloads logic to it and from where, or what normal looks like at 2 a.m. Someone else’s AI is working that out right now. You should probably get there first.

Example: AA26-231A scripts used legitimate libraries and looked like monitoring tools. An asset list would not flag them. A baseline showing a new host issuing S7comm writes outside a maintenance window would.

3. Apply zero trust to OT, deliberately

Assume every device, credential and protocol in your plant has already been read by someone who isn’t you. Segment by function, require authenticated and explicit paths to controllers, enforce least privilege for engineering access, and put human in the loop approval gates on irreversible actions such as firmware and flash writes. That includes your own AI agents.

Example: In the WAGO experiment, no attacker killed the PLC. An authorized agent did it by accident, with one bad flash write. A human approval step would have saved a perfectly good controller.

4. Look past devices to traffic, code and connections

Adversary agents are reading your firmware, your vendors’ code and your packet captures. It would be awkward if they ended up knowing your environment better than you do. Analyze the firmware and software bills of materials of what you run, map every remote access path and vendor connection, and monitor east-west traffic inside the OT network, not just the perimeter.

Example: One vulnerable RTOS network stack sat inside 19 WAGO models with no patch. Only an organization that knew which components were inside its devices could find every affected unit.

5. Triage findings into Now, Next and Never

The same tools will bury defenders in findings, and a 4,000-row spreadsheet sorted by CVSS is not a plan. Sort by reachability and process consequence, not by CVSS or exploit difficulty.

BucketCriteriaAction
NowReachable from the internet or IT, known exploit or active advisory, or safety consequenceIsolate, mitigate or patch within days
NextReachable only inside OT, high process consequence, shared component across a product familyCompensating controls now; patch at the next planned outage
Never (accept and monitor)Not reachable, low consequence, or patching risks more than it savesDocument the risk decision; monitor for change

Example: An unpatched relay deep in a segmented substation network with no routable path is a “Next.” The same relay behind a vendor VPN with shared credentials is a “Now.”

6. Make it an organizational charter, not a security project

If OT security lives only in the security budget, it will get treated like a line item. AI-driven reverse engineering touches procurement, engineering, legal, operations and the board. Write OT cyber resilience into the corporate charter and risk register. Put security requirements in purchase contracts (SBOMs, vulnerability disclosure, patch commitments). Give operations leaders shared accountability for exposure. Run tabletop exercises that assume an adversary can adapt an exploit across your device fleet in a day.

Example: A manufacturer that requires component disclosure from every PLC and drive vendor can answer, “are we affected?” in hours. One that can’t will spend weeks finding out, and the adversary will likely get there first.

AI-driven reverse engineering isn’t a future risk you can schedule for the next fiscal year. It’s on GitHub, in joint advisories and in published lab results, with how-to REA tutorials on YouTube right now. It has made OT attacks easier and cheaper, and it has opened the door for far more people to try.

Sources

Michael Rothschild is VP of Product Marketing, Enablement and Training at Dragos, bringing over 25 years of experience building and scaling enterprise technology companies across cybersecurity and infrastructure.