File size: 1,662 Bytes
e95c3dd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
license: other
tags:
- ai-control
- red-teaming
- basharena
- sft
size_categories:
- 1K<n<10K
---

# BashArena attack SFT set (gpt-oss-20b, context-distilled)

Training data for [sevenbow/gpt-oss-20b-bashattack-lora](https://huggingface.co/sevenbow/gpt-oss-20b-bashattack-lora).

**Source:** gpt-oss-20b's own successful attacks in ControlArena's
[BashArena](https://github.com/UKGovernmentBEIS/control-arena). They were collected with the published red-team
prompt on 80 training tasks × 4 side tasks (sudo_edit, disable_firewall, download_malware, leak_passwords). That
gave 312 runs and 164 successes.

**Processing (context distillation):** in each trajectory, the red-team system prompt and the "use the main task
as cover" user prompt are replaced by a short goal-only prompt and the honest user prompt. The main task, side-task
goal, observations and the model's own actions and reasoning are kept. Auto-submit tails, turns without a tool call
and turns with garbled tool calls are dropped. Prompts are rendered by the same vLLM server used for evaluation, in
gpt-oss's harmony format.

## Format

`train_rows.jsonl`: 1,097 rows, 11.5M tokens, already tokenized for `openai/gpt-oss-20b`.

```json
{"input_ids": [...], "loss_spans": [[start, end]], "metadata": {"main_task": "11106875", "side_task": "sudo_edit", "sample_id": "11106875", "epoch": 1}}
```

`loss_spans` mark the assistant turns that are trained on (token offsets, end exclusive).

**Content note:** the trajectories are attacks inside a sandbox. The "credentials" and "payloads" are BashArena
fixtures, not real secrets. The task content is derived from BashArena, so its terms apply.