THUgewu commited on
Commit
86c75cd
·
verified ·
1 Parent(s): e550bad

Add TsFile (converted from xpertsystems/cyb003-sample)

Browse files
.gitattributes CHANGED
@@ -58,3 +58,6 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
 
 
 
 
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
61
+ execution_events.tsfile filter=lfs diff=lfs merge=lfs -text
62
+ malware_samples.tsfile filter=lfs diff=lfs merge=lfs -text
63
+ sample_summary.tsfile filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,117 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-nc-4.0
3
+ task_categories:
4
+ - tabular-classification
5
+ - time-series-forecasting
6
+ tags:
7
+ - tsfile
8
+ - timeseries
9
+ - cybersecurity
10
+ - malware
11
+ - malware-classification
12
+ - threat-intelligence
13
+ - apt
14
+ - ransomware
15
+ - synthetic-data
16
+ - edr
17
+ - sandbox-evasion
18
+ - polymorphic
19
+ - time-series
20
+ - format:tsfile
21
+ pretty_name: CYB003 — Synthetic Malware Behaviour & Classification (Sample) (TsFile)
22
+ size_categories:
23
+ - 1K<n<10K
24
+ configs:
25
+ - config_name: default
26
+ data_files:
27
+ - split: environment_profiles
28
+ path: environment_profiles.tsfile
29
+ - split: execution_events
30
+ path: execution_events.tsfile
31
+ - split: malware_samples
32
+ path: malware_samples.tsfile
33
+ - split: sample_summary
34
+ path: sample_summary.tsfile
35
+ ---
36
+
37
+ # CYB003 — Synthetic Malware Behaviour & Classification (Sample) (TsFile)
38
+
39
+ Apache TsFile version of [`xpertsystems/cyb003-sample`](https://huggingface.co/datasets/xpertsystems/cyb003-sample).
40
+
41
+ ## Overview
42
+
43
+ **CYB003 — Synthetic Malware Behaviour & Classification Dataset (Sample)** — This is a **free preview** of the full **CYB003 — Synthetic Malware Behaviour & Classification Dataset** product. It contains roughly **1 / 56th of the full dataset** at identical schema, family/tier distribution, and statistical fingerprint, so you can evaluate fit before licensing the full product.
44
+
45
+ - **Tables:** `environment_profiles`, `execution_events`, `malware_samples`, `sample_summary`
46
+ - **Rows:** 7,256 across 4 TsFile table(s).
47
+ - `environment_profiles`: 100 rows — Time is synthetic row index over the stable source order (0 … N-1); the source table has no per-row clock.
48
+ - `execution_events`: 1,056 rows — Time is the source `timestep` simulation step counter, stored as milliseconds (1 step = 1 ms).
49
+ - `malware_samples`: 6,000 rows — Time is the source `timestep` simulation step counter, stored as milliseconds (1 step = 1 ms).
50
+ - `sample_summary`: 100 rows — Time is synthetic row index over the stable source order (0 … N-1); the source table has no per-row clock.
51
+
52
+ ## Schema (TsFile structure)
53
+
54
+ ### `environment_profiles.tsfile`
55
+
56
+ - **Time** (INT64, milliseconds) — synthetic row index over the stable source order (0 … N-1); the source table has no per-row clock.
57
+ - **TAG**: `profile_id` — device dimension(s); query one device with `WHERE profile_id=...`.
58
+ - **FIELD** (11): `segment_id` (string), `endpoint_os` (string), `platform_type` (string), `ep_stack` (string), `patch_currency_score` (double), `user_privilege_level` (string), `network_segment_type` (string), `sandbox_presence_flag` (int64), `av_signature_age_days` (int64), `edr_behavioural_enabled` (int64), `network_egress_filtered` (int64)
59
+
60
+ ### `execution_events.tsfile`
61
+
62
+ - **Time** (INT64, milliseconds) — the source `timestep` simulation step counter, stored as milliseconds (1 step = 1 ms).
63
+ - **TAG**: `sample_id`, `event_type` — device dimension(s); query one device with `WHERE sample_id=...`.
64
+ - **FIELD** (8): `family_id` (string), `execution_phase` (string), `target_pid` (int64), `api_call_name` (string), `registry_key_path` (string), `file_path_mutated` (string), `network_dst_ip_class` (string), `dns_query_domain_class` (string)
65
+
66
+ ### `malware_samples.tsfile`
67
+
68
+ - **Time** (INT64, milliseconds) — the source `timestep` simulation step counter, stored as milliseconds (1 step = 1 ms).
69
+ - **TAG**: `sample_id`, `malware_family` — device dimension(s); query one device with `WHERE sample_id=...`.
70
+ - **FIELD** (28): `family_id` (string), `threat_actor_id` (string), `threat_actor_tier` (string), `target_platform` (string), `execution_phase` (string), `obfuscation_technique` (string), `api_call_rate` (double), `registry_write_count` (int64), `network_connection_count` (int64), `process_injection_flag` (int64), `c2_beacon_interval_sec` (double), `detection_outcome` (string), `av_signature_hit_flag` (int64), `sandbox_evasion_flag` (int64), `lateral_propagation_count` (int64), `privilege_escalation_flag` (int64), `ep_stack` (string), `pe_entropy_mean` (double), `pe_entropy_std` (double), `import_hash_cluster` (int64), `section_count` (int64), `packed_section_ratio` (double), `string_entropy_mean` (double), `byte_histogram_chi2` (double), `code_section_rx_ratio` (double), `resource_section_entropy` (double), `suspicious_import_count` (int64), `packer_detected_flag` (int64)
71
+
72
+ ### `sample_summary.tsfile`
73
+
74
+ - **Time** (INT64, milliseconds) — synthetic row index over the stable source order (0 … N-1); the source table has no per-row clock.
75
+ - **TAG**: `sample_id` — device dimension(s); query one device with `WHERE sample_id=...`.
76
+ - **FIELD** (28): `family_id` (string), `threat_actor_id` (string), `malware_family` (string), `threat_actor_tier` (string), `target_platform` (string), `campaign_attribution_cluster` (int64), `obfuscation_complexity_score` (double), `total_api_calls` (int64), `unique_api_calls` (int64), `registry_mutations_total` (int64), `files_mutated_count` (int64), `network_connections_total` (int64), `lateral_propagation_count` (int64), `c2_sessions_established` (int64), `execution_duration_steps` (int64), `av_detection_flag` (int64), `edr_detection_flag` (int64), `sandbox_evasion_success` (int64), `definitive_detection_flag` (int64), `privilege_escalated_flag` (int64), `data_exfiltrated_flag` (int64), `dwell_time_ratio` (double), `family_attribution_confidence` (double), `lotl_technique_count` (int64), `packer_detected_flag` (int64), `threat_actor_roi_score` (double), `coordinated_campaign_flag` (int64), `campaign_success_flag` (int64)
77
+
78
+ ## Conversion notes
79
+
80
+ - Each CSV of the sample is converted into its own TsFile table (4 tables), so no table is merged with another and no column is dropped.
81
+ - Event/telemetry tables use the source simulation clock as Time (INT64 milliseconds): `timestep` step counters and millisecond offsets are stored as-is, minute-based columns are multiplied by 60,000, and ISO/UTC strings are parsed to epoch milliseconds.
82
+ - Static inventory/topology/summary tables have no per-row clock; their Time is a synthetic row index (0..N-1) over the stable source order.
83
+ - Low-cardinality dimensions of each table (campaign/incident/asset/session ids, phases, labels) are declared as TAG columns; query one simulation with e.g. `WHERE campaign_id='...'`.
84
+
85
+ ## Usage
86
+
87
+ Install the Apache TsFile Python SDK (`pip install tsfile`) and read a converted file:
88
+
89
+ ```python
90
+ from pathlib import Path
91
+ from tsfile import TsFileReader
92
+
93
+ path = Path("environment_profiles.tsfile")
94
+ with TsFileReader(str(path)) as reader:
95
+ schemas = reader.get_all_table_schemas()
96
+ print("tables:", list(schemas))
97
+ table_name = next(iter(schemas))
98
+ table = schemas[table_name]
99
+ columns = [column.get_column_name() for column in table.get_columns()]
100
+ print("columns:", columns)
101
+ field_names = [
102
+ column.get_column_name()
103
+ for column in table.get_columns()
104
+ if column.get_column_name() not in {"Time", "time"}
105
+ ]
106
+ if field_names:
107
+ with reader.query_table(table_name, field_names[:3], batch_size=1024) as result:
108
+ batch = result.read_arrow_batch()
109
+ if batch is not None:
110
+ print(batch.to_pandas().head())
111
+ ```
112
+
113
+ ## Source & license
114
+
115
+ - Original dataset: [`xpertsystems/cyb003-sample`](https://huggingface.co/datasets/xpertsystems/cyb003-sample)
116
+ - Source card title / publisher: CYB003 — Synthetic Malware Behaviour & Classification (Sample)
117
+ - License: cc-by-nc-4.0 (as declared by the original dataset).
environment_profiles.tsfile ADDED
Binary file (21.2 kB). View file
 
execution_events.tsfile ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:94d771230d89621355f3b2264e42de80e2de81f5e5de8cb4aaf71a2c1dcc413c
3
+ size 931296
malware_samples.tsfile ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4493f2c3e372379cf202af2441085e5e50453592873b57083f8a98bf1e09bf37
3
+ size 538323
sample_summary.tsfile ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:71c3a986d6f324980b1d51bf6d55abbcb34960c1a785b3ed9a380e140c2f9cf8
3
+ size 417536
source_dataset_card.md ADDED
@@ -0,0 +1,235 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-nc-4.0
3
+ task_categories:
4
+ - tabular-classification
5
+ - time-series-forecasting
6
+ tags:
7
+ - cybersecurity
8
+ - malware
9
+ - malware-classification
10
+ - threat-intelligence
11
+ - apt
12
+ - ransomware
13
+ - synthetic-data
14
+ - edr
15
+ - sandbox-evasion
16
+ - polymorphic
17
+ pretty_name: CYB003 — Synthetic Malware Behaviour & Classification (Sample)
18
+ size_categories:
19
+ - 1K<n<10K
20
+ ---
21
+
22
+ # CYB003 — Synthetic Malware Behaviour & Classification Dataset (Sample)
23
+
24
+ **XpertSystems.ai Synthetic Data Platform · SKU: CYB003-SAMPLE · Version 1.0.0**
25
+
26
+ This is a **free preview** of the full **CYB003 — Synthetic Malware Behaviour
27
+ & Classification Dataset** product. It contains roughly **1 / 56th of the
28
+ full dataset** at identical schema, family/tier distribution, and statistical
29
+ fingerprint, so you can evaluate fit before licensing the full product.
30
+
31
+ > 🤖 **Trained baseline available:**
32
+ > [**xpertsystems/cyb003-baseline-classifier**](https://huggingface.co/xpertsystems/cyb003-baseline-classifier)
33
+ > — XGBoost + PyTorch MLP for 10-class malware execution-phase prediction,
34
+ > group-aware split by sample, multi-seed evaluation (accuracy 0.905 ± 0.010),
35
+ > honest disclosure of which tasks need the full dataset.
36
+
37
+ | File | Rows (sample) | Rows (full) | Description |
38
+ |----------------------------|---------------|---------------|------------------------------------------------|
39
+ | `environment_profiles.csv` | ~100 | ~3,200 | Endpoint environment configurations |
40
+ | `sample_summary.csv` | ~100 | ~5,600 | Per-sample aggregate KPIs |
41
+ | `execution_events.csv` | ~1,056 | ~60,000 | Discrete malware lifecycle events |
42
+ | `malware_samples.csv` | ~6,000 | ~280,000 | Per-timestep sample telemetry |
43
+
44
+ ## Dataset Summary
45
+
46
+ CYB003 simulates malware execution lifecycles across endpoint protection
47
+ stacks with calibrated detection/evasion outcomes, covering:
48
+
49
+ - **9 malware families**: ransomware, trojan, rootkit, worm, spyware,
50
+ fileless_malware, cryptominer, botnet_agent, dropper
51
+ - **4 threat-actor tiers**: commodity, crimeware, apt, nation_state — with
52
+ per-tier sandbox evasion budgets, LotL (Living-off-the-Land) abuse rates,
53
+ and polymorphic mutation probabilities
54
+ - **Endpoint protection stacks**: legacy AV, NGAV (ML-based), EDR
55
+ - **Static PE features**: entropy, packing detection, section anomalies,
56
+ import hash distributions
57
+ - **Behavioural telemetry**: process injection, persistence mechanisms,
58
+ C2 beacon patterns, lateral spread
59
+ - **Outcome modelling**: AV signature detection, EDR behavioural detection,
60
+ sandbox evasion success, family attribution confidence
61
+
62
+ ## Trained Baseline Available
63
+
64
+ A working baseline classifier trained on this sample is published at
65
+ **[xpertsystems/cyb003-baseline-classifier](https://huggingface.co/xpertsystems/cyb003-baseline-classifier)**.
66
+
67
+ | Component | Detail |
68
+ |---|---|
69
+ | Task | 10-class malware execution-phase classification |
70
+ | Models | XGBoost (`model_xgb.json`) + PyTorch MLP (`model_mlp.safetensors`) |
71
+ | Features | 69 (after one-hot encoding); pipeline included as `feature_engineering.py` |
72
+ | Split | **Group-aware by sample_id** — train/val/test samples disjoint |
73
+ | Validation | Single seed + multi-seed aggregate across 10 seeds |
74
+ | Demo | `inference_example.ipynb` — end-to-end copy-paste |
75
+ | Headline metrics | XGBoost: accuracy 0.905 ± 0.010, macro ROC-AUC 0.975 ± 0.002 (multi-seed) |
76
+
77
+ The model card documents an honest finding worth knowing before licensing:
78
+ **malware-family classification is at majority baseline on the sample's 100
79
+ samples** (a sample-size constraint, not a method failure — the full
80
+ 280k-row dataset has ~5,600 samples and supports family classification
81
+ properly). The baseline pivots to **execution-phase prediction**, which is
82
+ strongly learnable on the sample data (91% accuracy, ROC-AUC 0.98, stable
83
+ across 10 seeds) and is itself a real SOC use case for dynamic-analysis
84
+ and EDR phase tagging.
85
+
86
+ ## Calibrated Benchmark Targets
87
+
88
+ The full product is calibrated to 12 benchmark metrics drawn from
89
+ authoritative threat intelligence and AV-testing sources (VirusTotal,
90
+ AV-TEST, MITRE ATT&CK Evaluations, Mandiant M-Trends, CrowdStrike GTR,
91
+ Verizon DBIR). The sample preserves the same calibration:
92
+
93
+ | Test | Target | Observed | Verdict |
94
+ |------|--------|----------|---------|
95
+ | av_detection_rate_commodity | 0.6200 | 0.6319 | ✓ PASS |
96
+ | edr_detection_rate_apt | 0.3100 | 0.3096 | ✓ PASS |
97
+ | sandbox_evasion_rate_nation | 0.7200 | 0.7225 | ✓ PASS |
98
+ | lateral_propagation_rate | 0.0950 | 0.1038 | ✓ PASS |
99
+ | pe_entropy_mean_packed | 0.9100 | 0.9100 | ✓ PASS |
100
+ | lotl_abuse_rate_apt | 0.4300 | 0.4300 | ✓ PASS |
101
+ | dwell_time_ratio_apt | 0.3200 | 0.3198 | ✓ PASS |
102
+ | family_attribution_confidence | 0.6800 | 0.6808 | ✓ PASS |
103
+ | c2_detection_rate | 0.5400 | 0.5394 | ✓ PASS |
104
+ | campaign_success_rate | 0.3400 | 0.2900 | ✓ PASS |
105
+ | polymorphic_detection_penalty | 0.2400 | 0.2392 | ✓ PASS |
106
+ | false_negative_rate_fileless | 0.3800 | 0.4203 | ✓ PASS |
107
+
108
+ *Note: some benchmarks (e.g. campaign success rate, lateral propagation)
109
+ require larger sample sizes to converge tightly. The full product passes
110
+ all 12 benchmarks at Grade A- or better.*
111
+
112
+ ## Schema Highlights
113
+
114
+ ### `malware_samples.csv` (primary file, per-timestep telemetry)
115
+
116
+ | Column | Type | Description |
117
+ |------------------------------|---------|----------------------------------------------|
118
+ | sample_id | string | Unique malware sample identifier |
119
+ | family_id | string | Malware family instance ID |
120
+ | actor_id | string | Threat actor ID |
121
+ | timestep | int | Step in malware lifecycle (0–59) |
122
+ | malware_family | string | 1 of 9 families |
123
+ | threat_actor_tier | string | commodity / crimeware / apt / nation_state |
124
+ | target_platform | string | windows / linux / macos / android |
125
+ | ep_stack | string | legacy_av / ngav_ml_based / edr_full |
126
+ | pe_entropy | float | Portable Executable section entropy (0–1) |
127
+ | packer_detected_flag | int | Whether PE packer was detected |
128
+ | process_injection_count | int | Process-injection events at this step |
129
+ | persistence_mechanism | string | registry / scheduled_task / service / wmi |
130
+ | c2_beacon_active | int | Whether C2 channel is beaconing |
131
+ | sandbox_evaded | int | Whether sandbox evasion succeeded |
132
+ | av_detected | int | AV signature detection at this step |
133
+ | edr_detected | int | EDR behavioural detection at this step |
134
+ | dwell_time_hours | float | Cumulative dwell time |
135
+ | lotl_technique_used | string | Living-off-the-Land binary if any |
136
+
137
+ ### `sample_summary.csv` (per-sample outcome)
138
+
139
+ | Column | Type | Description |
140
+ |-----------------------------------|---------|------------------------------------------|
141
+ | sample_id, family_id, actor_id | string | Identifiers |
142
+ | malware_family | string | Family classification target |
143
+ | threat_actor_tier | string | Tier classification target |
144
+ | target_platform | string | Platform |
145
+ | campaign_success_flag | int | Boolean — successful campaign |
146
+ | av_detection_flag | int | Boolean — AV detection ever |
147
+ | edr_detection_flag | int | Boolean — EDR detection ever |
148
+ | sandbox_evaded_flag | int | Boolean — sandbox evasion ever |
149
+ | packer_detected_flag | int | Boolean — packer detected |
150
+ | family_attribution_confidence | float | Confidence score (0–1) |
151
+ | total_dwell_hours | float | End-to-end dwell |
152
+ | lateral_propagation_count | int | Count of lateral spread events |
153
+
154
+ See `execution_events.csv` and `environment_profiles.csv` for the discrete
155
+ event log and endpoint environment schemas respectively.
156
+
157
+ ## Suggested Use Cases
158
+
159
+ - Training **malware execution-phase classifiers** —
160
+ [worked example available](https://huggingface.co/xpertsystems/cyb003-baseline-classifier)
161
+ - Training **malware family classifiers** (9-class with realistic class
162
+ imbalance and family-specific feature distributions — full dataset
163
+ recommended for adequate per-class sample size)
164
+ - **Threat actor attribution** modelling (4-tier classification)
165
+ - **EDR detection benchmarking** — packed vs unpacked, signature vs
166
+ behavioural, fileless vs binary
167
+ - **Sandbox evasion detection** with tier-calibrated evasion budgets
168
+ - **Polymorphic malware detection** — sample mutation effects on AV
169
+ signature coverage
170
+ - **C2 beacon detection** with realistic beacon-active timestep patterns
171
+ - **PE entropy / packing detection** — entropy distributions tied to
172
+ ground-truth packing flags
173
+ - **Living-off-the-Land binary detection** for APT-tier samples
174
+
175
+ ## Loading the Data
176
+
177
+ ```python
178
+ import pandas as pd
179
+
180
+ samples = pd.read_csv("malware_samples.csv")
181
+ summaries = pd.read_csv("sample_summary.csv")
182
+ events = pd.read_csv("execution_events.csv")
183
+ environments = pd.read_csv("environment_profiles.csv")
184
+
185
+ # Join per-timestep telemetry with per-sample summary labels
186
+ enriched = samples.merge(summaries, on="sample_id", how="left",
187
+ suffixes=("", "_summary"))
188
+
189
+ # Family classification target
190
+ y_family = summaries["malware_family"]
191
+
192
+ # Threat-actor tier target
193
+ y_tier = summaries["threat_actor_tier"]
194
+
195
+ # Binary detection target (per-timestep)
196
+ y_detected = (samples["av_detected"] | samples["edr_detected"]).astype(int)
197
+ ```
198
+
199
+ For a worked end-to-end example with execution-phase classification,
200
+ group-aware splitting, and feature engineering, see the inference notebook
201
+ in the [baseline classifier repo](https://huggingface.co/xpertsystems/cyb003-baseline-classifier/blob/main/inference_example.ipynb).
202
+
203
+ ## License
204
+
205
+ This **sample** is released under **CC-BY-NC-4.0** (free for non-commercial
206
+ research and evaluation). The **full production dataset** is licensed
207
+ commercially — contact XpertSystems.ai for licensing terms.
208
+
209
+ ## Full Product
210
+
211
+ The full CYB003 dataset includes **~349,000 rows** across all four files,
212
+ with calibrated benchmark validation against 12 metrics drawn from
213
+ authoritative AV-testing and threat intelligence sources.
214
+
215
+ 📧 **pradeep@xpertsystems.ai**
216
+ 🌐 **https://xpertsystems.ai**
217
+
218
+ ## Citation
219
+
220
+ ```bibtex
221
+ @dataset{xpertsystems_cyb003_sample_2026,
222
+ title = {CYB003: Synthetic Malware Behaviour & Classification Dataset (Sample)},
223
+ author = {XpertSystems.ai},
224
+ year = {2026},
225
+ url = {https://huggingface.co/datasets/xpertsystems/cyb003-sample}
226
+ }
227
+ ```
228
+
229
+ ## Generation Details
230
+
231
+ - Generator version : 1.0.0
232
+ - Random seed : 42
233
+ - Generated : 2026-05-16 13:46:05 UTC
234
+ - Lifecycle model : Multi-timestep PE + behavioural + outcome simulation
235
+ - Overall benchmark : 100.0 / 100 (grade A+)