Danny-1223 commited on
Commit
41a6da3
·
verified ·
1 Parent(s): 8787f12

Add dataset card, manifest, and overview image

Browse files
Files changed (3) hide show
  1. README.md +185 -0
  2. manifest.jsonl +0 -0
  3. overview.png +3 -0
README.md ADDED
@@ -0,0 +1,185 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ task_categories:
4
+ - other
5
+ language:
6
+ - en
7
+ - code
8
+ tags:
9
+ - reverse-engineering
10
+ - cryptography
11
+ - binary-analysis
12
+ - benchmark
13
+ - security
14
+ - decompilation
15
+ pretty_name: CREBench
16
+ size_categories:
17
+ - n<1K
18
+ configs:
19
+ - config_name: default
20
+ data_files:
21
+ - split: train
22
+ path: manifest.jsonl
23
+ ---
24
+
25
+ # CREBench
26
+
27
+ **CREBench** is a benchmark for evaluating large language models (LLMs) on **cryptographic binary reverse engineering**.
28
+
29
+ - **Paper:** [arXiv:2604.03750](https://arxiv.org/abs/2604.03750)
30
+ - **Code:** [wangyu-ovo/CREBench](https://github.com/wangyu-ovo/CREBench)
31
+ - **Project Page:** [CREBench Homepage](https://jams-zhou-james.github.io/CREBench/)
32
+
33
+ ![CREBench Overview](overview.png)
34
+
35
+ ## Dataset Description
36
+
37
+ CREBench measures reverse-engineering performance on cryptographic binaries across four evaluation levels:
38
+
39
+ | Level | Task |
40
+ |-------|------|
41
+ | **L1** | Algorithm identification |
42
+ | **L2** | Key (and IV) extraction |
43
+ | **L3** | Wrapper-level code reimplementation |
44
+ | **L4** | Flag recovery |
45
+
46
+ The main benchmark corpus contains:
47
+
48
+ - **48** cryptographic algorithms
49
+ - **3** key embedding modes: `hardcode_plain`, `fragmented_build`, `weak_prng_seeded`
50
+ - **3** compilation / obfuscation difficulties: `O0`, `O3`, `constxor`
51
+ - **432** challenge instances in total (`48 × 3 × 3`)
52
+
53
+ ### Algorithms
54
+
55
+ `3-Way`, `A5-1`, `A5-2`, `AES-128-CBC`, `ARIA-128-CBC`, `Anubis-128-CBC`, `BF-CBC-Official`, `CAMELLIA-128`, `CAST5`, `ChaCha20`, `Clefia`, `Crypto-1`, `DES`, `DESX`, `E0`, `GOST-28147-89`, `IDEA`, `KHAZAD-64`, `Kalyna-128`, `Kasumi`, `Kuznyechik-128-ECB`, `LEA`, `LOKI97`, `Lucifer-128-ECB`, `MAGENTA-128`, `MARS`, `MISTY1-64`, `NOEKEON`, `RC2-CBC-Official`, `RC4`, `RC5-CBC`, `RC6`, `SAFER`, `SC2000`, `SEED`, `SHACAL-2`, `SHARK`, `SKIPJACK`, `SM4-CBC-Official`, `Serpent`, `Simon`, `Speck`, `Square`, `TEA`, `Threefish`, `Unicorn-A`, `XTEA`, `XXTEA`
56
+
57
+ ## Dataset Structure
58
+
59
+ Each algorithm directory (e.g. `CREBench/AES-128-CBC/`) contains:
60
+
61
+ ```text
62
+ CREBench/<algorithm>/
63
+ config.yaml # Challenge metadata and evaluation config
64
+ challenge_src/ # Source templates and generated key material
65
+ generated/<key_mode>/metadata.json # Ground-truth key, IV, flag, and ciphertext
66
+ public-<key_mode>-<difficulty>/ # Public release artifacts for one instance
67
+ challenge # Stripped ELF binary
68
+ address.json # Ghidra function address map
69
+ decompile/ # Ghidra decompiled function dumps
70
+ test_vectors-<key_mode>.json # Mode-specific verification vectors
71
+ src/ # Reference cryptographic implementation
72
+ python_implementation/ # Python reference (when available)
73
+ ```
74
+
75
+ ### Instance naming convention
76
+
77
+ Public instance directories follow the pattern:
78
+
79
+ ```text
80
+ public-<key_mode>-<difficulty>
81
+ ```
82
+
83
+ Examples:
84
+
85
+ - `public-hardcode_plain-O0`
86
+ - `public-fragmented_build-O3`
87
+ - `public-weak_prng_seeded-constxor`
88
+
89
+ ### Ground-truth labels
90
+
91
+ Files such as `config.yaml` and `challenge_src/generated/*/metadata.json` contain evaluation labels (keys, IVs, flags, and target ciphertexts). These are **intentional ground-truth annotations** required for automated scoring in the official evaluation harness.
92
+
93
+ ## Usage
94
+
95
+ ### Download the full corpus
96
+
97
+ ```python
98
+ from huggingface_hub import snapshot_download
99
+
100
+ local_dir = snapshot_download("Danny-1223/CREBench", repo_type="dataset")
101
+ print(local_dir)
102
+ ```
103
+
104
+ Or with the Hugging Face CLI:
105
+
106
+ ```bash
107
+ hf download Danny-1223/CREBench --repo-type dataset --local-dir ./CREBench-data
108
+ ```
109
+
110
+ ### Browse the instance index
111
+
112
+ ```python
113
+ from datasets import load_dataset
114
+
115
+ dataset = load_dataset("Danny-1223/CREBench", split="train")
116
+ print(dataset[0])
117
+ ```
118
+
119
+ Each row in `manifest.jsonl` indexes one challenge instance and points to the corresponding binary, decompilation, config, and metadata paths inside the repository.
120
+
121
+ ### Run official evaluation
122
+
123
+ Clone the evaluation code repository and point the runner at the downloaded corpus:
124
+
125
+ ```bash
126
+ git clone https://github.com/wangyu-ovo/CREBench.git
127
+ cd CREBench
128
+ pip install -r requirements.txt
129
+
130
+ # Single challenge
131
+ python3 scripts/run_passk_eval.py \
132
+ --model gpt-5.4 \
133
+ --challenge AES-128-CBC \
134
+ --difficulty O0 \
135
+ --key-mode weak_prng_seeded \
136
+ --pass-k 3
137
+
138
+ # Full benchmark matrix (48 × 3 × 3)
139
+ python3 scripts/run_passk_eval.py \
140
+ --model gpt-5.4 \
141
+ --all-c-all \
142
+ --all-key-modes \
143
+ --difficulty ALL \
144
+ --pass-k 3 \
145
+ --eval-mode full \
146
+ --jobs 4
147
+ ```
148
+
149
+ For Docker-based sandbox setup, Ghidra packaging, and provider configuration, see the [GitHub README](https://github.com/wangyu-ovo/CREBench/blob/main/README.md).
150
+
151
+ ## Evaluation Levels
152
+
153
+ The official harness scores each run on four levels:
154
+
155
+ 1. **L1 — Algorithm identification:** recover the underlying cipher / mode
156
+ 2. **L2 — Key extraction:** recover secret key material (and IV when applicable)
157
+ 3. **L3 — Code reimplementation:** produce a working wrapper-level reimplementation
158
+ 4. **L4 — Flag recovery:** decrypt the target ciphertext and recover the embedded flag
159
+
160
+ ## Supported Models (paper experiments)
161
+
162
+ The paper reports results with:
163
+
164
+ - `gpt-5.4`, `gpt-5.4-mini`, `gpt-5.2`, `o4-mini`
165
+ - `gemini-2.5-pro`
166
+ - `claude-sonnet-4-6`
167
+ - `doubao-seed-1-8-251228`
168
+ - `mimo-v2-pro`
169
+
170
+ ## Citation
171
+
172
+ If you use CREBench, please cite:
173
+
174
+ ```bibtex
175
+ @article{chen2026crebench,
176
+ title={CREBench: Evaluating Large Language Models in Cryptographic Binary Reverse Engineering},
177
+ author={Chen, Baicheng and Wang, Yu and Zhou, Ziheng and Liu, Xiangru and Li, Juanru and Chen, Yilei and He, Tianxing},
178
+ journal={arXiv preprint arXiv:2604.03750},
179
+ year={2026}
180
+ }
181
+ ```
182
+
183
+ ## License
184
+
185
+ Please refer to the [GitHub repository](https://github.com/wangyu-ovo/CREBench) for the latest license terms governing the benchmark corpus and evaluation code.
manifest.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
overview.png ADDED

Git LFS Details

  • SHA256: cb3f1b3eaee0deb9d65628603be6bb7c7734310b493dc71b8780ff0d5a3f1565
  • Pointer size: 131 Bytes
  • Size of remote file: 493 kB