Akirayasha commited on
Commit
9ebe314
·
verified ·
1 Parent(s): 38b2de2

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +19 -48
README.md CHANGED
@@ -1,46 +1,17 @@
1
  ---
2
  language:
3
- - en
4
  license: mit
5
  task_categories:
6
- - text-generation
7
  tags:
8
- - assembly
9
- - security
10
- - constant-time
11
- - side-channels
12
- - binsec
13
  size_categories:
14
- - n<1K
15
- dataset_info:
16
- features:
17
- - name: task_name
18
- dtype: string
19
- - name: flag_x86_64
20
- dtype: string
21
- - name: flag_aarch64_linux
22
- dtype: string
23
- - name: flag_riscv
24
- dtype: string
25
- - name: x86_64
26
- dtype: string
27
- - name: aarch64_linux
28
- dtype: string
29
- - name: riscv
30
- dtype: string
31
- - name: test_c
32
- dtype: string
33
- splits:
34
- - name: test
35
- num_bytes: 765528
36
- num_examples: 10
37
- download_size: 119846
38
- dataset_size: 765528
39
- configs:
40
- - config_name: default
41
- data_files:
42
- - split: test
43
- path: data/test-*
44
  ---
45
 
46
  # RelBench-O2: Constant-Time Assembly at -O2
@@ -61,10 +32,9 @@ and **classification/repair** (decide whether a build leaks, and fix it if it do
61
  | Column | Description |
62
  |--------|-------------|
63
  | `task_name` | Sample identifier, e.g. `ct_select_1` |
64
- | `flag` | BinSec constant-time verdict: `secure`, `insecure`, or `unknown` -- the `x86_64` build's verdict |
65
- | `flag_x86_64` | BinSec verdict for the x86-64 `-O2` build |
66
- | `flag_aarch64_linux` | BinSec verdict for the AArch64 `-O2` build |
67
- | `flag_riscv` | BinSec verdict for the RISC-V `-O2` build |
68
  | `x86_64` | x86-64 assembly at -O2 (**Intel syntax**, built with `-masm=intel`) |
69
  | `aarch64_linux` | AArch64 assembly at -O2 |
70
  | `riscv` | RISC-V RV64 (`rv64gc`/`lp64d`) assembly at -O2 |
@@ -74,10 +44,11 @@ and **classification/repair** (decide whether a build leaks, and fix it if it do
74
 
75
  - **Total records**: 10
76
 
77
- | flag | count |
78
- |---|---|
79
- | `secure` | 7 |
80
- | `insecure` | 3 |
 
81
 
82
  ## The constant-time oracle
83
 
@@ -96,8 +67,8 @@ markers with `nondet` (public), so BinSec knows which bytes are secret. It then
96
 
97
  **The verdict is per build.** The same program can be secure on one target and insecure on
98
  another, because the three backends make different branch/`cmov`/`csel` choices at -O2.
99
- This dataset's single `flag` column reports the `x86_64` build's verdict; the per-build verdicts are kept
100
- in `flag_x86_64`, `flag_aarch64_linux` and `flag_riscv`.
101
 
102
  ## Usage
103
 
@@ -109,7 +80,7 @@ ds = load_dataset("Akirayasha/relbench_O2", split="test")
109
  record = ds[0]
110
  src_asm = record["x86_64"] # source-side assembly
111
  tgt_asm = record["riscv"] # reference target-side assembly
112
- leaky = record["flag_riscv"] == "insecure" # or flag / flag_x86_64 / flag_aarch64_linux
113
  harness = record["test_c"] # rebuild + recheck a candidate against BinSec
114
  ```
115
 
 
1
  ---
2
  language:
3
+ - en
4
  license: mit
5
  task_categories:
6
+ - text-generation
7
  tags:
8
+ - assembly
9
+ - security
10
+ - constant-time
11
+ - side-channels
12
+ - binsec
13
  size_categories:
14
+ - n<1K
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
  ---
16
 
17
  # RelBench-O2: Constant-Time Assembly at -O2
 
32
  | Column | Description |
33
  |--------|-------------|
34
  | `task_name` | Sample identifier, e.g. `ct_select_1` |
35
+ | `flag_x86_64` | BinSec constant-time verdict for the x86-64 `-O2` build: `secure`, `insecure`, or `unknown` |
36
+ | `flag_aarch64_linux` | Same, for the AArch64 `-O2` build |
37
+ | `flag_riscv` | Same, for the RISC-V `-O2` build |
 
38
  | `x86_64` | x86-64 assembly at -O2 (**Intel syntax**, built with `-masm=intel`) |
39
  | `aarch64_linux` | AArch64 assembly at -O2 |
40
  | `riscv` | RISC-V RV64 (`rv64gc`/`lp64d`) assembly at -O2 |
 
44
 
45
  - **Total records**: 10
46
 
47
+ | column | secure | insecure | unknown |
48
+ |---|---|---|---|
49
+ | `flag_x86_64` | 7 | 3 | 0 |
50
+ | `flag_aarch64_linux` | 9 | 1 | 0 |
51
+ | `flag_riscv` | 4 | 6 | 0 |
52
 
53
  ## The constant-time oracle
54
 
 
67
 
68
  **The verdict is per build.** The same program can be secure on one target and insecure on
69
  another, because the three backends make different branch/`cmov`/`csel` choices at -O2.
70
+ That is why the verdict is not collapsed into one label: each target carries its own
71
+ `flag_*` column.
72
 
73
  ## Usage
74
 
 
80
  record = ds[0]
81
  src_asm = record["x86_64"] # source-side assembly
82
  tgt_asm = record["riscv"] # reference target-side assembly
83
+ leaky = record["flag_riscv"] == "insecure" # per-target verdict
84
  harness = record["test_c"] # rebuild + recheck a candidate against BinSec
85
  ```
86