← Lab /AI/ML

Code poisoning can infer training set properties with 100% accuracy and no model loss

CPPIA achieves 100% property inference attack accuracy without degrading model accuracy

AI/ML arXiv 17 Jul 2026 Attack Prototype evidence Threat model

Published as “Code-Poisoning Property Inference Attacks”

Why it matters

Code auditing of third-party ML repositories becomes critical, as poisoned code can silently leak sensitive dataset properties without affecting model performance.

Summary

CPPIA achieves 100% property inference attack accuracy while preserving the target model's accuracy, incurs virtually no computational overhead, and remains effective against defenses. The authors demonstrate this across four public benchmark datasets, eight model architectures, and eighteen property types, averaging results over five runs. Evidence is strong in that it consistently shows perfect attack success in the reported experiments, though the evaluation of broader task models is limited to preliminary, baseline-free experiments.

What they found 3

  1. CPPIA consistently attains perfect 100% attack accuracy across all evaluated properties.

    “Our attack consistently achieves a perfect 100% attack accuracy.”

  2. Model accuracy is unchanged despite the attack.

    “CPPIA attains a perfect 100% attack accuracy while preserving the model accuracy entirely.”

  3. The attack remains effective under multiple defenses.

    “CPPIA remains unaffected by Inf2Guard [37], maintaining a 100% attack accuracy.”

Caveats 1

  • The aforementioned specific task models’ PIAs have not been extensively studied. Consequently, our current investigation is limited to preliminary experiments without comparative baselines.

What’s new here 4

  • Introduces a code-level property inference attack that works by poisoning the training code rather than the data or model.
  • Operates in the extreme label-only black-box setting, requiring only query access to the trained model.
  • Achieves perfect attack accuracy without any degradation of the model's predictive performance.
  • Incurs negligible computational cost and evades several privacy defenses (Inf2Guard, ExpM, DPSGD).

Threat model stated by the source

Adversaryan attacker who publishes poisoned code to public code-hosting platforms
Capabilityrelease poisoned code and query the trained model with label-only black-box access
Assumescode is executed in a secure, isolated environment; adversary cannot directly access the training environment; only label-only query access to the final model is available