ZAHRA585 commited on
Commit
2161ee8
ยท
verified ยท
1 Parent(s): 312dbb1

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +138 -44
README.md CHANGED
@@ -1,44 +1,138 @@
1
- ---
2
- license: apache-2.0
3
- dataset_info:
4
- features:
5
- - name: text
6
- dtype: large_string
7
- - name: label
8
- dtype: int64
9
- - name: source
10
- dtype: large_string
11
- - name: attack_type
12
- dtype: large_string
13
- splits:
14
- - name: train
15
- num_bytes: 88567379
16
- num_examples: 19895
17
- - name: validation
18
- num_bytes: 19714397
19
- num_examples: 4263
20
- - name: test
21
- num_bytes: 18512400
22
- num_examples: 4265
23
- - name: adversarial_200
24
- num_bytes: 1605924
25
- num_examples: 200
26
- - name: skillsbench_infile
27
- num_bytes: 12382969
28
- num_examples: 1541
29
- download_size: 72378443
30
- dataset_size: 140783069
31
- configs:
32
- - config_name: default
33
- data_files:
34
- - split: train
35
- path: data/train-*
36
- - split: validation
37
- path: data/validation-*
38
- - split: test
39
- path: data/test-*
40
- - split: adversarial_200
41
- path: data/adversarial_200-*
42
- - split: skillsbench_infile
43
- path: data/skillsbench_infile-*
44
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ license: apache-2.0
5
+ task_categories:
6
+ - text-classification
7
+ tags:
8
+ - security
9
+ - prompt-injection
10
+ - llm-security
11
+ - agent-skills
12
+ - agentic-ai
13
+ - roberta
14
+ - cybersecurity
15
+ - vulnerability-detection
16
+ - benchmark
17
+ dataset_info:
18
+ features:
19
+ - name: text
20
+ dtype: string
21
+ - name: label
22
+ dtype: int64
23
+ - name: source
24
+ dtype: string
25
+ - name: attack_type
26
+ dtype: string
27
+ splits:
28
+ - name: train
29
+ num_examples: 19880
30
+ - name: validation
31
+ num_examples: 4260
32
+ - name: test
33
+ num_examples: 4260
34
+ - name: adversarial_200
35
+ num_examples: 200
36
+ - name: skillsbench_infile
37
+ num_examples: 1541
38
+ size_categories:
39
+ - 10K<n<100K
40
+ ---
41
+
42
+ # ๐Ÿ›ก๏ธ SkillGuard v2: Complete Dataset & Adversarial Benchmarks Suite
43
+
44
+ **SkillGuard v2** is a curated dataset and benchmarking suite designed for training, evaluating, and stress-testing machine learning systems that detect **hidden prompt injections, credential exfiltration, and privilege escalation payloads in LLM Agent Skills (`SKILL.md`)**.
45
+
46
+ - **Domain:** LLM Agent Security, Indirect Prompt Injection, Adversarial Robustness
47
+ - **Language:** English & Software Code (Markdown, Bash, Python, YAML, Swift)
48
+
49
+ ---
50
+
51
+ ## ๐Ÿ“Š Dataset & Benchmark Splits Summary
52
+
53
+ This repository includes both the **core training/testing splits** and **two independent held-out evaluation benchmarks**:
54
+
55
+ | Split Name | Samples | Benign (0) | Malicious (1) | Description |
56
+ | :--- | :--- | :--- | :--- | :--- |
57
+ | **`train`** | 19,880 | 9,940 (50.0%) | 9,940 (50.0%) | Core training set combining SkillMD-138k and synthetic threats. |
58
+ | **`validation`** | 4,260 | 2,130 (50.0%) | 2,130 (50.0%) | Hyperparameter tuning and checkpoint selection split. |
59
+ | **`test`** | 4,260 | 2,130 (50.0%) | 2,130 (50.0%) | In-distribution held-out test split. |
60
+ | **`adversarial_200`** | 200 | 100 (50.0%) | 100 (50.0%) | **Adversarial Zero-Day Benchmark**: 12 brand-new, unseen attack patterns injected into held-out skills. |
61
+ | **`skillsbench_infile`** | 1,541 | 1,500 (97.3%) | 41 (2.7%) | **SkillsBench-1650 Benchmark**: External benchmark testing in-file prompt injections across 8 categories. |
62
+
63
+ ---
64
+
65
+ ## ๐Ÿงฌ Threat Taxonomy & Attack Vectors
66
+
67
+ ### 1. Synthetic Training Taxonomy (8 Categories in `train` / `validation` / `test`)
68
+ - **Data Exfiltration:** Hidden `curl`/`wget`/`nc` commands stealing SSH keys, AWS credentials, or tokens.
69
+ - **Guardrail Override:** Authority deception (claiming automated pre-approval or disabling confirmation dialogs).
70
+ - **Encoded Payloads:** Base64/Hex/rot13 encoded shell commands executed via `eval` or Python `base64.b64decode`.
71
+ - **Instruction Reprogram:** Prompt hijacking overriding the agent's core identity and role instructions.
72
+ - **Obfuscated Shell:** Variable expansion and subshell nesting to disguise dangerous binaries.
73
+ - **Dependency Poisoning:** Coercing agents to install malicious packages from untrusted third-party registries.
74
+ - **Hidden Comments:** Embedding injection commands inside HTML comments (`<!-- ... -->`) or markdown metadata.
75
+ - **Persistence / Backdoors:** Appending malicious aliases or cronjobs to shell configuration files.
76
+
77
+ ### 2. Unseen Zero-Day Vectors (Tested in `adversarial_200`)
78
+ Tests out-of-distribution generalization on novel attack phrasings:
79
+ 1. Fake GDPR Article 17 Data Portability compliance exfiltration.
80
+ 2. Open Source License verification telemetry.
81
+ 3. Automated Security Scanner access verification manipulation.
82
+ 4. Skill Registry auto-update override.
83
+ 5. OpenTelemetry distributed tracing exfiltration.
84
+ 6. Anonymized usage analytics tarball exfiltration.
85
+ 7. Jira elevation override authorization deception.
86
+ 8. Internal pentest privileged mode flags.
87
+ 9. Encoded Base64 runtime dependency bootstrapping.
88
+ 10. Encoded preflight handshake verification.
89
+ 11. SOC-2 compliance audit telemetry mandates.
90
+ 12. Verified Publisher digital signature verification hooks.
91
+
92
+ ---
93
+
94
+ ## ๐Ÿš€ Quickstart: Loading Datasets & Benchmarks
95
+
96
+ ```python
97
+ from datasets import load_dataset
98
+
99
+ # 1. Load the entire suite
100
+ dataset = load_dataset("ZAHRA585/skillguard-v2-dataset")
101
+
102
+ print(dataset)
103
+ # Output:
104
+ # DatasetDict({
105
+ # train: Dataset({features: ['text', 'label', 'source', 'attack_type'], num_rows: 19880}),
106
+ # validation: Dataset({features: ['text', 'label', 'source', 'attack_type'], num_rows: 4260}),
107
+ # test: Dataset({features: ['text', 'label', 'source', 'attack_type'], num_rows: 4260}),
108
+ # adversarial_200: Dataset({features: ['text', 'label', 'source', 'attack_type'], num_rows: 200}),
109
+ # skillsbench_infile: Dataset({features: ['text', 'label', 'source', 'attack_type'], num_rows: 1541})
110
+ # })
111
+ ```
112
+
113
+ ---
114
+
115
+ ## ๐Ÿ“ Schema
116
+
117
+ | Column | Type | Description |
118
+ | :--- | :--- | :--- |
119
+ | `text` | `string` | Full content of the skill file or injected prompt block. |
120
+ | `label` | `int64` | Binary label: `0` for Benign, `1` for Malicious. |
121
+ | `source` | `string` | Origin split or benchmark name (`skillmd_138k`, `synthetic_v2`, `custom_adversarial_injection`, `skillsbench_infile`, etc.). |
122
+ | `attack_type` | `string` | Specific threat category (e.g. `data_exfil`, `unseen_injection`, `plaintext_cmd`, `none`). |
123
+
124
+ ---
125
+
126
+ ## ๐Ÿ“œ Citation
127
+
128
+ If you use this dataset, its adversarial benchmarks, or the SkillGuard v2 model, please cite:
129
+
130
+ ```bibtex
131
+ @misc{marouf2026skillguard,
132
+ author = {Marouf, Zohra and Bousmaha, R.},
133
+ title = {SkillGuard v2: Transformer-Based Detection of Semantic Prompt Injections in LLM Agent Skills Under Adversarial Distribution Shifts},
134
+ year = {2026},
135
+ publisher = {Hugging Face},
136
+ howpublished = {\url{https://huggingface.co/datasets/ZAHRA585/skillguard-v2-dataset}},
137
+ }
138
+ ```