A Student Just Broke REA With 18 MB of Junk

summarized

TLDR

BLA is a free MIT-licensed tool that blocks the AI reverse engineering tool REA by padding files past REA's size limits and planting decoy logic. A live test confirmed REA errors on a padded Electron archive. The defense is fragile because it depends on REA's current limits, which could be raised in an update.

Key points

REA is an MCP server and CLI tool that reverse engineers apps locally, with 458k GitHub stars.

BLA uses exhaustion (padding files to exceed REA's size limits) and deception (planting decoy logic) to block REA.

A live test on October 27 showed a 607-byte Electron app padded to 16.93 MB caused REA to return an artifact reader failure error.

BLA's cost estimates (1000x tokens, 500x cost) are internal estimates, not from metered runs.

BLA's defense is version-specific; REA could update its limits, and BLA's own disclaimer says no client-side protection guarantees absolute secrecy.

Techniques

  • exhaustion padding
  • opaque predicates
  • decoy logic
  • fake source maps
Transcript (captions)

0:00 I assumed a tool built to stop AI from reading your app would hide the code. B L A's red team log shows something blunter. A 607 byte test app came out at nearly 18 million bytes.

0:12 If you ship an Electron app, a JavaScript bundle, or a game, that matters because R E A, the AI reverse engineering tool that went viral in October, can be pointed at your files.

0:22 All that bloat is how B L A says it stops R E A. I went through B L A's README, that log, and its deception doc to see which of that holds up.

0:32 R E A earned the attention. Its Hacker News launch thread on October 10th pulled 814 points and 340 comments. Point it at an app you ship, and it explains how that app works without your

0:44 source. 404 Media reported people using it to copy features out of other people's apps. Scientific American interviewed R E A's pseudonymous developer, Moore Luto, who calls reverse

0:55 engineering a little bit like pattern matching. Put that next to R E A's own tagline, reverse engineer anything, and the message is easy to hear. If you ship it, an agent can read it.

1:05 By the end, you'll know how B L A blocks today's R E A, which of its claims are proven and which are estimates, and what it adds to the files your users download. Hold on to one question,

1:15 though. Does this stop R E A or just this version of R E A? First, the two sides. R E A is an MCP server, meaning a coding agent calls it like a tool plus a command line version. The agent can

1:29 reverse engineer software from app behavior down to native binaries, and R E A hands back findings with the evidence and limitations behind each one. All run locally. On the other side,

1:39 B L A comes from a developer whose GitHub bio says they're an undergrad who won more than $20,000 across three AI hackathons in six months. On October 25th, the repo went up. It's MIT

1:51 licensed, and the NPM package pulled about 16,000 downloads in the week of November 6th to 12th. GitHub shows stars. An undergrad's repo, not yet three weeks

2:04 old, squaring up to a tool with about 458,000 stars. Two halves make up BLA's trick, and the first is exhaustion. REA has limits on how much it'll read before giving up. Picture handing someone a

2:17 one-page contract buried in 10,000 blank pages. At some point, they stop reading. Your file gets the same treatment, so REA downgrades its examination from complete to limited or stops with a

2:28 capacity error before it reaches your real logic. Where the picture breaks, blank pages are easy to spot and skip. BLA's padding is built so a tool can't easily set it aside, and we'll get to

2:39 how in a minute. Clearest of all is the case BLA's developer ran live. On October 27th, they pointed REA at a test electron file. REA will only read an electron

2:50 archive whose header, its index of files is up to 16 mebibytes. BLA padded that 607 byte file to about 16.93 mebibytes. Subtract the limit, and you're about 0.93 mebibytes over the line. REA names

3:05 the error artifact reader failure, and the message spells the limit out in bytes. REA's answer was basically too big, not reading that. Electron wasn't the only one. In that

3:16 same run, a Go program's build info tripped a 1 mebibyte limit, and a GGUF model file tripped a limit on how many levels things can nest, 32 frames. Across 13 formats in the log, 12 hit

3:28 some budget along the way, and 10 ended in an error or a rejected budget. One GPU PTX hit nothing at all. BLA's README sums it up differently in a 12 row table, and three of those rows carry a

3:41 warning sign. One only nears its cap, one still gives partial results, and one cap is only projected. Broad, but not universal. Now, why doesn't REA just skip the padding? Padding sits behind

3:53 branches that go the same way every time the app runs. BLA calls them opaque predicates, quick number checks whose answer is fixed, so the padding doesn't run for your users. Opaque is the point.

4:04 Fixed, yes, but you can't tell the answer just by reading the check. According to BLA's Readme, REA then hits its size and budget limits before it reaches your core logic. Where exactly

4:15 the padding sits inside each format, the Readme doesn't say. Deception, the second half is sneakier. REA's whole pitch is that it returns evidence and the limits behind each conclusion.

4:26 BLA turns that against it. First, it pushes your real logic past two caps in REA's JavaScript analysis, 256 primitive candidates and 512 alias selections. None of the sources spell out what those

4:40 counters track, only that past them REA tags that code unknown. Meanwhile, it plants decoy logic that hands REA's tools complete observed looking evidence for an algorithm that isn't yours. Think

4:51 about what the agent sees. One part says unknown. Another arrives with full observed evidence. Which one would you write your summary around? Next come format valid fake credentials and fake

5:02 source maps. Source maps are the files that map shipped code back to its original source, exactly what an agent would want to open. Every bit of it aims to steer

5:11 the agent into rebuilding the wrong thing. In the Deception Docs own words, the goal is to induce agents to reconstruct the wrong algorithm. So how much of this is proven? Empirically

5:21 verified in BLA's Readme means one specific thing. A live REA run returned those errors on the developer's own machine. Narrower than the phrase suggests? Sure. And still a real error

5:32 from the real tool. Ghidra, Frida, LLDB, the classic reverse engineering tools weren't run here, and the Readme says so. Then there are the eye-catching numbers, about a thousand

5:44 times more tokens and 500 times the cost across 14 targets, as the Readme reads in mid-November. Both come labeled internal estimates drawn from BLA's catalog of REA's limits, not from

5:56 metered runs. Unprotected, it quotes roughly 20 to 73 cents. Protected, 28 to $359. So the thousand times figure is arithmetic on REA's limits. No source

6:08 shows a real agent running up that bill yet. You pay for all this in bytes. Padding makes files bigger. BLA's own size table shows a 761 byte JavaScript file becoming 116 kibibytes. Divide one

6:21 by the other and that's about 150 times larger in a desktop app that's added install size. On a website, it's extra download for every single visitor and the 116 is before compression, so treat

6:33 it as an upper bound. Load time and CPU cost aren't documented in any of the sources, so that part of the bill you'd have to time yourself. Your users, BLA promises, get the exact

6:43 same app. Checked, yes, but only on the 14 sample files BLA ships with. 14 green checks and none of them ran on your code. Even the README tells you to run your own test suite on your real

6:55 artifacts, which brings back the question from the top. Does this stop REA or just this REA? BLA's defense is a list of REA's current limits, 16 mebibytes here, 256

7:08 primitive candidates there. I put the date on BLA's log next to REA's releases page. October 27th was the live run and the log doesn't say which REA version it tested. REA shipped

7:19 version 6.9.0 on November 12th. Whether those exact limits still live in that build, none of the sources confirm. Raise one limit in an update and the file padded just past

7:30 it is back under the line. BLA's own disclaimer is blunt about this. No client-side protection scheme, it says, can guarantee absolute mathematical secrecy. A determined human analyst is

7:41 who it has in mind. That's a refreshingly plain line to find in a security tools repo, so BLA can stop an automated REA run or send it the wrong way. Making your code unreadable is

7:52 beyond it. My call, if you ship client-side code and you want an automated REA run to stop short or chase the wrong code, BLA is a free MIT licensed way to add that friction today.

8:04 If you ship a website, weigh that 150 times growth against your page budget first. If you're guarding a real secret or you need this to hold against whatever REA

8:13 ships next, nothing here shows it will. Remember that 607 byte file that came out at 16.93 mebibytes. There's the exhaustion half in one number and both halves only pay off while REA's limits

8:26 stay put. I'll leave you with one question. When the tool you're defending against can raise any of those limits in its next release, how many extra bytes is today's

8:35 protection worth to you?

Frontier News · by Hyperjump Technology