Binary deobfuscation / v0.1

TwilightBench

Can an AI agent take apart a heavily obfuscated binary and return a working, standalone result?

Dark conifers fading into dense blue-grey forest mist.
OrbitCurve benchmarks

Take it apart.
Make it work.

Dennis Yu / Unsplash
Pass conditionT1 · Standalone result
ExecutionHarbor on AWS
ResultsView leaderboard ↗

TwilightBench measures whether AI agents and LLMs can deobfuscate heavily obfuscated binaries across different architectures. It records the result, latency, cost, tool use and test-time compute required to finish the job.

One task, start to finish

  1. Analyze the binary. The evaluated model or product agent receives the obfuscated binary, a precise RE objective and the approved tools. It receives no original source, private solution or human help.
  2. Return the requested files. The task may ask for devirtualized source, a clean binary, lifted IR, decoded bytecode, an unpacked image or mappings.
  3. Collect the output. Harbor collects the declared files when the attempt ends. Collection does not award deobfuscation credit.
  4. Check the result. TwilightBench uses task-specific static and dynamic checks. Submitted code runs separately from the private answers. A separate comparison checks the captured results.
  5. Publish the score. T1 means a complete standalone result. Partial recovery, cost, time and compute are reported separately.

What a full pass means

The submitted files must satisfy every required objective. Behavior alone is not enough when the task also requires recovered control flow, VM mappings, loader state or removal of an obfuscation layer.

A T1 result passes all required behavior, structure, mapping and obfuscation-removal checks. It builds, loads or runs through the declared interface. It does not call, load, embed or depend on the original obfuscated implementation that the task required it to remove.

Different correct implementations are allowed unless the task explicitly requires exact reconstruction. An explanation, renamed binary, retained VM, wrapper around the challenge or hardcoded output table does not establish complete deobfuscation.

Partial recovery stays visible

Each scored objective receives its full declared weight when every check assigned to it passes. Otherwise it receives zero. Obfuscation-removal coverage is the passed objective weight divided by the total objective weight.

The result also shows the highest level reached:

Level Result
T1 Complete standalone result.
T2 All declared recovery completed, including the required complete behavior checks.
T3 At least 50% of the weighted objectives pass, together with the required partial behavior, relationships and mappings.
T4 At least one scored recovery objective passes.
T5 The required machine-readable structure identification passes. Not applicable when a task has no identification stage.

The grading rules define the complete requirements. T1 is the pass condition.

The answers stay outside the task

The model or agent cannot read the original source, clean reference, private symbols, correct mappings, expected outputs or checking code. This applies to the Linux workspace and any assigned Windows machine or emulator.

Submitted code is also kept away from the private answers. The checking environment receives test inputs when needed, captures the output and passes checked values to a separate comparison. That comparison never executes submitted code.

Private checking starts after the attempt ends. It gives no private-case feedback to the evaluated system. Docent is used for post-run analysis and cannot change the score.

Two tracks. The same task requirements.

Product Agent Systems evaluates complete products with their recorded model, version, tools and settings.

Standardized Harness Models evaluates raw model APIs through the same Mini-SWE-Agent version and configuration.

Harbor executes official attempts on AWS. Toolsets are selected for each task. Windows and full-system tasks require matching environments and private checks. The additional Windows/MCP setup still requires implementation and testing before those tasks enter official runs.

The two tracks are not combined into one model ranking. Open-tool and licensed-tool results are also kept separate.

Compare complete runs

Every compared configuration receives the same task revision, tools and declared resource limits. Each attempt starts without another attempt’s files or analysis. Public internet access and human help are not available.

The attempt count and limits are fixed before a campaign. Current pilot values are two hours, four CPU cores, 8 GB memory, 20 GB writable storage and a model cost cap. These are starting values, not a claim that every task has identical requirements. See the run protocol.

For repeated runs, calculate each task’s T1 frequency first, then average across tasks. Every task has equal weight. The leaderboard shows raw success counts, T1–T5 results, coverage, mapping correctness, latency, cost and compute. These are not combined into one score.

A worked custom VM example

The public example is a stripped Linux x86-64 C++ program with a custom eight-register VM. It includes the author package, source, build steps, correct recovery, task-specific checks and incomplete submissions.

Download the author submission or download the complete worked example.

The example contains its answers so authors can inspect the whole process. It is excluded from scored tasks. Its bundled checker is educational and does not replace the separate AWS checking setup.