Defending against AI reverse engineering with nested prompt injection

Aphid_red · reddit · 2026-11-24

A Reddit user proposes an 'offense as defense' scheme against REA (AI-assisted reverse engineering): encrypt strings with a packer, inject a second set of instruction strings before the string section (fixing memory offsets), then encrypt everything again. When an AI analyzes the binary, it first encounters instructions impersonating an authoritative OpenAI/Anthropic-style system prompt claiming continued reversing violates the copyright license, plus a verification 'key' whose sha256 hash only matches on the developer's #DEBUG build machine. The author argues this defeats script-kiddie attacks because lab defenses don't cover injections that reinforce apparent existing instructions, and asks whether similar research exists.

Original post →

More from coding & agent

coding & agent channel →