SOK: Exploring Hallucinations and Security Risks in AI-Assisted Software Development with Insights for LLM Deployment
Not on the map. Why?
Abstract (arXiv)
The integration of Large Language Models (LLMs) such as GitHub Copilot, ChatGPT, Cursor AI, and Codeium AI into software development has revolutionized the coding landscape, offering significant productivity gains, automation, and enhanced debugging capabilities. These tools have proven invaluable for generating code snippets, refactoring existing code, and providing real-time support to developers. However, their widespread adoption also presents notable challenges, particularly in terms of security vulnerabilities, code quality, and ethical concerns. This paper provides a comprehensive analysis of the benefits and risks associated with AI-powered coding tools, drawing on user feedback, security analyses, and practical use cases. We explore the potential for these tools to replicate insecure coding practices, introduce biases, and generate incorrect or non-sensical code (hallucinations). In addition, we discuss the risks of data leaks, intellectual property violations and the need for robust security measures to mitigate these threats. By comparing the features and performance of these tools, we aim to guide developers in making informed decisions about their use, ensuring that the benefits of AI-assisted coding are maximized while minimizing associated risks.
Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 17 of its 42 references that are in the map. First posted on arXiv 31 Jan 2025.
Builds on
17 of 42 references.
References · 17
- 2023Large Language Models as Tool Makerscited by 303
- 2024Fine-grained Hallucination Detection and Editing for Language Modelscited by 149
- 2024Beyond Functional Correctness: Exploring Hallucinations in LLM-Generated Codecited by 107
- 2024LLM Hallucinations in Practical Code Generation: Phenomena, Mechanism, and Mitigationcited by 93
- 2023Unveiling Security, Privacy, and Ethical Concerns of ChatGPTcited by 53
- 2024Securing Large Language Models: Threats, Vulnerabilities and Responsible Practicescited by 37
- 2023Beyond the Safeguards: Exploring the Security Risks of ChatGPTcited by 36
- 2023Large Language Models of Code Fail at Completing Code with Potential Bugscited by 29
- 2024Toward Secure Code Generation: Bridging Correctness and Security via Task-Adaptive Vulnerability Modeling and Execution-Based Benchmarkingcited by 27
- 2024CodeMirage: Hallucinations in Code Generated by Large Language Modelscited by 23
- 2024Can We Trust Large Language Models Generated Code? A Framework for In-Context Learning, Security Patterns, and Code Evaluations Across Diverse LLMscited by 19
- 2023Poisoned ChatGPT Finds Work for Idle Hands: Exploring Developers' Coding Practices with Insecure Suggestions from Poisoned AI Modelscited by 17
5 more
- 2021What are Weak Links in the npm Supply Chain?cited by 16
- 2024LLM Security Guard for Codecited by 15
- 2023Analysis of ChatGPT on Source Codecited by 12
- 2024An Investigation into Misuse of Java Security APIs by Large Language Modelscited by 11
- 2024MaPPing Your Model: Assessing the Impact of Adversarial Attacks on LLM-based Programming Assistantscited by 5
Built on by
Citing papers per year: 2025: 2.
2 papers.