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
Site içinde arama yapın
Kategoriler
Read More
News
Mất Sổ đỏ có phải là mất tài sản không? Người dân cần chú ý gì khi mất Sổ đỏ để tránh rắc rối?
Sổ đỏ là cách gọi phổ biến của người dân đối với giấy...
By MoreCombination86 2025-07-20 01:03:05 0 9K
CỘNG ĐỒNG
Nữ streamer xuất hiện với vẻ ngoài "mới lạ" trên sóng truyền hình và ngay lập tức thực hiện hành động.
Bất ngờ lọt vào ống kính của camera man nhà đài trong một sự kiện trực tiếp, cô nàng streamer Bé...
By BasicTotal7071 2025-06-21 11:31:05 0 9K
Tech
Following Massive Job Cuts, Trump’s FDA Aims to Accelerate Drug Approvals Using AI
AI is slowly permeating all corners of the federal...
By hanoideus 2025-06-11 15:03:04 0 10K
Fitness
Có 4 điểm khác biệt rõ ràng giữa trẻ em 'xem nhiều TV' và trẻ em 'hiếm khi xem TV' trong tương lai
Các bậc cha mẹ trẻ ngày nay đều chịu áp lực công việc...
By SignificantSugar503 2025-07-12 02:41:03 0 16K
CỘNG ĐỒNG
Hot girl chơi pickleball tạo dáng giữa phố thu hút triệu lượt xem, nhiều người nhấn 'replay' liên tục
Lê Phương Anh, hot girl Hà Thành để lại dấu ấn với người đối diện nhờ gương mặt xinh xắn, làn da...
By Blackrotofthekosm 2025-07-01 02:58:13 0 10K