Skip to content

FEAT Add Agentic Prompt-Injection Boundary Pairs dataset loader #2174

Open

Description

@3nesdeniz

Is your feature request related to a problem? Please describe.

PyRIT does not currently expose a paired prompt-injection dataset designed to test the boundary between legitimate agent workflows and adversarial instructions. Attack-only collections are useful for recall, but they do not let users build or inspect false-positive-aware test surfaces where benign and attack prompts intentionally share the same scenario and vocabulary.

Describe the solution you'd like

Add a remote loader for the CC BY 4.0 Agentic Prompt-Injection Boundary Pairs dataset.

The proposed loader would:

  • load the published train, validation, test, or combined surface;
  • default to attack examples for red-team use while allowing benign or paired loading;
  • preserve pair_id, scenario_id, attack_family, pair_family, source_context, risk_domain, target_boundary, split, and label metadata;
  • support typed filters for label, split, attack family, and source context;
  • keep scenario-isolated split semantics intact;
  • include mocked unit tests, documentation, and bibliography updates.

The dataset contains 1,200 English records organized as 600 controlled benign/attack pairs across 50 enterprise and agentic scenarios and 12 attack families. JSONL and Parquet artifacts, deterministic build scripts, validation, checksums, and a 30% stratified manual-review record are public.

Describe alternatives you've considered, if relevant

Users can download the JSONL files directly, but that bypasses PyRIT dataset discovery, metadata preservation, filtering, and consistent SeedDataset handling. A generic file loader would also lose the paired-boundary semantics unless every consumer rebuilt the same mapping.

Additional context

Dataset: https://huggingface.co/datasets/3nesdeniz/agentic-prompt-injection-boundary-pairs

Source and build pipeline: https://github.com/3nesdeniz/agentic-prompt-injection-boundary-pairs

I maintain the dataset and can keep the loader schema synchronized with tagged dataset releases.

Activity

  1. 3nesdeniz commented on Jul 30, 2026

    @3nesdeniz
    Author

    Following up on the review discussion in #2175: I understand that this catalog decision should have been discussed with maintainers before implementation, and I agree that provenance and demonstrated value need to be evaluated separately from loader quality.

    To be explicit, this dataset is not currently backed by a peer-reviewed paper.

    Its intended value for PyRIT is that it is not another attack-only prompt collection. It contains 600 scenario-matched benign/attack pairs that deliberately share vocabulary and workflow context. This makes it possible to evaluate attack detection and benign false positives on comparable inputs rather than measuring attack recall alone.

    The current evidence base includes:

    • 1,200 versioned records across 50 scenario-isolated workflows and 12 attack families;
    • deterministic build and validation tooling;
    • public release artifacts and checksums;
    • preserved pair, scenario, source-context, boundary, and expected-action provenance;
    • stratified manual review of the generated corpus.

    Before proceeding further, could the maintainers clarify:

    1. Whether this kind of paired boundary-evaluation dataset is in scope for the PyRIT dataset catalog;
    2. What evidence threshold would be appropriate without a peer-reviewed paper;
    3. Whether a reproducible PyRIT benchmark reporting attack detection, benign false-positive rate, pairwise consistency, and scenario-held-out results would provide useful evidence;
    4. Whether independent adoption or external review should be established before reconsidering the loader.

    If the expected bar is a peer-reviewed publication or demonstrated external adoption, I completely understand and can keep the loader external until that evidence exists. I will pause implementation changes to #2175 until the maintainers provide direction here.

  2. 3nesdeniz commented on Aug 12, 2026

    @3nesdeniz
    Author

    Picking this back up on the provenance/catalog-direction question, Adrian Gavrila (@adrian-gavrila).

    To put something concrete on the table: the dataset is openly published (CC BY 4.0) with a CITATION.cff, a pinned immutable revision, a documented deterministic/reproducible build (scenario-isolated splits, no leakage), and a companion evaluation harness that operationalizes 'evidence of value' by scoring detector recall and false-positive rate on the paired benign/attack surface.

    Since almost all loaders are paper-backed, I'd like your read on the bar: would a peer-reviewed or preprint write-up of the boundary-pair methodology be the kind of provenance you'd want before this is a catalog candidate, or is there a different evidence-of-value threshold (e.g. demonstrated third-party use) that fits PyRIT better? Happy to pursue whichever you point to before touching the implementation again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions