skjortan commited on
Commit
84abca3
·
verified ·
1 Parent(s): a2e1e0d

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +66 -36
README.md CHANGED
@@ -1,38 +1,68 @@
 
1
  ---
2
- dataset_info:
3
- features:
4
- - name: request
5
- dtype: string
6
- - name: label
7
- dtype:
8
- class_label:
9
- names:
10
- '0': normal
11
- '1': sqli
12
- '2': xss
13
- '3': ssrf
14
- '4': ssti
15
- '5': lfi
16
- '6': traversal
17
- splits:
18
- - name: train
19
- num_bytes: 3088380
20
- num_examples: 4900
21
- - name: validation
22
- num_bytes: 443142
23
- num_examples: 700
24
- - name: test
25
- num_bytes: 878744
26
- num_examples: 1400
27
- download_size: 1076968
28
- dataset_size: 4410266
29
- configs:
30
- - config_name: default
31
- data_files:
32
- - split: train
33
- path: data/train-*
34
- - split: validation
35
- path: data/validation-*
36
- - split: test
37
- path: data/test-*
38
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
  ---
3
+ license: cc-by-4.0
4
+ task_categories:
5
+ - text-classification
6
+ language:
7
+ - en
8
+ tags:
9
+ - security
10
+ - web-attacks
11
+ - http
12
+ - waf
13
+ - payloads
14
+ pretty_name: HTTP Attack Requests (multi-class)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
  ---
16
+
17
+ # HTTP Attack Requests — multi-class
18
+
19
+ Real HTTP requests labelled with the web-attack class carried in the request,
20
+ for training and evaluating request/payload classifiers (WAF / DAST style).
21
+
22
+ ## Classes (7)
23
+
24
+ `normal`, `sqli`, `xss`, `ssrf`, `ssti`, `lfi`, `traversal`
25
+ (IDOR is intentionally excluded — it's an access-control flaw with no payload signature.)
26
+
27
+ ## How it was built (and why it's shortcut-resistant)
28
+
29
+ Every example is a full HTTP request built on the **same real envelopes** (CSIC 2010
30
+ normal requests). For attack classes, **one query-param value is replaced** with a real
31
+ attack payload; `normal` keeps its real benign value. The **`Host`/domain is randomised**
32
+ on every request. So neither request structure nor domain can be used as a shortcut —
33
+ the only signal is the injected value. This is a deliberate guard against
34
+ [shortcut learning](https://www.nature.com/articles/s42256-020-00257-z).
35
+
36
+ ## Provenance
37
+
38
+ | Class | Source |
39
+ |-------|--------|
40
+ | envelopes + `normal` values | CSIC 2010 (`bridge4/CSIC2010_dataset_classification`) — real |
41
+ | `sqli`, `xss`, `lfi`, `traversal` | PayloadsAllTheThings — real payload lists |
42
+ | `ssrf`, `ssti` | templated (no clean public payload file) |
43
+
44
+ ## Splits
45
+
46
+ | split | rows |
47
+ |-------|------|
48
+ | train | 4900 |
49
+ | validation | 700 |
50
+ | test | 1400 |
51
+
52
+ Balanced: 1000 per class across all splits combined.
53
+
54
+ ## Usage
55
+
56
+ ```python
57
+ from datasets import load_dataset
58
+ ds = load_dataset("SecureAI-SE/http-attack-requests")
59
+ print(ds["train"][0]) # {'request': 'GET /...', 'label': 2}
60
+ ds["train"].features["label"].names # ['normal','sqli','xss','ssrf','ssti','lfi','traversal']
61
+ ```
62
+
63
+ ## Intended use & ethics
64
+
65
+ For **authorised** security research, WAF/IDS training, and education. It contains real
66
+ attack payloads; do not use them against systems you do not own or have permission to test.
67
+
68
+ Built for the *Fine-Tuning LLMs for Security Engineers* course (Secure AI).