StanzaAPI commited on
Commit ·
62c4cca
1
Parent(s): 5e401ad
Publish x12 test data
Browse files- CITATION.cff +1 -1
- README.md +1 -1
- adversarial/x12-adversarial.csv +0 -0
- adversarial/x12-adversarial.json +25 -1
CITATION.cff
CHANGED
|
@@ -4,7 +4,7 @@ title: "ANSI X12 Test Data"
|
|
| 4 |
abstract: "Structurally complete X12 837P claim documents (ISA, GS, ST, BHT, NM1, CLM, SE, GE, IEA) with varying control numbers. Synthetic claims; not real patients or payers."
|
| 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: "Structurally complete X12 837P claim documents (ISA, GS, ST, BHT, NM1, CLM, SE, GE, IEA) with varying control numbers. Synthetic claims; not real patients or payers."
|
| 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/x12
|
|
| 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/x12-adversarial.csv
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
adversarial/x12-adversarial.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
"source": "https://stanzaapi.com/datasets/x12/adversarial",
|
| 5 |
"license": "CC0-1.0",
|
| 6 |
"format": "x12",
|
| 7 |
-
"count":
|
| 8 |
"cases": [
|
| 9 |
{
|
| 10 |
"id": "x12-segment-injection",
|
|
@@ -115,6 +115,30 @@
|
|
| 115 |
"expected": "Reject: claim and line amounts must balance.",
|
| 116 |
"rationale": "An unbalanced claim can hide an over-bill or an under-payment.",
|
| 117 |
"cwe": "CWE-20"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 118 |
}
|
| 119 |
]
|
| 120 |
}
|
|
|
|
| 4 |
"source": "https://stanzaapi.com/datasets/x12/adversarial",
|
| 5 |
"license": "CC0-1.0",
|
| 6 |
"format": "x12",
|
| 7 |
+
"count": 12,
|
| 8 |
"cases": [
|
| 9 |
{
|
| 10 |
"id": "x12-segment-injection",
|
|
|
|
| 115 |
"expected": "Reject: claim and line amounts must balance.",
|
| 116 |
"rationale": "An unbalanced claim can hide an over-bill or an under-payment.",
|
| 117 |
"cwe": "CWE-20"
|
| 118 |
+
},
|
| 119 |
+
{
|
| 120 |
+
"id": "x12-duplicate-control-segment",
|
| 121 |
+
"format": "x12",
|
| 122 |
+
"category": "structure",
|
| 123 |
+
"severity": "high",
|
| 124 |
+
"title": "Duplicate BPR segment resolved by last-wins",
|
| 125 |
+
"payload": "BPR*I*1.00*C*ACH*CCP*01*999999999*DA*123456789*1*20260101~BPR*I*999999.00*C*ACH*CCP*01*999999999*DA*123456789*1*20260101~",
|
| 126 |
+
"expected": "Reject a second occurrence of a segment the transaction set defines once.",
|
| 127 |
+
"rationale": "Both segments are syntactically valid. A parser that keeps the last BPR remits a different amount than one that keeps the first, and the 835 balances either way because each parser checks against its own reading.",
|
| 128 |
+
"cwe": "CWE-20",
|
| 129 |
+
"evades": "well-formedness"
|
| 130 |
+
},
|
| 131 |
+
{
|
| 132 |
+
"id": "x12-repetition-separator-collision",
|
| 133 |
+
"format": "x12",
|
| 134 |
+
"category": "structure",
|
| 135 |
+
"severity": "high",
|
| 136 |
+
"title": "Repetition separator that occurs inside a data element",
|
| 137 |
+
"payload": "ISA*00* *00* *ZZ*SENDER *ZZ*RECEIVER *260101*1200*^*00501*000000001*0*P*:^~NM1*IL*1*DOE*JOHN*^SMITH~",
|
| 138 |
+
"expected": "Reject a repetition separator that appears inside a data value, or escape it per the implementation guide; do not split the value into repeats silently.",
|
| 139 |
+
"rationale": "The separator is declared in ISA11 and the same character occurs in the surname. A parser that splits on it reads two names where the sender wrote one, and every field after it shifts.",
|
| 140 |
+
"cwe": "CWE-20",
|
| 141 |
+
"evades": "well-formedness"
|
| 142 |
}
|
| 143 |
]
|
| 144 |
}
|