07 / TwilightBench

Environments & tools

Harbor, AWS and the operating systems and tools each binary requires.

On this page

This page covers the AWS environments used for official TwilightBench runs. Harbor runs the evaluated model or product agent in Linux. The binary and reverse-engineering tools run in Linux or on an assigned machine that meets the task’s requirements. Task authors and TwilightBench reviewers may use other tools while creating and reviewing a task. A tool is available during a scored run only when TwilightBench includes it in the tested task setup. Every model or product agent compared on the same task receives the same operating systems, reverse-engineering tools, tool versions, access, network rules and resource limits. Each run starts with a clean Linux workspace and clean task machines.

1. Task environments

The task determines where the binary and its tools must run:

  • Linux user-mode tasks use the Harbor Linux environment.
  • Tasks requiring Windows use an assigned Windows machine on AWS. The agent accesses its tools and task files through a private MCP server.
  • Symbolic execution runs on the machine supported by the selected tool. It does not require Windows unless the tool or task requires it.
  • Full-system emulation uses the required guest OS, CPU and device configuration. Driver and kernel tasks use a separate guest with the required debugger and privileges. The AWS host must support the chosen emulator or virtualization setup. MCP provides remote access to the tools. It does not replace Windows, supply an emulator or make a VM behave like physical hardware. Tasks with anti-debugging, anti-VM, timing checks or specific device requirements must be tested on the actual setup used for the run. The Windows/MCP integration and additional guest environments described here still need to be implemented and tested. A task enters official runs only after its analysis tools, execution requirements and private checks work on the required AWS setup. The Linux agent environment does not limit the benchmark to Linux binaries.

2. What the evaluated model or product agent receives

  • instruction.md.
  • The obfuscated binary or declared challenge workspace.
  • The task files named in instruction.md, such as headers, sample inputs, templates, loaders, libraries, or required data files.
  • The reverse-engineering tools approved for that task, including access to tools on its assigned Windows machine or emulator when required.
  • A writable analysis workspace and the declared submission directory, normally /app/submission/.
  • The task’s CPU, memory, storage, wall-clock, model-cost, and network limits. Every run starts as a new Harbor Trial. Any assigned Windows machine or emulator guest starts from its tested initial state. No environment contains files, cache, transcript, analysis database, task memory or submission from an earlier run. The task instructions explain how to use remote tools and transfer files. Final output must be copied to the declared submission directory before the run ends. Neither the Linux workspace nor any machine accessible through MCP contains the private original source, unobfuscated reference, private solution, private inputs, expected outputs, private mappings, private symbols or private checking code.

3. Resource limits

Each task may require different amounts of CPU, memory, storage, and time. TwilightBench sets the evaluated-run limits after testing the challenge and running a timed pilot through the expected reverse-engineering workflow. For tasks using more than one machine, record the CPU, memory and storage limits for each machine. One wall-clock limit covers the whole attempt. Rebooting a Windows machine or restarting an emulator does not reset that limit. AWS run cost includes every machine used for the attempt. Submission checking uses separate resource and timeout limits. TwilightBench sets those limits after testing the complete known-good submission and the required failure cases. All compared systems receive the same evaluated-run limits for that task. The limits are fixed before scored runs begin. Raw-model step limits and product-agent settings are defined in 05 Run Protocol & Evaluation.

4. Reverse-engineering tools

The task author recommends the tools a professional reverse engineer would normally use. TwilightBench reviews why each tool is needed, its version, license, supported architecture, network requirements, and whether it can run unattended on AWS. TwilightBench then prepares and tests the Linux environment and any additional task machines. The task lists the exact tools and versions and states where each tool runs. Every model or product agent compared on that task receives the same setup. The current v0.1 Linux base definition includes:

  • Binary inspection: GNU binary utilities, file, strings, objdump, readelf, nm, Binwalk, and YARA.
  • Disassembly and debugging: radare2, r2pipe, GDB, and LLDB.
  • Tracing and emulation: strace, QEMU user mode, and Frida command-line tools.
  • Building and scripting: GCC, Clang, CMake, Make, and Python.
  • Program-analysis libraries: angr, Capstone, Keystone, Unicorn, Miasm, LIEF, pefile, pyelftools, and Ropper.
  • Runtime support: OpenJDK 21 runtime. A tool is listed as available for a scored task only after it starts and performs the operation that task needs on the actual AWS setup. Remote tools must also work through the commands available to the evaluated model or product agent. A task may add tools after review. Examples include Ghidra headless, Z3, Triton, Qiling, QBDI, DynamoRIO, firmware utilities, emulators for analyzing other instruction sets, and specialized compilers or SDKs. Windows tasks may require WinDbg, x64dbg, IDA Pro, Windows SDKs or task-specific drivers. Only tested tools are made available. Licensed tools follow Section 5. During a run, the evaluated model or product agent may use the installed tools, write analysis scripts, compile helper programs and create temporary files in the assigned workspaces. Tasks that need driver loading or changes to the guest OS receive only the required access inside that isolated guest. They receive no access to the AWS host. Packages cannot be downloaded or updated during the run. The Linux environment and every assigned task machine must not contain author solution code, private mappings, private symbols, completed IDA or Ghidra databases, task-specific FLIRT or YARA signatures supplied by the author that reveal the answer, private decoders or any other file that performs the required recovery.

5. Open and licensed toolsets

Open tools

This toolset contains open-source tools provided equally to every system compared within it.

Licensed tools

This toolset may include products such as IDA Pro or Binary Ninja. TwilightBench publishes licensed-tool results only after the same version, features, plugins, configuration, license access, and unattended AWS operation are available to every compared system. Every leaderboard result states its toolset. Open-tool and licensed-tool results are reported separately.

6. Network and access

Harbor’s model client uses the configured model-provider route. The Linux environment may connect to the private MCP service assigned to that attempt. The connection is authenticated and limited to the approved tools and task files. Shell commands and remote tool commands cannot browse the web, download packages, call arbitrary external services or access AWS instance metadata. Those commands receive no AWS credentials, raw provider keys, private storage access, Docker socket or access to the AWS host filesystem. Harbor and the AWS runner use the AWS permissions required to operate the run, but those permissions are not passed to task commands. Any administrator or kernel access required by a task is confined to its assigned guest. The private reference solution, expected answers, private inputs, private mappings, private symbols, and private checking code are never included in model input.

7. Evaluation tracks

Product agents

Product agents run through their official CLI or runtime using a Harbor integration. The result records the product version, model, settings, built-in tools, plugins, and context-window, memory, and compaction settings when the product exposes them. Built-in product features remain subject to the task’s filesystem and network restrictions.

Raw models through Mini-SWE-Agent

Raw model APIs run through the same Mini-SWE-Agent version and configuration. They receive the same task instructions, shell, Linux environment, assigned task machines, tools and limits. Mini-SWE-Agent uses a command-line client for remote MCP tools. Product agents may use native MCP support or the same command-line client. Both routes must expose the same approved tool operations and task files. The two tracks use separate leaderboard sections. The complete run rules are defined in 05 Run Protocol & Evaluation.

8. What each component does

  • Harbor starts the AWS Trial, runs the evaluated model or product agent, records the transcript, and collects the declared submission files.
  • TwilightBench starts and resets any additional task machines for that Trial. The MCP service gives the agent access to their approved tools and files. Remote commands and tool output are kept with the run record.
  • Mini-SWE-Agent provides the agent loop for the raw-model track.
  • Harbor product integrations run supported product agents through their official CLI or runtime.
  • AWS runs the official task and submission-checking environments.
  • The TwilightBench private checker records the passed objectives, calculates the task score, and assigns the highest recovery level reached from T5 to T1.
  • Docent analyzes completed Harbor transcripts after scoring and cannot change the result.
  • The leaderboard publishes the approved public run results and campaign totals. Private checking is described in 06 Private Verifier & Sandbox. AWS deployment and operating instructions are kept in the internal execution runbook.

9. Checks before a scored run

Before a task environment is approved for scored runs, TwilightBench confirms:

  • The Linux task image and any required Windows machine or emulator guest start on the official AWS setup.
  • The challenge can be opened and analyzed, and it runs correctly when execution is part of the task.
  • Every required tool starts, and the task-specific tools can open, debug, trace, emulate, or process the target as intended. Remote tools work through the agent’s MCP connection or command-line client.
  • Required compilers, debuggers, emulators, loaders, SDKs, and plugins work without downloading anything during the run.
  • Licensed tools, when used, work unattended with the approved license setup.
  • CPU, memory, storage, wall-clock, and network limits are enforced.
  • The Linux workspace and every assigned task machine start without files or state from an earlier attempt.
  • File transfer and remote log collection work. Required reboot and reset controls remain usable if the target crashes. All temporary task machines are cleaned up after the attempt.
  • The Linux environment and every assigned task machine contain no private original source, unobfuscated reference source, private solution, private mappings, private symbols, private inputs, private checking code, completed analysis database or author-provided file that reveals the answer.
  • Harbor collects only the declared submission files and rejects missing, invalid, or oversized required files. A task may also require the submission directory to contain no additional files.
  • The complete known-good submission passes the private checker. The full task review is defined in task acceptance requirements.

10. Environment changes

If the Linux task image, task machine configuration, guest OS, emulator configuration, installed tools, remote tool commands, network rules or resource limits change after results exist, TwilightBench creates a new environment version. Results from different environment versions are reported separately. TwilightBench keeps the Linux image, Windows or guest setup and exact tool versions with each run record so the environment used for a result can be identified later.