bastioncorpus
corpusShared injection dataset
The shared prompt-injection corpus — one canonical, versioned dataset that scan, prevent, attack, and investigate all pull from.
pip install bastioncorpus What it does
- 181 rows: 118 malicious payloads / 63 benign false-positive traps, including encoded attacks and encoded benign traps
- 5 languages (en/it/de/fr/es), one taxonomy
- Shared decoder: variants() returns what base64, hex, binary, base32, ascii85, Morse, escapes and more say, so every tool decodes and rescans the same way
- Three format adapters: to_probe, to_semantic, to_trace
- Zero dependencies — pure data + loader; fix once, propagates everywhere
Quickstart
from bastioncorpus import load_corpus, variants
rows = load_corpus() # canonical injections.jsonl
views = variants(text) # what encoded runs in text say
Version 0.5.0 · MIT