Papers › Cross-Context Backdoor Attacks against Graph Prompt Learning

Cross-Context Backdoor Attacks against Graph Prompt Learning

28 May 2024arXiv:2405.17984archive 2025-07-28

Xiaoting Lyu, Yufei Han, Wei Wang, Hangwei Qian, Ivor Tsang, Xiangliang Zhang

Graph Prompt Learning (GPL) bridges significant disparities between pretraining and downstream applications to alleviate the knowledge transfer bottleneck in real-world graph learning. While GPL offers superior effectiveness in graph knowledge transfer and computational efficiency, the security risks posed by backdoor poisoning effects embedded in pretrained models remain largely unexplored. Our study provides a comprehensive analysis of GPL's vulnerability to backdoor attacks. We introduce \textit{CrossBA}, the first cross-context backdoor attack against GPL, which manipulates only the pretraining phase without requiring knowledge of downstream applications. Our investigation reveals both theoretically and empirically that tuning trigger graphs, combined with prompt transformations, can seamlessly transfer the backdoor threat from pretrained encoders to downstream applications. Through extensive experiments involving 3 representative GPL methods across 5 distinct cross-context scenarios and 5 benchmark datasets of node and graph classification tasks, we demonstrate that \textit{CrossBA} consistently achieves high attack success rates while preserving the functionality of downstream applications over clean input. We also explore potential countermeasures against \textit{CrossBA} and conclude that current defenses are insufficient to mitigate \textit{CrossBA}. Our study highlights the persistent backdoor threats to GPL systems, raising trustworthiness concerns in the practices of GPL techniques.

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="2405.17984")

Code

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

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

xtLyu/CrossBA officialmentioned in papermentioned on GitHubpytorch 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

11 samples harvested; 6 ran; 0 honoured the contract we drafted; 5 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.

6ran
5unverified

Licence: 11 of the 11 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 xtLyu/CrossBA. “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.

act xtLyu/CrossBA/ProG/utils.py official repository ran fingerprinted no licence file found · pointer only · df1ea49a694f27c4 · report
add_trigger_graph xtLyu/CrossBA/attack/attack_data.py official repository ran no licence file found · pointer only · 199dcbe35aa34b02 · report
add_trigger_nodes xtLyu/CrossBA/attack/attack_data.py official repository ran no licence file found · pointer only · ed69a9c84d978d2e · report
gen_ran_output xtLyu/CrossBA/ProG/utils.py official repository ran no licence file found · pointer only · 9f59684e3e62b3be · report
maml_update xtLyu/CrossBA/ProG/meta.py official repository ran no licence file found · pointer only · ee04f3ea771abcc1 · report
update_module xtLyu/CrossBA/ProG/meta.py official repository ran no licence file found · pointer only · 8ce725e40f16540f · report
clone_module xtLyu/CrossBA/ProG/meta.py official repository unverified no licence file found · pointer only · 3425b06cc24cb577 · report
load_data4pretrain xtLyu/CrossBA/ProG/utils.py official repository unverified no licence file found · pointer only · 5594488c1b955edd · report
mrr_hit xtLyu/CrossBA/ProG/eva.py official repository unverified no licence file found · pointer only · 4d85b4c0ff5d301d · report
multi_class_NIG xtLyu/CrossBA/ProG/data.py official repository unverified no licence file found · pointer only · 7734b9b9045feec2 · report
multi_class_NIG_poison xtLyu/CrossBA/attack/attack_data.py official repository unverified no licence file found · pointer only · d49880c2fe68f06a · report

Tasks

Backdoor AttackComputational EfficiencyGraph ClassificationGraph LearningPrompt LearningTransfer Learning

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