Papers › Privacy Backdoors: Stealing Data with Corrupted Pretrained Models

Privacy Backdoors: Stealing Data with Corrupted Pretrained Models

30 Mar 2024arXiv:2404.00473archive 2025-07-28

Shanglun Feng, Florian Tramèr

Practitioners commonly download pretrained machine learning models from open repositories and finetune them to fit specific applications. We show that this practice introduces a new risk of privacy backdoors. By tampering with a pretrained model's weights, an attacker can fully compromise the privacy of the finetuning data. We show how to build privacy backdoors for a variety of models, including transformers, which enable an attacker to reconstruct individual finetuning samples, with a guaranteed success! We further show that backdoored models allow for tight privacy attacks on models trained with differential privacy (DP). The common optimistic practice of training DP models with loose privacy guarantees is thus insecure if the model is not trusted. Overall, our work highlights a crucial and overlooked supply chain attack on machine learning privacy.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2404.00473")

Code

Syntology Ran 14 of 17 code samples harvested from 1 repository linked to this paper; 3 have no recorded run. Of those that ran: 14 ran with no contract checked.

By repository: official repository: 17 samples from 1 repository, 14 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

shanglunfengatethz/privacybackdoor officialmentioned in paperpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

17 samples harvested; 14 ran; 0 honoured the contract we drafted; 3 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

14ran
3unverified

Licence: 17 of the 17 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from shanglunfengatethz/privacybackdoor. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

bait_mirror_position_generator shanglunfengatethz/privacybackdoor/src/edit_bert.py official repository ran no licence file found · pointer only · 1717f80105daf98d · report
channel_extraction shanglunfengatethz/privacybackdoor/src/edit_vit.py official repository ran fingerprinted no licence file found · pointer only · bef40d0b20840625 · report
cope_with_sentences shanglunfengatethz/privacybackdoor/src/data.py official repository ran no licence file found · pointer only · 838890aad132e55b · report
find_available_bait_and_target shanglunfengatethz/privacybackdoor/src/run_dpprv.py official repository ran no licence file found · pointer only · cc619f559e789221 · report
find_self_consist shanglunfengatethz/privacybackdoor/src/run_dpprv.py official repository ran no licence file found · pointer only · 19f5cb07d7444756 · report
get_sentences_labels_from_dicts shanglunfengatethz/privacybackdoor/src/data.py official repository ran no licence file found · pointer only · b6d4c90a68249f9d · report
make_conv_pixel_extractor shanglunfengatethz/privacybackdoor/src/edit_vit.py official repository ran no licence file found · pointer only · 393c698d71708c54 · report
make_extract_pixels shanglunfengatethz/privacybackdoor/src/edit_vit.py official repository ran no licence file found · pointer only · 159e78c46dc65a23 · report
native_bait_selector shanglunfengatethz/privacybackdoor/src/model_mlp.py official repository ran no licence file found · pointer only · 471665f6887b5809 · report
native_preprocess shanglunfengatethz/privacybackdoor/src/model_mlp.py official repository ran no licence file found · pointer only · 6dad85fe4118d5e9 · report
select_position_embedding shanglunfengatethz/privacybackdoor/src/edit_bert.py official repository ran no licence file found · pointer only · e31fd1853842c0e9 · report
setdiff1d shanglunfengatethz/privacybackdoor/src/tools.py official repository ran no licence file found · pointer only · 7ead6cdb16fa1610 · report
stringify shanglunfengatethz/privacybackdoor/src/tools.py official repository ran no licence file found · pointer only · bb8089c8172faa52 · report
weights_generator shanglunfengatethz/privacybackdoor/src/tools.py official repository ran no licence file found · pointer only · 7096542a80cb5cf0 · report
load_dataset shanglunfengatethz/privacybackdoor/src/data.py official repository unverified no licence file found · pointer only · 5f45cff9a3473ad2 · report
record_step_info shanglunfengatethz/privacybackdoor/src/model_mlp.py official repository unverified no licence file found · pointer only · 239d973184003e1a · report
seq_signal_passing shanglunfengatethz/privacybackdoor/src/edit_bert.py official repository unverified no licence file found · pointer only · 1834c18d8b000103 · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections