GradLock can steal pixel-perfect training data from compromised models
GradLock enables near-lossless reconstruction of private training data from model parameters in a supply-chain attack
Security & privacy arXiv 30 Jul 2026 Attack Prototype evidence
Published as “Don't Trust the AI Ecosystem: Analyzing Privacy Leakage in Compromised Open-Source Components”
Why it matters
The attack shows that malicious actors can silently steal private data from models distributed through open-source pipelines, even after standard model compression, raising urgent privacy and supply-chain concerns.
Summary
GradLock can embed and later extract private training images from a model’s weights with near-perfect visual fidelity (SSIM≈1.0) and in under a second, and it remains effective after quantization, pruning, and fine-tuning, unlike prior bit-level injection methods. The claim is backed by experiments on MNIST, Imagenette, and CelebA across CNN and Transformer models, showing SSIM = 1.000, LPIPS ≈ 0.000, and extraction times <1 s, plus a user study where 93.3% failed to notice the malicious code. The evidence is strong but limited to the reported datasets and architectures.
What they found 1
- GradLock achieves near-lossless reconstruction and instant extraction.
“GradLock achieves near-lossless reconstruction (SSIM ≈1.0) and instant extraction (<1.0s).”
Caveats 3
- On ResNet-18 the confidence gap for GradLock is 0.184, whereas the LSB baseline has a gap of 0.000, indicating some degradation in semantic fidelity.
- Quote: "GradLock (ours) 1.00 0.184"
- While these findings may not be broadly generalizable to all practitioners, they provide compelling evidence for the practical feasibility of training-time injection attacks in real-world environments.
What’s new here 4
- Selective gradient locking creates persistent data vaults that survive post-training optimizations.
- Deterministic indexing injects data without altering model architecture or accuracy.
- Robustness to quantization, pruning, and fine-tuning where prior LSB-based injections fail.
- Instant extraction (<1 s) compared to hours for post-training model-inversion attacks.