Research on Hidden Backdoor Prompt Attack Method
Existing studies on backdoor attacks in large language models (LLMs) have contributed significantly to the literature by exploring trigger-based strategies—such as rare tokens or syntactic anomalies—that, however, limit both their stealth and generalizability, rendering them susceptible to detection. In this study, we propose HDPAttack, a novel hidden backdoor prompt attack method which is designed to overcome these limitations by leveraging the semantic and structural properties of prompts as triggers rather than relying on explicit markers. Not symmetric to traditional approaches, HDPAttack injects carefully crafted fake demonstrations into the training data, semantically re-expressing prompts to generate examples that exhibit high consistency in input semantics and corresponding labels. This method guides models to learn latent trigger patterns embedded in their deep representations, thereby enabling backdoor activation through natural language prompts without altering user inputs or introducing conspicuous anomalies. Experimental results across datasets (SST-2, SMS, AGNews, Amazon) reveal that HDPAttack achieved an average attack success rate of 99.87%, outperforming baseline methods by 2–20% while incurring a classification accuracy loss of ≤1%. These findings set a new benchmark for undetectable backdoor attacks and underscore the urgent need for advancements in prompt-based defense strategies.
Authors
- Yu Jiang (ORCID: https://orcid.org/0000-0003-4229-8944)
- Aniruddha Bhattacharjya (ORCID: https://orcid.org/0000-0002-0777-7918)
- Hai‐Xin Yu
- Qianmu Li (ORCID: https://orcid.org/0000-0002-0998-1517)
- Yufei Wang (ORCID: https://orcid.org/0000-0003-3016-6389)
- Qian Zhao
- Huanhuan Gu
Institutions
- Nanjing University of Science and Technology (CN)
- Zhong Ke San Huan (China) (CN)
- Wuxi Institute of Technology (CN)
- Tsinghua University (CN)
Publication Details
- Journal
- Symmetry
- Published
- 2025-06-16
- DOI
- https://doi.org/10.3390/sym17060954
- Primary Topic
- Advanced Malware Detection Techniques
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- Government of Jiangsu Province