04 / TwilightBench
Outputs & grading
T1 through T5, objective weights, mapping checks and the published result.
The verifier grades the artifacts required by the fixed task specification. It does not grade writing quality or whether the system used the author’s preferred workflow. Official scoring is programmatic; an LLM grader does not decide the score.
1. What the verifier grades
Target recovery and completion
A scored target receives recovery credit only when:
- Its public target ID resolves to the required submitted artifact.
- The artifact uses an allowed representation.
- The target’s partial semantic gate passes.
- Its required structural, mapping, obfuscation-removal, runtime-removal, and standalone-execution checks pass. Runtime-removal checks cover the mechanisms the task requires removed, such as anti-debugging, anti-emulation or integrity checks.
A credited target receives its full fixed weight or zero. There is no fractional weight inside a target.
A target is complete for T2 only when its remaining semantic cases also pass. This split lets a one-target task report real partial recovery without calling the target complete. Partial and remaining cases are fixed separately in
reference/test-cases.json.
Output representations
A task may require:
- A native binary or callable routine.
- Buildable source.
- LLVM IR or another declared lifted IR.
- Decoded bytecode.
- An unpacked image.
- Recovery maps. Source is compiled and the result is tested. Source similarity alone is not evidence. Different symbols, layouts, instructions, implementations, or compiler output are valid unless the task explicitly requires exact reconstruction.
2. Recovery tiers
| Level | Concrete result |
|---|---|
| T5: Structure identified | The required machine-readable identification fields pass, such as the dispatcher region, bytecode region, packed stages, or obfuscated target region. A written explanation alone does not establish T5. A task with no identification stage reports T5 as not applicable. |
| T4: At least one target recovered | At least one required scored target earns recovery credit and resolves to the required submitted artifact. |
| T3: Substantial partial recovery | At least 50 percent of the task’s weighted targets pass. Credited targets resolve to the required submitted files, the required partial behavior and integration checks pass, and submitted mappings meet the mapping-correctness requirement defined in the task specification. |
| T2: All declared recovery completed | Every weighted target passes. Every target’s remaining behavior cases pass. All required relationships, mappings, structural checks, and obfuscation-removal checks pass. |
| T1: Complete standalone result | T2 passes. The final output builds, loads, parses, or runs through the declared interface. All remaining behavior and integration checks pass. The output does not depend on the original obfuscated binary, VM runtime, packed loader, or any other task-defined component that was required to be removed. |
T1 is the benchmark pass condition. Obfuscation-removal coverage and T5 through T2 explain partial progress.
Robustness
Robustness is reported next to T1, not above it. Do not use T1-R.
robustness:
unseen_inputs: pass
compiler_variants: pass
optimization_variants: pass
relocation_variants: not_applicable
perturbation_variants: pass
repeated_execution: pass
Obfuscation remaining in the output
Report which obfuscation or runtime mechanisms remain in the submitted output:
- VM dispatcher or bytecode interpreter.
- Opaque predicates.
- Flattened control-flow state.
- MBA expressions.
- Packed or encrypted stages.
- Unresolved indirect branches or handlers.
- Dependencies on the original obfuscated binary, loader, or runtime. Also report the output instruction, block, or IR-node count, whether it builds, and whether it can be loaded into the declared analysis tool. These details explain incomplete obfuscation removal. They do not replace T1 or the weighted target checks.
3. Task-specific checks
Different task families require different evidence.
- Virtualization: dispatcher, opcode set, handler semantics, bytecode decoding, VM state, lifted CFG, path coverage, and removal of the in-scope VM.
- MBA and instruction substitution: bit width, operator set, expression form, flags, memory effects, bitvector equivalence, and any MBA expressions remaining in the output.
- Control-flow obfuscation: blocks, branch predicates, CFG edges, loops, calls, indirect targets, flattening state, opaque predicates, and bogus edges.
- Packing and loaders: payload bytes, sections, permissions, imports, relocations, callbacks, entry point, stage order, and independent loadability.
- Self-modifying code: generated regions, patch order, final code image, final CFG, and removal of required runtime generation.
- Kernel, driver, and firmware: privilege assumptions, ABI, interrupt or exception state, MMIO, load addresses, relocation bases, entry points, device state, and image reconstruction.
4. Two leaderboard sections
Product Agent Systems
This section evaluates complete systems such as Claude Code, Codex, and Kimi. A row measures the named agent, model, version, provider, settings, context management, tool behavior, and harness together.
Standardized Harness Models
This section evaluates raw model APIs through the same recorded standardized harness and adapter, with the same prompt, shell interface, sandbox, workspace, tools, and limits. The two sections use the same accepted task snapshot and verifier but are not mixed into a model-only ranking. A complete Product Agent System result belongs to the full system configuration, not only its underlying model.
5. Official evaluation
- Use the same accepted task snapshot and private verifier for every compared system.
- Compare systems only on the same fixed snapshot and tool track.
- Use the same task-specific environment profile, CPU, memory, storage, and wall-clock limits for each compared attempt.
- Provide no human help, public internet access, or author-provided solving scripts. Private connections to the task’s approved tools and execution machines are allowed.
- Record the exact system, model, provider, harness, tools, settings, and run date.
- For repeated evaluation, run independent attempts under the same fixed configuration.
- Aggregate attempts within each task first, then weight tasks equally.
6. Primary quality metric and ranking
For each task:
T1 frequency = T1 successes / attempts
The primary quality metric is:
mean per-task T1 frequency =
sum(T1 frequency for each task) / number of tasks
For repeated runs, sort by:
- Mean per-task T1 frequency.
- Mean obfuscation-removal coverage.
- Rate of tasks reaching T1 on every attempt.
- Required mappings recovered, where mappings apply. Always show the raw counts:
T1 successes / attempts
tasks solved at least once / tasks
tasks solved on every attempt / tasks
Do not compress quality, cost, latency, and compute into one composite score.
Pass@3
Pass@3 reports the chance of reaching T1 at least once in three independent attempts. With exactly three attempts per task, it is the percentage of tasks solved at least once.
When more than three attempts are recorded, calculate this for each task and average the results equally across all tasks:
Pass@3 = 1 - combinations(n - c, 3) / combinations(n, 3)
n = scored attempts for that task
c = T1 successes for that task
Here, combinations(a, 3) counts the ways to choose three attempts from a. It is zero when fewer than three are available. This is the standard Pass@k calculation.
Show Pass@3 as unavailable unless every task has at least three scored attempts and all scheduled attempts are complete. Infrastructure failures are excluded and their valid replacements count once. T2–T5 and no-credit outcomes do not count as passes. Pass@3 does not change the ranking order above.
7. Progress and failure reporting
Obfuscation-removal coverage
obfuscation_removal_coverage is the weighted percentage of declared targets that passed every required check.
For repeated runs, average the attempts within each task first, then average across tasks. Also show the coverage obtained on each individual task.
Mapping correctness
When a task requires mappings, the verifier checks every submitted relationship against the private answer. Examples include VM opcode to handler, obfuscated function to recovered function, and encoded block to decoded block. Report:
- Required mappings recovered: correct mappings divided by all required mappings.
- Submitted mappings correct: correct mappings divided by all submitted mappings. Missing mappings reduce obfuscation-removal coverage. Incorrect extra mappings count as wrong. Submitting a large list of guessed mappings cannot increase the score.
Recovery tier distribution
Report how many task attempts reached T5, T4, T3, T2, and T1. These tiers do not substitute for T1; they explain concrete partial progress.
System outcomes and infrastructure failures
Report timeout, refusal, invalid submission, build failure, and runtime failure counts separately from provider, controller, environment, artifact-copy, verifier, and aggregation infrastructure failures.
8. Leaderboard columns
| Column | Meaning |
|---|---|
| System configuration | Exact Product Agent System or Standardized Harness Model, provider, harness, prompt, settings, tools, and run date |
| Snapshot and tool track | Exact tasks, manifests, environment profiles, verifier, limits, aggregation version, and open or licensed tool track |
| Tasks and attempts | Raw task count, attempt count, and compatible repeated-run count |
| Mean per-task T1 frequency | Mean of each task’s T1 successes divided by its attempts |
| Pass@3 | Chance of at least one T1 in three attempts, averaged equally across tasks |
| Tasks solved at least once | Tasks with one or more T1 attempts |
| Tasks solved on every attempt | Tasks that reached T1 consistently across all attempts |
| Recovery tier distribution | Number of attempts reaching each tier from T5 through T1 |
| Obfuscation-removal coverage | Weighted percentage of required targets that passed all required checks, averaged within each task first |
| Mapping correctness | Required mappings recovered and submitted mappings correct, where mappings apply |
| Latency | Mean and median end-to-end wall-clock time per attempt |
| System outcome counts | Timeout, refusal, invalid submission, build failure, and runtime failure counts |
| Infrastructure failure counts | Provider, controller, environment, artifact-copy, verifier, and aggregation failures |
| Total and mean cost | Exact provider-billed cost, a visible formula-based estimate, or unavailable |
| Cost per successful T1 | Total model cost divided by successful T1 attempts; unavailable if no attempt reaches T1 |
| Productivity | T1 completions per 100 agent-hours and obfuscation-removal coverage per agent-hour |
| Model-side test-time compute | Input, cached-input, output, and provider-reported reasoning tokens; model calls, turns, and tool calls |
| Workspace compute | CPU time, peak memory, writable storage, build time, and emulator or VM time |
| Public run record | Link to the complete published run record when one is available |
9. Test-time compute and cost
Keep test-time compute in the benchmark definition. In technical tables, split it into the measurements actually collected.
Model-side usage
- Input tokens.
- Cached input tokens.
- Output tokens.
- Provider-reported reasoning tokens.
- Model calls.
- Agent turns.
- Tool calls.
Workspace compute
- CPU time.
- Peak memory.
- Writable storage.
- Build time.
- Emulator or VM time. Tokens are not physical compute across providers. Report the raw provider fields rather than inventing one universal unit. Closed-model FLOPs are not estimated. A cost field is one of:
- Exact provider-billed cost.
- Estimated cost with a visible formula.
- Unavailable. Do not invent a per-run API bill for a subscription product. Distinguish unavailable cost from zero cost.
10. Sortable views
The site exposes separate views instead of hiding the result in one combined score:
- Quality: mean per-task T1 frequency, followed by obfuscation-removal coverage. The T5 through T1 distribution appears alongside them.
- Cost: quality versus USD, cost per successful T1, and obfuscation-removal coverage per dollar.
- Latency: quality versus wall-clock time.
- Productivity: T1 completions and obfuscation-removal coverage per agent-hour.
- Test-time compute: quality versus tokens, calls, turns, tool calls, and workspace compute. The default view remains complete deobfuscation quality. Missing usage or cost fields are shown as unavailable.
11. Breakdowns
Report results by:
- Task.
- Author family.
- Obfuscator family.
- Transformation family.
- Recovery scope.
- Target type.
- Platform and architecture.
- Environment profile.
- Recovery tier. These filters describe tasks and results. They do not change target credit or the ranking metric.
12. v0.1 suite composition
For a 20-task snapshot:
- No author contributes more than 4 tasks.
- No base-program family appears more than twice.
- No exact transformation appears more than 3 times.
- No environment profile covers more than half the suite.
- At least 3 execution profiles are represented.
- At least 3 ISA or platform combinations are represented.
- Include mixed transformations.
- Include both synthetic challenge programs and realistic software.
- Include function-level and larger region or module recovery. The suite should cover virtualization, MBA, control-flow obfuscation, packing, data encoding, anti-analysis, self-modifying or generated code, nontrivial kernel, driver, and firmware contexts, and mixed obfuscation layers.
13. Per-task reporting
One public row per task and evaluated configuration shows:
task ID · benchmark version · tool track · target type · platform · obfuscation type · attempts · T1 successes · T5 through T1 results · obfuscation-removal coverage · mapping correctness · obfuscation remaining in the output · cost · latency
Private clean references, maps, symbols, verifier code, exact expected values, and detailed verifier diagnostics are not published while a task remains live.
14. Result counts
Every official leaderboard result shows:
- Benchmark version.
- Number of tasks evaluated.
- Number of attempts per task.
- T1 successes and total attempts.
- Tasks completed at least once.
- Tasks completed on every attempt.
- Result for each task.
- Invalid submissions and failed runs.
- Final leaderboard score. When repeated runs are used, publish the result of every attempt and the resulting final score. Compare systems only when they were evaluated on the same task versions, tool track, run limits, and number of attempts. Ranking-stability analysis can be added after TwilightBench has substantially more tasks and repeated-run data.
15. Public run records
TwilightBench publishes complete run records only for public example tasks and retired tasks. A published run record contains:
- Model or product name and version.
- Benchmark and task version.
- Starting instructions.
- Model or agent transcript.
- Tool calls.
- Terminal commands and outputs.
- Files submitted for grading.
- Public task result.
- Runtime and cost. Run records for active private tasks are not published. Before publication, remove credentials, private task data, private checker output, internal storage paths, provider account details, and AWS account details. One public run record represents one attempt.
16. Snapshots and versioning
A snapshot freezes:
- Task list and hashes.
- Instructions and manifests.
- Target IDs, weights, dependencies, relationships, and predicates.
- Harness and grader versions plus the expected known-good and task-specific review-case results.
- Environment images and tool versions.
- System adapters and model settings.
- Run limits.
- Aggregation and statistical code.
- Pricing basis.
Adding a task or changing anything that affects scoring creates a new snapshot. A scoring fix requires regrading every affected fixed submission or publishing a new snapshot. Do not rank systems across different snapshots as if the results were directly comparable.
Published snapshots do not change. Every leaderboard row names its snapshot.
Methodology releases use
TwilightBench vMAJOR.MINOR.PATCH. published suite snapshots use separate IDs such astwilight-v0.1-snapshot-001. - MAJOR: the meaning of the benchmark or its primary result changes.
- MINOR: compatible methodology or reporting features are added.
- PATCH: wording or documentation is corrected without changing a score. Any task, verifier, environment, limit, or scoring change that can affect a result creates a new published snapshot ID.