StanzaAPI commited on
Commit ·
4f1d6e8
1
Parent(s): 8d92cfd
Publish vat test data
Browse files- CITATION.cff +1 -1
- README.md +1 -1
- adversarial/vat-adversarial.csv +0 -0
- adversarial/vat-adversarial.json +25 -1
CITATION.cff
CHANGED
|
@@ -4,7 +4,7 @@ title: "VAT Test Data"
|
|
| 4 |
abstract: "National-format VAT numbers for every country in the VAT registry, with the 2026 standard rate. Format-shaped synthetic values for fixtures; not verified registrations."
|
| 5 |
type: dataset
|
| 6 |
license: CC0-1.0
|
| 7 |
-
version: "1.0.
|
| 8 |
date-released: "2026-10-01"
|
| 9 |
authors:
|
| 10 |
- name: "StanzaAPI"
|
|
|
|
| 4 |
abstract: "National-format VAT numbers for every country in the VAT registry, with the 2026 standard rate. Format-shaped synthetic values for fixtures; not verified registrations."
|
| 5 |
type: dataset
|
| 6 |
license: CC0-1.0
|
| 7 |
+
version: "1.0.2"
|
| 8 |
date-released: "2026-10-01"
|
| 9 |
authors:
|
| 10 |
- name: "StanzaAPI"
|
README.md
CHANGED
|
@@ -41,7 +41,7 @@ https://stanzaapi.com/datasets/vat
|
|
| 41 |
|
| 42 |
## Security: adversarial corpus
|
| 43 |
|
| 44 |
-
This dataset ships a catalogued **adversarial corpus** of
|
| 45 |
(injection, XXE, resource exhaustion, encoding attacks, validation bypass, structural confusion,
|
| 46 |
and prompt injection for AI agents) with the safe expected behaviour. See
|
| 47 |
[`adversarial/`](adversarial/) or the [hub](https://stanzaapi.com/datasets/adversarial).
|
|
|
|
| 41 |
|
| 42 |
## Security: adversarial corpus
|
| 43 |
|
| 44 |
+
This dataset ships a catalogued **adversarial corpus** of 12 hostile inputs
|
| 45 |
(injection, XXE, resource exhaustion, encoding attacks, validation bypass, structural confusion,
|
| 46 |
and prompt injection for AI agents) with the safe expected behaviour. See
|
| 47 |
[`adversarial/`](adversarial/) or the [hub](https://stanzaapi.com/datasets/adversarial).
|
adversarial/vat-adversarial.csv
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
adversarial/vat-adversarial.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
"source": "https://stanzaapi.com/datasets/vat/adversarial",
|
| 5 |
"license": "CC0-1.0",
|
| 6 |
"format": "vat",
|
| 7 |
-
"count":
|
| 8 |
"cases": [
|
| 9 |
{
|
| 10 |
"id": "vat-crlf-header-injection",
|
|
@@ -115,6 +115,30 @@
|
|
| 115 |
"expected": "Reject or normalise to EL, per VIES. Document the choice.",
|
| 116 |
"rationale": "Greece uses the EL prefix for VAT; GR is the ISO country code, not the VAT prefix.",
|
| 117 |
"cwe": "CWE-20"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 118 |
}
|
| 119 |
]
|
| 120 |
}
|
|
|
|
| 4 |
"source": "https://stanzaapi.com/datasets/vat/adversarial",
|
| 5 |
"license": "CC0-1.0",
|
| 6 |
"format": "vat",
|
| 7 |
+
"count": 12,
|
| 8 |
"cases": [
|
| 9 |
{
|
| 10 |
"id": "vat-crlf-header-injection",
|
|
|
|
| 115 |
"expected": "Reject or normalise to EL, per VIES. Document the choice.",
|
| 116 |
"rationale": "Greece uses the EL prefix for VAT; GR is the ISO country code, not the VAT prefix.",
|
| 117 |
"cwe": "CWE-20"
|
| 118 |
+
},
|
| 119 |
+
{
|
| 120 |
+
"id": "vat-zero-width-separator",
|
| 121 |
+
"format": "vat",
|
| 122 |
+
"category": "encoding",
|
| 123 |
+
"severity": "high",
|
| 124 |
+
"title": "Zero-width separator inside the VAT number",
|
| 125 |
+
"payload": "DE123456789",
|
| 126 |
+
"expected": "Reject zero-width and format characters rather than trimming them; the bytes stored must equal the characters displayed.",
|
| 127 |
+
"rationale": "A zero-width space renders invisibly, so the number looks valid in every UI while the stored bytes differ from the visible value. A layer that trims and a layer that compares raw will disagree.",
|
| 128 |
+
"cwe": "CWE-176",
|
| 129 |
+
"evades": "national pattern (after trimming)"
|
| 130 |
+
},
|
| 131 |
+
{
|
| 132 |
+
"id": "vat-format-valid-not-registered",
|
| 133 |
+
"format": "vat",
|
| 134 |
+
"category": "validation-bypass",
|
| 135 |
+
"severity": "critical",
|
| 136 |
+
"title": "Well-formed VAT number that is not a registered VIES number",
|
| 137 |
+
"payload": "DE123456789",
|
| 138 |
+
"expected": "Report format validity and registration as separate facts. Offline syntax validation must never be surfaced as VIES confirmation.",
|
| 139 |
+
"rationale": "The classic zero-rating trap: the syntax passes, so a checkout that equates \"format valid\" with \"VIES valid\" applies 0% VAT to a supply that is not zero-rated. Only a live VIES lookup can confirm registration.",
|
| 140 |
+
"cwe": "CWE-20",
|
| 141 |
+
"evades": "national pattern (the number is well-formed)"
|
| 142 |
}
|
| 143 |
]
|
| 144 |
}
|