Read This Before You Trust Any AI-Written Code

0
11K

We are in the era of vibe coding, allowing artificial intelligence models to generate code based on a developer’s prompt. Unfortunately, under the hood, the vibes are bad. According to a recent report published by data security firm Veracode, about half of all AI-generated code contains security flaws.

Veracode tasked over 100 different large language models with completing 80 separate coding tasks, from using different coding languages to building different types of applications. Per the report, each task had known potential vulnerabilities, meaning the models could potentially complete each challenge in a secure or insecure way. The results were not exactly inspiring if security is your top priority, with just 55% of tasks completed ultimately generating “secure” code.

Now, it’d be one thing if those vulnerabilities were little flaws that could easily be patched or mitigated. But they’re often pretty major holes. The 45% of code that failed the security check produced a vulnerability that was part of the Open Worldwide Application Security Project’s top 10 security vulnerabilities—issues like broken access control, cryptographic failures, and data integrity failures. Basically, the output has big enough issues that you wouldn’t want to just spin it up and push it live, unless you’re looking to get hacked.

Perhaps the most interesting finding of the study, though, is not simply that AI models are regularly producing insecure code. It’s that the models don’t seem to be getting any better. While syntax has significantly improved over the last two years, with LLMs producing compilable code nearly all the time now, the security of said code has basically remained flat the whole time. Even newer and larger models are failing to generate significantly more secure code.

The fact that the baseline of secure output for AI-generated code isn’t improving is a problem, because the use of AI in programming is getting more popular, and the surface area for attack is increasing. Earlier this month, 404 Media reported on how a hacker managed to get Amazon’s AI coding agent to delete the files of computers that it was used on by injecting malicious code with hidden instructions into the GitHub repository for the tool.

Meanwhile, as AI agents become more common, so do agents capable of cracking the very same code. Recent research out of the University of California, Berkeley, found that AI models are getting very good at identifying exploitable bugs in code. So AI models are consistently generating insecure code, and other AI models are getting really good at spotting those vulnerabilities and exploiting them. That’s all probably fine.

Like
Love
Haha
3
Pesquisar
Categorias
Leia Mais
Xã Hội
N:ạn nh:ân 'tố' bị thu 4,2 triệu/cuốc xe ở Hà Nội òa khóc kể 2 lần bị thu tiền
Sau nhiều ngày mệt mỏi và hoảng loạn trong hành trình đưa con đi khám bệnh, đêm 15/6, hai người...
Por HellyValentine 2025-06-16 04:51:11 0 11K
Fashion
Miu Lê chia sẻ về dự định kết hôn, tiết lộ luôn thời điểm lên xe hoa
Mới đây, trong một lần livestream giao lưu với fan hâm...
Por Colepatrol14 2025-06-25 13:02:15 0 20K
News
Loại gỗ được mệnh danh là 'khối vàng lộ thiên' trị giá hàng trăm tỷ đồng tại Việt Nam
Trên thế giới tồn tại không ít loại gỗ quý, có giá trị...
Por SuperbMeal1856 2025-07-19 10:32:05 0 8K
CỘNG ĐỒNG
Gái xinh tiết lộ nguyên nhân chọn nghề, suýt trở thành cầu thủ bóng rổ.
Cái tên đang được nhắc tới trong câu chuyện lần này là Tsujii Honoka - một đồng...
Por Demus007 2025-07-03 08:35:13 0 10K
News
Angelababy cấm Huỳnh Hiểu Minh gặp con, nam tài tử liền tung đòn trả đũa, đem căn nhà tân hôn của hai người cho thuê giá rẻ
Theo thông tin từ tờ Sohu ngày 2/8, ngọn nguồn của bất...
Por justsweetpeach 2025-08-04 04:02:05 0 9K