A Small Leak Sinks All: Exploring the Transferable Vulnerability of Source Code Models
Weiye Li, Wenyi Tang

TL;DR
This paper investigates the transferable vulnerabilities of source code models, including traditional SCMs and LLM-based models, proposing a novel attack method that reveals significant security risks and highlights key points for future defenses.
Contribution
It introduces HABITAT, a victim-agnostic approach for generating adversarial samples, and provides an intrinsic transferability analysis linking traditional SCMs and LLM4Code vulnerabilities.
Findings
Adversarial samples achieve up to 64% success against LLM4Code.
HABITAT surpasses state-of-the-art attack success rates by over 15%.
Identifies key factors influencing vulnerability transferability.
Abstract
Source Code Model learn the proper embeddings from source codes, demonstrating significant success in various software engineering or security tasks. The recent explosive development of LLM extends the family of SCMs,bringing LLMs for code that revolutionize development workflows. Investigating different kinds of SCM vulnerability is the cornerstone for the security and trustworthiness of AI-powered software ecosystems, however, the fundamental one, transferable vulnerability, remains critically underexplored. Existing studies neither offer practical ways, i.e. require access to the downstream classifier of SCMs, to produce effective adversarial samples for adversarial defense, nor give heed to the widely used LLM4Code in modern software development platforms and cloud-based integrated development environments. Therefore, this work systematically studies the intrinsic vulnerability…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware Engineering Research · Adversarial Robustness in Machine Learning · Information and Cyber Security
