AI-written patches are becoming attack maps for hackers
AI-written patches for software flaws are often incomplete, allowing attackers to use AI to find ways around the fixes.
Overview
AI tools are helping developers fix software flaws faster, but the resulting fixes are often incomplete and leave new weaknesses behind. The maintainersThe developer or small team responsible for reviewing changes and publishing releases for an open-source project of the open-sourceSoftware whose source code is publicly available for anyone to inspect, use, modify, and share library vm2 used AI to write 19 of the 34 fixes for recent security holes. A security researcher later showed that an AI agent could find ways around one of these patches. This demonstrates that AI is currently better at finding vulnerabilitiesA flaw in software or hardware that lets an attacker do something the maker did not intend than it is at writing secure code to stop them. As more vulnerabilities are found and fixed with AI assistance, the published details of these fixes can act as blueprints for attackers. Organizations using software with AI-generated patches face a higher risk of being targeted by hackersA person who explores and manipulates computer systems, either as a criminal intruder or a security researcher who use AI to hunt for similar weaknesses.
Terms in this story
- maintainers
- The developer or small team responsible for reviewing changes and publishing releases for an open-source project. Supply chain attackers often target a volunteer maintainer with phishing emails or offers to help, hoping to gain publishing rights over a popular code library.
- open-source
- Software whose source code is publicly available for anyone to inspect, use, modify, and share. Most websites and apps rely on hundreds of open-source code libraries, so a single security flaw or malicious update in a popular library can affect thousands of companies at once.
- hackers
- A person who explores and manipulates computer systems, either as a criminal intruder or a security researcher. In news headlines, the word hacker usually means an unauthorized intruder, though the security community also uses it for researchers who find and fix flaws.
- JavaScript
- The programming language that web browsers run to make web pages interactive, and that also runs on servers. Because every browser runs JavaScript automatically when loading a page, attackers use malicious JavaScript in cross-site scripting, fake browser updates, and compromised software packages.
- sandboxing
- An isolated test environment where a program can run without touching the rest of the computer. Web browsers run each tab inside a sandbox so a malicious page cannot read your personal files, and analysts detonate suspicious attachments in a sandbox to watch what they do. Security+ objective 4.1 lists the term
- sandbox-escape
- A flaw that lets malicious code break out of an isolated container into the host system. Even if an attacker tricks your browser tab into running code, they usually need a separate sandbox escape bug to reach your personal files or install malware on the computer.
- vulnerability
- A flaw in software or hardware that lets an attacker do something the maker did not intend. Security advisories report a vulnerability when researchers or attackers find a coding mistake in an app or server that allows someone to break in or crash it. Security+ objective 2.3 lists the term
- patched
- A software update released by a developer to fix a bug or close a security flaw. When a software flaw is discovered, the vendor ships a patch so administrators and ordinary users can update their systems before attackers exploit the bug. Security+ objective 4.3 lists the term
- pipelines
- The automated pipeline that tests, builds, and deploys software whenever developers push new code. Attackers love to compromise a company's CI/CD pipeline because that build server holds cloud keys and can inject malicious code directly into official software releases. Security+ objective 4.7 lists the term
- CVEs
- The public tracking code assigned to a specific known security flaw in software or hardware. Every cataloged software flaw gets a unique CVE label so security teams, vendors, and news reports can talk about the exact same bug without confusion. Security+ objective 2.3 lists the term
- codebase
- The complete collection of source code files used to build a software application or system. Security teams run automated scanners across a company's codebase to catch hardcoded passwords, outdated dependencies, and injection flaws before changes ship to production.
- exploits
- A piece of code or technique that uses a software flaw to break into or crash a system. Finding a vulnerability is only the discovery of a weakness, whereas an exploit is the working code or sequence of inputs that triggers that weakness in practice. Security+ objective 2.4 lists the term
This page is a short description made for this site. The article itself, with its author's name and its own link, is on the CSO Online website. Cite the article, not this page.
Read the full article on CSO Online (opens in a new tab)
Course connections
Each line below connects this story to a Security+ objective (a skill on CompTIA's Security+ exam, a common first cybersecurity certification), a CYBR 101 week, or a cybersecurity job, and quotes the words that made the connection.
- Kind of story: Vulnerability and patch
"...shipped fixes for 34 separate sandbox-escape vulnerabilities..." Found by reading the article; these exact words are in it - Who is affected: "...maintainers of vm2..."
Copied word for word from the article - Security+ 2.3 Explain various types of vulnerabilities.
"......week, shipped fixes for 34 separate sandbox-escape vulnerabilities and Anthropic's Claude co-wrote 19 of them...." Found in the opening sentences - Security+ 4.1 Given a scenario, apply common security techniques to computing resources.
"......the maintainers of vm2, an open-source JavaScript sandboxing library with 1 million downloads per week,..." Found in the opening sentences - CYBR 101 week 1: the course, logins and two-factor sign in, cyber roles and jobs
"This summer, the maintainers of vm2, an open-source JavaScript sandboxing library with 1 million downloads..." Found in the opening sentences - CYBR 101 week 11: penetration testing, OSINT, MITRE ATT&CK and hacking back
"......co-wrote 19 of them. Weeks later, a security researcher pointed an AI agent at one of..." Found in the opening sentences - CYBR 101 week 2: the CIA triad, threat actors, risk and CVEs
"......week, shipped fixes for 34 separate sandbox-escape vulnerabilities and Anthropic's Claude co-wrote 19 of them...." Found in the opening sentences - CYBR 101 week 3: cyber hygiene, privacy, OSINT and social engineering
"AI-written patches are becoming attack maps for hackers..." Found in the headline - CYBR 101 week 6: AI, how it is attacked, and what it does for attackers and defenders
"AI-written patches are becoming attack maps for..." Found in the headline - Job skill (from the U.S. Department of Defense list of cybersecurity jobs): Knowledge of AI security risks, threats, and vulnerabilities and potential risk mitigation solutions.
"AI-written patches are becoming attack maps..." Found by reading the article; these exact words are in it - Job skill (from the U.S. Department of Defense list of cybersecurity jobs): Determine and document software patches or the extent of releases that would harden vulnerable software.
"AI-assisted fixes are often incomplete..." Found by reading the article; these exact words are in it
How a story is connected to the course, and every objective, week and job role