PrivacyPR: A Dataset of Real-World Privacy Fixes for Benchmarking Privacy-Aware Code Review
New in LLM agents and tool use; no direction yet. LLM agents and tool use
Abstract (arXiv)
Coding agents increasingly review code, yet whether they catch the privacy defects that laws such as the GDPR require software to avoid remains largely untested, partly because few datasets connect real privacy defects to their accepted fixes and review context. We present PrivacyPR, a dataset of 4,131 merged GitHub pull requests (PRs) from 1,469 repositories, created between June 2018 and January 2024. Each PR includes its commits, diffs, review discussion, and LLM-generated labels for privacy relevance, fix type, and GDPR principles. PrivacyPR provides 1,169 high-confidence privacy fixes and 1,643 non-fix PRs, together with Verified, a manually checked split of 250 privacy fixes and 250 non-fix PRs, and Small, a 100 + 100 subset for evaluation. On Verified, both annotators endorsed 72% of the LLM's GDPR-principle assignments. Beyond supporting empirical study of how privacy defects arise and are fixed, PrivacyPR provides a benchmark for privacy-aware code review on real, developer-accepted fixes. Its evaluation harness reverts each fix to reintroduce the defect. On Small, two coding agents detect only 42-51% of defects under a generic review prompt, but 88-91% when explicitly asked to check privacy, while flagging 11-15% of non-fix PRs. These results show that privacy defects can be detected by coding agents, but that detection depends strongly on review intent and comes with false alarms. Data, code, reviews, judge verdicts, and an extensible evaluation harness are publicly available at https://doi.org/10.5281/zenodo.23744765.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Builds on 16 of its 24 references that are in the map. Submitted 13 Nov 2026.
Builds on
16 of 24 references.
References · 16
- 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineeringcited by 2,069
- 2024AutoCodeRover: Autonomous Program Improvementcited by 303
- 2021CVEfixes: Automated Collection of Vulnerabilities and Their Fixes from Open-Source Softwarecited by 94
- 2025SWR-Bench: Assessing LLM Performance in Real-World Code Review Comment Generationcited by 9
- 2026RovoDev Code Reviewer: A Large-Scale Online Evaluation of LLM-based Code Review Automation at Atlassiancited by 8
- 2023Is It a Trap? A Large-scale Empirical Study And Comprehensive Assessment of Online Automated Privacy Policy Generators for Mobile Appscited by 6
- 2025Privacy Bills of Materials: A Transparent Privacy Information Inventory for Collaborative Privacy Notice Generation in Mobile App Developmentcited by 6
- 2025SecureReviewer: Enhancing Large Language Models for Secure Code Review through Secure-aware Fine-tuningcited by 6
- 2026Code Review Agent Benchmarkcited by 5
- 2025GDPR-Bench-Android: A Benchmark for Evaluating Automated GDPR Compliance Detection in Androidcited by 2
- 2023The whos, whats, and whys of issues related to personal data and data protection in open-source projects on GitHubcited by 1
- 2023Helping Code Reviewer Prioritize: Pinpointing Personal Data and its Processingcited by 1
4 more
- 2024An Exploratory Mixed-Methods Study on General Data Protection Regulation (GDPR) Compliance in Open-Source Softwarecited by 1
- 2025Evolution of repositories and privacy laws: commit activities in the GDPR and CCPA eracited by 1
- 2025Analyzing developer discussions on EU and US privacy legislation compliance in GitHub repositoriescited by 1
- 2026SeRe: A Security-Related Code Review Dataset Aligned with Real-World Review Activitiescited by 1
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2023Summary Reports Optimization in the Privacy Sandbox Attribution Reporting API
- 2025PrivacyGuard: A Modular Framework for Privacy Auditing in Machine Learning
- 2025Cluster-guided LLM-Based Anonymization of Software Analytics Data: Studying Privacy-Utility Trade-offs in JIT Defect Prediction ↗
- 2026LLM-Redactor: An Empirical Evaluation of Eight Techniques for Privacy-Preserving LLM Requests
- 2026Not All Agents Are Equal: Code Quality and Post-Merge Maintenance Across Five Autonomous Coding Agents in the Wild
- 2026AgentSCOPE: Evaluating Contextual Privacy Across Agentic Workflows
- 2025Generating Privacy Stories From Software Documentation
- 2026LLM-CEG: Extending the Classification Error Gauge Framework for Privacy Auditing of Large Language Models ↗