paper-with-me

홈 › Papers

Security and Quality in LLM-Generated Code: A Multi-Language, Multi-Model Analysis

2025-02-03 · Mohammed Kharma, Soohyeon Choi, Mohammed AlKhanafseh, David Mohaisen

Artificial Intelligence (AI)-driven code generation tools are increasingly used throughout the software development lifecycle to accelerate coding tasks. However, the security of AI-generated code using Large Language Models (LLMs) remains underexplored, with studies revealing various risks and weaknesses. This paper analyzes the security of code generated by LLMs across different programming languages. We introduce a dataset of 200 tasks grouped into six categories to evaluate the performance of LLMs in generating secure and maintainable code. Our research shows that while LLMs can automate code creation, their security effectiveness varies by language. Many models fail to utilize modern security features in recent compiler and toolkit updates, such as Java 17. Moreover, outdated methods are still commonly used, particularly in C++. This highlights the need for advancing LLMs to enhance security and quality while incorporating emerging best practices in programming languages.

📄 PDF Abstract BibTeX arXiv:2502.01853

Code (0)

등록된 구현이 없습니다.

Tasks

Code Generation

Similar Papers 제목 키워드 기반

An Empirical Evaluation of LLM-Generated Code Security Across Prompting Methods

2026-05-22 · Mohammed Kharma, Ahmed Sabbah, Mohammad Alkhanafseh, Mohammad Hammoudeh 외 arxiv

The growing use of Large Language Models (LLMs) for automated code generation has enhanced software development efficiency, but often at the cost of security. Generated code frequently overlooks critical concerns, leavin…

Prompt EngineeringCode Generation

Assessing the Quality and Security of AI-Generated Code: A Quantitative Analysis

2025-08-20 · Abbas Sabra, Olivier Schmitt, Joseph Tyler arxiv

This study presents a quantitative evaluation of the code quality and security of five prominent Large Language Models (LLMs): Claude Sonnet 4, Claude 3.7 Sonnet, GPT-4o, Llama 3.2 90B, and OpenCoder 8B. While prior rese…

Code Generation

Is Your Prompt Poisoning Code? Defect Induction Rates and Security Mitigation Strategies

2025-10-27 · Bin Wang, YiLu Zhong, MiDi Wan, WenJie Yu 외 arxiv

Large language models (LLMs) have become indispensable for automated code generation, yet the quality and security of their outputs remain a critical concern. Existing studies predominantly concentrate on adversarial att…

Code Generation

"You still have to study" -- On the Security of LLM generated code

2024-08-13 · Stefan Goetz, Andreas Schaad

We witness an increasing usage of AI-assistants even for routine (classroom) programming tasks. However, the code generated on basis of a so called "prompt" by the programmer does not always meet accepted security standa…

Quality Assurance of LLM-generated Code: Addressing Non-Functional Quality Characteristics

2025-11-13 · Xin Sun, Daniel Ståhl, Kristian Sandahl, Christoph Kessler arxiv

In recent years, large language models have been widely integrated into software engineering workflows, supporting tasks like code generation. While prior evaluations focus on functional correctness, there is still a lim…

Code Generation