Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
97 tokens/sec
GPT-4o
53 tokens/sec
Gemini 2.5 Pro Pro
43 tokens/sec
o3 Pro
4 tokens/sec
GPT-4.1 Pro
47 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

Security and Quality in LLM-Generated Code: A Multi-Language, Multi-Model Analysis (2502.01853v1)

Published 3 Feb 2025 in cs.CR, cs.LG, and cs.SE

Abstract: 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 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.

User Edit Pencil Streamline Icon: https://streamlinehq.com
Authors (4)
  1. Mohammed Kharma (3 papers)
  2. Soohyeon Choi (6 papers)
  3. Mohammed AlKhanafseh (1 paper)
  4. David Mohaisen (43 papers)

Summary

We haven't generated a summary for this paper yet.