Dataset Viewer
Auto-converted to Parquet Duplicate
window_id
int64
timestamp
float64
workload_type
string
llc_load_misses
int64
cache_references
int64
branch_misses
int64
instructions
int64
cycles
int64
mem_loads
int64
llc_miss_rate_change
float64
cache_ref_rate_change
float64
llc_mean_5w
int64
llc_std_5w
int64
cache_mean_5w
int64
label
int64
label_text
string
1
1,700,000,000
idle
1,209
38,387
795
1,353,881
1,234,967
313,649
0
0
1,209
0
38,387
0
SAFE
2
1,700,000,000.2
idle
1,230
40,539
760
1,302,560
1,540,053
248,915
0.0174
0.0561
1,220
15
39,463
0
SAFE
3
1,700,000,000.4
idle
1,281
35,349
757
1,168,791
1,430,317
284,515
0.0415
-0.128
1,240
37
38,092
0
SAFE
4
1,700,000,000.6
idle
907
41,723
752
971,531
1,205,606
276,686
-0.292
0.1803
1,157
169
39,000
0
SAFE
5
1,700,000,000.8
idle
1,273
39,662
791
906,641
1,416,806
265,956
0.4035
-0.0494
1,180
155
39,132
0
SAFE
6
1,700,000,001
idle
1,100
35,505
784
1,151,610
1,506,060
268,529
-0.1359
-0.1048
1,158
158
38,556
0
SAFE
7
1,700,000,001.2
idle
960
39,538
759
1,336,197
1,445,246
235,720
-0.1273
0.1136
1,104
173
38,355
0
SAFE
8
1,700,000,001.4
idle
1,285
38,629
754
1,213,416
1,301,280
300,369
0.3385
-0.023
1,105
174
39,011
0
SAFE
9
1,700,000,001.6
idle
1,227
41,853
775
1,127,478
1,501,390
233,247
-0.0451
0.0835
1,169
138
39,037
0
SAFE
10
1,700,000,001.8
idle
1,119
38,824
754
1,108,992
1,541,314
305,615
-0.088
-0.0724
1,138
126
38,870
0
SAFE
11
1,700,000,002
idle
940
35,635
763
1,337,383
1,251,561
292,000
-0.16
-0.0821
1,106
155
38,896
0
SAFE
12
1,700,000,002.2
idle
940
39,362
768
1,294,457
1,293,476
283,920
0
0.1046
1,102
160
38,861
0
SAFE
13
1,700,000,002.4
idle
994
39,996
794
963,401
1,546,638
279,358
0.0574
0.0161
1,044
126
39,134
0
SAFE
14
1,700,000,002.6
idle
951
37,993
758
1,250,174
1,503,547
230,580
-0.0433
-0.0501
989
76
38,362
0
SAFE
15
1,700,000,002.8
idle
1,102
40,702
797
1,156,759
1,580,112
273,569
0.1588
0.0713
985
69
38,738
0
SAFE
16
1,700,000,003
idle
1,058
40,937
775
1,135,951
1,396,125
304,679
-0.0399
0.0058
1,009
70
39,798
0
SAFE
17
1,700,000,003.2
idle
1,233
37,825
767
1,145,964
1,429,109
243,834
0.1654
-0.076
1,068
109
39,491
0
SAFE
18
1,700,000,003.4
idle
1,218
38,405
767
953,410
1,295,538
314,928
-0.0122
0.0153
1,112
117
39,172
0
SAFE
19
1,700,000,003.6
idle
1,022
36,182
773
1,053,544
1,214,064
252,315
-0.1609
-0.0579
1,127
95
38,810
0
SAFE
20
1,700,000,003.8
idle
1,118
38,862
768
1,123,651
1,586,207
257,735
0.0939
0.0741
1,130
94
38,442
0
SAFE
21
1,700,000,004
idle
1,003
36,704
773
1,279,760
1,282,395
290,930
-0.1029
-0.0555
1,119
107
37,596
0
SAFE
22
1,700,000,004.2
idle
908
37,933
789
1,069,366
1,425,495
240,498
-0.0947
0.0335
1,054
118
37,617
0
SAFE
23
1,700,000,004.4
idle
1,197
35,366
793
999,098
1,549,759
255,253
0.3183
-0.0677
1,050
111
37,009
0
SAFE
24
1,700,000,004.6
idle
1,189
37,235
795
963,319
1,271,408
269,303
-0.0067
0.0528
1,083
125
37,220
0
SAFE
25
1,700,000,004.8
idle
933
36,372
797
1,388,245
1,350,504
312,329
-0.2153
-0.0232
1,046
139
36,722
0
SAFE
26
1,700,000,005
idle
1,118
36,888
785
1,229,451
1,595,650
246,505
0.1983
0.0142
1,069
139
36,759
0
SAFE
27
1,700,000,005.2
idle
1,169
35,364
756
901,959
1,599,784
300,227
0.0456
-0.0413
1,121
110
36,245
0
SAFE
28
1,700,000,005.4
idle
1,215
38,568
765
975,632
1,313,870
257,597
0.0393
0.0906
1,125
113
36,885
0
SAFE
29
1,700,000,005.6
idle
1,203
38,778
754
909,015
1,240,933
261,050
-0.0099
0.0054
1,128
115
37,194
0
SAFE
30
1,700,000,005.8
idle
1,273
39,462
790
1,133,187
1,344,666
230,840
0.0582
0.0176
1,196
57
37,812
0
SAFE
31
1,700,000,006
idle
1,250
40,482
758
1,156,130
1,394,950
282,509
-0.0181
0.0258
1,222
41
38,531
0
SAFE
32
1,700,000,006.2
idle
1,278
39,058
777
925,161
1,225,163
238,735
0.0224
-0.0352
1,244
34
39,270
0
SAFE
33
1,700,000,006.4
idle
913
40,203
786
968,028
1,534,432
235,479
-0.2856
0.0293
1,183
154
39,597
0
SAFE
34
1,700,000,006.6
idle
1,020
36,743
769
1,027,332
1,395,580
260,741
0.1172
-0.0861
1,147
169
39,190
0
SAFE
35
1,700,000,006.8
web_server
1,396
39,336
807
1,236,978
2,401,346
455,451
0.3686
0.0706
1,171
199
39,164
0
SAFE
36
1,700,000,007
web_server
1,351
42,072
826
1,593,116
1,673,302
469,769
-0.0322
0.0696
1,192
213
39,482
0
SAFE
37
1,700,000,007.2
web_server
1,196
42,561
811
1,281,432
2,952,187
452,198
-0.1147
0.0116
1,175
208
40,183
0
SAFE
38
1,700,000,007.4
web_server
1,341
43,728
815
1,294,939
1,633,006
519,743
0.1212
0.0274
1,261
154
40,888
0
SAFE
39
1,700,000,007.6
web_server
1,293
43,696
847
1,684,349
1,649,362
474,344
-0.0358
-0.0007
1,315
76
42,279
0
SAFE
40
1,700,000,007.8
web_server
1,353
40,256
804
1,692,296
2,044,042
542,004
0.0464
-0.0787
1,307
67
42,463
0
SAFE
41
1,700,000,008
web_server
1,295
39,543
847
1,380,990
1,939,540
490,226
-0.0429
-0.0177
1,296
62
41,957
0
SAFE
42
1,700,000,008.2
web_server
1,115
41,979
806
1,480,679
1,961,136
527,284
-0.139
0.0616
1,279
96
41,840
0
SAFE
43
1,700,000,008.4
web_server
1,341
39,920
818
1,461,347
1,642,257
529,845
0.2027
-0.049
1,279
96
41,079
0
SAFE
44
1,700,000,008.6
web_server
1,312
40,142
818
1,274,064
2,405,131
462,137
-0.0216
0.0056
1,283
97
40,368
0
SAFE
45
1,700,000,008.8
web_server
1,396
43,684
820
1,604,995
2,858,147
505,410
0.064
0.0882
1,292
106
41,054
0
SAFE
46
1,700,000,009
web_server
1,152
41,272
842
1,650,949
2,441,159
536,682
-0.1748
-0.0552
1,263
123
41,399
0
SAFE
47
1,700,000,009.2
web_server
1,368
44,519
805
1,580,888
2,584,815
525,693
0.1875
0.0787
1,314
96
41,907
0
SAFE
48
1,700,000,009.4
web_server
1,282
40,001
840
1,704,078
1,537,817
496,381
-0.0629
-0.1015
1,302
95
41,924
0
SAFE
49
1,700,000,009.6
web_server
1,152
41,025
801
1,480,231
2,279,803
511,958
-0.1014
0.0256
1,270
116
42,100
0
SAFE
50
1,700,000,009.8
web_server
1,299
44,018
811
1,284,337
2,762,459
465,661
0.1276
0.073
1,251
96
42,167
0
SAFE
51
1,700,000,010
web_server
1,392
44,055
825
1,886,995
1,555,803
480,307
0.0716
0.0008
1,299
94
42,724
0
SAFE
52
1,700,000,010.2
web_server
1,291
41,100
846
1,245,938
2,279,059
509,087
-0.0726
-0.0671
1,283
86
42,040
0
SAFE
53
1,700,000,010.4
web_server
1,296
40,534
818
1,790,576
1,711,908
532,687
0.0039
-0.0138
1,286
86
42,146
0
SAFE
54
1,700,000,010.6
web_server
1,269
43,573
836
1,345,258
2,310,100
536,772
-0.0208
0.075
1,309
48
42,656
0
SAFE
55
1,700,000,010.8
web_server
1,230
44,800
823
1,299,950
2,023,095
545,170
-0.0307
0.0282
1,296
60
42,812
0
SAFE
56
1,700,000,011
web_server
1,196
44,209
844
1,445,131
1,533,212
522,456
-0.0276
-0.0132
1,256
43
42,843
0
SAFE
57
1,700,000,011.2
web_server
1,193
43,698
822
1,539,687
2,644,655
488,236
-0.0025
-0.0116
1,237
45
43,363
0
SAFE
58
1,700,000,011.4
web_server
1,233
41,257
818
1,568,163
2,694,079
486,177
0.0335
-0.0559
1,224
31
43,507
0
SAFE
59
1,700,000,011.6
web_server
1,257
43,024
813
1,394,266
2,893,461
522,353
0.0195
0.0428
1,222
27
43,398
0
SAFE
60
1,700,000,011.8
web_server
1,273
42,886
801
1,632,672
2,215,214
504,575
0.0127
-0.0032
1,230
36
43,015
0
SAFE
61
1,700,000,012
web_server
1,208
39,489
810
1,865,521
2,053,919
496,668
-0.0511
-0.0792
1,233
33
42,071
0
SAFE
62
1,700,000,012.2
web_server
1,116
39,225
836
1,576,666
2,213,930
474,312
-0.0762
-0.0067
1,217
62
41,176
0
SAFE
63
1,700,000,012.4
web_server
1,323
40,009
809
1,522,499
1,858,048
474,746
0.1855
0.02
1,235
78
40,927
0
SAFE
64
1,700,000,012.6
web_server
1,294
42,906
841
1,492,396
1,516,936
477,367
-0.0219
0.0724
1,243
83
40,903
0
SAFE
65
1,700,000,012.8
web_server
1,394
42,578
835
1,205,150
2,229,129
453,753
0.0773
-0.0076
1,267
108
40,841
0
SAFE
66
1,700,000,013
web_server
1,271
44,525
848
1,578,387
2,133,128
544,502
-0.0882
0.0457
1,280
102
41,849
0
SAFE
67
1,700,000,013.2
web_server
1,302
39,389
823
1,368,172
2,151,687
495,547
0.0244
-0.1154
1,317
47
41,881
0
SAFE
68
1,700,000,013.4
web_server
1,275
41,141
808
1,552,604
2,728,325
516,401
-0.0207
0.0445
1,307
50
42,108
0
SAFE
69
1,700,000,013.6
web_server
1,202
44,613
846
1,346,544
1,463,068
524,131
-0.0573
0.0844
1,289
69
42,449
0
SAFE
70
1,700,000,013.8
web_server
1,348
44,807
844
1,620,374
2,248,084
452,784
0.1215
0.0043
1,280
53
42,895
0
SAFE
71
1,700,000,014
web_server
1,174
41,758
831
1,590,076
2,588,218
477,977
-0.1291
-0.068
1,260
72
42,342
0
SAFE
72
1,700,000,014.2
web_server
1,269
39,529
821
1,725,113
2,509,441
549,064
0.0809
-0.0534
1,254
68
42,370
0
SAFE
73
1,700,000,014.4
web_server
1,183
41,989
816
1,508,422
2,771,120
518,421
-0.0678
0.0622
1,235
73
42,539
0
SAFE
74
1,700,000,014.6
web_server
1,365
40,221
844
1,241,834
2,821,759
482,907
0.1538
-0.0421
1,268
89
41,661
0
SAFE
75
1,700,000,014.8
db_queries
6,056
136,536
975
1,206,796
2,818,296
471,834
3.4366
2.3946
2,209
2,152
60,007
1
ATTACK
76
1,700,000,015
db_queries
9,025
169,025
921
1,813,325
2,224,523
387,598
0.4903
0.238
3,780
3,591
85,460
1
ATTACK
77
1,700,000,015.2
db_queries
13,189
206,610
923
1,695,202
2,419,627
436,195
0.4614
0.2224
6,164
5,133
118,876
1
ATTACK
78
1,700,000,015.4
db_queries
15,500
289,286
902
1,734,712
1,352,999
541,245
0.1752
0.4002
9,027
5,629
168,336
1
ATTACK
79
1,700,000,015.6
db_queries
24,275
482,645
929
1,372,625
1,975,387
437,242
0.5661
0.6684
13,609
6,992
256,820
1
ATTACK
80
1,700,000,015.8
db_queries
20,413
449,785
881
1,623,918
1,289,157
366,253
-0.1591
-0.0681
16,480
5,992
319,470
1
ATTACK
81
1,700,000,016
db_queries
15,984
477,037
1,043
1,242,426
2,402,452
542,435
-0.217
0.0606
17,872
4,432
381,073
1
ATTACK
82
1,700,000,016.2
db_queries
17,690
366,897
884
1,176,238
2,663,963
402,235
0.1067
-0.2309
18,772
3,627
413,130
1
ATTACK
83
1,700,000,016.4
db_queries
20,264
472,353
916
1,694,007
1,466,830
400,485
0.1455
0.2874
19,725
3,147
449,743
1
ATTACK
84
1,700,000,016.6
db_queries
22,329
327,545
885
1,730,532
1,641,450
405,392
0.1019
-0.3066
19,336
2,496
418,723
1
ATTACK
85
1,700,000,016.8
db_queries
21,750
393,880
865
1,252,767
1,658,133
566,134
-0.0259
0.2025
19,603
2,703
407,542
1
ATTACK
86
1,700,000,017
db_queries
18,789
387,336
879
1,345,741
2,652,599
397,151
-0.1361
-0.0166
20,164
1,951
389,602
1
ATTACK
87
1,700,000,017.2
db_queries
22,615
414,806
923
1,251,471
1,989,611
351,135
0.2036
0.0709
21,149
1,601
399,184
1
ATTACK
88
1,700,000,017.4
db_queries
21,346
366,189
875
1,497,509
1,729,660
478,609
-0.0561
-0.1172
21,366
1,523
377,951
1
ATTACK
89
1,700,000,017.6
db_queries
15,280
331,187
1,001
1,177,572
2,548,786
431,875
-0.2842
-0.0956
19,956
2,977
378,680
1
ATTACK
90
1,700,000,017.8
db_queries
16,469
279,375
898
1,215,742
1,568,729
442,366
0.0778
-0.1564
18,900
3,115
355,779
1
ATTACK
91
1,700,000,018
db_queries
12,008
204,989
858
1,388,389
1,314,299
431,443
-0.2709
-0.2663
17,544
4,390
319,309
1
ATTACK
92
1,700,000,018.2
idle
5,287
97,694
830
1,058,694
1,417,808
315,817
-0.5597
-0.5234
14,078
5,949
255,887
1
ATTACK
93
1,700,000,018.4
idle
8,901
159,143
873
1,042,247
1,885,337
307,888
0.6836
0.629
11,589
4,598
214,478
1
ATTACK
94
1,700,000,018.6
idle
9,977
265,666
780
999,456
1,463,468
241,198
0.1209
0.6694
10,528
4,120
201,373
1
ATTACK
95
1,700,000,018.8
idle
12,791
310,443
889
1,036,940
1,281,100
211,069
0.282
0.1685
9,793
2,959
207,587
1
ATTACK
96
1,700,000,019
idle
17,960
418,461
895
1,035,122
1,167,467
325,764
0.4041
0.3479
10,983
4,737
250,281
1
ATTACK
97
1,700,000,019.2
idle
13,888
276,138
921
1,363,326
1,358,270
253,295
-0.2267
-0.3401
12,703
3,568
285,970
1
ATTACK
98
1,700,000,019.4
idle
16,396
369,513
805
1,134,601
1,967,119
319,776
0.1806
0.3381
14,202
3,118
328,044
1
ATTACK
99
1,700,000,019.6
idle
14,642
316,417
894
911,855
1,259,391
293,873
-0.107
-0.1437
15,135
2,053
338,194
1
ATTACK
100
1,700,000,019.8
idle
15,045
334,090
777
1,026,634
1,939,810
282,683
0.0275
0.0559
15,586
1,609
342,924
1
ATTACK
End of preview. Expand in Data Studio

YAML Metadata Warning:The task_categories "anomaly-detection" is not in the official list: text-classification, token-classification, table-question-answering, question-answering, zero-shot-classification, translation, summarization, feature-extraction, text-generation, fill-mask, sentence-similarity, text-to-speech, text-to-audio, automatic-speech-recognition, audio-to-audio, audio-classification, audio-text-to-text, voice-activity-detection, depth-estimation, image-classification, object-detection, image-segmentation, text-to-image, image-to-text, image-to-image, image-to-video, unconditional-image-generation, video-classification, reinforcement-learning, robotics, tabular-classification, tabular-regression, tabular-to-text, table-to-text, multiple-choice, text-ranking, text-retrieval, time-series-forecasting, text-to-video, image-text-to-text, image-text-to-image, image-text-to-video, visual-question-answering, document-question-answering, zero-shot-image-classification, graph-ml, mask-generation, zero-shot-object-detection, text-to-3d, image-to-3d, image-feature-extraction, video-text-to-text, keypoint-detection, visual-document-retrieval, any-to-any, video-to-video, other

HPC Dataset

Dataset Description

The HPC Dataset is a specialized tabular dataset designed for the detection of cache-based side-channel attacks in virtualized environments. It captures low-level Hardware Performance Counter (HPC) metrics sampled at high frequency (200ms intervals) to distinguish between benign VM workloads and active adversarial attacks attempting to leak sensitive data via shared cache infrastructure (e.g., Prime+Probe, Flush+Reload).

By incorporating varied background workloads (idle, web_server, db_queries) and engineered temporal features, this dataset provides a robust foundation for training and evaluating machine learning-based intrusion detection systems (IDS) tailored for cloud and hypervisor security.

Dataset Summary

  • Format: Tabular data (CSV/Parquet)
  • Sampling Rate: 200ms per window
  • Features: 14 (3 Metadata, 6 Raw Counters, 5 Engineered/Temporal)
  • Target Variable: label (Binary: 0 = SAFE, 1 = ATTACK)
  • Class Balance: Balanced dataset (50% SAFE, 50% ATTACK) distributed equally across all workload types to prevent model bias.

Supported Tasks

  • Tabular Classification: Training models (e.g., XGBoost, Random Forest, Neural Networks) to classify time windows as benign or malicious.
  • Anomaly Detection: Identifying sudden deviations in cache behavior using statistical thresholds or isolation algorithms.

Column Explanations

The dataset consists of 16 columns, logically grouped into metadata, raw hardware counters, engineered temporal features, and ground-truth labels.

Metadata & Context

Column Name Data Type Description
window_id Integer A unique, sequential identifier for each 200ms time window. Resets per recording session.
timestamp Float The Unix timestamp marking the start of the measurement window. Consecutive rows are exactly ~0.2 seconds apart.
workload_type String The specific task running inside the victim Virtual Machine during the window. Values: idle, web_server, db_queries. Included to ensure the model generalizes across different baseline resource usages.

Raw Hardware Performance Counters (HPCs)

Note: All raw counters represent the total count of events observed within the 200ms window.

Column Name Data Type Description
llc_load_misses Integer Last Level Cache Load Misses. The number of memory load instructions that missed the LLC and had to fetch from main memory. This is the primary signal for side-channel attacks, as attackers force victims' data out of the shared cache.
cache_references Integer Total Cache Accesses. The total number of instructions that accessed any level of the CPU cache. Serves as a baseline for overall cache activity and a key attack signal.
branch_misses Integer Branch Predictor Failures. The number of times the CPU branch predictor guessed incorrectly. Acts as a secondary signal, as attack patterns can disrupt normal execution flow.
instructions Integer Retired Instructions. The total number of CPU instructions successfully executed. Used primarily as a normalization feature to account for varying workload intensities.
cycles Integer CPU Cycles Elapsed. The total number of CPU clock cycles during the window. Used alongside instructions to calculate IPC (Instructions Per Cycle) for normalization.
mem_loads Integer Memory Load Instructions. The total number of load instructions retired. A supporting signal that helps contextualize memory access patterns.

Engineered & Temporal Features

Column Name Data Type Description
llc_miss_rate_change Float The percentage change in LLC misses compared to the previous 200ms window. Engineered to highlight sudden spikes indicative of an active cache eviction attack.
cache_ref_rate_change Float The percentage change in total cache references compared to the previous window. Engineered to detect abnormal surges in probing activity.
llc_mean_5w Float The rolling mean of llc_load_misses over the last 5 windows (1 second). Provides temporal smoothing to separate short-lived attack spikes from gradual workload shifts.
llc_std_5w Float The rolling standard deviation of llc_load_misses over the last 5 windows. Captures the variance of cache misses; attacks typically cause high variance compared to stable workloads.
cache_mean_5w Float The rolling mean of cache_references over the last 5 windows (1 second). Provides a smoothed baseline of overall cache traffic.

Labels

Column Name Data Type Description
label Integer The binary classification target. 0 = SAFE (Benign), 1 = ATTACK (Adversarial side-channel activity).
label_text String Human-readable string mapping of the label column (SAFE or ATTACK). Dropped during model training, kept for readability and visualization.

Class Distribution & Workload Breakdown

The dataset is carefully balanced to prevent classifier bias. Both the SAFE and ATTACK classes constitute 50% of the dataset.

Furthermore, the attacks are distributed uniformly across the victim's workload states:

Workload Type SAFE Samples ATTACK Samples
idle Balanced Balanced
web_server Balanced Balanced
db_queries Balanced Balanced

This ensures that the detection model learns to identify the attack based on HPC anomalies rather than simply associating high cache usage with the db_queries workload.

Dataset Creation

Data Collection: Data was gathered by running controlled cache-based side-channel attack scenarios against a victim Virtual Machine. During execution, hardware performance counters were polled via the perf subsystem (or hypervisor-equivalent APIs) at strict 200ms intervals.

Feature Engineering: To make the dataset immediately usable for ML models and to capture the behavioral aspect of the attack (sudden spikes), rolling statistics (mean, standard deviation over 1 second) and rate-of-change features were calculated and appended to the raw counter data.

Usage Example (Hugging Face Datasets)

from datasets import load_dataset

# Load the dataset
dataset = load_dataset("sarimahsan101/hpc-dataset")

# Access the pandas dataframe
df = dataset["train"].to_pandas()

# Separate features (X) and labels (y)
feature_cols = [
    'llc_load_misses', 'cache_references', 'branch_misses', 
    'instructions', 'cycles', 'mem_loads', 'llc_miss_rate_change', 
    'cache_ref_rate_change', 'llc_mean_5w', 'llc_std_5w', 'cache_mean_5w'
]

X = df[feature_cols]
y = df['label']

# Example: Train a simple classifier
from sklearn.ensemble import RandomForestClassifier
clf = RandomForestClassifier()
clf.fit(X, y)

Considerations for Use

  • Environmental Specificity: HPC values are highly dependent on the specific CPU microarchitecture (e.g., Intel Skylake vs. AMD Zen). Models trained on this dataset should be re-calibrated or fine-tuned if deployed on different hardware.
  • High Frequency Noise: Because the sampling window is small (200ms), natural OS scheduling jitter can cause minor anomalies. The inclusion of the rolling mean/std features helps mitigate this, but users should be aware of potential false positives in highly volatile environments.
Downloads last month
29