|
Download README.md from scarena/scarena-example: direct link, hf CLI and curl.
- Browser
- Download file 5.27 kB
-
https://huggingface.co/datasets/scarena/scarena-example/resolve/main/README.md
- Command line
-
hf download hf://datasets/scarena/scarena-example/README.md
-
curl -L -o README.md https://huggingface.co/datasets/scarena/scarena-example/resolve/main/README.md
5.27 kB
| pretty_name: SCArena ASCADf Interactive Power Analysis Example | |
| language: | |
| - en | |
| license: other | |
| license_name: ascad-open-licence | |
| license_link: https://huggingface.co/datasets/scarena/scarena-example/blob/main/DATA_LICENSE.md | |
| task_categories: | |
| - other | |
| tags: | |
| - benchmark | |
| - side-channel-analysis | |
| - power-analysis | |
| - aes | |
| - agents | |
| - semi-synthetic | |
| # SCArena ASCADf example | |
| This repository distributes the complete measured-fragment bank for | |
| **AES-ASCADF-DISTRACTED-001**, together with a preview, public task metadata and | |
| the English agent prompt. A standalone runner is included below; the development repository is | |
| [SCArena on GitHub](https://github.com/wyxsjtu/SCArena/tree/main/cases/aes-ascadf-distracted-v3). | |
|  | |
| The candidate recovers the 14 unknown bytes of an AES-128 key through an interactive | |
| Oracle. Key bytes 0 and 1 are public (`00 00`). The Oracle accepts chosen plaintexts, | |
| returns power traces and full AES ciphertexts, and enforces capture and time budgets. | |
| This is a non-profiling task. No acquisition settings are preconfigured. | |
| ## Contents | |
| | Path | Content | | |
| |---|---| | |
| | `bank/manifest.json` | Frozen construction parameters, class counts and file hashes | | |
| | `bank/*_traces.npy` | Contiguous int8 waveform excerpts from official ASCADf records | | |
| | `bank/*_offsets.npy` | Input-class indices for the target excerpt pools | | |
| | `bank/background.npy`, `bank/distractors.npy` | Virtual background and unrelated measured excerpts | | |
| | `release.json` | Release version, budgets, bank identity and runtime image references | | |
| | `agent_prompt.md`, `task.example.json` | Public task instructions and reference metadata | | |
| | `preview/capture.npz` | Four illustrative generated records with plaintexts and ciphertexts | | |
| | `runner.zip` | Standalone launch scripts, Compose file, prompt and pinned release catalog; no GitHub access needed | | |
| The bank contains approximately 1.28 GB of array data. Each of the 14 target bytes | |
| has 50,000 excerpts, grouped into 256 first-round S-box-input classes. A target | |
| excerpt contains 1,600 samples. The generated record contains 36,864 samples and | |
| 16 S-box-like regions, including two decoys. Measured unrelated snippets occur | |
| before and after each core. Operation timing includes common and local shifts. | |
| Target excerpts are sampled without replacement within a run and input class; | |
| decoys and distractors may be reused. Source material can be reused across runs. | |
| ## Running the task | |
| Download the [standalone runner](https://huggingface.co/datasets/scarena/scarena-example/resolve/main/runner.zip?download=true), extract it, and enter `scarena-example`: | |
| ```bash | |
| python -m venv .venv | |
| .venv/bin/pip install -r requirements.txt | |
| .venv/bin/python scripts/example_release.py download | |
| .venv/bin/python scripts/example_release.py prepare --run-dir runtime/candidate-001 | |
| .venv/bin/python scripts/example_release.py up --run-dir runtime/candidate-001 | |
| ``` | |
| The download script pins this dataset to the exact commit in the bundled case's | |
| `release.json` and checks the manifest and array hashes. | |
| The Docker runtime runs locally; it does not require a physical capture board. | |
| Published images currently target Linux/amd64. The default image uses CPU; the | |
| CUDA image is downloaded only when a GPU run is selected. | |
| The two published budget profiles retain the earlier experiment configurations: | |
| | Profile | Traces | Returned samples | Seconds | Configure/capture requests | | |
| |---|---:|---:|---:|---:| | |
| | `default` | 10,000 | 300,000,000 | 1,800 | 256 | | |
| | `expanded` | 32,768 | 1,207,959,552 | 7,200 | 400 | | |
| All limits apply together. At full length, the default sample budget permits at | |
| most 8,138 traces. Windows and decimation can reduce returned samples. Finite | |
| input-class inventories can impose an earlier limit for repeated chosen inputs. | |
| CPU and RAM limits are adjustable; an optional CUDA image supports at most one GPU. | |
| ## Evaluator and candidate access | |
| This bank is an **evaluator-side resource**. It contains operation locations and | |
| input-class labels. Download it on the evaluator host and mount it only into the | |
| Oracle container. Do not mount it into the candidate container or give an evaluated | |
| agent host Docker access. The preview is for human inspection, not an extra source | |
| of evaluation traces. Each evaluation generates a fresh task key locally; this | |
| dataset contains no saved evaluation session or target-key file. | |
| Public data and construction code make local reproduction possible, but also expose | |
| the leakage structure. Fresh target keys do not establish contamination resistance. | |
| ## Provenance and limitations | |
| Source: official ASCADf ATmega8515 measurements, profiling records 0–49,999. | |
| See [DATA_LICENSE.md](DATA_LICENSE.md) for attribution, source links and the upstream | |
| Open Licence. The raw source checksum and construction parameters are in the manifest. | |
| The complete waveform is semi-synthetic. Each core preserves a continuous measured | |
| excerpt and its internal masking relationships. Recombination does not preserve | |
| all cross-byte dependencies of a real device execution. Full AES ciphertexts are | |
| computed in software. This engineering example is not evidence that every future | |
| SCArena hardware task is valid or solvable under every budget profile. | |