Ark threat comparison: reproduction package
Everything needed to re-check the threat comparison of
Patronus Ark:
every system scored on the same 26,962 held-out texts (measurement part), with each system's
threshold set on a separate 26,707 texts (calibration part), English and German, plus 20,601 texts
of extra report sets scored at the same thresholds.
The texts come from 42 sources: 33 public datasets, texts we generated with the public dev-seed
generators, our German translations of public rows, and three sets built from files in the Ark
repository. Texts are shared only where the source's licence allows it; for the other sources this
package lists the key and the labels, and the reproduction script downloads the text from the
source at the pinned version.
Files
| File | Rows | Content |
|---|---|---|
manifest.jsonl.gz |
74,270 | One line per text: row_id, source, dataset, part (calibration / measurement / report), key, text_sha256, language, benign, classes, reported_classes, labels (upstream labels), multi_label_gold, hard_negative, not_scored_for, translated, real_evaluation, twin_of, generator, source_id, text_included. No text. |
texts.jsonl.gz |
54,154 | row_id, text for the texts whose licence allows sharing (21,245 of the 26,962 measured texts). |
sources.json |
52 sources | Per source: kind, how it is fetched, pinned source and revision, pinned files with SHA-256, licence, licence URL, whether texts are shared and why not, rows per part. |
split.json |
Seed ark-l1-threat-e10-mix-v1, split hash 690db0e4811d, rows excluded because a built-in model trained on them, report sets, and the systems with stored scores. |
|
predictions/<system>.jsonl.gz |
74,270 each | Stored scores per row_id: rules, l1_model, cascade (Ark Core, with the cascade's answer per class), prompt_guard_2_22m, prompt_guard_2_86m, protectai_v2, and the rule sets atr, cisco_yara, llamafirewall, nemo, pipelock, prompt_guard (seojoonkim), vigil. |
key is the SHA-256 of the text with whitespace collapsed and case folded (the key the
comparison deduplicates and excludes training texts by); text_sha256 is the SHA-256 of the text
exactly as it is. row_id is unique; key is not (the same text can occur in two sources).
Labels
For one class, a text is a positive if the class is in classes (the multi-label gold of the
repository is applied: a text carries every class it really belongs to), not counted if the
class is in not_scored_for, and a negative otherwise (every harmless text and every attack of
another class). hard_negative marks harmless texts that look like attacks; their false-positive
rate is reported apart. Thresholds come from the calibration negatives only; the reported numbers
come from the measurement part.
Reproduce
git clone https://github.com/patronus-protect/patronus-security && cd patronus-security
pip install numpy pyyaml patronus-ark-core huggingface_hub
huggingface-cli download patronus-studio/ark-threat-comparison --repo-type dataset --local-dir threat-package
python3 scripts/l1_threat/reproduce.py run --package threat-package --out threat-repro
Expected output:
calibration: 26707 rows; rebuilt 26265, shipped 442
measurement: 26962 rows; missing 34, rebuilt 26282, shipped 646
report: 20601 rows; rebuilt 20601
split 690db0e4811d (package: 690db0e4811d)
research/l1-threat/scoreboard/baseline.md: identical tables
rebuilt: downloaded from the source at the pinned version and equal to the manifest (key,
SHA-256, labels). shipped: from this package (our generated and translated texts), SHA-256 equal
to the manifest. missing: 34 generated texts that wrap a row of a source whose texts are not
shared; they keep their labels and scores here. threat-repro/rows/<source>.jsonl then holds every
row with its text. No access token is needed: none of the pinned sources is gated. Guide:
https://patronus-protect.github.io/patronus-security/how-to/reproduce-threat-comparison/
Sources and licences
Each licence was read at the pinned revision (dataset card or LICENSE file; URL per source insources.json). Texts are shared for MIT, Apache-2.0, CC-BY, CC0 and ODC-BY sources and for our
own texts; not for share-alike, unstated, use-restricted or terms-gated sources, and not for
quotations. When you use the texts, the licence of their source applies; CC-BY and ODC-BY sources
require attribution to their authors (linked in sources.json).
| source | kind | licence | texts shared | measurement | calibration | report | rows with text | pinned source |
|---|---|---|---|---|---|---|---|---|
| agent_safetybench | prepared | MIT | yes | 14 | 14 | 0 | 28 | github.com/thu-coai/Agent-SafetyBench@74feea8de601 |
| agentdojo | prepared | MIT | yes | 40 | 40 | 0 | 80 | github.com/ethz-spylab/agentdojo@089ed468cf3e |
| approve_or_deny_de | prepared | Apache-2.0 | yes | 10 | 11 | 0 | 21 | huggingface.co/datasets/ProCreations/approve-or-deny@a38b625913dd |
| bgb_statutes | prepared | MIT | yes | 631 | 631 | 0 | 1262 | huggingface.co/datasets/wndknd/german-law-bgb@4fb2cd5d7fb1 |
| bipia | prepared | MIT (code and attack texts), contexts from third-party sources | no | 46 | 47 | 0 | 0 | github.com/microsoft/BIPIA@a004b69ec0dd |
| cyberseceval_multilingual | prepared | MIT | yes | 3 | 2 | 0 | 5 | github.com/meta-llama/PurpleLlama@0654501399e7 |
| dolly_15k | prepared | CC-BY-SA-3.0 | no | 3345 | 3345 | 0 | 0 | huggingface.co/datasets/databricks/databricks-dolly-15k@bdd27f4d94b9 |
| dynahate | prepared | CC-BY-4.0 | yes | 97 | 98 | 0 | 195 | github.com/bvidgen/Dynamically-Generated-Hate-Speech-Dataset@36f9dc849626 |
| gentel | prepared | Apache-2.0 | yes | 989 | 989 | 0 | 1978 | huggingface.co/datasets/GenTelLab/gentelbench-v1@bf27033065d7 |
| germanquad | prepared | CC-BY-4.0 | yes | 2576 | 2577 | 0 | 5153 | huggingface.co/datasets/deepset/germanquad@a2f3a59f0be8 |
| germeval2017 | prepared | not stated | no | 1500 | 1500 | 0 | 0 | huggingface.co/datasets/malteos/germeval2017@81c1547cf431 |
| massive_de | prepared | CC-BY-4.0 | yes | 1300 | 1300 | 0 | 2600 | huggingface.co/datasets/AmazonScience/massive@ed58ac423a2f |
| massive_en | prepared | CC-BY-4.0 | yes | 1295 | 1302 | 0 | 2597 | huggingface.co/datasets/AmazonScience/massive@ed58ac423a2f |
| mosscap | prepared | MIT | yes | 7275 | 7276 | 0 | 14551 | huggingface.co/datasets/Lakera/mosscap_prompt_injection@b7e495ff6337 |
| nemotron_safety_v3 | prepared | CC-BY-4.0 | yes | 10 | 12 | 0 | 22 | huggingface.co/datasets/nvidia/Nemotron-Safety-Guard-Dataset-v3@a3f7ecb3433d |
| neuralchemy | prepared | Apache-2.0 | yes | 748 | 749 | 0 | 1497 | huggingface.co/datasets/neuralchemy/Prompt-injection-dataset@7d70432dfcf4 |
| parlspeech_bundestag | prepared | CC0-1.0 | yes | 1000 | 1000 | 0 | 2000 | huggingface.co/datasets/threite/Bundestag-v2@9a7069082f80 |
| polyguardprompts | prepared | CC-BY-4.0 | yes | 442 | 422 | 0 | 864 | huggingface.co/datasets/ToxicityPrompts/PolyGuardPrompts@c5b466a95b64 |
| real_agent_quotes | quotes | per row (MIT, ISC or quotation of a public write-up) | no | 28 | 29 | 0 | 0 | |
| real_bfcl_memory | prepared | Apache-2.0 | yes | 80 | 81 | 0 | 161 | github.com/ShishirPatil/gorilla@6ea57973c7a6 |
| real_bfcl_tools | prepared | Apache-2.0 | yes | 260 | 261 | 0 | 521 | github.com/ShishirPatil/gorilla@6ea57973c7a6 |
| real_copilot_customizations | prepared | MIT | yes | 105 | 105 | 0 | 210 | github.com/github/awesome-copilot@93fc8b9ee3ef |
| real_cursorrules | prepared | CC0-1.0 | yes | 62 | 62 | 0 | 124 | github.com/PatrickJS/awesome-cursorrules@b044f956f021 |
| redcode | prepared | CC-BY-4.0 | yes | 34 | 35 | 0 | 69 | github.com/AI-secure/RedCode@664e4793dc73 |
| satml_ctf | prepared | MIT | yes | 2 | 2 | 0 | 4 | huggingface.co/datasets/ethz-spylab/ctf-satml24@11426babe61e |
| simple_safety_tests | prepared | CC-BY-2.0 | yes | 0 | 0 | 0 | 0 | huggingface.co/datasets/Bertievidgen/SimpleSafetyTests@98223c5d8c40 |
| spml | prepared | MIT | yes | 1405 | 1405 | 0 | 2810 | huggingface.co/datasets/reshabhs/SPML_Chatbot_Prompt_Injection@02ce8084e979 |
| strongreject | prepared | MIT | yes | 54 | 55 | 0 | 109 | github.com/alexandrasouly/strongreject@f7cad6c17e62 |
| wildguardmix | prepared | ODC-BY-1.0 | no | 60 | 60 | 0 | 0 | huggingface.co/datasets/walledai/WildGuardTest@dc2c3d069957 |
| wildjailbreak | prepared | ODC-BY-1.0 | no | 704 | 704 | 0 | 0 | huggingface.co/datasets/walledai/WildJailbreak@3638a60da2f0 |
| xl_safetybench | prepared | CC-BY-4.0 | yes | 113 | 112 | 0 | 225 | huggingface.co/datasets/AIM-Intelligence/XL-SafetyBench@9817e3b99b8b |
| xsafety_de | prepared | Apache-2.0 | yes | 23 | 22 | 0 | 45 | github.com/Jarviswang94/Multilingual_safety_benchmark@8c55b6a6cda5 |
| xsafety_harm_de | prepared | Apache-2.0 | yes | 32 | 32 | 0 | 64 | github.com/Jarviswang94/Multilingual_safety_benchmark@8c55b6a6cda5 |
| agent_scenarios | generated | own (dev-seed generator) | yes | 159 | 96 | 0 | 255 | |
| carrier_insertion | generated | own (dev-seed generator around rows of other sources) | yes | 210 | 0 | 0 | 176 | |
| class_templates | generated | own (dev-seed generator) | yes | 126 | 142 | 0 | 268 | |
| dlp_texts | extra | own (repository golden file) | yes | 864 | 864 | 0 | 1728 | |
| exfil_lookalikes | generated | own (dev-seed generator) | yes | 0 | 0 | 0 | 0 | |
| obfuscation_slices | generated | own (dev-seed generator around rows of other sources) | yes | 0 | 0 | 0 | 0 | |
| pii_texts | extra | own (repository golden file) | yes | 964 | 976 | 0 | 1940 | |
| runner_translations_de | translated | own translation (of the rows named in source_id) | yes | 185 | 204 | 0 | 389 | |
| trigger_negatives | extra | own (mix.py templates) | yes | 171 | 145 | 0 | 316 | |
| ailuminate_demo | prepared | CC-BY-4.0 | yes | 0 | 0 | 664 | 664 | github.com/mlcommons/ailuminate@769cc2be9d20 |
| attaq | prepared | MIT | yes | 0 | 0 | 176 | 176 | huggingface.co/datasets/ibm-research/AttaQ@5346565948b1 |
| civil_comments | prepared | CC0-1.0 | yes | 0 | 0 | 6000 | 6000 | huggingface.co/datasets/google/civil_comments@f2970eb3a557 |
| deepset_prompt_injections | prepared | Apache-2.0 | yes | 0 | 0 | 645 | 645 | huggingface.co/datasets/deepset/prompt-injections@4f61ecb038e9 |
| gandalf | prepared | MIT | yes | 0 | 0 | 998 | 998 | huggingface.co/datasets/Lakera/gandalf_ignore_instructions@04737b65e90a |
| germeval2021 | prepared | not stated | no | 0 | 0 | 4150 | 0 | github.com/germeval2021toxic/SharedTask@fa5dca397aed |
| injecagent | prepared | MIT | yes | 0 | 0 | 62 | 62 | github.com/uiuc-kang-lab/InjecAgent@f19c9f2c79a4 |
| jackhhao_jailbreak | prepared | Apache-2.0 | yes | 0 | 0 | 1865 | 1865 | huggingface.co/datasets/jackhhao/jailbreak-classification@2f2ceeb39658 |
| nemotron_content_safety_v2 | prepared | CC-BY-4.0 | yes | 0 | 0 | 1477 | 1477 | huggingface.co/datasets/nvidia/Aegis-AI-Content-Safety-Dataset-2.0@d86bb8bedff5 |
| textdetox_de | prepared | OpenRAIL++ | no | 0 | 0 | 4564 | 0 | huggingface.co/datasets/textdetox/multilingual_toxicity_dataset@01907546324b |
Our own texts (generated with the dev seed, translations, repository sets) are published with
this package; a generated or translated text that contains a row of another source carries that
source's licence as well.
Limitations
- The 34 measured texts marked
missingcannot be checked by text from outside; they are
generated carriers around rows of BIPIA and WildJailbreak, whose texts this package does not
share. real_agent_quotestexts are quotations of public web pages; they rebuild only while the pages
serve the same text (checked by SHA-256).- Three of the 42 sources (
exfil_lookalikes,obfuscation_slices,simple_safety_tests) have
no row in either part: all their rows were training rows of a built-in model.