{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/darkfed-a-data-free-backdoor-attack-in","title":"DarkFed: A Data-Free Backdoor Attack in Federated Learning","arxiv_id":"2405.03299","date":"2024-05-06","proceeding":null,"authors":["Minghui Li","Wei Wan","Yuxuan Ning","Shengshan Hu","Lulu Xue","Leo Yu Zhang","Yichen Wang"],"abstract":"Federated learning (FL) has been demonstrated to be susceptible to backdoor attacks. However, existing academic studies on FL backdoor attacks rely on a high proportion of real clients with main task-related data, which is impractical. In the context of real-world industrial scenarios, even the simplest defense suffices to defend against the state-of-the-art attack, 3DFed. A practical FL backdoor attack remains in a nascent stage of development. To bridge this gap, we present DarkFed. Initially, we emulate a series of fake clients, thereby achieving the attacker proportion typical of academic research scenarios. Given that these emulated fake clients lack genuine training data, we further propose a data-free approach to backdoor FL. Specifically, we delve into the feasibility of injecting a backdoor using a shadow dataset. Our exploration reveals that impressive attack performance can be achieved, even when there is a substantial gap between the shadow dataset and the main task dataset. This holds true even when employing synthetic data devoid of any semantic information as the shadow dataset. Subsequently, we strategically construct a series of covert backdoor updates in an optimized manner, mimicking the properties of benign updates, to evade detection by defenses. A substantial body of empirical evidence validates the tangible effectiveness of DarkFed.","url_abs":"https://arxiv.org/abs/2405.03299v1","url_pdf":"https://arxiv.org/pdf/2405.03299v1.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"links_only","authors_date_abstract":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license), from the Kaggle arXiv metadata snapshot of 2026-09-12"},"code_links":[{"paper_slug":"darkfed-a-data-free-backdoor-attack-in","repo_url":"https://github.com/hustweiwan/darkfed","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2405.03299","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2405.03299"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/hustweiwan/darkfed","reach":{"status":"ok"}},{"provenance":"deterministic:regex_extraction","url":"https://github.com/hustweiwan/DarkFed","reach":{"status":"ok"}}],"summary":{"ran":3,"ran_draft_wrong":3,"unverified":1},"by_repo_kind":{"official":{"samples":7,"ran":6,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"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"},"n_pointer_only_for_licence":7,"samples":[{"code_sha256_prefix":"a3c7fa08c0b2a87a","entry":"ResNetS","repo":"hustweiwan/DarkFed","repo_kind":"official","path":"models/resnet_s.py","file_url":"https://github.com/hustweiwan/DarkFed/blob/HEAD/models/resnet_s.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"a3c7fa08c0b2a87a"}},{"code_sha256_prefix":"d9def42110729a85","entry":"conv1x1","repo":"hustweiwan/DarkFed","repo_kind":"official","path":"models/resnet.py","file_url":"https://github.com/hustweiwan/DarkFed/blob/HEAD/models/resnet.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"d9def42110729a85"}},{"code_sha256_prefix":"160bb14bd76201b4","entry":"conv3x3","repo":"hustweiwan/DarkFed","repo_kind":"official","path":"models/resnet.py","file_url":"https://github.com/hustweiwan/DarkFed/blob/HEAD/models/resnet.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"160bb14bd76201b4"}},{"code_sha256_prefix":"583f9780bdd00a45","entry":"conv3x3","repo":"hustweiwan/DarkFed","repo_kind":"official","path":"models/resnet_s.py","file_url":"https://github.com/hustweiwan/DarkFed/blob/HEAD/models/resnet_s.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"583f9780bdd00a45"}},{"code_sha256_prefix":"e16f961c47753094","entry":"filter_backdoor","repo":"hustweiwan/DarkFed","repo_kind":"official","path":"DataFreeTraining.py","file_url":"https://github.com/hustweiwan/DarkFed/blob/HEAD/DataFreeTraining.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"e16f961c47753094"}},{"code_sha256_prefix":"c6e0e5ce8d72f015","entry":"predict_the_global_model","repo":"hustweiwan/DarkFed","repo_kind":"official","path":"DataFreeTraining.py","file_url":"https://github.com/hustweiwan/DarkFed/blob/HEAD/DataFreeTraining.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"c6e0e5ce8d72f015"}},{"code_sha256_prefix":"ec68d3387f37b073","entry":"create_bd2","repo":"hustweiwan/DarkFed","repo_kind":"official","path":"DataFreeTraining.py","file_url":"https://github.com/hustweiwan/DarkFed/blob/HEAD/DataFreeTraining.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"ec68d3387f37b073"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}