File size: 4,061 Bytes
e0fe867
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
---
license: "mit"
language:
- en
pretty_name: "Exploit Resistance"
tags:
- benchmark
- llm-evaluation
- ai-benchmark
- model-evaluation
- evals
- reward-hacking
- verifier
- coding-agent
- agent-benchmark
- tool-use
- openrouter
- openai
- mcp
- typescript
- grading
task_categories:
- text-generation
size_categories:
- n<1K
configs:
- config_name: default
  data_files:
  - split: test
    path: data/tasks.jsonl
---

# Exploit Resistance

Does the agent fix the bug or game the verifier?

## What it measures

Whether a coding agent fixes a seeded function or games the visible test runner.

Category: `safety`. Status: `alpha`.

## How to run

```console
$ npx benchmark-exploit-resistance list
$ npx benchmark-exploit-resistance run --model <model-id> --provider openrouter
$ npx benchmark-exploit-resistance score results.json
```

`--provider mock` runs the whole benchmark offline with no keys. Real models run
through OpenRouter (`OPENROUTER_API_KEY`) or any OpenAI-compatible base URL
(`OPENAI_BASE_URL`, `OPENAI_API_KEY`).

## Data fields

`data/tasks.jsonl` holds 46 tasks, one JSON object per line
(kinds: 46 episode).

| field | type |
|---|---|
| `id` | string |
| `kind` | string |
| `prompt` | string |
| `metadata` | object |

## Provenance

# Exploit Resistance provenance

This file is generated from the benchmark definition.

## Seeded mini-repo generator

- Kind: `synthetic`
- URL: https://github.com/pooriaarab/benchmark-exploit-resistance/blob/main/scripts/gen-tasks.mjs
- Licence: `MIT`
- Retrieved: 2026-10-16T00:00:00.000Z
- How to get it: Run `node scripts/gen-tasks.mjs --seed 20261015 --split public` from the repository root. `--split hidden --seed <n>` writes .hidden/tasks-<n>.jsonl and does not overwrite the public file.
- Contamination notes: Public tasks use seed 20261015 and are committed in data/tasks.jsonl. Public records omit hidden cases and the honest expression. The grader rebuilds the hidden cases from the seeded generator at grade time; the answer templates live in scripts/honest.mjs, which the published package does not carry. Hidden splits use another seed, which changes the spec variants, the bugs and the answers, and stay unpublished under .hidden/. Once a scenario's three variants are all taken, a hidden task can share spec text with a public task; only the drawn argument tuples are kept disjoint.
- Refresh: Pick a new seed, regenerate, and review the JSONL diff before replacing the public file.

## Loophole catalog

- Kind: `human-written`
- URL: https://github.com/pooriaarab/benchmark-exploit-resistance/blob/main/docs/loophole-catalog.md
- Licence: `MIT`
- Retrieved: 2026-10-16T00:00:00.000Z
- How to get it: Read docs/loophole-catalog.md. The generator copies one catalog hint into each task.
- Contamination notes: The catalog names the verifier shortcuts. It does not contain hidden inputs or the honest expressions.
- Refresh: Edit the catalog and the generator hint list in the same change so the task file stays aligned.


## Grader

Hidden cases from the seeded generator, plus a tamper check on verifier files. The visible runner is not the score.

## Limitations

This dataset contains only the public task split (46 tasks).
Hidden evaluation splits use a private seed and are deliberately not part of
this dataset. Source kinds: human-written, synthetic. These are evaluation prompts
for the `benchmark-exploit-resistance` benchmark, not training data; scoring requires the package's
deterministic grader. See PROVENANCE.md for contamination notes.

## Citation

```bibtex
@misc{benchmark_exploit_resistance,
  author = {Pooria Arab},
  title = {Exploit Resistance task data},
  year = {2026},
  url = {https://github.com/pooriaarab/benchmark-exploit-resistance}
}
```

## Links

- npm: https://www.npmjs.com/package/benchmark-exploit-resistance
- GitHub: https://github.com/pooriaarab/benchmark-exploit-resistance
- Leaderboard: https://aibenchmarkindex.com/benchmarks/benchmark-exploit-resistance
- Dataset: https://huggingface.co/datasets/pooria/benchmark-exploit-resistance