File size: 2,109 Bytes
9ada662
a2e1e0d
84abca3
 
 
 
 
 
 
 
 
 
 
 
a2e1e0d
84abca3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69

---
license: cc-by-4.0
task_categories:
- text-classification
language:
- en
tags:
- security
- web-attacks
- http
- waf
- payloads
pretty_name: HTTP Attack Requests (multi-class)
---

# HTTP Attack Requests — multi-class

Real HTTP requests labelled with the web-attack class carried in the request,
for training and evaluating request/payload classifiers (WAF / DAST style).

## Classes (7)

`normal`, `sqli`, `xss`, `ssrf`, `ssti`, `lfi`, `traversal`
(IDOR is intentionally excluded — it's an access-control flaw with no payload signature.)

## How it was built (and why it's shortcut-resistant)

Every example is a full HTTP request built on the **same real envelopes** (CSIC 2010
normal requests). For attack classes, **one query-param value is replaced** with a real
attack payload; `normal` keeps its real benign value. The **`Host`/domain is randomised**
on every request. So neither request structure nor domain can be used as a shortcut —
the only signal is the injected value. This is a deliberate guard against
[shortcut learning](https://www.nature.com/articles/s42256-020-00257-z).

## Provenance

| Class | Source |
|-------|--------|
| envelopes + `normal` values | CSIC 2010 (`bridge4/CSIC2010_dataset_classification`) — real |
| `sqli`, `xss`, `lfi`, `traversal` | PayloadsAllTheThings — real payload lists |
| `ssrf`, `ssti` | templated (no clean public payload file) |

## Splits

| split | rows |
|-------|------|
| train | 4900 |
| validation | 700 |
| test | 1400 |

Balanced: 1000 per class across all splits combined.

## Usage

```python
from datasets import load_dataset
ds = load_dataset("SecureAI-SE/http-attack-requests")
print(ds["train"][0])   # {'request': 'GET /...', 'label': 2}
ds["train"].features["label"].names   # ['normal','sqli','xss','ssrf','ssti','lfi','traversal']
```

## Intended use & ethics

For **authorised** security research, WAF/IDS training, and education. It contains real
attack payloads; do not use them against systems you do not own or have permission to test.

Built for the *Fine-Tuning LLMs for Security Engineers* course (Secure AI).