Update README.md with new sub-datasets
Browse files
README.md
CHANGED
|
@@ -12,6 +12,10 @@ pretty_name: Chameleon
|
|
| 12 |
size_categories:
|
| 13 |
- 1K<n<10K
|
| 14 |
configs:
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
- config_name: DFS
|
| 16 |
data_files: "DFS/*.h5"
|
| 17 |
- config_name: RD
|
|
@@ -25,9 +29,10 @@ configs:
|
|
| 25 |
# Chameleon
|
| 26 |
|
| 27 |
The `Chameleon` is a dataset designed for side-channel analysis of obfuscated power traces.
|
| 28 |
-
It contains real-world power traces collected from a 32-bit RISC-V System-on-Chip
|
| 29 |
-
|
| 30 |
-
|
|
|
|
| 31 |
Each side-channel trace includes multiple cryptographic operations
|
| 32 |
interleaved with general-purpose applications.
|
| 33 |
|
|
@@ -57,13 +62,15 @@ from datasets import load_dataset
|
|
| 57 |
|
| 58 |
sub_dataset = load_dataset("hardware-fab/Chameleon", '<sub_dataset>')
|
| 59 |
```
|
| 60 |
-
Replace `<sub_dataset>` with `DFS`, `RD`, `MRP`, or `
|
| 61 |
|
| 62 |
## Dataset Structure
|
| 63 |
|
| 64 |
The dataset is divided per hiding countermeasure. Each file has the following structure:
|
| 65 |
-
* **Data:** The data are power traces of 134,217,550 time samples.
|
| 66 |
-
|
|
|
|
|
|
|
| 67 |
* **Metadata:** The metadata are divided into three groups:
|
| 68 |
* **Ciphers:** This group contains the AES inputs:
|
| 69 |
* `key`: The secret key used for AES encryption.
|
|
@@ -71,7 +78,8 @@ The dataset is divided per hiding countermeasure. Each file has the following st
|
|
| 71 |
* **Pinpoints:** This group contains the start and end time samples of each AES execution in each trace file.
|
| 72 |
* `start`: The starting sample of the AES encryption. It takes values ranging from 0 to 134,217,550.
|
| 73 |
* `end`: The ending sample of the AES encryption. It takes values ranging from 0 to 134,217,550.
|
| 74 |
-
* **Frequencies:** This group provides labels for each power trace, indicating the frequency changes during the measurement.
|
|
|
|
| 75 |
* `samples`: This field denotes the time sample at which a frequency change happens, with integer values ranging from 0 to 134,217,550.
|
| 76 |
* `frequencies`: This field specifies the new operating frequency starting from the corresponding sample. It can take floating values from 5MHz to 100MHz.
|
| 77 |
|
|
@@ -85,6 +93,22 @@ keeping the remaining 15 fixed.
|
|
| 85 |
|
| 86 |
| Chunk | First key byte values | Disk size (GB) | # Data |
|
| 87 |
|----------------|----------------|----------------|----------------|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 88 |
| dfs_chunk_1.h5 | [0x00-0x0f] | 4.3 | 16 |
|
| 89 |
| dfs_chunk_2.h5 | [0x10-0x0f] | 4.3 | 16 |
|
| 90 |
| dfs_chunk_3.h5 | [0x20-0x2f] | 4.3 | 16 |
|
|
@@ -149,6 +173,22 @@ keeping the remaining 15 fixed.
|
|
| 149 |
| chf_chunk_14.h5 | [0xd0-0xdf] | 17.2 | 64 |
|
| 150 |
| chf_chunk_15.h5 | [0xe0-0xef] | 17.2 | 64 |
|
| 151 |
| chf_chunk_16.h5 | [0xf0-0xff] | 17.2 | 64 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 152 |
|
| 153 |
Following the structure of the dataset, below are HDF5 fields used and their atomic type:
|
| 154 |
|
|
@@ -209,7 +249,7 @@ that has been modified to implement the analyzed hiding methods. In particular,
|
|
| 209 |
we implement random delay and dynamic frequency scaling in hardware,
|
| 210 |
while morphing and chaffing are software-implemented. Notably,
|
| 211 |
the CPU is clocked at 50MHz for all acquisition campaigns,
|
| 212 |
-
except for the DFS
|
| 213 |
is instructed to change the operating frequency of
|
| 214 |
the computing platform randomly at its maximum speed.
|
| 215 |
|
|
|
|
| 12 |
size_categories:
|
| 13 |
- 1K<n<10K
|
| 14 |
configs:
|
| 15 |
+
- config_name: BASE
|
| 16 |
+
data_files: "BASE/*.h5"
|
| 17 |
+
- config_name: DFS_MRP
|
| 18 |
+
data_files: "DFS_MRP/*.h5"
|
| 19 |
- config_name: DFS
|
| 20 |
data_files: "DFS/*.h5"
|
| 21 |
- config_name: RD
|
|
|
|
| 29 |
# Chameleon
|
| 30 |
|
| 31 |
The `Chameleon` is a dataset designed for side-channel analysis of obfuscated power traces.
|
| 32 |
+
It contains real-world power traces collected from a 32-bit RISC-V System-on-Chip implementing four hiding countermeasures:
|
| 33 |
+
Dynamic Frequency Scaling (DFS), Random Delay (RD), Morphing (MRP), and Chaffing (CHF).
|
| 34 |
+
The dataset includes side-channel power traces without any active countermeasure (BASE)
|
| 35 |
+
as well as the combination of Dynamic Frequency Scaling and Morphing (DFS_MRP).
|
| 36 |
Each side-channel trace includes multiple cryptographic operations
|
| 37 |
interleaved with general-purpose applications.
|
| 38 |
|
|
|
|
| 62 |
|
| 63 |
sub_dataset = load_dataset("hardware-fab/Chameleon", '<sub_dataset>')
|
| 64 |
```
|
| 65 |
+
Replace `<sub_dataset>` with `BASE`, `DFS`, `RD`, `MRP`, `CHF`, or `DFS_MRP`.
|
| 66 |
|
| 67 |
## Dataset Structure
|
| 68 |
|
| 69 |
The dataset is divided per hiding countermeasure. Each file has the following structure:
|
| 70 |
+
* **Data:** The data are power traces of 134,217,550 time samples.
|
| 71 |
+
BASE, DFS, RD, MRP, CHF, and DFS_MRP sub-dataset
|
| 72 |
+
contain 256, 256, 512, 512, 1024, and 256 data respectively.
|
| 73 |
+
The traces capture the SoC execution of AES encryptions interleaved with general-purpose applications.
|
| 74 |
* **Metadata:** The metadata are divided into three groups:
|
| 75 |
* **Ciphers:** This group contains the AES inputs:
|
| 76 |
* `key`: The secret key used for AES encryption.
|
|
|
|
| 78 |
* **Pinpoints:** This group contains the start and end time samples of each AES execution in each trace file.
|
| 79 |
* `start`: The starting sample of the AES encryption. It takes values ranging from 0 to 134,217,550.
|
| 80 |
* `end`: The ending sample of the AES encryption. It takes values ranging from 0 to 134,217,550.
|
| 81 |
+
* **Frequencies:** This group provides labels for each power trace, indicating the frequency changes during the measurement.
|
| 82 |
+
_Notably, this metadata is only available for the sub-datasets with DFS enabled_. Each metadata has two fields:
|
| 83 |
* `samples`: This field denotes the time sample at which a frequency change happens, with integer values ranging from 0 to 134,217,550.
|
| 84 |
* `frequencies`: This field specifies the new operating frequency starting from the corresponding sample. It can take floating values from 5MHz to 100MHz.
|
| 85 |
|
|
|
|
| 93 |
|
| 94 |
| Chunk | First key byte values | Disk size (GB) | # Data |
|
| 95 |
|----------------|----------------|----------------|----------------|
|
| 96 |
+
| base_chunk_1.h5 | [0x00-0x0f] | 4.3 | 16 |
|
| 97 |
+
| base_chunk_2.h5 | [0x10-0x0f] | 4.3 | 16 |
|
| 98 |
+
| base_chunk_3.h5 | [0x20-0x2f] | 4.3 | 16 |
|
| 99 |
+
| base_chunk_4.h5 | [0x30-0x3f] | 4.3 | 16 |
|
| 100 |
+
| base_chunk_5.h5 | [0x40-0x4f] | 4.3 | 16 |
|
| 101 |
+
| base_chunk_6.h5 | [0x50-0x5f] | 4.3 | 16 |
|
| 102 |
+
| base_chunk_7.h5 | [0x60-0x6f] | 4.3 | 16 |
|
| 103 |
+
| base_chunk_8.h5 | [0x70-0x7f] | 4.3 | 16 |
|
| 104 |
+
| base_chunk_9.h5 | [0x80-0x8f] | 4.3 | 16 |
|
| 105 |
+
| base_chunk_10.h5 | [0x90-0x9f] | 4.3 | 16 |
|
| 106 |
+
| base_chunk_11.h5 | [0xa0-0xaf] | 4.3 | 16 |
|
| 107 |
+
| base_chunk_12.h5 | [0xb0-0xbf] | 4.3 | 16 |
|
| 108 |
+
| base_chunk_13.h5 | [0xc0-0xcf] | 4.3 | 16 |
|
| 109 |
+
| base_chunk_14.h5 | [0xd0-0xdf] | 4.3 | 16 |
|
| 110 |
+
| base_chunk_15.h5 | [0xe0-0xef] | 4.3 | 16 |
|
| 111 |
+
| base_chunk_16.h5 | [0xf0-0xff] | 4.3 | 16 |
|
| 112 |
| dfs_chunk_1.h5 | [0x00-0x0f] | 4.3 | 16 |
|
| 113 |
| dfs_chunk_2.h5 | [0x10-0x0f] | 4.3 | 16 |
|
| 114 |
| dfs_chunk_3.h5 | [0x20-0x2f] | 4.3 | 16 |
|
|
|
|
| 173 |
| chf_chunk_14.h5 | [0xd0-0xdf] | 17.2 | 64 |
|
| 174 |
| chf_chunk_15.h5 | [0xe0-0xef] | 17.2 | 64 |
|
| 175 |
| chf_chunk_16.h5 | [0xf0-0xff] | 17.2 | 64 |
|
| 176 |
+
| dfs_mrp_chunk_1.h5 | [0x00-0x0f] | 4.3 | 16 |
|
| 177 |
+
| dfs_mrp_chunk_2.h5 | [0x10-0x0f] | 4.3 | 16 |
|
| 178 |
+
| dfs_mrp_chunk_3.h5 | [0x20-0x2f] | 4.3 | 16 |
|
| 179 |
+
| dfs_mrp_chunk_4.h5 | [0x30-0x3f] | 4.3 | 16 |
|
| 180 |
+
| dfs_mrp_chunk_5.h5 | [0x40-0x4f] | 4.3 | 16 |
|
| 181 |
+
| dfs_mrp_chunk_6.h5 | [0x50-0x5f] | 4.3 | 16 |
|
| 182 |
+
| dfs_mrp_chunk_7.h5 | [0x60-0x6f] | 4.3 | 16 |
|
| 183 |
+
| dfs_mrp_chunk_8.h5 | [0x70-0x7f] | 4.3 | 16 |
|
| 184 |
+
| dfs_mrp_chunk_9.h5 | [0x80-0x8f] | 4.3 | 16 |
|
| 185 |
+
| dfs_mrp_chunk_10.h5 | [0x90-0x9f] | 4.3 | 16 |
|
| 186 |
+
| dfs_mrp_chunk_11.h5 | [0xa0-0xaf] | 4.3 | 16 |
|
| 187 |
+
| dfs_mrp_chunk_12.h5 | [0xb0-0xbf] | 4.3 | 16 |
|
| 188 |
+
| dfs_mrp_chunk_13.h5 | [0xc0-0xcf] | 4.3 | 16 |
|
| 189 |
+
| dfs_mrp_chunk_14.h5 | [0xd0-0xdf] | 4.3 | 16 |
|
| 190 |
+
| dfs_mrp_chunk_15.h5 | [0xe0-0xef] | 4.3 | 16 |
|
| 191 |
+
| dfs_mrp_chunk_16.h5 | [0xf0-0xff] | 4.3 | 16 |
|
| 192 |
|
| 193 |
Following the structure of the dataset, below are HDF5 fields used and their atomic type:
|
| 194 |
|
|
|
|
| 249 |
we implement random delay and dynamic frequency scaling in hardware,
|
| 250 |
while morphing and chaffing are software-implemented. Notably,
|
| 251 |
the CPU is clocked at 50MHz for all acquisition campaigns,
|
| 252 |
+
except for the DFS ones, for which the DFS actuator
|
| 253 |
is instructed to change the operating frequency of
|
| 254 |
the computing platform randomly at its maximum speed.
|
| 255 |
|