WiREBench: Evaluating AI Agents' Capabilities in Reverse-Engineering Black-Box Applications in the Real World

Alexandra Maxwell, Robin Rheem, Mona Wang, Benjamin Mixon-Baca, Tianneng Shi, Jeffrey Knockel, Ali Aldakheel, Basel Alomair, Prateek Mittal, Dawn SongNeurIPS 2026 Evaluations and Datasets Track Poster 2026

TL;DR

Frontier AI agents are getting surprisingly good at reverse-engineering real-world, black-box mobile apps—not just toy CTF puzzles. Using WiREBench, a new benchmark built from popular Android apps, top AI agents successfully identified, exploited, and reproduced proprietary network encryption protocols roughly half the time. Even more striking: when unleashed on 228 previously un-audited protocols in the wild, an AI agent uncovered 63 confirmed vulnerabilities across 56 major apps.

What Problem Does This Paper Address?

Most cybersecurity benchmarks test AI agents on Capture-The-Flag (CTF) games, isolated subtasks (like decompiling a single function), or open-source software where the source code is already available. That leaves a massive blind spot: end-to-end reverse-engineering of real-world, black-box binaries.

In the real world, millions of mobile apps—especially in the Chinese mobile ecosystem—roll their own proprietary network encryption instead of sticking to standard TLS. Prior work found that nearly half of the top 1,000 apps on the Xiaomi Mi Store used non-standard encryption, often riddled with classic mistakes like hardcoded static keys or broken custom ciphers. Auditing these apps by hand is painstaking, slow work. WiREBench asks: can AI agents chain together static code analysis, network traffic inspection, and live app instrumentation to do it themselves?

Methods

WiREBench drops an AI agent into a containerized environment equipped with standard reverse-engineering tools (JADX, Ghidra, tshark, Frida, adb) and a rooted Cuttlefish virtual Android device. Giving the agent a virtualized phone is key: it lets the agent run the app, hook functions in memory at runtime, and watch how data is actually encrypted.

Figure 1: Overview of WiREBench dataset construction pipelines, agent reverse-engineering environ- ment, and task validation.

Given only an Android APK and captured network traffic (PCAPs), the agent must complete up to three subtasks per protocol:

  1. desc-vuln (Audit): Identify the cryptographic primitives, key derivation, and any vulnerabilities in a structured metadata.json file.
  2. poc-decrypt (Exploit): Write a proof-of-concept script to decrypt captured past network traffic.
  3. repro (Reproduce): Write a standalone Python script that faithfully reproduces the app's encryption from scratch.

To test whether this works beyond a benchmark, the authors also built an automated pipeline to scan 2,000 top apps (1,000 from Google Play, 1,000 from Xiaomi Mi Store), cluster proprietary encrypted traffic, and point an AI agent (CC/Sonnet 4.6) at the resulting 228 protocols.

Datasets

  • WiREBench Historical Benchmark: 22 unique network protocols (16 from prior vulnerability disclosures, 6 novel vulnerabilities discovered by the authors) totaling 61 subtasks. Five protocols had no vulnerabilities and only tested desc-vuln and repro. The protocols span Java and native C/C++ code, obfuscation, anti-analysis checks, and customized ciphers.
  • Unexplored Protocol Dataset: 2,000 top APKs collected in December 2025, yielding 628 apps with proprietary encryption and 228 distinct protocols for large-scale auditing.

Key Insights and Ideas

  • Exploiting is easier than understanding: Agents frequently passed poc-decrypt without passing repro. Why? By using Frida to hook the app's own decryption function in memory, an agent can decrypt past traffic without ever figuring out the math of a custom or obfuscated cipher.
  • Dynamic instrumentation is a force multiplier: When apps used obfuscation, native code, or custom ciphers, agents leaned heavily on dynamic tools (like Frida and adb). When the authors stripped away the Android VM—forcing agents to rely purely on static analysis—success rates dropped noticeably for the top systems.
  • Early wrong turns burn budgets: Agents rarely failed because they lacked raw knowledge; they failed because they made an unverified assumption early on (e.g., analyzing the wrong library) or blew their context window reading massive files, running out of their 180-minute / $15 budget.
Figure 4: Distribution of % tool use calls dedicated to dynamic instrumentation (e.g. writing Frida scripts, making adb calls, and other application interaction, as opposed to static reverse-engineering or other tools) across protocol categories and across systems.

Key Results

On the 22-protocol benchmark (requiring success on all available subtasks):

  • Claude Code / Opus 4.7: 53.6% (±2.0%) overall success across 5 trials.
  • Codex / GPT-5.4: 50.4% (±6.6%) overall success across 5 trials.
  • Gemini CLI / Gemini 3.1 Pro: 45.5% (single run; later multi-trial runs were blocked by model refusals).
  • Claude Code / Opus 4.6: 40.9% (single run).

Removing dynamic VM access dropped single-run success for both Opus 4.7 and GPT-5.4 to 45.5%.

In the real-world scan of 228 unexplored protocols, the agent pipeline uncovered 63 confirmed protocol vulnerabilities across 56 applications (representing ~120 billion lifetime installs, median ~180M per app). All 63 flaws involved insecure static-key cryptography, leaking sensitive data like user IDs, hardware specs, and GPS locations.

Limitations and Future Work

  • Market and vulnerability bias: Because proprietary network encryption is heavily concentrated in the Chinese mobile market, the dataset skews toward static-key symmetric ciphers rather than diverse cryptographic flaws.
  • Non-interactive scope: The benchmark excludes interactive server-dependent attacks (like padding oracles) because external servers can be patched or taken offline, breaking reproducibility.
  • Live benchmark challenges: Real-world apps and model endpoints change—one benchmark sample went stale when its server updated, and Gemini 3.1 Pro began refusing tasks between April and July 2026.

Future work includes expanding to iOS, Windows, and IoT firmware, building replicable environments for interactive attacks, and improving agents' specialized tool use for obfuscated and native binaries.

Summary updated

BibTeX
@inproceedings{maxwell2026wirebench,
  author = {Alexandra Maxwell and Robin Rheem and Mona Wang and Benjamin Mixon-Baca and Tianneng Shi and Jeffrey Knockel and Ali Aldakheel and Basel Alomair and Prateek Mittal and Dawn Song},
  title = {{WiREBench: Evaluating AI Agents' Capabilities in Reverse-Engineering Black-Box Applications in the Real World}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=GAGiMuRFqW},
}
Figure