StanzaAPI commited on
Commit ·
6400a67
1
Parent(s): 7dde483
Publish iso20022 test data
Browse files- CITATION.cff +1 -1
- README.md +1 -1
- adversarial/iso20022-adversarial.csv +0 -0
- adversarial/iso20022-adversarial.json +25 -1
CITATION.cff
CHANGED
|
@@ -4,7 +4,7 @@ title: "ISO 20022 Test Data"
|
|
| 4 |
abstract: "Well-formed pain.001.001.09 Customer Credit Transfer Initiation XML with synthetic debtors, creditors, and amounts."
|
| 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: "Well-formed pain.001.001.09 Customer Credit Transfer Initiation XML with synthetic debtors, creditors, and amounts."
|
| 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/iso20022
|
|
| 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/iso20022-adversarial.csv
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
adversarial/iso20022-adversarial.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
"source": "https://stanzaapi.com/datasets/iso20022/adversarial",
|
| 5 |
"license": "CC0-1.0",
|
| 6 |
"format": "iso20022",
|
| 7 |
-
"count":
|
| 8 |
"cases": [
|
| 9 |
{
|
| 10 |
"id": "iso20022-xxe",
|
|
@@ -115,6 +115,30 @@
|
|
| 115 |
"expected": "Parameterise every insert of parsed fields.",
|
| 116 |
"rationale": "Parsed XML lands in databases; unparameterised inserts are injectable.",
|
| 117 |
"cwe": "CWE-89"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 118 |
}
|
| 119 |
]
|
| 120 |
}
|
|
|
|
| 4 |
"source": "https://stanzaapi.com/datasets/iso20022/adversarial",
|
| 5 |
"license": "CC0-1.0",
|
| 6 |
"format": "iso20022",
|
| 7 |
+
"count": 12,
|
| 8 |
"cases": [
|
| 9 |
{
|
| 10 |
"id": "iso20022-xxe",
|
|
|
|
| 115 |
"expected": "Parameterise every insert of parsed fields.",
|
| 116 |
"rationale": "Parsed XML lands in databases; unparameterised inserts are injectable.",
|
| 117 |
"cwe": "CWE-89"
|
| 118 |
+
},
|
| 119 |
+
{
|
| 120 |
+
"id": "iso20022-bom-prefix",
|
| 121 |
+
"format": "iso20022",
|
| 122 |
+
"category": "encoding",
|
| 123 |
+
"severity": "medium",
|
| 124 |
+
"title": "Byte-order mark before the XML declaration",
|
| 125 |
+
"payload": "<?xml version=\"1.0\" encoding=\"UTF-8\"?><Document/>",
|
| 126 |
+
"expected": "Handle the BOM once, at the byte boundary, and strip it before the parser sees it. Do not let one layer keep it and another reject it.",
|
| 127 |
+
"rationale": "A BOM before the declaration is a parser differential: strict XML parsers reject it and lenient ones strip it, so the same message is valid in one system and malformed in another.",
|
| 128 |
+
"cwe": "CWE-20",
|
| 129 |
+
"evades": "well-formedness (if the BOM is stripped)"
|
| 130 |
+
},
|
| 131 |
+
{
|
| 132 |
+
"id": "iso20022-duplicate-element",
|
| 133 |
+
"format": "iso20022",
|
| 134 |
+
"category": "structure",
|
| 135 |
+
"severity": "high",
|
| 136 |
+
"title": "Duplicate amount element resolved by last-wins",
|
| 137 |
+
"payload": "<Amt><InstdAmt Ccy=\"EUR\">1.00</InstdAmt><InstdAmt Ccy=\"EUR\">999999.00</InstdAmt></Amt>",
|
| 138 |
+
"expected": "Reject duplicate elements that the schema marks as maxOccurs=1 rather than letting the parser pick one.",
|
| 139 |
+
"rationale": "Schema-invalid but well-formed XML. A DOM parser that keeps the last value and a streaming parser that keeps the first settle different amounts, so two conforming systems disagree about the payment.",
|
| 140 |
+
"cwe": "CWE-20",
|
| 141 |
+
"evades": "well-formedness"
|
| 142 |
}
|
| 143 |
]
|
| 144 |
}
|