arXiv:2610.07635cs.CROct 2026

Manuscript Offprint

arXiv:2610.07635

CISB-Bench: An Auditable Source--IR Dataset of Compiler-Introduced Security Bugs

Saatvik Pradhan, Anuroop Saini, Pranav Attrey, Suman Saha

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Saatvik Pradhan, Anuroop Saini, Pranav Attrey, and Suman Saha

The Pennsylvania State University

University Park, PA, USA

{szp6118, abs7800, pka5235, szs339}@psu.edu

Abstract—Compiler-introduced security bugs (CISBs) arise when an optimization, lowering, or instrumentation decision changes a security-relevant property of the generated program. They are difficult to study because their evidence is distributed across issue reports, reduced tests, historical configurations, and compiler artifacts; a security-related report also does not imply that every associated reduction establishes a security-bearing compiler failure. We present CISB-Bench, an auditable dataset of 429 exact C-program rows mined from GCC and LLVM. Each row contains its C reduction, a standardized LLVM IR analysis bundle at -00 through -03, public provenance, a final binary label, and a primary mechanism or boundary annotation. Two reviewers independently labeled the fixed corpus, agreeing on 369 rows (86.0%, Cohen's κ=0.662\kappa = 0.662); the 60 disagreements were adjudicated. The final dataset comprises 280 CISBs and 149 hard non-CISB cases. The prediction task is to recover this reviewed exact-row label from the supplied artifacts; it is not a claim that standardized IR alone reproduces every historical compiler failure. We characterize the security mechanisms and evidence boundaries represented by the corpus, and demonstrate how its paired artifacts support source-only, IR-aware, and joint analyses. CISB-Bench provides a reusable, inspectable target for compiler-security mining and detection research.

Index Terms—compiler security, mining software repositories, benchmark dataset, GCC, LLVM

I. INTRODUCTION

Compilers are part of the security boundary between a source program and the executable that ultimately runs. Optimizations, target lowering, and security instrumentation are expected to preserve relevant behavior, yet each can alter a property on which a security mechanism relies. The resulting correctness–security gap arises when a transformation meets a conventional correctness criterion but defeats a security property [1]. Examples include optimizations that eliminate secret-erasure stores [2], sanitizer-eliding transformations [3], and compiler-created double fetches that weaken control-flow integrity [4]. Other work documents the security consequences of compiler side effects and secret-dependent compiled code [5]–[7]. We call such failures compiler-introduced security bugs (CISBs).

CISBs are challenging to mine and evaluate at scale. Their evidence is rarely contained in a single artifact: an issue report may describe the affected target, an old compiler version, a patch, and multiple reduced programs. A reduction can be a complete witness, but it can also be a helper, a control, or a fragment that no longer instantiates the reported mechanism. Conversely, a compiler report can mention an overflow, crash,

TABLE I

POSITIONING OF CISB-BENCH RELATIVE TO REPRESENTATIVE RESOURCES. THE COMPARISON CONCERNS THE RELEASED BENCHMARK TARGET, NOT THE ORIGINAL VALUE OF THE OTHER RESOURCES.

ResourceDifference from CISB-Bench
Csmith / EMI [8], [9]Generated tests and execution-based correctness evidence.
GCC/LLVM and CISB studies [10]-[12]Report-level characterization or CISB study, not reviewed paired source-IR hard negatives.
Vulnerability datasets [13]-[15]Different language, unit, or task.
CISB-BenchExact C rows, standardized IR, CISB target, hard negatives, and rationale.

or optimization while establishing only a warning problem, a compiler-internal failure, or an ordinary wrong result. Security terminology and issue-family membership are therefore insufficient ground truth for an exact program.

Compiler-testing methods discover semantic miscompilations [8], [9], empirical studies characterize GCC and LLVM reports [10], [11], and prior security work establishes that CISBs matter [12]. What remains missing is an inspectable exact-row decision boundary with paired source/IR evidence and difficult negatives.

We present CISB-Bench, 429 exact C reductions from GCC and LLVM, each with public provenance and standardized LLVM IR at -00--03. A fixed-corpus, three-gate review produced 280 CISBs, 149 hard non-CISBs, and mechanism or boundary annotations. The benchmark targets the reviewed exact-row label from released C and IR; its standardized IR supports uniform analysis rather than replaying every historical toolchain.

The distinguishing unit is an exact C reduction paired with standardized IR and a reviewed compiler-to-security decision, rather than a report, generated test, or source-level CVE instance (Table I).

References (38)