Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,52 +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 |
-
configs:
|
| 16 |
-
- config_name: default
|
| 17 |
-
data_files:
|
| 18 |
-
- split: test
|
| 19 |
-
path: data/test-*
|
| 20 |
-
dataset_info:
|
| 21 |
-
features:
|
| 22 |
-
- name: task_name
|
| 23 |
-
dtype: string
|
| 24 |
-
- name: flag_x86_64
|
| 25 |
-
dtype: string
|
| 26 |
-
- name: flag_aarch64_linux
|
| 27 |
-
dtype: string
|
| 28 |
-
- name: flag_riscv
|
| 29 |
-
dtype: string
|
| 30 |
-
- name: x86_64
|
| 31 |
-
dtype: string
|
| 32 |
-
- name: aarch64_linux
|
| 33 |
-
dtype: string
|
| 34 |
-
- name: riscv
|
| 35 |
-
dtype: string
|
| 36 |
-
- name: test_c
|
| 37 |
-
dtype: string
|
| 38 |
-
- name: binsec_output_x86_64
|
| 39 |
-
dtype: string
|
| 40 |
-
- name: binsec_output_aarch64_linux
|
| 41 |
-
dtype: string
|
| 42 |
-
- name: binsec_output_riscv
|
| 43 |
-
dtype: string
|
| 44 |
-
splits:
|
| 45 |
-
- name: test
|
| 46 |
-
num_bytes: 802772
|
| 47 |
-
num_examples: 10
|
| 48 |
-
download_size: 140894
|
| 49 |
-
dataset_size: 802772
|
| 50 |
---
|
| 51 |
|
| 52 |
# RelBench-O2: Constant-Time Assembly at -O2
|
|
@@ -74,6 +39,9 @@ and **classification/repair** (decide whether a build leaks, and fix it if it do
|
|
| 74 |
| `aarch64_linux` | AArch64 assembly at -O2 |
|
| 75 |
| `riscv` | RISC-V RV64 (`rv64gc`/`lp64d`) assembly at -O2 |
|
| 76 |
| `test_c` | C source of the BinSec harness (`test.c`) -- tags inputs secret/public through the `high_input_N` / `low_input_N` markers and calls the function under analysis |
|
|
|
|
|
|
|
|
|
|
| 77 |
|
| 78 |
## Statistics
|
| 79 |
|
|
@@ -103,7 +71,9 @@ markers with `nondet` (public), so BinSec knows which bytes are secret. It then
|
|
| 103 |
**The verdict is per build.** The same program can be secure on one target and insecure on
|
| 104 |
another, because the three backends make different branch/`cmov`/`csel` choices at -O2.
|
| 105 |
That is why the verdict is not collapsed into one label: each target carries its own
|
| 106 |
-
`flag_*` column
|
|
|
|
|
|
|
| 107 |
|
| 108 |
## Usage
|
| 109 |
|
|
@@ -117,6 +87,7 @@ src_asm = record["x86_64"] # source-side assembly
|
|
| 117 |
tgt_asm = record["riscv"] # reference target-side assembly
|
| 118 |
leaky = record["flag_riscv"] == "insecure" # per-target verdict
|
| 119 |
harness = record["test_c"] # rebuild + recheck a candidate against BinSec
|
|
|
|
| 120 |
```
|
| 121 |
|
| 122 |
## Citation
|
|
|
|
| 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
|
|
|
|
| 39 |
| `aarch64_linux` | AArch64 assembly at -O2 |
|
| 40 |
| `riscv` | RISC-V RV64 (`rv64gc`/`lp64d`) assembly at -O2 |
|
| 41 |
| `test_c` | C source of the BinSec harness (`test.c`) -- tags inputs secret/public through the `high_input_N` / `low_input_N` markers and calls the function under analysis |
|
| 42 |
+
| `binsec_output_x86_64` | Full `binsec -checkct` log for the x86-64 `-O2` build -- the evidence `flag_x86_64` was parsed from, including the leaking instruction addresses |
|
| 43 |
+
| `binsec_output_aarch64_linux` | Same, for the AArch64 `-O2` build |
|
| 44 |
+
| `binsec_output_riscv` | Same, for the RISC-V `-O2` build |
|
| 45 |
|
| 46 |
## Statistics
|
| 47 |
|
|
|
|
| 71 |
**The verdict is per build.** The same program can be secure on one target and insecure on
|
| 72 |
another, because the three backends make different branch/`cmov`/`csel` choices at -O2.
|
| 73 |
That is why the verdict is not collapsed into one label: each target carries its own
|
| 74 |
+
`flag_*` column, with the full analysis log in the matching `binsec_output_*` column --
|
| 75 |
+
that log names the control-flow and memory-access checks that failed and at which
|
| 76 |
+
addresses, so an `insecure` verdict can be traced back to a specific instruction.
|
| 77 |
|
| 78 |
## Usage
|
| 79 |
|
|
|
|
| 87 |
tgt_asm = record["riscv"] # reference target-side assembly
|
| 88 |
leaky = record["flag_riscv"] == "insecure" # per-target verdict
|
| 89 |
harness = record["test_c"] # rebuild + recheck a candidate against BinSec
|
| 90 |
+
why = record["binsec_output_riscv"] # the BinSec log behind flag_riscv
|
| 91 |
```
|
| 92 |
|
| 93 |
## Citation
|