Prompt injection attacks are an emerging threat to large language models (LLMs), enabling malicious users to manipulate outputs through carefully designed inputs. Existing detection approaches often require centralizing prompt data, creating significant privacy risks. This paper proposes a privacy-preserving prompt injection detection framework based on federated learning and embedding-based classification. A curated dataset of benign and adversarial prompts was encoded with sentence embedding and used to train both centralized and federated logistic regression models. The federated approach preserved privacy by sharing only model parameters across clients, while achieving detection performance comparable to centralized training. Results demonstrate that effective prompt injection detection is feasible without exposing raw data, making this one of the first explorations of federated security for LLMs. Although the dataset is limited in scale, the findings establish a strong proof-of-concept and highlight new directions for building secure and privacy-aware LLM systems.
A Secure and Efficient Federated Learning Framework for NLP
University of Connecticut(康涅狄格大学);Duke University(杜克大学);Facebook(脸书);Microsoft(微软);Northeastern University(东北大学);University of Illinois at Chicago(伊利诺伊大学芝加哥分校)
STAIN-FL: Stealthy Targeted Attack Injection with Contextual Triggers in Federated Learning
Singapore Institute of Technology (SIT)(新加坡理工学院(SIT));SingHealth Duke-NUS AI in Medicine Institute(新加坡保健服务集团杜克-新加坡国立大学医学院AI研究所);SingHealth AI Office(新加坡保健服务集团AI办公室)
SDBA: A Stealthy and Long-Lasting Durable Backdoor Attack in Federated Learning
Department of Information and Communication Engineering, Major in Information Security, Chosun University(信息与通信工程系,信息安全专业,全州大学);AI Data Security Research Section, Electronics and Telecommunications Research Institute(人工智能数据安全研究部,电子电信研究院);Department of Convergence Science, Kongju National University(融合科学系, Kongju国立大学)
Benchmarking Differential Privacy and Federated Learning for BERT Models
Manipal Institute of Technology(马尼帕尔理工学院);Carnegie Mellon University(卡内基梅隆大学);OpenMined;Yildiz Technical University(耶尔德兹技术大学);Ford Motor Company(福特汽车公司);University of California, San Diego(加州大学圣地亚哥分校)
When the Aggregator Cheats: Data-Free Backdoors in Federated LLM-based QA Systems
Southeast University(东南大学);The Hong Kong University of Science and Technology(香港科技大学);Nanjing University of Aeronautics and Astronautics(南京航空航天大学);Zhejiang University(浙江大学)
Defending Against Sophisticated Poisoning Attacks with RL-based Aggregation in Federated Learning
Beijing Advanced Innovation Center for Future Blockchain and Privacy Computing(北京未来区块链与隐私计算高精尖创新中心);Institute of Artificial Intelligence, Beihang University(北京航空航天大学人工智能研究院)
School of Electrical and Computer Engineering, Purdue University(普渡大学电气与计算机工程学院);Department of Computer Science and Engineering, Yonsei University(延世大学计算机科学与工程系)
SecureDrive-FL: Joint Differential Privacy and Gradient-Aware Selective Homomorphic Encryption for Federated Driver Monitoring
Institute of Industrial Automation and Software Engineering, University of Stuttgart(斯图加特大学工业自动化与软件工程研究所);Eindhoven University of Technology (TU/e)(埃因霍温理工大学)
TinyML NLP Scheme for Semantic Wireless Sentiment Classification with Privacy Preservation
Department of Electrical Engineering and Computer Science, York University(电气工程与计算机科学系,约克大学);CEMSE Division, King Abdullah University of Science and Technology (KAUST)(CEMSE部门,国王 Abdullah 科学与技术大学(KAUST))
Poison to Detect: Detection of Targeted Overfitting in Federated Learning
Interdisciplinary Centre for Security, Reliability and Trust(安全、可靠性与信任跨学科中心);University of Luxembourg(卢森堡大学);KDD Lab - ISTI National Research Council of Italy(KDD实验室—意大利国家研究 council)
DBIA: Data-free Backdoor Injection Attack against Transformer Networks
Institute of Information Engineering, Chinese Academy of Sciences(中国科学院信息工程研究所);University of Chinese Academy of Sciences(中国科学院大学);Boston University(波士顿大学)
SecureDyn-FL: A Robust Privacy-Preserving Federated Learning Framework for Intrusion Detection in IoT Networks
Sir Syed CASE Institute of Technology(Sir Syed CASE 理工学院);Habib University(哈比布大学);Yeunganam University(延世南大学);University of Nottingham Ningbo China(诺丁汉大学宁波分校);Korea University(高丽大学)
Shadow defense against gradient inversion attack in federated learning
Bioengineering Department, Imperial College London, London W12 0BZ, UK;School of Computer Engineering;Science, Shanghai university, Shanghai 200444, China;Bioengineering Department;Imperial-X, Imperial College London, London W12 7SL, UK;Lung Institute, Imperial College London, London SW7 2AZ, UK;Cardiovascular Research Centre, Royal Brompton Hospital, London SW3 6NP, UK;School of Biomedical Engineering \& Imaging Sciences, King's College London, London WC2R 2LS, UK
Privacy Leakage in Federated Learning in Radiology Reports: A Comparative Evaluation of Tokenizer-Driven Privacy Risks
German Cancer Research Center (DKFZ)(德国癌症研究中心);Medical Faculty Heidelberg, Heidelberg University(海德堡大学医学院);Bilkent University(比尔肯特大学);Pattern Analysis and Learning Group, Department of Radiation Oncology, Heidelberg University Hospital(海德堡大学医院放射肿瘤学系模式分析与学习组)