Compiler Provenance as a Service: Decoupled Identification for Composite Provenance and Operational Resilience
Abstract
Compiler provenance aims to identify the compiler toolchain used to produce a binary, serving as a fundamental capability for binary analysis, forensics, and supply chain security. Prior studies implicitly formulate the problem as a static, one-shot classification task. Such a formulation breaks down in real-world settings, where compiler ecosystems evolve continuously, and adversaries can adaptively probe provenance logic. Furthermore, some work adopts a single-origin assumption and fails to handle binaries produced by mixed toolchains, creating blind spots in supply chain auditing. In this paper, we study compiler provenance in real-world settings, shifting the paradigm from a static classification to a continuous service. We present S4, a practical provenance system built upon decoupled statistical signatures. By encapsulating each compiler as an independent identification unit, S4 ensures incremental stability with low and controllable drift when new compilers are integrated and enables localized refinement without affecting existing units. Independent signatures provide composable evidence for composite provenance; combined with a dual-scale analysis, S4 surfaces both primary and secondary provenance in mixed-toolchain binaries. To defend against emerging threats to provenance systems, we design a moving target defense based on randomized featurization, which limits the exposure of stable features on each query to prevent adversaries from identifying critical features by adaptive probing. We evaluate S4 across a wide range of compiler versions, covering all standard optimization levels. S4 matches state-of-the-art accuracy on single-toolchain binaries and reliably handles mixed-toolchain binaries. Beyond accuracy, S4 exhibits operational resilience through incremental stability, localized refinement, and resilience to typical adaptive probing attacks. The decoupled design inherently supports explainability, providing statistical evidence to facilitate debugging and trust in security applications.