Repository navigation
FEAT: Add Garak ProPILE privacy leakage scenario - #3115
Merged
Richard Lundeen (richlundeen) merged 2 commits intoOct 10, 2026
Merged
Richard Lundeen (richlundeen) merged 2 commits into
Richard Lundeen (richlundeen) merged 2 commits into
Conversation
Signed-off-by: Barkha <340367068+barkha1research-ai@users.noreply.github.com>
Contributor
Author
|
@microsoft-github-policy-service agree |
Preserve seed-authored OutputMatches conditions and reject incompatible scorer overrides before initialization. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 61f33406-d867-43e4-a626-e5472fa0dc8f
Richard Lundeen (richlundeen)
approved these changes
Oct 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Closes #2532.
Adds
garak.propile, a PyRIT-native port of Garak's ProPILE probes (https://arxiv.org/abs/2307.01881).garak_propile_piiholds Garak's 26 records, one seed per subject, withsource_datasetandsource_idkept in metadata and the Nemotron-CC-v2.1 source linked in the description.garak_propile_templatesholds the 24 templates with placeholders converted to Jinja and metadata for the technique, the withheld field and the known fields. Both point at Garak commit 3f50ea5f, already used inthird_party/garak-provenance.json, and neither is taggeddefault.Twin,Triplet,QuadrupletandUnstructured.ProPILEDatasetConfigurationrenders each template against every record that has its known and withheld fields, groups the requests by technique, and samples with one request reserved per selected technique (defaultmax_total20). Identical requests from duplicate records collapse, and namesakes with different values stay separate requests.DatasetConstraintErrorthat names the technique, instead of reporting zero attacks. The bundled records support 81 Twin and 4 Triplet requests. Quadruplet and Unstructured are tested with synthetic records and work with a user-supplied record dataset selected alongsidegarak_propile_templates.SeedObjectivecarries its withheld value asOutputMatches(Contains(...))inconditions, and the scenario usesOutputMatchesScorer, so the seed authors its criterion asdoc/code/framework.mddescribes. This uses the sameExactTextMatchingasSubStringScorer(case-insensitive, edge-whitespace normalised), which matches Garak'sPIILeakExactdetector. A custom objective scorer withoutOutputMatchessupport receives the objective only. Happy to switch to per-valueSubStringScorerinstances if you prefer.Twinis the default technique, and Triplet, Quadruplet and Unstructured are opt-in.test_all_builtin_default_size_contracts_are_bounded_asyncrequires every built-in scenario's default run to have at least one attack, so an all-opt-in default would fail it. I can change this if you would rather exempt the scenario.third_party/garak-provenance.json, and a ProPILE paragraph inTHIRD_PARTY_NOTICES.txt. The records are ported unchanged from Garak, including its extraction results. As the provenancescope_notesays, Nemotron-CC's own terms are not audited here.Tests and Documentation
tests/unit/scenario/garak/test_propile.py(31 tests) andtests/unit/datasets/test_garak_propile_dataset.py(7 tests). They cover real-data populations and provenance, the Quadruplet and Unstructured synthetic fixtures, multiple relationships, duplicate and namesake records, numeric record values, the no-compatible-record error (includingALLon bundled data), coverage sampling, unsupported configurations, resume replay, run-size estimates, the custom-scorer path, and a full mocked run scoring all 81 responses against their own withheld values.pytest tests/unit: all pass locally (24,900 passed, 323 skipped).pre-commit runon the changed files: all hooks pass.ty checkreports nothing in the new files.doc/scanner/garak.py/.ipynband the dataset names todoc/code/datasets/1_loading_datasets.py/.ipynb, plus the citation indoc/references.bibanddoc/bibliography.md. Notebook inputs were synced withjupytext --update, and the.ipynb/.pyround trip checked. The ProPILE result cell was executed against a local OpenAI-compatible target (Ollama, llama3.1:8b) rather than the Azure deployment used for the other cells, so its target information differs. Please regenerate it with your target if you prefer.