← Lab /Security & privacy

PRGuard attributes more vulnerabilities than prior reviewers, exposing verdict-only overstatement

PRGuard identifies target vulnerabilities more accurately than CodeRabbit, reducing false security assurances

Security & privacy arXiv 26 Aug 2026 Defense Prototype evidence Threat model

Published as “From Verdict to Diagnosis: Attributable Security Review of Pull Requests”

Why it matters

Enabling reviewers to pinpoint the exact vulnerability and supporting evidence can reduce misdirected remediation and improve security maintenance efficiency.

Summary

PRGUARD identifies far more target vulnerabilities than a leading commercial AI reviewer while blocking the same number of malicious pull requests, and it discovers twelve previously unknown, proof-of-concept-backed bugs in real projects; the evidence comes from a 89-malicious-PR benchmark (MALPR-BENCH) and real-world deployments, with comparable blocking rates to CodeRabbit but 1.38× more identified vulnerabilities overall and 3× more on absence-type cases.

What they found 3

  1. PRGUARD identifies 1.38× as many target vulnerabilities as CodeRabbit while achieving similar blocking performance.

    “Across 31 held-out malicious PRs, PRGUARD and CodeRabbit [4], a widely deployed commercial AI code reviewer, achieve nearly identical blocking performance, yet PRGUARD/DeepSeek identifies 1.38× as many target vulnerabilities.”

  2. On absence-type PRs, PRGUARD identifies three times more vulnerabilities than CodeRabbit.

    “On absence-type PRs, where a required guard or ownership check is missing, PRGUARD identifies 3× more vulnerabilities than CodeRabbit.”

  3. PRGUARD discovers twelve previously undisclosed, proof-of-concept-backed vulnerabilities across five production repositories.

    “Applied to real-world production repositories, PRGUARD further uncovers twelve previously undisclosed, proof-of-conceptbacked vulnerabilities across five widely used projects.”

Caveats 1

  • PRGUARD and CodeRabbit achieve nearly identical blocking performance, so the improvement is in attribution rather than in blocking more malicious PRs.

What’s new here 4

  • Defines and measures the Verdict-Diagnosis (VD) gap, separating blocking verdicts from accurate vulnerability diagnosis.
  • Introduces MALPR-BENCH, a mechanism-grounded benchmark with 89 malicious PRs and 50 benign controls across 44 repositories and eight languages, providing per-case rubrics for vulnerability identification and evidence validation.
  • Presents PRGUARD, an attributable PR security reviewer that decouples vulnerability identification from evidence validation and retrieves repository context to substantiate findings.
  • Demonstrates real-world impact by uncovering twelve previously undisclosed, PoC-backed vulnerabilities in five widely used projects.

Threat model stated by the source

AdversaryPR author who can control the diff, title, description, and any repository content added or modified by the PR
CapabilityCan inject malicious code, misleading comments, or tests; cannot modify the pre-PR repository revision or the review infrastructure
AssumesDefender’s trust boundary includes the existing repository state and review infrastructure; Reviewer treats all PR-controlled material as untrusted