Skip to content
purseclabPublic

About

Code for the paper “Compiler Provenance as a Service: Decoupled Identification for Composite Provenance and Operational Resilience,” published at ACM CCS 2026.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

Separated Statistical Signature Summary ($S^4$)

This is the repository of the paper entitled “Compiler Provenance as a Service: Decoupled Identification for Composite Provenance and Operational Resilience.”

About

This repository contains the materials associated with the paper, including source code and mixed-toolchain dataset, and guidance.

1. Dataset

Single-Toolchain

For the single-toolchain setting, we use the BinKit 2.0 dataset to build our experimental dataset.

Mixed-Toolchain

To construct our mixed-toolchain dataset, we built multiple open-source projects from source. For each project, we compiled the main executable and its libraries using different compiler toolchains, following BinKit’s build configurations.

We derive the ground truth from the DWARF debugging information, using the DW_AT_low_pc, DW_AT_high_pc, and DW_AT_ranges attributes.

The dataset can be found at Release.

Note: We have expanded the mixed-toolchain dataset from 6 to 42 projects. Feel free to use the expanded dataset to evaluate your approach to mixed-toolchain provenance!

2. Scripts

  • re_arrange.py: Re-arrange the BinKit dataset. You should run this script ahead of all other operations since the experiments are all based on the re-arranged dataset.
  • batch_strip.py: Strip the binaries within the re-arranged dataset in parallel. Note that it uses strip -g to retain the original function boundaries.
  • dataset_split: Split the dataset into train, validation, and test.
  • batch_binary_level_compiler_dataset_generation.py: Generate the experimental dataset for compiler identification.
  • train.py: Train the model ($n$-gram feature + GBDT classification) with decoupled identification architecture.
  • evaluation.py: Evaluate the model based on the temporal-priority resolution.

3. IDA Python Scripts

  • ida/batch_generation_idb.py: Generating IDB for each binary. Each IDB file is located in the same folder as the input binary.
  • ida/batch_ida_python.py: Applying a certain IDA Python script on the given dataset in parallel.
  • ida/ida_python: A series of IDA Python scripts for extracting features from IDB files.
  • ida/clean_intermediate_files.sh: Cleaning all intermediate files (*.id0, *.id1, *.id2, *.nam, *.til, *.$$$) of dataset. It is for the cases that IDA exits abnormally. As a result, the expanded IDBs are not again compressed in such cases.

4. Ghidra Scripts

  • ghidra/batch_ghidra.py: Run ghidra script in batches.
  • ghidra/ghidra_script: A series of Ghidra scripts for extracting features from Ghidra projects.

Citation

If you use this repository in your research, please cite the paper:

@inproceedings{10.1145/3830454.3832722,
  author = {Gao, Han and Bianchi, Antonio and Celik, Z. Berkay and Tian, Dave (Jing)},
  title = {Compiler Provenance as a Service: Decoupled Identification for Composite Provenance and Operational Resilience},
  year = {2026},
  isbn = {9798400728716},
  publisher = {Association for Computing Machinery},
  address = {New York, NY, USA},
  url = {https://doi.org/10.1145/3830454.3832722},
  doi = {10.1145/3830454.3832722},
  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.},
  booktitle = {Proceedings of the 2026 ACM SIGSAC Conference on Computer and Communications Security},
  pages = {6669–6683},
  numpages = {15},
  keywords = {compiler provenance, supply chain auditing, resilience},
  location = {The Hague, Netherlands},
  series = {CCS '26}
}

About

Code for the paper “Compiler Provenance as a Service: Decoupled Identification for Composite Provenance and Operational Resilience,” published at ACM CCS 2026.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages