Code-Poisoning Property Inference Attacks

Xukun Luan, Yuhui Gong, Gang Zhang, Zixuan Huang, Yuanguo Bi +2 more
7/17/2026
cs.CRcs.LG

No confident code implementation found for this paper.

Abstract

The flourishing code hosting platforms and coding agents enable even beginners with private data to build tailored Machine Learning (ML) models using available code quickly. The training data for ML models, often regarded as private property (e.g., clinical records, transaction information), is at significant risk of information leakage.

Show full abstract

Property Inference Attacks (PIAs), as a significant type of privacy attack, aim to expose global property information of the training set. In this paper, we present Code-Poisoning Property Inference Attack (CPPIA), the first code-level PIA, which overcomes four limitations of existing works: insufficient attack performance, severe degradation of model accuracy, high computational overhead, and failure under defenses. We consider malicious code providers from code hosting platforms (GitHub) and coding agents (Codex). Upon downloading the poisoned code, data holders train models with their private data without professional auditing, subsequently releasing label-only APIs to the public. The adversary embeds the properties into secret samples during training and queries the trained model on these samples later to leak privacy. CPPIA offers 100\% attack accuracy without degrading model accuracy. It is also computationally lightweight and requires no shadow models. We evaluate the attack performance across four datasets, eight model architectures, eighteen properties, and under three defense mechanisms, demonstrating the universality and effectiveness of CPPIA.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{luan2026codepoisoning,
  title  = {Code-Poisoning Property Inference Attacks},
  author = {Xukun Luan and Yuhui Gong and Gang Zhang and Zixuan Huang and Yuanguo Bi and Xuesong Li and Jinyan Liu},
  year   = {2026},
  eprint = {2607.15970},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2607.15970v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2607.15970.svg)](https://codeofpaper.com/paper/2607.15970)

Discussion