Top Cited Papers
Open Access
Abstract
Language Models for Code (CodeLMs) have emerged as powerful tools for code-related tasks, outperforming traditional methods and standard machine learning approaches. However, these models are susceptible to security vulnerabilities, drawing increasing research attention from domains such as software engineering, AI, and cybersecurity. Despite the growing body of research focused on the security of CodeLMs, a comprehensive survey in this area remains absent. To address this gap, we systematically review 68 relevant papers, organizing them based on attack and defense strategies. Furthermore, we provide an overview of commonly used language models, datasets, and evaluation metrics, and highlight open source tools and promising directions for future research in securing CodeLMs.
Funding Information
  • National Key Research and Development Program of China (2024YFF0908001)
  • National Natural Science Foundation of China (U24A20337 and 62372228)
  • National Research Foundation, Singapore, and DSO National Laboratories under the AI Singapore Programme (AISG2-GC-2023-008)
  • National Research Foundation, Singapore, and the Cyber Security Agency of Singapore (NCRP25-P04-TAICeN)

This publication has 97 references indexed in Scilit: