Реклама партнера — Название партнёра
UNIT.City — місце, де люди працюють... КРАЩЕ! Обирай свій простір просто зараз 👉

AI models generate dangerous code in almost half of cases: Veracode report

Artificial intelligence can quickly generate code snippets, but it often ignores the rules of secure development. In 45% of cases, experts found critical vulnerabilities in such responses.

Leave a comment
AI models generate dangerous code in almost half of cases: Veracode report

Artificial intelligence can quickly generate code snippets, but it often ignores the rules of secure development. In 45% of cases, experts found critical vulnerabilities in such responses.

Models like OpenAI Codex, GPT-3.5, and GPT-4 generate potentially dangerous code in almost half of cases, DOU reports, citing a Veracode report. The company analyzed more than 1,600 code examples that AI wrote in response to 12 application tasks.

On average, 45% of samples had serious vulnerabilities: SQL injections, XSS attacks, input validation errors, and authorization flaws. The worst results were in Java code, with problems found in 80% of samples. In Python and JavaScript, the level of vulnerabilities was much lower, around 30–40%.

Veracode explains this by saying that the models try to provide syntactically correct answers based on frequency in the training data, rather than security. As a result, the AI offers code that looks logical on the surface, but contains critical holes.

However, if the request explicitly states the requirement to focus on safe practices, the quality of responses increases significantly.

Veracode recommendations for developers

  • run static analysis from the very beginning of development;
  • use error correction tools (such as Veracode Fix);
  • implement analysis of external libraries (Software Composition Analysis, or SCA) to detect dangerous dependencies before they are installed.
A little more about Veracode

This is an American company specializing in automated code review systems. Its reports are often used in the industry to form secure development policies, especially in the context of the active introduction of AI assistants in programming.

We previously wrote about how, according to research, one in three links generated by language models like GPT-4.1 do not belong to the brand in question. Some of these addresses turn out to be dangerous, opening the way for phishing attacks and the spread of malicious code.

AI models began to imperceptibly infect each other with dangerous installations
AI models began to imperceptibly infect each other with dangerous installations
On the topic
AI models began to imperceptibly infect each other with dangerous installations
Can AI chatbots overestimate their own abilities? Two-year study shows yes
Can AI chatbots overestimate their own abilities? Two-year study shows yes
On the topic
Can AI chatbots overestimate their own abilities? Two-year study shows yes
ChatGPT as a “prophet”: in the USA, AI becomes a source of religious phantoms and destroys families
ChatGPT as a «prophet»: in the USA, AI becomes a source of religious phantoms and destroys families
On the topic
ChatGPT as a «prophet»: in the USA, AI becomes a source of religious phantoms and destroys families
Read the country's main IT news in our Telegram
Read the country’s main IT news in our Telegram
On the topic
Read the country’s main IT news in our Telegram
Also Read
Roosh запускає нову освітню платформу AI HOUSE CLUB для ML/AI-спеціалістів та дата сайнтистів. Розповідаємо, як подати заявку та чому навчатимуть
Roosh запускає нову освітню платформу AI HOUSE CLUB для ML/AI-спеціалістів та дата сайнтистів. Розповідаємо, як подати заявку та чому навчатимуть
Roosh запускає нову освітню платформу AI HOUSE CLUB для ML/AI-спеціалістів та дата сайнтистів. Розповідаємо, як подати заявку та чому навчатимуть
Як нейромережі бачать вільну та незалежну Україну? Тест dev.ua
Як нейромережі бачать вільну та незалежну Україну? Тест dev.ua
Як нейромережі бачать вільну та незалежну Україну? Тест dev.ua
Нейронні мережі для генерації зображень бачать світ по-своєму, їхню логіку зрозуміти часом зовсім неможливо. Але таки хочеться. На честь Дня Незалежності України редакція dev.ua вирішила провести невеликий експеримент. Ми задали чотирьом різним нейронним мережам п’ять однакових запитів: «прапор України», «День Незалежності України», «український Крим», «перемога України» та «українці». Отриманими результатами ми ділимося з вами нижче.
У TikTok тепер можна генерувати фон за допомогою нейромережі. Ми протестували її та ділимося результатами
У TikTok тепер можна генерувати фон за допомогою нейромережі. Ми протестували її та ділимося результатами
У TikTok тепер можна генерувати фон за допомогою нейромережі. Ми протестували її та ділимося результатами
У TikTok з’явилася нова функція «Розумний фон». З її допомогою як фон для тіктоків можна підставляти згенеровані нейромережею зображення. Редакція dev.ua протестувала цю технологію і ділиться своїми враженнями.
1 comment
Які IT-спеціальності будуть потрібні в найближчі п'ять років? Ми з'ясували у голови американського стартапу ADAM Дениса Гурака
Які IT-спеціальності будуть потрібні в найближчі п'ять років? Ми з'ясували у голови американського стартапу ADAM Дениса Гурака
Які IT-спеціальності будуть потрібні в найближчі п'ять років? Ми з'ясували у голови американського стартапу ADAM Дениса Гурака

Have important news to share? Message our Telegram bot

Key events and useful links in our Telegram channel

Discussion
No comments yet.