Add VisualLeakBench dataset loader (arXiv:2603.13385)#1531
Draft
Add VisualLeakBench dataset loader (arXiv:2603.13385)#1531
Conversation
…update Co-authored-by: romanlutz <10245648+romanlutz@users.noreply.github.com> Agent-Logs-Url: https://github.com/Azure/PyRIT/sessions/1797b39b-c590-40f4-9bfa-73ee156591b1
Copilot
AI
changed the title
[WIP] Add dataset loader for VisualLeakBench in PyRIT
Add VisualLeakBench dataset loader (arXiv:2603.13385)
Mar 22, 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.
Adds PyRIT support for the VisualLeakBench / MM-SafetyBench dataset — a multimodal benchmark of 1,000 adversarial images testing LVLMs against OCR injection (harmful instructions embedded in images) and PII leakage (social engineering to extract SSNs, passwords, API keys, etc.).
New:
_VisualLeakBenchDatasetmetadata.csvfromYoutingWang/MM-SafetyBenchon GitHub and downloads images with local cachingprompt_group_id(image atsequence=0, category-specific query atsequence=1)ocr_injectionfor OCR entries;pii_leakage+ normalized PII type (e.g.ssn,api_key) for PII entriescategories,pii_types, andmax_examplestags={"default","safety","privacy"},modalities=["image","text"]forSeedDatasetFilterdiscoveryNew enums
VisualLeakBenchCategoryOCR_INJECTION,PII_LEAKAGEVisualLeakBenchPIITypeEMAIL,DOB,PHONE,PASSWORD,PIN,API_KEY,SSN,CREDIT_CARDUsage
Test coverage
26 unit tests covering init validation, OCR/PII pair creation, harm category mapping, category/PII-type filtering,
max_examples, failed image handling, and metadata correctness. Integration test updated to cap image downloads atmax_examples=6(same pattern as_VLSUMultimodalDataset).Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
arxiv.org/home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js(dns block)huggingface.co/home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js(dns block)/home/REDACTED/work/PyRIT/PyRIT/.venv/bin/python3 /home/REDACTED/work/PyRIT/PyRIT/.venv/bin/python3 -u -c import sys;exec(eval(sys.stdin.readline()))(dns block)researchtrend.ai/home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
📍 Connect Copilot coding agent with Jira, Azure Boards or Linear to delegate work to Copilot in one click without leaving your project management tool.