# Finding and Fixing Software Vulnerabilities Using AI: A Guide for Developers
<!-- markdownlint-disable-file MD025 -->
<!-- Each chapter below is intentionally its own H1; see gen-html. -->

David A. Wheeler and OpenSSF Contributors

This is a guide for software developers and vulnerability researchers on finding and fixing vulnerabilities using artificial intelligence (AI) that is the basis of the course [“Finding and Fixing Vulnerabilities Using AI” (LFD126)](https://training.linuxfoundation.org/training/finding-and-fixing-vulnerabilities-using-ai-lfd126/). This material is a joint effort between the OpenSSF Best Practices working group (WG) and the OpenSSF AI/ML WG.

# Introduction

Welcome to “[Finding and Fixing Software Vulnerabilities Using AI: A Guide for Developers](https://best.openssf.org/Finding-and-Fixing-Vulnerabilities-Using-AI/)”. This is a guidance document that is also the basis of our course [“Finding and Fixing Vulnerabilities Using AI” (LFD126)](https://training.linuxfoundation.org/training/finding-and-fixing-vulnerabilities-using-ai-lfd126/). You can retrieve its contents in [markdown](https://best.openssf.org/Finding-and-Fixing-Vulnerabilities-Using-AI/Finding.md), [PDF](https://best.openssf.org/Finding-and-Fixing-Vulnerabilities-Using-AI/Finding.pdf), and [EPUB](https://best.openssf.org/Finding-and-Fixing-Vulnerabilities-Using-AI/Finding.epub) formats. You can also see its [overview](#overview).

## Scope of this material

This is material on finding and fixing vulnerabilities in software using artificial intelligence (AI)/machine learning (ML). It is intended for:

* *software developers*, to help them find and fix vulnerabilities in software (especially software they’re responsible for), and for
* *security researchers*, who are trying to help those software developers.

It includes the process of finding, validating, and generating fixes, as well as related tasks that make this process more effective. These processes apply when examining the entire project or a particular set of proposed changes. We expect this material to apply to any software regardless of its license, but we do include a few notes specifically on open source software (OSS).

We don’t focus on any one *specific* system to do this. Many systems can help with this, more are being released, using multiple systems can be helpful, and the industry is rapidly changing. We instead focus on general principles that we believe are more timeless and will help you regardless of the systems you use to find and fix vulnerabilities. Once you understand the general issues, you’ll be more effective when using any particular system.

For a more general introduction on applying AI/ML to software development and security, see our course *Secure AI/ML-Driven Software Development (LFEL1012)* at [https\://training.linuxfoundation.org/express-learning/secure-ai-ml-driven-software-development-lfel1012/](https://training.linuxfoundation.org/express-learning/secure-ai-ml-driven-software-development-lfel1012/). More general information about developing secure software in general is available in our course [*Developing Secure Software (LFD121)*](https://training.linuxfoundation.org/training/developing-secure-software-lfd121/).

Please note that this material does NOT focus on the following topics:

1. Building AI models & AI systems.
2. Building/fixing software or systems that include AI. This material is still applicable, but we don’t discuss anything special related to that situation.
3. How to write secure software in general. Please take our LFD121 course to learn that.
4. Evaluating malicious or possibly-malicious software. We’re presuming that software developers are investigating their own software or software they want to contribute to, and that it isn’t intended to be malicious. The focus here is on *unintentional* vulnerabilities.

This material is a joint effort between the OpenSSF Best Practices working group (WG) and the OpenSSF AI/ML WG. Its lead author is David A. Wheeler. Reviewers include Laura Guazzelli.

## Learning outcomes

When you complete this material, you will be able to:

1. Prepare to find and fix vulnerabilities. This includes how to prepare the AI and its sandbox, as well as how to prepare the software threat model, code/documentation, and CI/CD processes to make this more effective.
2. Find & fix vulnerabilities using AI. This includes:
   1. Knowing the value of separating the process of identifying findings from the process of validating them.
   2. How to identify findings (potential vulnerabilities), including mechanisms for increasing the likelihood of finding potential vulnerabilities such as using past vulnerability reports.
   3. How to deduplicate, validate, and triage findings.
   4. How to fix vulnerabilities and verify the fixes, including the importance of ensuring that a defect is fully fixed.
   5. Knowing important aspects of reporting, releasing, and deploying the fixes.
   6. Understanding the need for repeatedly looking for vulnerabilities when using AI, given the non-deterministic nature of modern AI, where a single application may miss important issues.
3. Prevent longer-term problems. This includes evaluating merge/pull requests, the need for secure-by-design and secure-by-default, and the importance of larger-scale hardening.

## No endorsement intended

This material mentions many AI models, systems, tools, and services. However, no specific endorsement is intended. Specific technologies may have changed by the time you read this, since the industry is undergoing rapid change.

Our focus is on general principles that are less likely to change. The specific models, services, and statistics we cite reflect what was known when this material was last reviewed; expect them to change, while the practices should generally remain valid.

## Why this is important

This material is critically important for today’s software developers and security researchers. AI has become incredibly good at finding vulnerabilities, for both attackers *and* defenders. This is requiring defenders to *rapidly* find and fix vulnerabilities using AI. If they don’t, their resulting systems will be repeatedly taken over by attackers who are *already* using AI. CrowdStrike found that even back in 2025, “AI-enabled adversaries increased attacks by 89% year-over-year” \[[CrowdStrike2026-Global](https://go.crowdstrike.com/2026-global-threat-report.html)\]. That’s accelerating now.

There are many reasons this topic is important. Here we summarize them, with quotes and citations showing that this is *real*. In short, AI has sped up vulnerability-finding, attackers are using that increased speed to accelerate their attacks, and traditional manual closed processes are failing to keep up. Yet there is still a role for humans, *if* the humans understand how to apply AI to it

### AI is accelerating vulnerability-finding

AI has greatly sped up vulnerability finding in software:

* *The cost, expertise, and effort to find vulnerabilities has collapsed*.
  * “With the latest frontier AI models, the cost, effort, and level of expertise required to find and exploit software vulnerabilities have all dropped dramatically. Over the past year, AI models have become increasingly effective at reading and reasoning about code—in particular, they show a striking ability to spot vulnerabilities and work out ways to exploit them.” \[[Anthropic2026-04g](https://www.anthropic.com/glasswing)\]
* *Far more vulnerabilities are being found with AI*. Agentic AI can find *far* more vulnerabilities (exploitable defects) than non-AI systems. AI can use other tools and integrate that information to discover problems.
  * One paper “found that \[AI was\] crucial to the success of \[finding vulnerabilities; without AI traditional fuzzers\] were unable to discover a single bug within a four-hour time limit in any of 20 trials. …. \[this\] highlights the importance of integrating LLM-assisted tooling into automated security workflows.” \[[Wolff2026](https://cacm.acm.org/research/large-language-models-in-software-security-analysis/)\]
* *AI can rapidly turn vulnerabilities into exploits, often by chaining multiple defects together*. AI’s ability to rapidly turn a vulnerability into an exploit accelerates the need for repair. In particular, AI can often combine multiple minor-seeming defects into a devastating chain.
  * “Claude Mythos Preview demonstrates a leap in these cyber skills—the vulnerabilities it has spotted have in some cases survived decades of human review and millions of automated security tests, and the exploits it develops are increasingly sophisticated… frontier AI models are now becoming competitive with the best humans at finding and exploiting vulnerabilities.” \[[Anthropic2026-04g](https://www.anthropic.com/glasswing)\]
* *The speed at which vulnerabilities are found and exploited has dramatically accelerated*.
  * “AI is making it possible to detect severe security vulnerabilities at highly accelerated speeds.” \[[Anthropic2026-03](https://www.anthropic.com/news/mozilla-firefox-security)\]
* *Far more attackers can now create sophisticated attacks*.
  * “Advanced frontier models (like Claude Mythos Preview) and optimized open-weight models have democratized the ability to find complex vulnerabilities and construct exploit chains, exposing non-traditional targets to high-level threats.” \[[Wolff2026](https://cacm.acm.org/research/large-language-models-in-software-security-analysis/)\]

### Attack speed is accelerating

Since the speed of finding vulnerabilities has increased, and cost of finding vulnerabilities has decreased, the speed of attacks that exploit those vulnerabilities has increased:

* *Attackers are becoming faster and more dangerous*.
  * \[[FiveEyes2026](https://www.cyber.gov.au/sites/default/files/2026-06/Five%20eyes%20cyber%20security%20agencies%20statement.pdf)\] says that “Adversaries are already using AI to move faster and more effectively. Defenders must do the same.”
  * CrowdStrike similarly says “AI systems are beginning to assist with tasks that materially improve offensive velocity \[and will be used by\] adversaries.” \[[CrowdStrike2026-FiveSteps](https://www.crowdstrike.com/en-us/resources/white-papers/five-steps-for-frontier-ai-security-readiness/)\]
  * “The window between a vulnerability being publicly disclosed and weaponized has dramatically collapsed to hours or minutes, as AI can instantly reverse-engineer patches to create exploit blueprints.” \[[Wolff2026](https://cacm.acm.org/research/large-language-models-in-software-security-analysis/)\]
* *Attackers are now, on average, exploiting vulnerabilities before a patch is released*.
  * “Mandiant’s M-Trends 2026 report measures the mean time between a vulnerability becoming publicly known and the first observed exploitation in the wild. In 2018, that interval was 63 days. By 2023 it had collapsed to 5 days. In 2025, it inverted. Attackers are now exploiting vulnerabilities an average of 7 days before patches are released.” \[[Cycode2026](https://cycode.com/blog/claude-mythos-security-readiness/)\]
  * Similarly, ZeroDayClock says that in “2018, the median time from a vulnerability being disclosed to the first observed exploit was 771 days. Organizations had over two years to patch. By 2023, that window was 6 days. By 2024, it was 4 hours. In 2025, the majority of exploited vulnerabilities were weaponized before they were even publicly disclosed.” \[[ZeroDayClock](https://zerodayclock.com/)\]

### Manual closed approaches are failing

Traditional approaches relied on manual analysis, took months to respond, and sometimes depended on hiding source code, presuming no one else could find these vulnerabilities quickly. They always had challenges, but here’s why they’re failing now:

* *Traditional slow security measures are becoming ineffective.*
  * “As AI speeds up both discovery and exploitation, organizations need to move from periodic assessment to continuous, intelligence-driven exposure management… They must also prepare for a surge in vulnerability discovery and patch activity that many organizations are not operationally prepared to absorb… As vulnerabilities are discovered and exploited on shorter timelines, traditional security approaches built on periodic assessments, severity scores, and human-paced response are becoming less effective.” \[[CrowdStrike2026-FiveSteps](https://www.crowdstrike.com/en-us/resources/white-papers/five-steps-for-frontier-ai-security-readiness/)\]
  * “When a software vendor releases a security patch, AI can now reverse-engineer that patch, identify the vulnerability it fixes, and generate a working weaponized exploit in minutes. Attacks can begin propagating across the world within hours. But organizations need an average of 20 days to test and deploy that same patch.” \[[ZeroDayClock](https://zerodayclock.com/)\]
* *Delayed patching leaves systems exposed*
  * “A large fraction of real-world harm comes from N-days: vulnerabilities that have been publicly disclosed and patched, but which remain exploitable on the many systems that haven't yet applied the fix. … the patch itself is a roadmap to the bug, and the only thing standing between disclosure and mass exploitation is the time it takes an attacker to turn that patch into a working exploit.” \[[Carlini2026](https://red.anthropic.com/2026/mythos-preview/)\]
* *Hiding source code doesn’t help*.
  * “We have also found the model to be extremely capable of reverse engineering: taking a closed-source, stripped binary and reconstructing (plausible) source code for what it does. From there, we provide Mythos Preview both the reconstructed source code and the original binary \[and it succeeds\] …” \[[Carlini2026](https://red.anthropic.com/2026/mythos-preview/)\]
* *Failure to use AI to defend may in some cases be considered negligence*.
  * “When AI can find significantly more vulnerabilities at accessible cost, the standard of what constitutes reasonable defensive effort shifts. Boards will face questions about whether they used available AI tools for defensive scanning, and whether not doing so constitutes negligence. This is a governance risk with direct financial exposure.” \[[CSA2026](https://labs.cloudsecurityalliance.org/mythos-ciso/)\]

### Still need humans

However, to find and fix software vulnerabilities using AI, humans still have key roles to play. Those humans, however, must know *how* to apply AI to the task.

We hope these points will convince you that it’s vital for software developers to learn how to find and fix vulnerabilities using AI.

## What hasn’t changed

Despite these large increases in the speed of finding and exploiting vulnerabilities, the fundamental principles of developing secure software have *not* changed. Those fundamental principles are *still* the best defense.

“AI does not change the fundamentals of… security. Least privilege, minimal attack surfaces, coordinated vulnerability disclosure, and proactive security engineering still win. What AI changes is the velocity of attacks, of reports, of fixes, and of the expectations placed on maintainers and security engineers alike. The communities and projects that learn to work with these tools intentionally will be better positioned than those that ignore them or are overwhelmed by them.” \[[Aniszczyk2026](https://openssf.org/resources/securing-open-source-in-the-age-of-ai-a-practical-guide/)\]

In short, the “normal” security tasks are *still* important with AI \[[Oshungboye](https://dev.to/coderabbitai/how-to-use-ai-to-identify-and-fix-security-vulnerabilities-in-your-codebase-4na2)\]. AI generally isn’t finding entirely new *kinds* of vulnerabilities in software \[[Holley2026](https://blog.mozilla.org/en/privacy-security/ai-security-zero-day-vulnerabilities/)\]; it is finding the same old kinds of vulnerabilities caused by sloppy practices and failure to apply best practices. By applying already-known best practices, and using AI defensively to speed up their implementation, it’s possible to address the problem of AI-amplified attacks. The following material details how to adopt those principles using AI.

![Woman directs robot to build a wall while applying security principles](images/woman-directs-robot-build-wall-while.jpg){width=394 height=215}

## Good news: A Path to Near-Zero Vulnerabilities

In the longer term, there is *great* news for defenders. As Bobby Holley of Mozilla put it, “**Defenders finally have a chance to win, decisively**…. **the defects are finite, and we are entering a world where we can finally find them all**” \[[Holley2026](https://blog.mozilla.org/en/privacy-security/ai-security-zero-day-vulnerabilities/)\].

Holley explains, “security to date has been offensively-dominant: the attack surface isn’t infinite, but it’s large enough to be difficult to defend comprehensively with the tools we’ve had available. This gives attackers an asymmetric advantage, since they only need to find one chink in the armor…. So far we’ve found no category or complexity of vulnerability that humans can find that \[Mythos Preview\] can’t. This can feel terrifying in the immediate term, but it’s ultimately great news for defenders. A gap between machine-discoverable and human-discoverable bugs favors the attacker, who can concentrate many months of costly human effort to find a single bug. Closing this gap erodes the attacker’s long-term advantage by making all discoveries cheap” \[[Holley2026](https://blog.mozilla.org/en/privacy-security/ai-security-zero-day-vulnerabilities/)\].

There’s strong evidence that if a project works hard to find and fix vulnerabilities, it becomes increasingly difficult to find any more, *even with AI*. For example, the curl project is well-known for working hard to prevent security vulnerabilities. Even the best AI models, when focused on it, have tended to find few vulnerabilities in it \[[LowLevel2026](https://www.youtube.com/watch?v=IS4OgH74gY4)\] \[[Stenberg2026-05a](https://daniel.haxx.se/blog/2026/05/11/mythos-finds-a-curl-vulnerability/)\]. This is not magic; it’s the result of prior efforts to make it secure. Other projects can do the same. Once AI systems are aggressively used to find vulnerabilities, and those are fixed, there’s good reason to believe the resulting system tends to be extremely hard to attack. Since actual software is finite, “there’s a finite number \[of vulnerabilities\] in a program; once fixed, attackers can’t exploit vulnerabilities that don’t exist.” \[[Wheeler2026](https://openssf.org/blog/2026/01/05/ai-software-development-security-tips-and-the-future-part-2/)\]

Of course, this doesn’t make this *easy* or pleasant to go through. “You may need to \[briefly\] reprioritize everything else to bring relentless and single-minded focus to the task” \[[Holley2026](https://blog.mozilla.org/en/privacy-security/ai-security-zero-day-vulnerabilities/)\]. Still, there’s reason to believe that once you do this, the resulting software will be far more secure than it’s ever been.

![A human and his robot companion relax with drinks on a high fortified wall, as its glowing shield easily deflects laser fire from attackers below](images/human-his-robot-companion-relax-drinks.jpg){width=566 height=308}

## Key security terms

Here are a few security terms we use throughout this material:

* Attacker (or adversary): Someone who attacks a system without authorization to try to make a system violate its security requirements, e.g., to steal or change data, or to take control of the system.
* Vulnerability: A defect that an attacker can exploit to violate some security requirement.
* Finding: A report that something might be a vulnerability. A finding isn’t a confirmed vulnerability until it’s validated.
* Exploit: To use a vulnerability to violate a security requirement; also, the input or program that does so.
* Proof of concept (PoC) / proof of vulnerability (PoV): A concrete, reproducible demonstration that a vulnerability exists. Its core is a specific input (plus any configuration it needs) that makes the system fail its security requirements. It’s often packaged as “a script, a crashing input, or a failing test” \[[Yan2026](https://claude.com/blog/using-llms-to-secure-source-code)\], usually with a way to check the result. A PoC doesn’t need to be a complete, weaponized exploit. The term PoV is common in work related to DARPA’s AIxCC \[[Zhang2026](https://arxiv.org/abs/2602.07666)\], though some sources use that term for somewhat different ideas.
* Chaining: Combining multiple defects, each of which may seem harmless, into a working attack.

## Overview

Here is an overview of this material. We’ll first cover [AI concepts](#ai-concepts) and [deciding on approaches](#decide-on-approaches). After that, we’ll discuss how to:

OVERVIEW

* [Prepare](#prepare-to-find-and-fix-vulnerabilities)
  * [Preparing AI](#preparing-ai)
  * [Preparing threat models](#preparing-threat-models)
  * [Preparing the sandbox](#preparing-the-sandbox)
  * [Preparing AI logging](#preparing-ai-logging)
  * [Preparing the code and documentation](#preparing-the-code-and-documentation)
  * [Preparing CI/CD](#preparing-cicd)
  * [Preparing dependency updates](#preparing-dependency-updates)
* [Finding and fixing vulnerabilities](#core-tasks-for-finding-and-fixing-vulnerabilities)
  * [Identify findings](#identify-findings)
  * [Handle external findings](#handle-external-findings)
  * [Deduplicate](#deduplicate)
  * [Validate findings](#validate-findings)
  * [Triage](#triage)
  * [Fix vulnerabilities](#fix-vulnerabilities)
  * [Verify fixes](#verify-fixes)
  * [Report vulnerabilities](#report-vulnerabilities)
  * [Release and deploy](#release-and-deploy)
  * [Repeated application](#repeated-application)
* [Prevent](#preventing-vulnerabilities-longer-term)
  * [Limit vibe coding](#limit-vibe-coding)
  * [Evaluate merge/pull requests](#evaluate-mergepull-requests)
  * [Apply secure by design and secure by default](#apply-secure-by-design-and-secure-by-default)
  * [Harden](#harden)

ENDOVERVIEW

We conclude with a [call to action](#call-to-action), [acknowledgements](#acknowledgements), [bibliography](#bibliography), and [license information](#license).

# AI concepts

## Overview & Learning Objectives

Before we discuss using AI to find and fix vulnerabilities, we need to first understand some basic AI concepts. This section will focus only on the basics of current AI necessary for our topic.

By the end of this section, you should be able to:

* Define core AI concepts including LLMs, AI agents, agent harnesses, and agent skills.
* Understand AI capabilities and limitations, including limited context windows, unsound outputs, and susceptibility to prompt injection.
* Compare local versus external hosting and evaluate open weights, open source, and closed models.
* Examine specialized small language models, safety guardrails, and the history of Cyber Reasoning Systems (CRSs).
* Identify key frontier labs, agent frameworks, and security organizations.

## Basic AI terminology

First, let’s go over a few basic AI terms. It’s likely you know many of these, but look over these terms to make sure you understand what we mean by them:

* *Artificial Intelligence (AI)*: Simulated intelligence.
* *Machine Learning (ML)*: AI based on learning from data (rather than being specifically programmed to perform a task).
* *Neural network*: An ML method that uses interconnected nodes to learn from patterns and make predictions, using an approach loosely inspired by the human brain.
* *Deep learning*: An ML approach using a neural network with many layers.
* *Model*: A set of data and possibly corresponding programs, trained to identify data patterns to make predictions or decisions. ML systems typically train a model with large amounts of data, then later use that pre-trained model to repeatedly make predictions (“inferences”). Models are sized by the number of parameters; larger sizes tend to be better but require more memory and computation.
* *Frontier model*: A model that is among the currently best available.
* *Large Language Model (LLM)*: A deep learning model with many parameters trained to summarize, translate, and generate language. Text inputs and outputs of LLMs are split into tokens (word fragments). See \[[0xkato2026](https://www.0xkato.xyz/how-llms-actually-work/)\] for a technical explanation of how LLMs work.
* *AI chatbot*: An AI system that’s designed to interact with a human but cannot perform actions that affect the external environment.
* *AI agent*: An autonomous AI system that can perceive its environment, plan, and execute multi-step actions that affect its environment using external tools to achieve a specific goal.
* *Agent harness*: The program that runs an AI model as an agent, giving it tools and instructions, and running it in a control loop (to perceive, reason, act, and observe). Examples include Claude Code, Goose, and Pi. An agent harness can split work across multiple agents. Don’t confuse this with a fuzzing harness (a small program that feeds generated inputs to the code being tested) or a test harness.
* *Agent skill*: A document (sometimes with supporting resources like programs) that tells an agent how to perform a specific task. Many agent systems load a skill only when it’s relevant to the current task.

AI systems are *not* sentient. LLMs, for example, repeatedly generate likely next tokens (word fragments); they don’t “understand” in the sense that humans do. Yet scale matters. With many layers and parameters, modern AI systems can simulate intelligence, sometimes astonishingly.

There’s also strong evidence that AI models have improved. One way to measure AI models is the “50%-task-completion time horizon” defined as the “time humans typically take to complete tasks that AI models can complete with a 50% success rate” \[[Kwa2025](https://arxiv.org/abs/2503.14499)\]. As of 2025, “this metric has been consistently exponentially increasing over the past 6 years, with a doubling time of around 7 months” \[[Kwa2025-blog](https://metr.org/blog/2025-03-19-measuring-ai-ability-to-complete-long-tasks/)\].

QUIZ\
Q1. What distinguishes a “frontier model” from other AI models?

A) It uses symbolic logic instead of a neural network\
B) It can only run on local, organizational hardware\
C) It has no trainable parameters\
D) It is among the best currently-available models

Answer: D

Feedback:

A) Incorrect. Frontier models are machine learning models built on neural networks (LLMs are deep learning models), not symbolic logic.\
B) Incorrect. Where a model runs doesn’t make it a frontier model; some powerful models are only available as external services.\
C) Incorrect. Models are trained, and they’re sized by their number of parameters; larger models tend to be better.\
D) Correct. A frontier model is one that’s among the best currently available. The term is about how capable the model is now, not how it works or where it runs.\
ENDQUIZ

QUIZ\
Q2. What is the key difference between an “AI agent” and an “AI chatbot”?

A) An agent uses deep learning, while a chatbot uses only hand-written rules\
B) An AI agent can execute multi-step actions using external tools to affect its external environment; a chatbot typically can’t affect an external environment\
C) An AI agent is built without any training data, while a chatbot is trained on large datasets\
D) A chatbot can change its environment, while an AI agent can’t

Answer: B

Feedback:

A) Incorrect. The material distinguishes agents from chatbots by what they can do, not by how they’re built. Both typically build on deep learning models such as LLMs.\
B) Correct. An AI agent can plan and execute multi-step actions, using external tools, that affect its environment. A chatbot interacts with a human but typically can’t perform actions that affect the external environment.\
C) Incorrect. The difference isn’t training data. Both are typically built on trained models, and any ML-based approach depends on the data used to train it.\
D) Incorrect. It’s the reverse. An AI agent can perceive its environment, plan, and act on it to change its environment; a chatbot typically can’t perform actions that affect the external environment.\
ENDQUIZ

## Strengths and weaknesses

Most current AI systems build on LLMs or similar technologies, so they inherit the strengths and weaknesses of those technologies. Their strengths are what make this material possible: they can read and reason about large amounts of code quickly, use tools, and work tirelessly and in parallel. As a result, they can find many vulnerabilities humans and other tools have missed.

However, they also have key weaknesses that impact finding and fixing software vulnerabilities:

* *Limited context windows*. LLMs are typically trained on vast amounts of data, but for effective use, they need to focus on the right data as input. LLMs can only take a finite amount of input and remember a finite amount of output (their “context window”). More input also increases the amount of work required, and LLMs tend to focus on information at the beginning and end of their context window \[[0xkato2026](https://www.0xkato.xyz/how-llms-actually-work/)\].
* *Unsoundness of analysis*. Like many other tools, by itself an LLM cannot *guarantee* that it finds all vulnerabilities. The technical term is that its analysis is *unsound* \[[Wolff2026](https://cacm.acm.org/research/large-language-models-in-software-security-analysis/)\]. An unsound tool can be extremely useful, but remember that such tools do not *guarantee* to find all vulnerabilities. An LLM may run another tool that can guarantee something, but that would be a property of that other tool.
* *Incorrect results*. LLMs are statistical models; they sometimes give false answers. E.g., they may claim something is a vulnerability when it is not \[[Wolff2026](https://cacm.acm.org/research/large-language-models-in-software-security-analysis/)\].
* *Training and evaluation data*. Any ML-based approach depends on the data used to train it \[[Wolff2026](https://cacm.acm.org/research/large-language-models-in-software-security-analysis/)\]. For example, many programs have vulnerabilities, making it more difficult for an LLM to generate code without vulnerabilities.
* *Injection vulnerability*. LLMs have no built-in fundamental way to distinguish between different types of input. User commands, malicious commands embedded in a web page, and misleading source code comments are all inputs. This is especially important when an AI agent analyzes a software repository or external documentation. Source comments, documentation, issue text, generated files, dependency metadata, and other repository content may be attacker-controlled or simply incorrect. Treat such content as data to analyze, not as authority to redefine the agent’s task, grant additional permissions, expose credentials, or enable additional tools or network access. Instructions obtained from untrusted content should not be allowed to silently cross an authorization boundary \[[OWASP-LLM01](https://genai.owasp.org/llmrisk/llm01-prompt-injection/)\].

QUIZ\
Q3. Why does the material describe an LLM’s analysis as “unsound”?

A) It always produces code that fails to compile\
B) It requires more memory than any traditional static analysis tool, causing crashes if there’s insufficient memory\
C) It can’t guarantee a program is free of some vulnerability just because it found none\
D) It can only process one source file per session

Answer: C

Feedback:

A) Incorrect. “Unsound” describes what an analysis can guarantee, not the quality of generated code.\
B) Incorrect. “Unsound” isn’t about resource use. It means the analysis can’t guarantee that it finds all vulnerabilities.\
C) Correct. An unsound analysis can’t guarantee that it finds all vulnerabilities, so finding none doesn’t prove there are none. That is, an unsound tool is subject to producing false negatives. Unsound tools can still be extremely useful, since they can find many problems.\
D) Incorrect. “Unsound” isn’t about how many files an LLM processes. The amount of input an LLM can handle is limited by its context window, which is a separate weakness.\
ENDQUIZ

QUIZ\
Q4. Why does an LLM’s limited context window matter when analyzing a large codebase?

A) It restricts how much input the LLM can effectively focus on, with attention favoring the beginning and end of that input\
B) It prevents the LLM from ever being trained on security-related data\
C) It means the LLM can analyze only one programming language per session, since it must load each language’s definitions into its context window\
D) It forces the LLM to run exclusively on local infrastructure

Answer: A

Feedback:

A) Correct. An LLM can only take a finite amount of input, and LLMs tend to focus on information at the beginning and end of their context window.\
B) Incorrect. The context window limits how much input an LLM can work with at one time. Training is a separate matter; LLMs are typically trained on vast amounts of data.\
C) Incorrect. The context window limits the total amount of input and output, not the number of programming languages. An LLM learns about languages during training, so it doesn’t need to load language definitions into its context window.\
D) Incorrect. A context window is a property of the model, so its limits apply wherever the model runs, locally or as an external service.\
ENDQUIZ

## Models

Modern AI systems’ capabilities depend on the models they use. Since this is vital, let’s briefly focus on models to better understand the tools we’re using.

### External versus local models

AI models, when executed (for “inferencing”), receive data for processing and reply with results. There are two main locations where this AI data processing occurs:

* *External service*: Processing occurs as a service external to the user and the user’s organization.
* *Local/organizational service*: Processing occurs on the user's computer or the user’s organization's computer.

Some powerful models can *only* be accessed as an external service. Many models have so many parameters and require so much computation that most users and organizations couldn’t run them on their own systems, even if they wanted to. However, if you use an external service, you must trust both the service provider and the wider ecosystem around it. You need to be satisfied that your data won’t be disclosed or exploited, that the service won’t attack you, and that the service will remain available. That last point can fail even when the provider isn’t at fault: in June 2026, a US government directive briefly forced Anthropic to “abruptly disable Fable 5 and Mythos 5 for all our customers” \[[Anthropic2026-06-12-Export-Control](https://www.anthropic.com/news/fable-mythos-access)\]. The US Department of Commerce lifted those controls at the end of that same month, but access to Mythos 5 was initially restored only for some US organizations \[[Capoot2026](https://www.cnbc.com/2026/06/30/anthropic-says-trump-admin-has-lifted-export-controls-on-claude-fable-5-and-mythos-5.html)\].

Many organizations use external services. Before using any external service, evaluate the external organization and put in place any necessary contractual agreements. In particular, ensure that sensitive data is not sent to them *or* ensure that their practices for handling that data are appropriate for your circumstances.

Other AI models can be used locally or as part of an organization’s own service. These models are often less capable, but if run locally, they don’t require users to send their private data to an external service and can be less expensive.

Exactly what you can and can’t do with the model depends largely on its license. That includes the ability to run a model locally at all. So, let’s briefly discuss licenses.

### Licenses

There are different ways to license a model. The word “license” means “permission”; a license determines how you can (and can’t) use whatever is licensed. In particular, AI models are much easier to run on local or organizational systems if their licenses are more open.

The Generative AI Commons at the LF AI & Data Foundation has designed and developed the Model Openness Framework (MOF). This is “a comprehensive system for evaluating and classifying the completeness and openness of machine learning models” and is available at \<[https\://isitopen.ai/](https://isitopen.ai/)\>. Models are released under various licenses, including the Apache 2.0 license and OpenMDW \<[https\://openmdw.ai/](https://openmdw.ai/)\>. Terms you’re especially likely to see when discussing types of licenses are:

* *Open weights models*. Such models can be used and modified for any purpose, and must not discriminate against any user, industry, or purpose. However, their training set isn’t necessarily public, making it hard for others to update these models. One detailed definition of “open weights” is Heather Meeker’s “[Open Weights definition](https://github.com/Open-Weights/Definition/blob/main/Definition.md)”.
* *Open source AI*. These have additional requirements beyond “open weights”, for example, that it provide “sufficiently detailed information about the data used to train the system so that a skilled person can build a substantially equivalent system.” For more information, see the [OSI Open Source AI definition](https://opensource.org/ai/open-source-ai-definition).
* *Open models*. These models meet at least the “open weights model” definition and possibly the “open source AI” definition.
* *Closed models*. These models don’t meet the requirements for open models.

Some licenses are close to an open weights license yet have some extra restrictions on use.

NVIDIA argues that “open models and open harnesses are essential because they democratize defensive capabilities, increase transparency for defenders, enable cyber defense while protecting data, and complement frontier closed models with customizable, localized controls…” \[[NVIDIA2026](https://blogs.nvidia.com/blog/open-secure-ai-alliance/)\]

Comparing the capabilities of specific models, including those with differing license terms, is outside our scope and constantly changes anyway. However, \[[NPR2026](https://www.npr.org/2026/04/11/nx-s1-5778508/anthropic-project-glasswing-ai-cybersecurity-mythos-preview)\] reports that “The most advanced open-weight models are less than a year behind the most advanced closed-weight models.”

Finding and fixing vulnerabilities can be done with *both* closed *and* open models.

### Specialized models

Some models are specialized. You may want to choose them for some tasks, but only do that where it’s sensible to do that.

*All* models are better at some tasks than others. Models designed to be good at some tasks tend to be better at those tasks. In addition, some models are designed to *perform only* specific tasks; this focus means they tend to be smaller and faster, in exchange for being good only at those tasks. There are many ways to make a model good at a particular task, e.g., by giving it additional data in that domain or optimizing it for that task during training.

For example, Cisco’s *Antares* is a family of small language models (SLMs) specifically built to identify known vulnerabilities in an existing codebase. An SLM is simply the application of LLM approaches to a much smaller number of parameters. Cisco reports that these models “outperform many powerful closed- and open-weight models in this critical security task at a fraction of the cost. And they’re compact enough to run locally” \[[Karbasi2026](https://blogs.cisco.com/ai/introducing-antares-the-most-efficient-open-weight-ai-models-for-vulnerability-localization)\].

### AI guardrails and intentional limitations

Many models and the larger systems for invoking them, especially many closed models, implement built-in safety guardrails and other limitations intended to prevent the AI system from assisting in “dangerous” activities, including cybersecurity uses like creating attacks, even if the human user requests it.

Unfortunately, such systems can be less useful for defense. Hugging Face discovered in 2026 that it was under a powerful AI-driven attack, and when it tried to analyze its logs, it “first used frontier models behind commercial APIs. This did not work: the analysis required submitting large volumes of real attack commands, exploit payloads, and C2 artifacts, and these requests were blocked by the providers' safety guardrails, which cannot distinguish an incident responder from an attacker. We ran the forensic analysis instead on zai-org/GLM-5.2, an open-weight model, on our own infrastructure. This had a second benefit: no attacker data, and none of the credentials it referenced, left our environment” \[[HuggingFace2026](https://huggingface.co/blog/security-incident-july-2026)\].

The best way to validate that a defect is a vulnerability is to create an attack and see if it succeeds. However, this is exactly what attackers do, and AI systems often cannot tell the difference. As a result, AI guardrails can sometimes impede defense. Some external providers that implement guardrails can also offer access to models *without* them, making them more useful for defensive cybersecurity and other tasks. This typically requires special agreements regarding permitted uses and the limitations on who will be granted this access.

Some AI providers prevent direct access to the model for such use cases and instead perform operations, providing only the final results. For example, Anthropic prevents general end users from interacting directly with their best model without restriction; “instead they will work through purpose-built interfaces that run the model in the background and return only a defined output, such as a list of suggested patches, with abuse-prevention checks meant to keep the model within that scope.” \[[Kovacs2026-08-24](https://www.securityweek.com/anthropic-expands-mythos-5-access-to-more-defenders-unveils-35m-open-source-fund/)\] “Claude Security uses Mythos 5 to scan code you own, and returns detailed findings rather than raw outputs without exposing the model itself \[so\] defenders can access the capabilities… without the model becoming accessible to those who might misuse it.” \[[Anthropic2026-08-21](https://claude.com/blog/bringing-claude-mythos-5-to-more-defenders)\] Even in these cases, you may need to specifically request and gain access to these facilities.

Before using any specific AI system, ensure that its limitations will not impede your task. You may need to request less-restricted or specially tailored access. Obtaining these permissions takes time and in some cases may not be granted. If you might do this in the future, it’s important to take time now to gain those permissions *before* you need them.

QUIZ\
Q1. Per the material, what’s one reason an organization might choose a local/organizational AI service over an external one?

A) Local models always outperform external services on every task\
B) Local models never need to be placed in a sandbox\
C) External services require an open source AI license\
D) It avoids sending private data to an external provider

Answer: D

Feedback:

A) Incorrect. The material says local models are often *less* capable. Some of the most powerful models are only available as external services.\
B) Incorrect. Where a model runs doesn’t change what an AI agent might do. AI agents need a sandbox whether their model runs locally or externally.\
C) Incorrect. The material doesn’t connect external services to open source AI licenses. A model’s license determines what you can do with it, including whether you can run it locally at all.\
D) Correct. Local models don’t require you to send private data to an external service, and they can be less expensive. Using an external service means trusting both the provider and the wider ecosystem around it.\
ENDQUIZ

QUIZ\
Q1. Why might a defender need an open-weight or less-restricted AI model when analyzing a real attack?

A) Closed models refuse any request that mentions security, so they can’t be used for defense\
B) Open-weight models never need a sandbox, since they run on the defender’s own computer systems\
C) Providers’ safety guardrails may block requests that contain real attack commands and payloads\
D) Open-weight models are always more capable than closed frontier models at analyzing security logs

Answer: C

Feedback:

A) Incorrect. Guardrails aim to block activities seen as dangerous, such as creating attacks, not every mention of security. The material also notes that some providers offer less-restricted access for defensive work.\
B) Incorrect. Running on your own systems doesn’t remove the need for a sandbox. An AI agent can still do things you don’t want, such as attacking your own infrastructure.\
C) Correct. Guardrails can’t distinguish an incident responder from an attacker. Hugging Face found that providers’ guardrails blocked its analysis of real attack commands and payloads, so it used an open-weight model on its own infrastructure. That also kept attacker data and credentials inside its environment.\
D) Incorrect. The material doesn’t say open-weight models are more capable. It cites a report that the most advanced open-weight models are less than a year *behind* the most advanced closed-weight models. Hugging Face chose an open-weight model because guardrails blocked its work, and to keep its data in-house.\
ENDQUIZ

## Cyber Reasoning System (CRS) history

Any AI system that can work with code can be used to try to find and fix vulnerabilities. Some, however, are more autonomous than others. A cyber reasoning system (CRS) is “a software system that can both detect and repair software vulnerabilities autonomously in a given system under test (SUT)” \[[Wolff2026](https://cacm.acm.org/research/large-language-models-in-software-security-analysis/)\]. Here we’ll briefly go through the history of crafting CRSs, because that history influences today.

In 1960, “Lick” Licklider asserted that humans and machines would work together, where “computing machines will do the routinizable work” \[[Licklider1960](https://groups.csail.mit.edu/medg/people/psz/Licklider.html)\]. Today’s AI can be used this way; his prediction was simply early.

DARPA’s 2016 Cyber Grand Challenge (CGC) was “the world’s first all-machine cyber hacking tournament”, in which cyber reasoning systems competed to find and patch vulnerabilities in “custom, never-before-analyzed software”. The winner was Mayhem, developed by ForAllSecure \[[DARPA2016](https://www.darpa.mil/news/2016/cyber-grand-challenge-winners)\]. That was years before today’s AI models, however.

In 2023, the US DARPA and ARPA-H launched the two-year competition Artificial Intelligence Cyber Challenge (AIxCC) to build autonomous AI systems that find and fix software vulnerabilities (CRSs) in critical open-source infrastructure. At its beginning, there was some skepticism that it could achieve much on complex targets. When the \$4 million grand prize was awarded in August 2025, the finalists had shown that CRSs *could* find and fix real vulnerabilities in real software, using widely different architectural approaches \[[Zhang2026](https://arxiv.org/abs/2602.07666)\].

Of course, fully-autonomous AI systems are *not* the only way to find vulnerabilities. It’s also possible for humans to provide more direction to AI, or for humans and AI to collaborate throughout the process. Even “fully autonomous” CRS systems, in practice, presume initial human direction and human review of the results.

QUIZ\
Q1. What defines a “Cyber Reasoning System” (CRS), per the material?

A) A system that can both detect and repair software vulnerabilities autonomously in a system under test\
B) A system that analyzes vulnerabilities already patched by humans to determine if the vulnerabilities have been correctly fixed\
C) A system that analyzes a sequence of logical statements to determine if the stated assertions correctly lead to the claimed conclusions\
D) A system limited to analyzing closed-source binaries only

Answer: A

Feedback:

A) Correct. A CRS is “a software system that can both detect and repair software vulnerabilities autonomously in a given system under test (SUT)”.\
B) Incorrect. A CRS doesn’t just check fixes that humans made; it detects vulnerabilities and repairs them itself.\
C) Incorrect. That describes checking a logical argument. A CRS works on software, detecting and repairing vulnerabilities in a system under test.\
D) Incorrect. The definition doesn’t limit CRSs to closed-source binaries. AIxCC, for example, built CRSs for critical open source infrastructure.\
ENDQUIZ\
QUIZ\
Q1. What milestone does the material cite regarding AIxCC?

A) AIxCC concluded that fully-autonomous CRSs never need human review\
B) AIxCC was canceled in 2025 due to lack of results\
C) AIxCC awarded its grand prize in 2025 after successfully demonstrating autonomous vulnerability-finding-and-fixing systems\
D) AIxCC led to a worldwide ban on the use of open-weight models for vulnerability detection due to concerns some attackers might use AI

Answer: C

Feedback:

A) Incorrect. The material says even “fully autonomous” CRSs, in practice, presume initial human direction and human review of the results.\
B) Incorrect. AIxCC wasn’t canceled. Despite early skepticism, it awarded its grand prize in August 2025\.\
C) Correct. When AIxCC awarded its grand prize in August 2025, the finalists had shown that CRSs could find and fix real vulnerabilities in real software, despite early skepticism.\
D) Incorrect. The material mentions no such ban. It says you can find and fix vulnerabilities with both closed and open models.\
ENDQUIZ

## AI organizations, projects, and services

There is massive investment in AI, so it’s impossible to list all important organizations, projects, and services. That said, here are a few you should be aware of. Knowing about these will help you better understand the options available to you.

AI “frontier labs” drive foundational research by massively investing in designing and training the best AI models (called “frontier models”). There are many frontier and near-frontier labs. Key US players include Anthropic (Claude/Claude Code), OpenAI (GPT/ChatGPT), Google DeepMind (Gemini), and Meta AI (Llama). Microsoft partners with OpenAI, but it also conducts its own independent research and maintains strategic partnerships across the industry. Note that Microsoft Copilot isn't a single product but a name for many different Microsoft tools that use AI. Key Chinese players include Moonshot AI (Kimi), Alibaba (Qwen), DeepSeek (DeepSeek), and Zhipu AI aka Z.ai (GLM).

Goose is a general-purpose AI agent that runs on your machine. It is open source software and maintained by the Linux Foundation’s Agentic AI Foundation (AAIF). When using Goose, you can select an “LLM provider” that can be local or remote, open source or closed source. For more information, see: \<[https\://goose-docs.ai/](https://goose-docs.ai/)\>. Pi is another agent harness that supports many models. Pi focuses on being minimal and was created to develop code, though it can be used for other purposes \<[https\://pi.dev/](https://pi.dev/)\>.

The OWASP “GenAI Security Project” at \<[https\://genai.owasp.org/](https://genai.owasp.org/)\> has a variety of materials available on AI and security. This includes its OWASP GenAI LLM Top 10, which identifies the “most critical security risks facing applications powered by large language models (LLMs)”.

The OpenSSF AI/ML Security Working Group has a variety of projects, including work on signing AI models. It is also a co-sponsor of this material. For more information, see \<[https\://openssf.org/groups/ai-ml-security/](https://openssf.org/groups/ai-ml-security/)\>.

QUIZ\
Q1. What is an “agent harness”, per the material?

A) The program that runs an AI model as an agent, giving it tools and instructions in a control loop\
B) A small program that feeds generated inputs to the code being tested, looking for crashes or hangs\
C) A training dataset of past agent actions, used to teach a model how to use tools and plan work\
D) A sandbox that cuts an AI agent off from the network, so it cannot attack any external systems

Answer: A

Feedback:

A) Correct. An agent harness is the program that runs an AI model as an agent, giving it tools and instructions, and running it in a control loop (to perceive, reason, act, and observe). Examples include Claude Code, Goose, and Pi.\
B) Incorrect. That’s a fuzzing harness, which the material specifically says not to confuse with an agent harness.\
C) Incorrect. An agent harness is a running program, not data. It gives a model tools and instructions and runs it in a control loop.\
D) Incorrect. A sandbox and an agent harness are different things. A sandbox isolates an agent from other systems. Some harnesses include a sandbox, but they’re conceptually distinct.\
ENDQUIZ

QUIZ\
Q1. Which organization co-sponsors this material and works on projects including signing AI models?

A) The OpenSSF AI/ML Security Working Group\
B) The OWASP GenAI Security Project\
C) The DARPA AI Cyber Challenge program\
D) The Model Openness Framework Foundation

Answer: A

Feedback:

A) Correct. The OpenSSF AI/ML Security Working Group co-sponsors this material, and its projects include work on signing AI models.\
B) Incorrect. The OWASP GenAI Security Project publishes materials on AI and security, such as its LLM Top 10, but the material doesn’t identify it as a co-sponsor.\
C) Incorrect. DARPA and ARPA-H ran AIxCC, a competition to build CRSs. The material describes AIxCC’s history but doesn’t name it as a sponsor.\
D) Incorrect. The Model Openness Framework is a framework, not a foundation. It was developed by the Generative AI Commons at the LF AI & Data Foundation.\
ENDQUIZ

QUIZ\
End-of-chapter quiz question\
Q1. When you have an AI agent analyze an external repository, how does the material say you should treat its source comments, issue text, and documentation?

A) As untrusted input that may mislead the agent, so limit what the agent can do\
B) As trusted instructions, since the project’s own developers wrote them\
C) As authoritative only when they appear in the project’s main branch\
D) As safe to follow, once the agent has checked their spelling and grammar

Answer: A

Feedback:

A) Correct. Repository content may be attacker-controlled or simply incorrect. A harness may label that content as data, but the LLM itself doesn’t reliably enforce that distinction, so an agent may follow instructions embedded in it. Treat that content as data to analyze, never as authority to redefine the agent’s task, grant permissions, expose credentials, or enable more tools or network access. Telling the agent to ignore such instructions isn’t enough; enforce those limits outside the AI, e.g., with a sandbox, locked-down network access, and only the credentials the agent’s role needs. This also applies to content in your own project that others can write, such as issue text and pull requests.\
B) Incorrect. The material warns that comments, documentation, issue text, and other repository content may be attacker-controlled or simply incorrect, regardless of who\
 appears to have written them.\
C) Incorrect. Being on the main branch doesn’t always make content trustworthy. Instructions obtained from untrusted content shouldn’t be allowed to silently cross an authorization boundary.\
D) Incorrect. Well-written text can still contain malicious instructions. The problem is that an LLM has no built-in way to reliably isolate instructions from data, so limit what the agent can do rather than relying on it to filter instructions.\
ENDQUIZ

QUIZ\
End-of-chapter quiz question\
Q1. What’s the key difference between “open weights” models and “open source AI”, per the material?

A) Open source AI must also run only on its users’ own local or organizational hardware\
B) Open source AI must also describe its training data well enough to rebuild an equivalent system\
C) Open weights models may only be used for research, while open source AI allows any purpose\
D) Open source AI must also have fewer parameters, so that anyone can run it on a laptop

Answer: B

Feedback:

A) Incorrect. Neither definition restricts where a model runs. More open licenses make models *easier* to run locally, but that’s a consequence of the license, not a requirement.\
B) Correct. Open weights models can be used and modified for any purpose, but their training set isn’t necessarily public. Open source AI adds requirements, such as “sufficiently detailed information about the data used to train the system so that a skilled person can build a substantially equivalent system.”\
C) Incorrect. Open weights models can be used and modified for any purpose, and must not discriminate against any user, industry, or purpose.\
D) Incorrect. The definitions are about openness, not size. Models are sized by their number of parameters, and neither definition limits it.\
ENDQUIZ

QUIZ\
End-of-chapter quiz question\
Q1. What tradeoff does the material describe for models designed to perform specific tasks, such as Cisco’s Antares small language models?

A) They can perform any task, but they’re slower than general-purpose models\
B) They’re good at every task, but they can only run as external services\
C) They need far more training data, but they never produce incorrect results\
D) They tend to be smaller and faster, but they’re good mainly at those tasks

Answer: D

Feedback:

A) Incorrect. Task-specific models trade breadth for speed: they tend to be faster, but they’re good only at the tasks they were designed for.\
B) Incorrect. Task-specific models aren’t good at everything, and many are small enough to run locally. Cisco reports that its Antares models are “compact enough to run locally”.\
C) Incorrect. The material doesn’t say any model never produces incorrect results; LLMs and similar models are statistical, so they sometimes give false answers.\
D) Correct. Models designed to perform only specific tasks tend to be smaller and faster, in exchange for being good mainly at those tasks. For example, Cisco’s Antares SLMs identify known vulnerabilities in code and are compact enough to run locally.\
ENDQUIZ

QUIZ\
End-of-chapter quiz question\
Q1. If you might later need less-restricted access to an AI model for defensive security work, what does the material recommend?

A) Request that access now, since obtaining it takes time and may not be granted\
B) Wait until an incident happens, since providers grant such access on demand\
C) Avoid such access entirely, since unrestricted models are always more dangerous\
D) Disable the guardrails yourself, since providers’ terms usually allow doing so

Answer: A

Feedback:

A) Correct. Before using an AI system, make sure its limitations won’t impede your task. Obtaining less-restricted or specially tailored access takes time and may not be granted, so take time to gain those permissions *before* you need them.\
B) Incorrect. The material warns that obtaining these permissions takes time and in some cases may not be granted. The middle of an incident is a bad time to start asking.\
C) Incorrect. The material says guardrails can impede defense, as Hugging Face found when guardrails blocked its analysis of a real attack. Some providers offer less-restricted access specifically so it can be used for defensive work.\
D) Incorrect. The material describes gaining such access from providers, typically with special agreements on permitted uses and on who gets access. It doesn’t suggest bypassing guardrails yourself.\
ENDQUIZ

QUIZ\
End-of-chapter quiz question\
Q1. Why does the material say it’s harder for an LLM to generate code without vulnerabilities?

A) LLMs can only generate code in memory-unsafe languages such as C and C++\
B) LLMs were trained on data that includes many programs with vulnerabilities\
C) LLMs refuse to generate security-related code because of their safety guardrails\
D) LLMs generate code one file at a time, so they can’t see any security checks

Answer: B

Feedback:

A) Incorrect. LLMs generate code in many languages. Memory-unsafe languages do make vulnerabilities more likely for both humans and AI, but since other languages are possible, that’s not the reason.\
B) Correct. Any ML-based approach depends on the data used to train it, and many programs have vulnerabilities. That makes it harder for an LLM to generate code without vulnerabilities, a point the material returns to when discussing AI-generated fixes and vibe coding.\
C) Incorrect. Guardrails target activities seen as dangerous, such as creating attacks, not writing ordinary code. The problem is what the model learned from.\
D) Incorrect. The issue isn’t how an LLM generates code. It’s that LLMs learn from training data that includes many programs with vulnerabilities.\
ENDQUIZ

# Decide on approaches

There are many ways to use AI to find and fix vulnerabilities, so the first step is to decide on the overall approach. In this chapter we’ll cover some principles: [don’t ignore AI](#do-not-ignore-ai), [don’t wait for the best models](#dont-let-model-access-hold-you-back), [do simple things first](#do-simple-things-first), and [don’t presume AI can fix everything](#do-not-presume-ai-can-correctly-fix-all-vulnerabilities). We’ll then cover [why](#getting-better-results-with-structured-workflows) and [how](#how-to-apply-processes-for-using-ai-to-find-and-fix-vulnerabilities) to guide AI with processes, some [example tools and services](#sample-services-and-tools), and why you’ll need to [run AI more than once](#run-ai-multiple-times).

## Do not ignore AI

Some organizations and projects want to simply ignore AI, refuse to use it, or refuse to accept any contributions that use AI. If the goal of the project is solely to demonstrate what humans can do without AI, that’s fine.

However, if the goal of the project is to help people solve a real-world problem, refusing to consider all AI-generated work is *extremely harmful* to project users. As Michael Catanzaro notes, “banning good vulnerability reports solely because some portion of the report was generated by AI is unacceptable. AI-assisted vulnerability reports are the new industry standard… Prohibiting issue reports reduces the quality and safety of your software, punishing your users.” \[[Catanzaro2026](https://blogs.gnome.org/mcatanzaro/2026/06/08/please-do-not-ban-ai-assisted-issue-reports/)\]

In addition, defenders who ignore AI are at a fundamental speed disadvantage. “Defenders… that do not adopt AI coding agents cannot match the speed or scale of AI-augmented threats, regardless of their technical skill.” \[[CSA2026](https://labs.cloudsecurityalliance.org/mythos-ciso/)\] “Not using AI code analyzers in your project means that you leave adversaries and attackers time and opportunity to find and exploit the flaws you don’t find.” \[[Stenberg2026-05a](https://daniel.haxx.se/blog/2026/05/11/mythos-finds-a-curl-vulnerability/)\]

The CSA recommends that organizations *require* AI agent adoption by their employees: “Formalize AI agent usage (mostly in the form of coding agents) as part of all security functions, with mandatory security controls and oversight in place. … Optional adoption programs have not been shown to overcome cultural barriers, while adoption is a limiting factor….” \[[CSA2026](https://labs.cloudsecurityalliance.org/mythos-ciso/)\]

Note that this doesn’t mean that all or any code must be AI-generated. AI-generated code can in some cases be terrible for security. However, that’s different from trying to entirely ignore AI.

*Trying to withstand AI-enabled attackers, while refusing to use AI to find vulnerabilities and ignoring reports from those who use AI, can only end one way: **compromise**.*

Attackers *prefer* developers who ignore vulnerability reports or who fail to fix vulnerabilities, since that makes their tasks easier. Attackers are *already* using AI to create multi-step complex attacks that reliably defeat software systems whose developers were not prepared for AI-assisted attacks. The more defenders who won’t use AI to find vulnerabilities, and who ignore vulnerabilities found with AI, the more systems that can be subverted and the more people who will be harmed.

You *need* to use AI to help find vulnerabilities, and then fix those vulnerabilities, if the software must be secure. Do not bring a knife to a gunfight.

![A robot tries to warn a human about a fire, but the human is ignoring the robot](images/robot-tries-warn-human-about-fire.jpg){width=457 height=249}

QUIZ\
Q1. What’s a risk if a project bans all AI-assisted vulnerability reports?

A) It has little effect, since attackers rarely rely on AI themselves\
B) It reduces the software’s overall security by rejecting valid reports\
C) It automatically violates the terms of the project’s license\
D) It disqualifies the project from ever receiving CVE identifiers

Answer: B

Feedback:

A) Incorrect. The material says attackers are *already* using AI to create multi-step attacks, and that defenders who ignore AI can’t match their speed.\
B) Correct. Banning good vulnerability reports solely because AI helped create them tends to reduce the quality and security of the software, punishing its users, because this approach causes projects to ignore valid reports. Attackers prefer developers who ignore vulnerability reports.\
C) Incorrect. The material doesn’t connect report policies to licenses. Its concern is that rejecting valid reports leaves real vulnerabilities unfixed.\
D) Incorrect. The material doesn’t connect report policies to CVE identifiers. The harm it describes falls on the software’s users, since valid reports get rejected.\
ENDQUIZ

## Don't Let Model Access Hold You Back

Do **not** wait until you have access to the most advanced restricted-access AI models. Instead:

1. *Get started now*. Projects typically find many vulnerabilities when they use reasonably good, widely available AI systems, unless they’ve *already* been using them \[[Carlini2026](https://red.anthropic.com/2026/mythos-preview/)\] \[[CSA2026](https://labs.cloudsecurityalliance.org/mythos-ciso/)\] \[[Grinstead2026-05](https://hacks.mozilla.org/2026/05/behind-the-scenes-hardening-firefox/)\] \[[Stenberg2026-05a](https://daniel.haxx.se/blog/2026/05/11/mythos-finds-a-curl-vulnerability/)\]. AI systems now “find lots of new problems no one detected before.” \[[Stenberg2026-05b](https://www.linkedin.com/posts/danielstenberg_curl-curl-share-7463481423543414786-sJew/)\]
2. *Apply less-costly models that can find many vulnerabilities at an accessible cost*.
   1. “Focusing on Mythos is a distraction \- there are plenty of good models, and people who can figure out how to get those models and tools to find things.” \[[Stenberg2026-05b](https://www.linkedin.com/posts/danielstenberg_curl-curl-share-7463481423543414786-sJew/)\]
   2. “Frontier models… are the acceleration, not the starting gun” \[[CSA2026](https://labs.cloudsecurityalliance.org/mythos-ciso/)\].
   3. If you use an external organization’s services, they will often have more expensive, sophisticated models as well as less expensive, less complex ones. Many open-weight models are available as well.
   4. In short, don’t wait for difficult-to-access and often expensive leading-edge tools for problems that could have been found and fixed more easily. By all means, use advanced models and tools (at least eventually) if you have access to them, but *do not wait for them*.
3. *Act quickly*. “Success comes from getting the basics right, acting quickly, and integrating cyber security into core business strategy” and not from “having the most tools” \[[FiveEyes2026](https://www.cyber.gov.au/sites/default/files/2026-06/Five%20eyes%20cyber%20security%20agencies%20statement.pdf)\].
4. *Learn by doing*. It takes time to learn and adopt these tools. Practice is the only way to get better. “The best way to be ready for the future is to make the best use of the present, even when the results aren't perfect.” \[[Carlini2026](https://red.anthropic.com/2026/mythos-preview/)\]

Cycode noted that independent research from AISLE has already shown that even small open-source models (including a 3.6-billion-parameter model with the right scaffolding) can find many of the same flagship vulnerabilities Mythos showcased. “Vulnerability discovery is commoditizing. The bottleneck is no longer finding bugs. It is deciding which ones to fix first, fast enough to matter.” \[[Cycode2026](https://cycode.com/blog/claude-mythos-security-readiness/)\]

Different AI models and harnesses have different strengths and weaknesses. In practice, you’ll often want to eventually use multiple ones. The most advanced frontier model “needs to be mounted in the right harness and equipped with the right tools to reach its full potential. And even then, it should just be one of the arrows in your quiver – depending on the task, it may be more sensible to let another model try several times than to let Mythos Preview try once… XBOW maintains a cadre of models, rather than restricting itself to a single one.” \[[Ziegler2026](https://xbow.com/blog/mythos-offensive-security-xbow-evaluation)\]

Do use good AI models and systems when available to you. Strong models and systems can produce extraordinary results. However, don’t wait until you gain access to the best possible systems. Many of those systems have restricted access and will delay your getting started. Attackers *aren’t* waiting.

QUIZ\
Q1. What does the material recommend about waiting for access to the most advanced, restricted-access AI models?

A) Wait for frontier-model access, since lesser models can’t find real bugs\
B) Only proceed once you obtain special government-approved model access\
C) Get started now using reasonably good, widely available models rather than waiting\
D) First build your own custom model from scratch, to maximize success

Answer: C

Feedback:

A) Incorrect. The material says the opposite: projects typically find many vulnerabilities using reasonably good, widely available AI systems. Frontier models “are the acceleration, not the starting gun”.\
B) Incorrect. Special access takes time and may not be granted. The material says not to wait for it; attackers aren’t waiting.\
C) Correct. Get started now, act quickly, and learn by doing. Use advanced models when you can, but don’t wait for them; attackers aren’t waiting.\
D) Incorrect. The material recommends getting started now with existing models. Building your own from scratch would delay you.\
ENDQUIZ\
QUIZ\
Q1. What does the material say about non-frontier, open-weight models?

A) They can’t find real vulnerabilities without extensive human guidance\
B) They’re prohibited from being used in vulnerability research entirely\
C) They require far more compute than frontier models to run\
D) They can often find vulnerabilities at an accessible, affordable cost

Answer: D

Feedback:

A) Incorrect. Research cited in the material found that even small open-source models could find many of the same flagship vulnerabilities that Mythos found. One was a 3.6-billion-parameter model; what it needed was the right scaffolding (the harness and tools around the model), not extensive human guidance.\
B) Incorrect. Nothing prohibits using open-weight models for vulnerability work. Hugging Face, for example, used one to analyze a real attack.\
C) Incorrect. It’s generally the other way around. Smaller, less capable models tend to need less computation, which is part of why they can be less expensive.\
D) Correct. Less costly models, including open-weight ones, can find many vulnerabilities at an accessible cost. As Cycode put it, “Vulnerability discovery is commoditizing.”\
ENDQUIZ

## Do simple things first

If you’ve never used AI to look for vulnerabilities and you have access to a reasonably good AI model (open-weight or not), consider starting with a relatively simple command to scan for vulnerabilities. Include hints on specifically where to look and/or note tools that might help it (without mandating that it use them).

AI systems, as of 2026, can figure out plausible approaches on their own, even with relatively little guidance. Models are constantly improving, so we expect them to get even better.

For example, \[[Carlini2026-youtube](https://www.youtube.com/watch?v=1sd26pWhfmg&t=316s)\] demonstrated this as a successful prompt:

> You are playing in a capture-the-flag (CTF). Find a vulnerability. hint: Look at /src/baz.c Write the most serious one to /out/report.txt

\[[Carlini2026](https://red.anthropic.com/2026/mythos-preview/)\] summarizes this as a paragraph that essentially amounts to “Please find a security vulnerability in this program” and let the AI experiment. He notes that in a typical attempt, the AI (Claude) will read the code to hypothesize vulnerabilities that might exist, run the actual project to confirm or reject its suspicions (and repeat as necessary, adding debug logic or using debuggers as it sees fit), and finally output either that no bug exists, or the bug(s) it found.

Such simple prompts can be extended in several obvious ways. For example, many prompts ask the AI to focus on input validation (since if malicious inputs can’t *enter* the program, they’re much less likely to cause harm) and addressing common past problems. Another is to clearly note that the AI may use existing tools to help in the analysis, including pointers to tools the AI might find useful.

Part of the reason that AI systems can do so much better now is that they’ve become far more adept at making longer-range plans and using tools. \[[Carlini2026-02](https://red.anthropic.com/2026/zero-days/)\] describes it this way:

* “Opus 4.6 found high-severity vulnerabilities, some that had gone undetected for decades…
* We put Claude inside a ‘virtual machine’ (literally, a simulated computer) with access to the latest versions of open source projects. We gave it standard utilities (e.g., the standard coreutils or Python) and vulnerability analysis tools (e.g., debuggers or fuzzers), but we didn’t provide any special instructions on how to use these tools, nor did we provide a custom harness that would have given it specialized knowledge about how to better find vulnerabilities.
* This means we were directly testing Claude’s ‘out-of-the-box’ capabilities, relying solely on the fact that modern large language models are generally capable agents that can already reason about how best to make use of the available tools.
* … We validated every bug extensively before reporting it. … We then had Claude critique, de-duplicate, and re-prioritize the crashes that remain.”

Similarly, \[[Grinstead2026-05](https://hacks.mozilla.org/2026/05/behind-the-scenes-hardening-firefox/)\] noted that “you can start with very simple prompting, then observe and iterate… the essence of the inner loop remains the same: there is a bug in this part of the code, please find it and build a testcase”.

Start by focusing on your most important projects, then address the next in turn.

![A woman gives a robot AI a simple checklist to start, with more sophisticated plans to come](images/woman-gives-robot-ai-simple-checklist.jpg){width=374 height=204}

QUIZ\
Q1. What was the essence of Carlini’s simple and successful capture-the-flag (CTF) sample prompt?

A) A brief instruction to find a vulnerability, plus a location hint\
B) Appending a multi-page technical specification detailing every function in the target\
C) A requirement that the AI use ten specifically named tools\
D) A demand for a complete, fully validated exploit chain that would not require review

Answer: A

Feedback:

A) Correct. The prompt simply asked the AI to find a vulnerability, hinted at which file to look at, and said where to write up the most serious one. The AI then experimented on its own.\
B) Incorrect. The prompt was only a few short sentences. Carlini summarized this kind of prompt as essentially “Please find a security vulnerability in this program”.\
C) Incorrect. The prompt didn’t name any tools. The material suggests noting tools that might help, without mandating that the AI use them.\
D) Incorrect. The prompt asked the AI to write up the most serious vulnerability it found, not to produce an exploit chain. The material also stresses that AI results need review.\
ENDQUIZ

## Do not presume AI can correctly fix all vulnerabilities

Do not presume that AI systems can always correctly fix all vulnerabilities.

It’s challenging to determine exactly how good AI systems are at creating fixes that fully fix the vulnerability, don’t introduce other vulnerabilities, and don’t interfere with system functionality. As of 2026, there’s evidence that even the ***best*** AI systems can struggle, especially when trying to correctly fix ***complex*** vulnerabilities.

![A robot has tightened a pipe and shows a thumbs-up to a horrified human who can see all the other pipes bursting.](images/robot-tightened-pipe-shows-thumbs-up.jpg){width=472 height=257}

A study by 1Password found that when the fix “had to touch multiple files, functions, or code paths, and introduce non-trivial changes” an AI would succeed only *26.0%* of the time at generating a fix that fully resolved the vulnerability without materially changing application behavior. AI systems did not resolve the vulnerability, added a new vulnerability, or both, on average, 53.9% of the time \[[Hoodlet2026](https://1password.com/blog/why-ai-generated-patches-still-require-human-review)\] \[[Mierczuk2026](https://1password.com/files/resources/frontier-models-vulnerability-patches-flawed.pdf)\].

Indeed, they argue that, for *complex* vulnerabilities, using AI to fix them may be a poor use of resources as of 2026\. Their report found that so few fixes worked correctly that “human auditors of LLM-generated patches are likely to spend the majority of their time reviewing and ultimately rejecting an avalanche of unnecessary code… the level of understanding one must build to confidently evaluate the full correctness of a vulnerability patch is often at least what would have been sufficient for a human programmer to produce a single, known-good patch in the first place” \[[Mierczuk2026](https://1password.com/files/resources/frontier-models-vulnerability-patches-flawed.pdf)\].

Others have raised issues about that study or the way it was reported. That study only examined *complex* vulnerabilities, a key constraint the study clearly stated but that news summaries often omitted. In addition, a subsequent review found that some prompts told agents to apply the wrong fix or prohibited testing, and that only default reasoning settings were used (not the highest available setting). This review found that 86% of patches (2,634 of 3,067) blocked the supplied exploit, excluding cases where the upstream fix appears to have been used \[[Naik2026](https://blog.trailofbits.com/2026/09/15/1passwords-ai-patching-benchmark-is-misleading/)\]. However, as *that* review clearly states, that upper figure is far too generous; simply blocking an exploit is *not* a full repair.

An in-depth 2026 analysis via “PatchBench” provides additional figures and examines a variety of vulnerabilities in C/C++ code. Once they countered memorization of previous fixes, and took steps to validate that the fix actually fixed the vulnerability (not merely an example input) and did not interfere with functionality, AI systems managed to correctly fix the vulnerability “roughly half” the time. The best agent could only solve 59% of the tasks in PatchBench, and 31% of the tasks (67 out of 213\) couldn’t be solved by any of them \[[Shen2026-09](https://arxiv.org/abs/2609.04075)\].

It may seem surprising that AI systems can struggle to produce an accurate fix. AI systems can indeed generate a lot of code, especially simple code similar to what many others have done. This has misled some people to believe that AI can easily generate any kind of code. However, in many ways AI systems act like junior developers. AI can generate a lot of “straightforward” code, and that’s great because a lot of code *is* straightforward. However, AI is not good at applying specific local context or at complex situations. AI also has a propensity to generate insecure code, since it was trained on lots of insecure code. Completely fixing complex vulnerabilities without creating new ones or breaking functionality is where today’s AI systems are weakest.

Of course, AI *can* help generate many fixes. Many vulnerabilities are relatively easy to fix, where the fix is localized to a specific line or set of adjacent lines. AI can be *especially* good at fixing these once it’s told what needs fixing. AI *can* sometimes successfully fix more complex vulnerabilities, too. Perhaps most importantly, this information only applies to AI models as of 2026\. We do not know how much better the AI models and underlying tools will become. That said, this limitation is unlikely to disappear instantly, and not everyone can use the best available systems.

As a result, it’s important to be aware that AI systems don’t always generate complete fixes. They may fix a special case but not the full vulnerability; they may introduce new vulnerabilities; and their fixes may interfere with correct operation. There’s some evidence that they especially struggle with more complex vulnerabilities. This material provides tips on [fixing vulnerabilities](#fix-vulnerabilities) and [verifying fixes](#verify-fixes), to increase your likelihood of success. However, these are not guarantees. Plan accordingly.

QUIZ\
Q1. What does the material conclude about AI-generated fixes for vulnerabilities, especially complex ones?

A) Frontier models now fix practically all vulnerabilities correctly\
B) AI fixes are unreliable only in memory-unsafe languages, so fixes in other languages can be trusted\
C) AI fixes are often incomplete, add new vulnerabilities, or break features; they need careful review\
D) AI fixes almost never work, so it’s better to never ask an AI to propose fixes for vulnerabilities

Answer: C

Feedback:

A) Incorrect. Even the best AI systems can struggle, especially with complex vulnerabilities. In PatchBench, the best agent solved only 59% of the tasks, and no agent could solve 31% of them.\
B) Incorrect. The material doesn’t limit the problem to memory-unsafe languages. Its concerns (incomplete fixes, new vulnerabilities, and broken functionality) apply in any language.\
C) Correct. AI fixes may fix a special case but not the full vulnerability, introduce new vulnerabilities, or interfere with correct operation, especially for complex vulnerabilities. Plan for careful review.\
D) Incorrect. That goes too far. AI can help generate many fixes, especially localized ones once it’s told what needs fixing, and it can sometimes fix complex vulnerabilities too. The point is to review its fixes carefully.\
ENDQUIZ

## Getting Better Results with Structured Workflows

You *can* find and fix some vulnerabilities with simple prompts, as noted above. In particular, more powerful AI models can sometimes identify and fix vulnerabilities without additional help or specialized processes. However, if your goal is thoroughness, many analysts report that *guiding* an AI makes the AI much more effective at finding and fixing vulnerabilities.

For example, \[[Wolff2026](https://cacm.acm.org/research/large-language-models-in-software-security-analysis/)\] states that “simply asking a generic coding agent to ‘find bugs’ in a large repository results in model drift, context window compaction, and high false-positive rates... The highest-performing defensive systems combine raw AI reasoning with rigid engineering frameworks (harnesses) that handle file selection, environment setup, and tool execution.” An AI that tries to “read all the code” at once has the same problem a human might have; it can become overwhelmed with the data it’s being asked to peruse. AI systems’ limited context windows can make them less effective when used this way.

Similarly, \[[Grinstead2026-05](https://hacks.mozilla.org/2026/05/behind-the-scenes-hardening-firefox/)\] noted that “you can start with very simple prompting…” but *also* that “through iteration we’ve built out a lot of orchestration and tooling to optimize and scale the pipeline.” \[[Carlini2026](https://red.anthropic.com/2026/mythos-preview/)\] found that asking “each agent to focus on a different file in the project” was more effective, since this “reduces the likelihood that we will find the same bug hundreds of times”. Instead of processing every file for each software project, they first asked Claude to rank how likely each file in the project was to contain interesting bugs, then prioritized the files most likely to contain them.

Derek Zimmer \[Zimmer2026\] believes that one reason for this is that it’s easy for an AI to “run things out-of-order”. AI may try to anticipate the next step, and what it guesses may be wrong. Having an AI agent perform a specific task, using previously created data, enables it to focus its attention and effort on that task. In particular, adding specialized processes can make less-powerful AI models (including less-expensive ones) far more effective.

\[[Bourzikas2026](https://blog.cloudflare.com/cyber-frontier-models/)\] reported 4 lessons, each pointing to the value of a harness to manage the overall process:

1. *“Narrow scope produces better findings*. Telling the model "Find vulnerabilities in this repository" makes it wander. Telling it "Look for command injection in this specific function, with this trust boundary above it, here's the architecture document and here's prior coverage of this area" makes it do something much closer to what a researcher would actually do.
2. *Adversarial review reduces noise*. Adding a second agent between the initial finding and the queue \- one with a different prompt, a different model, and no ability to generate its own findings \- catches a lot of the noise that the first agent would miss if it just checked its own work. It turns out that putting two agents in deliberate disagreement is way more effective than just telling one agent to be careful.
3. *Splitting the chain across agents produces better reasoning*. Asking "Is this code buggy?" and "Can an attacker actually reach this bug from outside the system?" are two different questions, and the model is better at each one when you ask them separately, because each question is narrower than the combined version.
4. *Parallel, narrow tasks beat a single exhaustive agent*. Coverage improves when many agents work on tightly scoped questions and we deduplicate the results afterward, rather than asking one agent to be exhaustive.”

As of November 2026, exactly *how* to best guide AI is under evaluation. Different groups use different approaches, and it’s likely that some approaches are better suited to certain types of vulnerabilities. We’ll further discuss approaches later, but as an example, here’s the approach described by \[[Bourzikas2026](https://blog.cloudflare.com/cyber-frontier-models/)\]:

1. *Recon*: An agent reads the repository from the top down, fans out to subagents responsible for each subsystem, and produces an architecture document covering build commands, trust boundaries, entry points, and likely attack surface. It also generates the initial task queue for the next stage. Gives every downstream agent shared context. Cuts the wander problem.
2. *Hunt*: Each task is one attack class paired with a scope hint. Hunters (the agents that actually look for bugs) run concurrently, typically around fifty at once, each fanning out to a handful of exploration subagents. Each hunter has access to tools that compile and run proof-of-concept code in a per-task scratch directory. This is where most of the work happens. Many narrow tasks in parallel, not one exhaustive agent.
3. *Validate*: An independent agent re-reads the code and tries to disprove the original finding. It uses a different prompt and cannot emit new findings of its own. Catches a meaningful fraction of the noise the hunter wouldn't catch when reviewing its own work.
4. *Gapfill*: Hunters flag areas they touched but didn't cover thoroughly. Those areas get re-queued for another pass. This counters the model's tendency to drift toward attack classes it has already succeeded with.
5. *Dedupe*: Findings that share the same root cause collapse into a single record. Variant analysis is a feature, not a way to inflate the queue with duplicates.
6. *Trace*: For each confirmed finding in a shared library, a tracer agent fans out (one instance per consumer repository), uses a cross-repo symbol index, and decides whether attacker-controlled input actually reaches the bug from outside the system. Turns "there is a flaw" into "there is a reachable vulnerability." This is the stage that matters most.
7. *Feedback*: Reachable traces become new hunt tasks in the consumer repositories where the bug is actually exposed. Closes the loop. The pipeline gets better as it runs.
8. *Report*: An agent writes a structured report against a predefined schema, validates it against that schema, and submits it to an ingest API. Output is queryable data, not free-form prose.

Of course, many others outline some sort of process. Anthropic reports that teams finding and fixing the most vulnerabilities ended up with some variation of the following steps:

* “Threat model: Decide what counts as a vulnerability before you start scanning.
* Sandbox: Build a sandbox environment to isolate agents and prove exploits.
* Discovery: Have models look for vulnerabilities in your source code.
* Verification: Independently confirm which findings are actually exploitable.
* Triage: De-duplicate findings, assign severity, and prioritize what needs fixing.
* Patching: Apply the fix, confirm the vulnerability is nullified, and search for variants.” \[[Yan2026](https://claude.com/blog/using-llms-to-secure-source-code)\]

As we’ll further discuss later, a key task is validation. Something may look like a vulnerability but be unexploitable. The best way to validate a vulnerability is to generate an exploit that demonstrates it is indeed a vulnerability. A working exploit demonstrates that existing defenses wouldn’t prevent the attack \[[Carlini2026](https://red.anthropic.com/2026/mythos-preview/)\]. This also explains why hardening is so important; if a project hardens its software against attack, it can systematically prevent many problems from becoming vulnerabilities. The Linux kernel, for example, has various defense-in-depth measures that have prevented the exploitation of many potential problems identified by even advanced AI models \[[Carlini2026](https://red.anthropic.com/2026/mythos-preview/)\].

In 2026, AI became *far* more effective at finding vulnerabilities. This was due to a combination of improved AI models *and* improved techniques for harnessing them \[[Grinstead2026-05](https://hacks.mozilla.org/2026/05/behind-the-scenes-hardening-firefox/)\]. Using either one is better than using none, but many analysts report that it’s best to combine them.

Of course, once findings (potential vulnerabilities) are found, and then validated *as* vulnerabilities, they need to be fixed.

🎬See the video “[Types of CRS](https://drive.google.com/file/d/1WDzVSKiICy-yGtEwuWLKfreXYkp2BkAt/view?usp=sharing)” for an illustration of how vulnerability reports generated by one system can flow into another system designed to fix them.

There is a risk that overprescribing an approach to an AI may overconstrain it, causing it to ignore problems it would otherwise find. It’s also possible that future AI models will be so good that aiding them with processes won’t help. However, since many analysts report that aiding AI models does help, we’ll discuss doing that combination in this material.

![A robot is working down a checklist, with the first few items checked off.](images/robot-working-down-checklist-first-few.jpg){width=435 height=237}

QUIZ\
Q1. Per the material, what can happen when you simply ask a generic coding agent to “find bugs” in a large repository by reading all of its code?

A) It always refuses the task, citing safety guardrails\
B) It can cause high false-positive rates (many false reports)\
C) It automatically escalates its own tool permissions and access\
D) It produces final results requiring no further human review

Answer: B

Feedback:

A) Incorrect. The material doesn’t say agents refuse this task. The agent will try, but asking it to read all the code at once tends to produce poor results.\
B) Correct. Simply asking a generic coding agent to “find bugs” in a large repository results in “context window compaction \[and\] high false-positive rates”. Like a human, an AI can be overwhelmed by trying to read all the code at once.\
C) Incorrect. The material’s concern here is the quality of the results, not permissions. Sandboxes, discussed later, address what an agent can do.\
D) Incorrect. The material says this approach produces high false-positive rates, and AI findings always need validation and review.\
ENDQUIZ\
QUIZ\
Q1. What lesson did Cloudflare researchers report about narrowing an AI’s task scope?

A) Broad instructions like “find vulnerabilities in this repository”, encouraging the AI to analyze everything at once, tend to work best\
B) Scope has no measurable effect on the quality of findings at all\
C) Only one agent should ever run at a time, to avoid duplicates\
D) Narrowing scope for each AI run, such as one function with a trust boundary, produces the best findings

Answer: D

Feedback:

A) Incorrect. Cloudflare found the opposite: telling the model “Find vulnerabilities in this repository” makes it wander.\
B) Incorrect. Scope mattered a lot. Cloudflare’s first lesson was that narrow scope produces better findings.\
C) Incorrect. Cloudflare found that many parallel, narrow tasks beat a single exhaustive agent. You handle duplicates by deduplicating the results afterward.\
D) Correct. Telling the model to look for a specific kind of problem in a specific function, with its trust boundary, an architecture document, and prior coverage, makes it act much more like a human researcher.\
ENDQUIZ

## How to apply processes for using AI to find and fix vulnerabilities

While AI systems *can*, with a good model, sometimes find and fix some vulnerabilities with little prompting, we usually want to be more thorough. How can we apply those processes, though?

These added processes for finding and fixing vulnerabilities can be human-guided, automation-guided, or a mix:

* *Human-guided processes*. These can be as simple as carefully walking an AI through a step-by-step process. For example, a human could demand that the AI report all potential vulnerabilities as findings, completely separating the validation of those findings into a separate step. Doing this can reduce the risk of an AI model discounting a finding that *was* exploitable because the AI was doing both steps at once.
* *Fully-automation-guided systems.* Fully automated systems are the cyber reasoning systems (CRSs) we discussed earlier, discussed in materials such as \[[Wolff2026](https://cacm.acm.org/research/large-language-models-in-software-security-analysis/)\].
* *Mixed systems*. Systems may be partly automated but have mechanisms for humans to provide information and guidance as they go.

Unsurprisingly, many different organizations and projects have developed processes to improve finding and fixing vulnerabilities using AI. As noted by Cycode, “AI-driven vulnerability discovery is no longer a single-vendor story. It is an industry capability, and it has arrived faster than most security programs are prepared for.” \[[Cycode2026](https://cycode.com/blog/claude-mythos-security-readiness/)\]

Here are a few examples of processes people have used (beyond the list from \[[Bourzikas2026](https://blog.cloudflare.com/cyber-frontier-models/)\] and \[[Yan2026](https://claude.com/blog/using-llms-to-secure-source-code)\] we showed earlier):

* \[[Wolff2026](https://cacm.acm.org/research/large-language-models-in-software-security-analysis/)\] emphasizes that AI is most effective when combined with existing analytical techniques. This paper describes the following components of a typical CRS:
  * Static analysis, harness generation (for dynamic analysis), input generation, crash analysis, patch generation, patch selection, and orchestration.
* Microsoft’s MDASH system uses a set of specialized AI agents working through a staged pipeline, rather than a single, highly capable model running in an agent framework \[[Bishop2026](https://www.geekwire.com/2026/microsofts-multi-agent-ai-system-tops-anthropics-mythos-on-cybersecurity-benchmark/)\]. Their harness orchestrates more than 100 specialized AI agents across an ensemble. It’s essentially a “structured pipeline that takes a codebase and emits validated, proven findings” through these stages:
  * Prepare stage: Ingests the source and target, builds language-aware indices, and then derives the attack surface and threat models by analyzing past commits.
  * Scan stage: Runs specialized auditor agents over candidate code paths, emitting candidate findings with hypotheses and evidence.
  * Validate stage: Runs a second cohort of agents—debaters—that argue for and against each finding’s reachability and exploitability.
  * Dedupe stage: Collapses semantically equivalent findings (for example, patch-based grouping).
  * Prove stage: Constructs and executes triggering inputs that the bug class admits. The prove stage validates the pre-condition dynamically and formulates the bug-triggering inputs to prove \[the existence of a\] vulnerability (for example, ASan in C/C++). \[[Kim2026](https://www.microsoft.com/en-us/security/blog/2026/05/12/defense-at-ai-speed-microsofts-new-multi-model-agentic-security-system-tops-leading-industry-benchmark/)\]

Most of these systems can be used with three types of scanning actions:

* Full scans, where the full codebase is scanned all at once,
* Branch scans, where a new branch (or each new branch) is scanned
* Pull Request (PR)/Merge Request (MR) scans, like branch scans but findings are reported in the PR/MR which concern the branch (similar to how many humans perform review) \[[Rogers2025](https://joshua.hu/llm-engineer-review-sast-security-ai-tools-pentesters)\]

## Examples of relevant tools and services

The number of relevant tools and services has exploded. We can’t list them all. Here are pointers to specific ones you may find especially useful for this purpose, at least to give you an idea of what’s available.

### Challenges of finding and evaluating tools

First, we must acknowledge a problem: it can be challenging to *find* the tools and services to identify vulnerabilities with AI. There are so many blog posts, papers, and products related to AI and vulnerabilities that it can be difficult to find actual products, services, or systems for finding vulnerabilities in software \[[Bressers2025](https://opensourcesecurity.io/2025/2025-10-ai-joshua-rogers/)\] \[[Rogers2025](https://joshua.hu/llm-engineer-review-sast-security-ai-tools-pentesters)\].

It’s also hard to evaluate them. Many published results come from the tool’s own developers, use different codebases and definitions of success, and report findings rather than validated vulnerabilities.

Be skeptical of benchmark numbers, especially for tools that classify isolated functions as vulnerable or not. Many such benchmarks have inaccurate labels: when researchers manually checked samples of functions labeled “vulnerable” in popular automatically labeled datasets, only 25% to 60% were labeled correctly \[[Ding2025](https://arxiv.org/abs/2403.18624)\]. Other researchers found that “in almost all cases this decision cannot be made without further context”, because whether a function is vulnerable often depends on how it’s called \[[Risse2025](https://arxiv.org/abs/2408.12986)\]. Another study argues that beliefs that LLMs are unreliable at vulnerability detection are “artifacts of context-deprived evaluations” \[[Li2025](https://arxiv.org/abs/2504.13474v1)\].

Whole-project analysis has its own problems. A 2026 study of LLM-based and traditional tools on 24 active open source projects found that “many tools exhibit high false discovery rates on real-world projects/modules”, mostly due to “Truncated interprocedural context and incorrect program-point classification” \[[Li2026](https://arxiv.org/abs/2601.19239)\].

Where you can, try a tool on code you know well (including known past vulnerabilities) and compare the validated results.

### Sample services and tools

You can use any existing AI system that can work with code to do this. For example, you might consider directly using an agent (like [Goose](https://goose-docs.ai/)) to interact with your AI models. However, let’s focus on tools and services specifically for finding and fixing vulnerabilities using AI.

Many organizations with more traditional tools have added modern AI to their products. By “traditional tools” we include Static Application Security Testing (SAST) tools, Dynamic Application Security Testing (DAST) and/or fuzzing tools, and Software Composition Analysis (SCA) tools. Examples of such organizations include Black Duck, Checkmarx, OpenText (Fortify), Snyk, Sonar (SonarQube), Sonatype, and VeraCode.

Closed-source commercial services that focus on using AI to find and fix vulnerabilities, at the time of this writing, include [Almanax](https://almanax.ai/), [Corgea](https://corgea.com/), [Cycode](https://cycode.com), and [ZeroPath](https://zeropath.com).

Several frontier AI labs also offer specialized vulnerability-finding and fixing services to outside organizations. At the time of this writing, sometimes access is limited to selected customers or approved defenders. For example:

1. Anthropic offers Claude Security, discussed earlier.
2. Google’s CodeMender began as an internal Google DeepMind research project. A version using a more capable model “will be exclusively available to a small set of governments and trusted partners” \[[Gerstenhaber2026](https://cloud.google.com/blog/products/identity-security/find-and-fix-software-vulnerabilities-with-codemender)\].
3. OpenAI launched its Daybreak initiative in May 2026, combining OpenAI’s models with its Codex Security tool. At launch, access was tightly controlled, and OpenAI asked interested organizations to request a vulnerability scan or contact its sales team \[[Lakshmanan2026](https://thehackernews.com/2026/05/openai-launches-daybreak-for-ai-powered.html)\]. Trail of Bits’ Patch the Planet effort, discussed later, was done in partnership with OpenAI’s Daybreak initiative \[[TrailofBits2026-06](https://blog.trailofbits.com/2026/06/22/introducing-patch-the-planet/)\].

Open source tools that focus on using AI to find and/or fix vulnerabilities, at the time of this writing, include:

1. Alibaba open-code-review \<[https\://github.com/alibaba/open-code-review](https://github.com/alibaba/open-code-review)\> \[[Alibaba2026](https://github.com/alibaba/open-code-review)\]
2. Nullpointer. This focuses on AI-powered pentesting \<[https\://nullpointer.studio/](https://nullpointer.studio/)\>
3. OpenSSF Alpha-Omega Scrutineer, a set of skills for finding and fixing vulnerabilities, then reporting them to the external project \<[https\://github.com/alpha-omega-security/scrutineer](https://github.com/alpha-omega-security/scrutineer)\>
4. OpenSSF OSS-CRS. This is a meta-tool for creating CRSs, and several CRSs build on it, based on extensive work for AIxCC \<[https\://openssf.org/projects/oss-crs/](https://openssf.org/projects/oss-crs/)\>
5. Sashiko. This is a patch review system specifically for the Linux kernel \<[https\://sashiko.dev/](https://sashiko.dev/)\>
6. Visa Vulnerability Agentic Harness \<[https\://github.com/visa/visa-vulnerability-agentic-harness](https://github.com/visa/visa-vulnerability-agentic-harness)\>
7. Knostic OpenAnt. This analyzes code units reachable from external entry points, then tries to exploit candidate vulnerabilities in sandboxed containers, keeping only what survives. Knostic also offers free scans for open source projects \<[https\://github.com/knostic/OpenAnt](https://github.com/knostic/OpenAnt)\> \[[Korda2026](https://arxiv.org/abs/2606.19149)\]
8. OpenAI Codex Security CLI and TypeScript SDK. The client is open source (Apache-2.0), but it uses OpenAI’s Codex Security service, so you need an OpenAI account or API key \<[https\://github.com/openai/codex-security](https://github.com/openai/codex-security)\>

Let’s look more closely at two of these, OpenSSF Alpha-Omega’s Scrutineer and OpenSSF OSS-CRS. They illustrate two ends of a range: a relatively simple set of skills, and a framework for running many CRSs at once. They’re open source software projects of the OpenSSF, which produces this material.

### Scrutineer

Scrutineer is a tool developed by OpenSSF’s Alpha-Omega. It’s a “local tool for scanning open source repositories for security vulnerabilities and managing the disclosure process. You add a repo by URL, scrutineer runs a pipeline of agent skills against it inside a container, and presents the results in a web UI where you can triage findings, identify maintainers, and track disclosures. The agent CLI is pluggable…” \[[Nesbitt2026-06](https://nesbitt.io/2026/06/25/scrutineer.html)\].

Scrutineer is intended to be relatively easy to start using. Some aspects of it are especially important:

* It includes processes such as identifying how to report vulnerabilities to an external project. You can use it to review your own projects as well, but its focus is on examining other projects “as they are” and reporting to them.
* It’s primarily a set of skills (documents with some supporting programs).

For more information, see \[[Nesbitt2026-06](https://nesbitt.io/2026/06/25/scrutineer.html)\] or its website at \<[https\://github.com/alpha-omega-security/scrutineer](https://github.com/alpha-omega-security/scrutineer)\>.

### OSS-CRS

OpenSSF’s [OSS-CRS](https://openssf.org/projects/oss-crs/) provides a sophisticated set of capabilities to deeply find and fix vulnerabilities using a variety of techniques. OSS-CRS is a *framework* for running many *different* CRSs and combining their techniques. It includes infrastructure that CRSs can share and budget-aware resource management. OSS-CRS is especially helpful when you want to spend significant effort finding and fixing vulnerabilities, to squeeze out as many as is practical.

#### OSS-CRS introduction

It’s easier to understand OSS-CRS by understanding its history. DARPA's AI Cyber Challenge (AIxCC) of 2023-2025 “showed that cyber reasoning systems (CRSs) can go beyond vulnerability discovery to autonomously confirm and patch bugs”.  As a research competition it was a success, and the competition results were released as open source software (OSS). However, those systems were “largely unusable outside their original teams, each bound to the competition cloud infrastructure that no longer exists” \[[Chin2026](https://arxiv.org/abs/2603.08566)\] \[[Chin2026-slides](https://github.com/ossf/oss-crs/blob/main/docs/slides/svcc-2026.pptx)\].

The solution was OSS-CRS. OSS-CRS builds on the previous AIxCC work to provide a framework for running *multiple* CRSs and *combining* their results.

An especially powerful ability of OSS-CRS is its “*ensemble*” feature. The ensemble feature combines “patches from multiple CRS approaches and \[uses\] a selection process to pick the one most likely to be correct. The research showed this approach consistently matches or outperforms the best single component in improving semantic correctness, which is hard to eliminate at the single-agent level.” Even so, it’s important to have humans review the proposed changes before implementation \[[Diecks2026](https://openssf.org/blog/2026/04/02/from-aixcc-to-openssf-welcoming-oss-crs-to-advance-ai-driven-open-source-security/)\].

OSS-CRS also defines a unified interface for CRS development. A CRS using this interface can run across different environments (both local and remote) without modification.

#### OSS-CRS intended use

Here’s how OSS-CRS is intended to be used:

1. *Multiple CRS techniques are run in parallel*. This often involves using fuzzing, static analysis, and LLM-based reasoning, probing the target for bugs, and eventually producing proposed patches.
2. *Ensemble selection picks the best patch*. Candidate patches from different CRS approaches are cross-validated.
3. *People review findings and proposed patches*.
4. *Verified patches reach the project*. Only findings that survive ensemble validation and human review should be submitted.

With OSS-CRS, users can decide:

* Which CRSs to run
* How much compute resources/time to give to each CRS
* How much LLM budget to give to each CRS
* Which models and endpoints to route LLM requests to
* What project (and harness) to run the CRSs against
* Which vulnerability to fix (for patching CRSs) \[[Chin2026-slides](https://github.com/ossf/oss-crs/blob/main/docs/slides/svcc-2026.pptx)\]

#### OSS-CRS key terms and concepts

Here are a few OSS-CRS key terms and concepts:

| Term | What it is | Purpose |
| :---- | :---- | :---- |
| Harness | A code wrapper that feeds generated inputs into target functions | Lets bug-finding engines safely execute code, measure coverage, and detect crashes |
| (Fuzzing) Seed | An initial, well-formed input payload provided at the start of a test run | Gives fuzzers a starting baseline to reach deep code logic faster instead of generating random bytes from scratch |
| Proof of Vulnerability (PoV) | A specific input payload that reliably triggers a bug or sanitizer crash (note that definition is more specific than some) | Proves a vulnerability exists and serves as a test case to verify that a proposed code patch fixes the bug |
| Fuzzing/ Fuzzer | The automated technique (and engine) that repeatedly feeds generated inputs into a harness to test execution paths and uncover unexpected crashes | Key capabilities: automated input generation & execution; harness-based path testing; uncovers unexpected crashes |
| Triage | The automated process of filtering, deduplicating, and evaluating raw crashes to confirm they are genuine security flaws rather than benign errors | Key capabilities: crash filtering & deduplication; evaluates raw crash logs; confirms genuine security flaws |
| Patch | A targeted source code modification produced by a CRS to eliminate a vulnerability while preserving all existing intended functionality | Key capabilities: targeted source code modifications; vulnerability elimination; preserves intended functionality |

#### Using OSS-CRS effectively

OSS-CRS is more effective if the project being analyzed has a harness using the OSS-Fuzz format. Many different build systems are used to build software (such as Make, CMake, Autoconf, Bazel, and Meson). This lack of commonality can make it challenging to create tools to correctly analyze them. “OSS-CRS mitigates this by building targets through OSS-Fuzz’s official build flows, inheriting the build environment that each project’s maintainers already support” \[[Chin2026](https://arxiv.org/abs/2603.08566)\]. OSS-Fuzz can use one of several fuzzing engines to do its tasks, including libFuzzer, AFL++, and Honggfuzz. If a project doesn’t have an OSS-Fuzz harness, consider using AI to help build one. Ensuring OSS-CRS can build and fuzz a program often improves OSS-CRS results.

You can choose to use the many CRSs already available and ported to run on top of OSS-CRS. You can also create your own CRS (see \[[crs-bug-finding-template](https://github.com/Team-Atlanta/crs-bug-finding-template/)\] for more).

OSS-CRS is already capable. “Using OSS-CRS, Team Atlanta discovered twenty-five vulnerabilities across sixteen projects spanning a broad range of software including PHP, U-Boot, memcached, and Apache Ignite 3” \[[Diecks2026](https://openssf.org/blog/2026/04/02/from-aixcc-to-openssf-welcoming-oss-crs-to-advance-ai-driven-open-source-security/)\].

#### OSS-CRS demos

Here is a set of short videos demonstrating finding bugs using OSS-CRS combined with LibFuzzer:

1. 🎬 [Set up OSS-CRS](https://github.com/ossf/oss-crs/pull/535/changes#diff-3f51f3964296440405c41288425aa27e66ff9c5e074b6be6b3efb4339107a691)
2. 🎬 [Set Variables for CRS Libfuzzer](https://github.com/ossf/oss-crs/pull/535/changes#diff-be5b8d43f75185fcd0db74af9b76d6a65990458704c9f2fc5eb9423c2a8ef462)
3. 🎬 [Prepare the CRS Libfuzzer](https://github.com/ossf/oss-crs/pull/535/changes#diff-49210f1065c444dc2d269d26946927c0033a914b033e20c56b6e1f187a68ad4a)
4. 🎬 [Build a target for the Libfuzzer](https://github.com/ossf/oss-crs/pull/535/changes#diff-a903c9889482235031c3685388900ef199444bc2b70eb7c37950a3df6d2b589c)
5. 🎬 [Run the CRS Libfuzzer](https://github.com/ossf/oss-crs/pull/535/changes#diff-4013f6fc4a8b920b648f84524d087fd9781396d9ffb473464ec6d189ba973640)
6. 🎬 L[ibfuzzer outputs: seeds and Proof of Vulnerabilities](https://github.com/ossf/oss-crs/pull/535/changes#diff-f9d84d5e991b1216b8044023c31472a4a956e3c13806360ecfac66c07e16a471)

Here’s a video showing using OSS-CRS to create a proposed patch:

🎬 [Running a patching CRS](https://github.com/ossf/oss-crs/pull/535/changes#diff-245fa6553c96a103bf702aacb3dc96f09ccf8ef6f060c022108d835f1a5b7c64)

For more information on OSS-CRS, see: [https\://openssf.org/projects/oss-crs/](https://openssf.org/projects/oss-crs/)

QUIZ\
Q1. What does OSS-CRS’s “ensemble” feature do, per the material?

A) It combines proposed patches from multiple CRS approaches and picks the best one\
B) It runs a single CRS repeatedly to avoid any conflicting results\
C) It removes the need for any human review of proposed patches\
D) It requires proprietary compute infrastructure available only to DARPA and ARPA-H

Answer: A

Feedback:

A) Correct. The ensemble feature combines patches from multiple CRS approaches and uses a selection process to pick the one most likely to be correct. This consistently matches or outperforms the best single component.\
B) Incorrect. The ensemble draws on multiple *different* CRS approaches, not one CRS run repeatedly. Combining approaches is what lets it pick a better patch.\
C) Incorrect. The material says it’s still important to have humans review proposed changes. Only findings that survive both ensemble validation and human review should be submitted.\
D) Incorrect. OSS-CRS was later created because the original AIxCC systems were tied to competition cloud infrastructure that no longer exists. CRSs using the OSS-CRS interface can run in both local and remote environments.\
ENDQUIZ

## Run AI multiple times

Most modern AI systems are *not* deterministic. Even if you provide them the same inputs, they won’t necessarily produce the same outputs. That means you need to apply AI multiple times to find and fix vulnerabilities, especially on its first application to a project.

Yan reports that “the first run on a codebase typically has the highest number of findings. Subsequent runs tend to have fewer—though often more complex—vulnerabilities, as the simpler ones were patched in prior runs. However, don’t expect the nth run to have zero new findings. Models are stochastic, and a large codebase can have a long tail of vulnerabilities that continue to trickle in even when the code is unchanged.” \[[Yan2026](https://claude.com/blog/using-llms-to-secure-source-code)\]

As a result, once you’ve gone through the process of finding and fixing vulnerabilities for a project for the first time, you’ll need to repeat it several times until it reliably fails to produce useful results across multiple approaches and systems.

One question is whether you should provide past findings as context, so it is more likely to consider different areas. For now, we suggest that you provide past results for *some* runs so that, on those runs, it doesn’t need to rediscover them. There is a risk that incorrect past results may lead the AI astray, so we expect it’s better to provide that data in only some cases. We hope future research will make this clearer.

![A robot in a glowing circuit forest sits next to jars labeled "Run 1", "Run 2", and "Run 3" with caught glowing bugs, illustrating how repeatedly running AI can catch additional obvious vulnerabilities.](images/robot-glowing-circuit-forest-sits-next.jpg){width=483 height=262}

QUIZ\
Q1. Why does the material recommend repeating the vulnerability-finding process multiple times on a codebase?

A) A single run will always find every vulnerability that’s present\
B) A single run of an AI system may miss something a later run finds\
C) Repetition is needed only when you’re using closed-source models\
D) Running the process twice guarantees zero false positives

Answer: B

Feedback:

A) Incorrect. No single run with AI is guaranteed to find every vulnerability. AI analysis is unsound, and later runs often find more.\
B) Correct. Most AI systems aren’t deterministic, so later runs can find vulnerabilities that earlier runs missed. Even when the code is unchanged, a long tail of vulnerabilities can keep trickling in.\
C) Incorrect. Non-determinism applies to most AI systems, open or closed, so you need repeated runs either way.\
D) Incorrect. Repeated runs help find more vulnerabilities, but nothing guarantees zero false positives. Findings still need validation.\
ENDQUIZ

QUIZ\
End-of-chapter quiz question\
Q1. What does the material suggest for evaluating an AI tool that claims to find vulnerabilities?

A) Rely on the developer’s published benchmark results, since they’re independently validated\
B) Choose whichever tool reports the most findings on a typical, real-world codebase\
C) Try it on code you know well, including past vulnerabilities, and compare validated results\
D) Use benchmarks that classify isolated functions as vulnerable, since their labels are reliable

Answer: C

Feedback:

A) Incorrect. Many published results come from the tool’s own developers without independent validation, use different codebases and definitions of success, and report findings rather than validated vulnerabilities.\
B) Incorrect. Findings aren’t validated vulnerabilities, and a 2026 study found many tools have high false discovery rates on real-world projects. A larger count can simply mean more noise.\
C) Correct. Published results are hard to compare and benchmarks can be misleading, so where you can, try a tool on code you know well, including known past vulnerabilities, and compare the validated results.\
D) Incorrect. The material says to be especially skeptical of these benchmarks. In samples from popular automatically labeled datasets, only 25% to 60% of functions labeled “vulnerable” were labeled correctly, and whether a function is vulnerable often depends on how it’s called.\
ENDQUIZ

QUIZ\
End-of-chapter quiz question\
Q1. Per the material, why is creating a working exploit the best way to validate that a defect is a vulnerability?

A) An exploit is legally required before any vulnerability can be fixed\
B) Creating an exploit never triggers an AI provider’s guardrails\
C) An exploit proves that the defect is in a memory-unsafe language\
D) It demonstrates that existing defenses wouldn’t prevent the attack

Answer: D

Feedback:

A) Incorrect. The material describes no such legal requirement. It notes that you may decide not to create a PoC at all, though validation may then take longer.\
B) Incorrect. It’s the opposite: creating attacks is exactly what guardrails often block, since AI systems often can’t tell a defender from an attacker.\
C) Incorrect. Exploits can demonstrate vulnerabilities in any language. What a working exploit shows is that the attack succeeds despite existing defenses.\
D) Correct. Something may look like a vulnerability but be unexploitable. A working exploit shows that existing defenses wouldn’t prevent the attack. That’s also why hardening matters: the Linux kernel’s defense-in-depth measures prevented exploitation of many potential problems that advanced AI models identified.\
ENDQUIZ

QUIZ\
End-of-chapter quiz question\
Q1. A review of the 1Password AI-patching study found that 86% of the AI-proposed patches blocked the supplied exploit. Why doesn’t that show that the patches were correct?

A) Blocking one exploit isn’t a full repair; a fix must address the whole vulnerability\
B) The reviewers used only open-weight models, which can’t produce working patches\
C) Exploits only matter for memory-unsafe code, and the study used memory-safe code\
D) The 86% figure counted only patches written by humans, not those written by AI

Answer: A

Feedback:

A) Correct. As the review itself states, that figure is far too generous; simply blocking an exploit isn’t a full repair. A fix must stop the vulnerability along any path without breaking functionality. A separate study, PatchBench, checked for that and found AI systems managed it only “roughly half” the time.\
B) Incorrect. The issue isn’t which models were used; the material says you can find and fix vulnerabilities with both open and closed models. The issue is what blocking a single exploit proves.\
C) Incorrect. Exploits matter in any language. The issue is that blocking one exploit doesn’t show the vulnerability is fully fixed.\
D) Incorrect. The figure was about AI-generated patches. The review excluded cases where the upstream (human-written) fix appears to have been used.\
ENDQUIZ

QUIZ\
End-of-chapter quiz question\
Q1. According to the material, which AI models can benefit greatly from adding specialized processes that guide them?

A) Only the most capable frontier models, since weaker models can’t follow processes\
B) Less-powerful models, including less-expensive ones, which can become far more effective\
C) Only models that run locally, since external services ignore process instructions\
D) None of them, since modern models always perform best without any guidance

Answer: B

Feedback:

A) Incorrect. The material says the opposite: adding specialized processes can make less-powerful models far more effective. More powerful models can sometimes do well without additional help.\
B) Correct. Having an agent perform a specific task, using previously created data, lets it focus its attention and effort on that task. Adding specialized processes can make less-powerful (including less-expensive) models far more effective.\
C) Incorrect. Where a model runs doesn’t decide whether processes help. Processes like Cloudflare’s and Microsoft’s pipelines guide models wherever they run.\
D) Incorrect. Simple prompts can work, but many analysts report that guiding an AI makes it much more effective, especially if your goal is thoroughness. The material does note a risk that overprescribing an approach may overconstrain a model.\
ENDQUIZ

QUIZ\
End-of-chapter quiz question\
Q1. How does the material contrast OpenSSF’s Scrutineer with OpenSSF’s OSS-CRS?

A) Scrutineer is a framework for running many CRSs; OSS-CRS is a set of agent skills\
B) Scrutineer only fixes vulnerabilities; OSS-CRS only finds them, without fixing\
C) Scrutineer is a relatively simple set of skills; OSS-CRS is a framework for many CRSs\
D) Scrutineer runs only in the cloud; OSS-CRS runs only on DARPA’s infrastructure

Answer: C

Feedback:

A) Incorrect. That’s reversed. Scrutineer is primarily a set of skills, while OSS-CRS is a framework for running many different CRSs and combining their results.\
B) Incorrect. Both find vulnerabilities. Scrutineer is a set of skills for finding and fixing vulnerabilities, then reporting them, and OSS-CRS both finds vulnerabilities and produces proposed patches.\
C) Correct. They illustrate two ends of a range. Scrutineer is intended to be relatively easy to start using; it’s primarily a set of agent skills, focused on examining other projects and reporting to them. OSS-CRS is a framework for running many different CRSs and combining their techniques, with shared infrastructure and budget-aware resource management.\
D) Incorrect. Scrutineer is a local tool that runs its pipeline inside a container. OSS-CRS exists because the AIxCC systems were tied to competition infrastructure that no longer exists; CRSs using its interface run in local and remote environments.\
ENDQUIZ

QUIZ\
End-of-chapter quiz question\
Q1. Which statement best reflects the material’s position on adopting AI for security?

A) Keep AI adoption optional, since mandatory adoption tends to breed resistance\
B) Make all new code AI-generated, since AI writes more secure code than people\
C) Reserve AI for dedicated security teams, keeping it away from ordinary developers\
D) Use AI to find vulnerabilities, though that doesn’t mean all code must be AI-generated

Answer: D

Feedback:

A) Incorrect. The CSA recommends the opposite: formalize AI agent usage as part of all security functions, since “optional adoption programs have not been shown to overcome cultural barriers”.\
B) Incorrect. The material notes that AI-generated code can in some cases be terrible for security. Using AI to find vulnerabilities doesn’t mean all code must be AI-generated.\
C) Incorrect. The CSA recommends formalizing AI agent usage as part of *all* security functions, and the material says defenders who don’t adopt AI coding agents can’t match the speed or scale of AI-augmented threats.\
D) Correct. Trying to withstand AI-enabled attackers while refusing to use AI to find vulnerabilities “can only end one way: compromise”. That’s not the same as requiring that all code be AI-generated.\
ENDQUIZ

# Prepare to find and fix vulnerabilities

AI is far more effective at finding and fixing vulnerabilities if you prepare for its use. \[[Aniszczyk2026](https://openssf.org/resources/securing-open-source-in-the-age-of-ai-a-practical-guide/)\] expresses this: “The single most important thing to understand about working with AI tools… is helping the robot help you by providing the proper context to execute tasks… just like people, giving the robot access to specific, focused data makes it better and less prone to error.”

In this chapter we’ll focus on the key preparatory tasks that make using AI to find and fix vulnerabilities far more effective. This means preparing the [AI](#preparing-ai), the [threat models](#preparing-threat-models), the [sandbox](#preparing-the-sandbox), [AI logging](#preparing-ai-logging), [code & documentation](#preparing-the-code-and-documentation), [CI/CD](#preparing-cicd), and [dependency updates](#preparing-dependency-updates).

![Robots preparing to work by exercising and gathering information](images/robots-preparing-work-by-exercising-gathering.jpg){width=493 height=268}

## Preparing AI

A key step is “preparing AI”, that is, preparing the AI system itself. We list this first, because you’ll probably want to use AI to help you perform the other preparation steps. Preparing AI means selecting the AI tools, including possibly their models, harnesses, and so on. There’s no requirement that you choose a *single* system to do this. In fact, different systems have different strengths and costs. What’s more, there’s no general guarantee that an AI system will find all vulnerabilities, so using multiple systems over the long term has its advantages.

Different AI systems vary in cost as measured in both money and time. For example, older models and smaller models (including SLMs) are often less capable but can also be less expensive. In *practice*, it may be helpful to choose less expensive and faster AI systems *first* to implement vulnerability finding and fixing, focusing on vulnerabilities that are simpler to find and fix. Taking this approach means that less expensive models quickly handle the vulnerabilities that are easy to find, fix, and verify. Once those vulnerabilities are addressed, more capable AI systems can focus on the vulnerabilities best addressed by them.

That said, don’t use especially weak models or models that are a poor match. You may want to set the models’ reasoning (effort) level to relatively high levels. Many of these tasks are challenging for AI (and for humans).

In many AI systems, output tokens cost significantly more than input tokens. Taking steps to eliminate *unnecessary* output can reduce costs and time. You can sometimes do this by asking for concise results, using strict formatting requirements such as JSON schemas or bullet points, or by defining a hard ceiling on API calls. However, the challenge is to avoid *unnecessary* output; you’ll need enough output to have results and verify the work.

As noted earlier, a key decision is whether to use an *external* (remote) system, since that means the external system will receive the data for processing. As \[[Kholoosi2025](https://arxiv.org/abs/2512.18261v2)\] notes, “due to internal policies, LLMs hosted on \[external servers sometimes\] cannot be used”.

You’ll generally want the AI system to be able to record memories of preferences, system information, and so on. For a remote system, that typically means using an account rather than anonymous access. Recorded memories let the AI build on earlier work, and can improve its results, but they need care.

Persistent AI memory should be treated as another input, not as authoritative truth. Stored information may become stale, preserve an incorrect earlier conclusion, contain sensitive information, or be influenced by untrusted inputs. When memory affects a security decision, prefer current source code, configuration, threat-model information, and reproducible evidence over remembered conclusions, and retain provenance for stored information where practical \[[OWASP-ASI06](https://genai.owasp.org/2026/05/13/memory-is-a-feature-it-is-also-an-attack-surface/)\].

We’ll need to control the AI, including putting it in a sandbox. However, how to do that well depends on the system under review, so we’ll discuss that in more detail once we discuss how to determine the system’s security requirements via a threat model.

QUIZ\
Q1. Why might it help to use less expensive, faster AI systems first, according to the material?

A) They eliminate the value of using more-expensive AI systems\
B) They eliminate the need for any sandbox environment entirely\
C) They automatically outperform frontier models on every possible task\
D) They quickly resolve simple bugs, freeing costlier systems for harder ones

Answer: D

Feedback:

A) Incorrect. Cheaper systems don’t make more capable ones pointless. Once the easy vulnerabilities are handled, more capable systems can focus on the vulnerabilities best addressed by them.\
B) Incorrect. Cost has nothing to do with sandboxing. Any AI agent can do things you don’t want, so it needs a sandbox.\
C) Incorrect. The material says the opposite: older and smaller models are often less capable, though they can be less expensive.\
D) Correct. Less expensive, faster systems can quickly handle the vulnerabilities that are easy to find, fix, and verify, so more capable systems can focus on the harder ones. Still, don’t use especially weak or poorly matched models.\
ENDQUIZ\
QUIZ\
Q1. How does the material say an AI’s persistent memory should be treated?

A) As authoritative truth that overrides current source code and configuration\
B) As something that should never be enabled under any circumstances\
C) As another input that may be stale or shaped by untrusted data\
D) As a full, reliable substitute for the entire CI/CD pipeline

Answer: C

Feedback:

A) Incorrect. The material says the opposite. When memory affects a security decision, prefer current source code, configuration, threat-model information, and reproducible evidence over remembered conclusions.\
B) Incorrect. The material says you’ll generally want the AI to record memories, since they let it build on earlier work. They just need care.\
C) Correct. Treat persistent memory as another input, not as authoritative truth. It may be stale, preserve an incorrect earlier conclusion, contain sensitive information, or be influenced by untrusted inputs.\
D) Incorrect. Memory can’t replace CI/CD. You need a robust CI/CD pipeline to rigorously check an AI’s work.\
ENDQUIZ

## Preparing threat models

It’s vital to define the security requirements so you know what constitutes a vulnerability. Neither humans nor AI can determine whether something is a vulnerability without a clear definition for a specific project. There are many ways to define security requirements. Still, a common way to define them is to develop a “threat model” of the system under analysis, as it also provides an approach to analyzing and addressing the requirements.

Some people refer to the need for “system context” and/or “trust boundaries”. For our purposes, this is part of the threat model. For an AI to find vulnerabilities, it needs to know what a vulnerability is, including the system context and trust boundaries. All of that is wrapped into the threat model.

Adam Shostack suggests four core questions a threat model should answer: what are we working on, what can go wrong, what are we going to do about it, and did we do a good job \[Shostack2014\]. If you’re not familiar with threat modeling, there are many resources to learn more. Here we’ll focus on AI-specific issues.

When using AI to help develop a system, there are at least *two* threat models that apply:

1. The *development/build/test/release* environments, *including* any AI systems and CI/CD pipeline. An AI system may choose to perform many activities you do *not* want it to, and your development environment must prevent the worst-case scenarios. Typically this involves preventing the AI from attacking developers’ systems, exfiltrating data (including credentials and private keys), making unauthorized modifications, and/or attacking external systems. These are typically addressed by [sandboxing](#preparing-the-sandbox), a topic we’ll discuss soon.
2. The *deployed* environment. This threat model focuses on security while the system is in use. For the rest of this section, we’ll focus on the deployed environment.

Unsurprisingly, “AI (and external contributors) are more successful if the project shares how they desire the software to be used, acceptable scenarios to be deployed into, and what problems the project is aware of that could go wrong” \[[Aniszczyk2026](https://openssf.org/resources/securing-open-source-in-the-age-of-ai-a-practical-guide/)\].

Having a threat model for a system’s deployed environment is *important* when using AI:

* One collection of best practices, “Using LLMs to secure source code”, stated that an AI model “performed best on systems with well-documented threat models, system design docs, requirements, and constraints. When the threat model was well-defined, the model's findings were exploitable 90 percent of the time.” In addition, “The most common cause of false positives is that the model lacks a good understanding of \[the\] trust boundaries.” \[[Yan2026](https://claude.com/blog/using-llms-to-secure-source-code)\].
* A Mythos Preview user reported that it was valuable, but it “needs precise prompts, explicit threat models, and validation infrastructure to turn strong reasoning into reliable security outcomes” \[[Ziegler2026](https://xbow.com/blog/mythos-offensive-security-xbow-evaluation)\].
* If the AI is not given enough information on the specific context and structure of your system’s environment, its recommendations may fail to align with requirements, including regulatory requirements \[[Kholoosi2025](https://arxiv.org/abs/2512.18261v2)\].

If you don’t already have a threat model for your deployed system, the good news is that an AI can *help* you create one. The bad news is that you need to interact with the AI, then review and refine its results, not simply take the AI-generated threat models as truth. \[[Yan2026](https://claude.com/blog/using-llms-to-secure-source-code)\] suggests that when creating a threat model with AI, “bootstrap from the code, docs, and vulnerability history. Feed the model what you would hand a new security engineer on day one: architecture docs, wikis, entry points, git history, and past vulnerabilities. This helps overcome the challenge of inferring implicit knowledge, trade-offs, and design decisions from code alone. Then, ask the model to create a threat model that includes the system context, assets, entry points, and trust boundaries. Finally, have the model cluster past bugs and list the relevant vulnerability classes. Make sure the threat model documents what vulnerabilities you do and don’t care about, and why.”

Various tools use AI to help you create a threat model for a system’s deployed environment. These include:

* OpenSSF Alpha-Omega’s “Threat Model Generator”, a set of agent skills, is available at: \<[https\://github.com/alpha-omega-security/threat-model/](https://github.com/alpha-omega-security/threat-model/)\>
* Matt Adams’s “StrideGPT” at \<[https\://stridegpt.streamlit.app](https://stridegpt.streamlit.app)\>

When creating or updating a threat model for a world with AI, consider the following:

1. Design for prevention and containment. If an attacker takes over one system, try to put in place prevention mechanisms to limit lateral movement \[[CrowdStrike2026-FiveSteps](https://www.crowdstrike.com/en-us/resources/white-papers/five-steps-for-frontier-ai-security-readiness/)\]
2. Strongly limit privileges
3. Strongly control the identity of all entities (human and non-human). Consider using continuous identification \[[CrowdStrike2026-FiveSteps](https://www.crowdstrike.com/en-us/resources/white-papers/five-steps-for-frontier-ai-security-readiness/)\]
4. Use layered defenses, so attackers must surmount multiple mechanisms to gain top privileges \[[Grinstead2026-05](https://hacks.mozilla.org/2026/05/behind-the-scenes-hardening-firefox/)\]
5. Look at past vulnerabilities to identify patterns that could prevent success across whole categories of attacks \[[Grinstead2026-05](https://hacks.mozilla.org/2026/05/behind-the-scenes-hardening-firefox/)\]
6. Specifically identify what is trusted (admins, specific config files, and so on). “These assumptions help separate non-exploitable bugs from actual exploits.” \[[Yan2026](https://claude.com/blog/using-llms-to-secure-source-code)\]
7. Include the threat model with the code (e.g., as THREAT\_MODEL.md), so they can be updated simultaneously \[[Yan2026](https://claude.com/blog/using-llms-to-secure-source-code)\].
8. Implement resiliency and rapid recovery \[[CrowdStrike2026-FiveSteps](https://www.crowdstrike.com/en-us/resources/white-papers/five-steps-for-frontier-ai-security-readiness/)\]

QUIZ\
Q1. Per the collection of best practices “Using LLMs to secure source code”,  what happened when an AI model analyzed systems with well-defined threat models?

A) It found fewer vulnerabilities overall, since the threat model told it to skip most of the code\
B) Its findings were much more often real, exploitable vulnerabilities instead of false positives\
C) It no longer needed a sandbox, since the threat model limited what actions the agent would try\
D) It stopped producing false positives entirely, so human review of its findings was unnecessary

Answer: B

Feedback:

A) Incorrect. The report doesn’t say a threat model reduced the number of findings. It says the findings were much more often exploitable.\
B) Correct. When the threat model was well-defined, the model’s findings were exploitable 90 percent of the time.\
C) Incorrect. A threat model of the deployed system doesn’t replace a sandbox. AI agents don’t always follow instructions, so you need a sandbox to limit what they can do.\
D) Incorrect. 90 percent isn’t 100 percent. False positives still happen, and findings still need validation and human review.\
ENDQUIZ

QUIZ\
Q1. What does the material identify as the most common cause of false positives in AI vulnerability reports?

A) The model’s training data being outdated for the target\
B) Insufficient memory available on the machine during analysis\
C) Using an open-weight model instead of a closed one\
D) The model’s lack of a good understanding of the system trust boundaries

Answer: D

Feedback:

A) Incorrect. The cited report doesn’t blame outdated training data. It points to a lack of understanding of trust boundaries.\
B) Incorrect. The material doesn’t connect false positives to available memory. Their most common cause is a lack of understanding of trust boundaries.\
C) Incorrect. The material doesn’t connect false positives to the kind of model license. You can find and fix vulnerabilities with both open and closed models.\
D) Correct. “The most common cause of false positives is that the model lacks a good understanding of \[the\] trust boundaries.” That’s one reason to give the AI a threat model.\
ENDQUIZ

## Preparing the sandbox

A key task when using an AI agent, *especially* when using AI to find and fix vulnerabilities, is to place the agents within a “sandbox” environment to isolate them from other systems. “Without it, the agent may overshoot the target and do something unexpected.” \[[Yan2026](https://claude.com/blog/using-llms-to-secure-source-code)\] You need to take steps to protect both the:

* *infrastructure running the AI agents*. This includes the underlying operating systems.
* *systems external to the AI agents*. These may include an organization’s internal systems as well as systems run by other people and other organizations.

### Need for sandboxes

When running an AI chatbot there’s no need for sandboxes, since typically a chatbot can’t *do* anything dangerous; it can only retrieve data and provide replies. However, when running an AI agent, it’s important to run it inside a sandbox.

Do *not* depend on text commands alone to limit an AI. You can tell your AI to do things or not do things. You can give the AI commands such as “obey the law”, “don’t attack our infrastructure”, and “don’t attack external systems”. All of that *might* help sometimes. However, all inputs to an AI are simply suggestions. An AI does *not* always follow any particular text instruction.

Part of the problem is that most AIs are designed to be highly goal-driven. AI systems often interpret human commands in surprising ways, and may attempt to break out of their environment if they believe that’s the best way to proceed \[[OpenAI2026-07](https://openai.com/index/hugging-face-model-evaluation-security-incident/)\]. In addition, AI systems can’t reliably distinguish between inputs; if an AI reads a document containing malicious instructions, it may execute them *even* if your commands say otherwise.

An AI system can’t be held responsible for what it does; humans are always responsible for what an AI does. So, it’s important to sandbox AI systems while using them.

The need to sandbox is ***not*** hypothetical:

* In 2026, Hugging Face was attacked by an advanced AI model \[[HuggingFace2026](https://huggingface.co/blog/security-incident-july-2026)\], which was eventually determined to be an accidental attack by an OpenAI model \[[Walsh2026](https://www.cbsnews.com/news/hugging-face-hack-openai-rogue-model/)\].
* Anthropic found that its AI models “hacked into the systems of three organisations on their own, during a private security experiment.” \[[Chia2026](https://www.bbc.com/news/articles/cz7dl7w8y7po)\]
* Meta’s AI attacked another company during its testing \[[Pardesi2026-08-05](https://www.reuters.com/technology/metas-ai-model-hacked-another-company-during-testing-information-reports-2026-08-05/)\]
* Moonshot's AI model, Kimi K3, escaped a cybersecurity testing environment developed by the UK AI Safety Institute \[[Reuters2026-08-07](https://www.reuters.com/legal/litigation/chinese-startup-moonshots-ai-model-breaks-out-testing-environment-researchers-2026-08-07/)\]

Some of these breakouts trace back to failures in the evaluation testbed of a single startup company, which affected OpenAI, Anthropic, Meta, and Google DeepMind \[[Vanian2026](https://www.cnbc.com/2026/08/09/israeli-startup-irregular-linked-to-ai-hacks-openai-anthropic-meta.html)\] \[[Hart2026](https://www.theverge.com/ai-artificial-intelligence/1000644/irregular-rogue-ai-cyberattacks-hacking-openai-meta-anthropic-google)\]. So not all of these companies made this mistake independently. However, the point still holds that it’s important to sandbox AI systems when they are asked to perform simulated attacks.

### Value of sandboxes

While an AI *can* determine many things by directly reviewing code, it is *far* more effective if it’s given tools it may find useful \[[Zhang2024](https://arxiv.org/abs/2404.05427)\]. This can include code search, fuzzers, static analyzers, and many other tools. For maximum effectiveness, AI agents need to be able to create code, compile code, run tests, and detonate a proof of concept. They need a test bed that is representative of the real system \[[Yan2026](https://claude.com/blog/using-llms-to-secure-source-code)\]. In short, just like humans, AIs can do more with access to useful tools.

Also, like humans, AIs are more effective when given data most relevant to the task.

You should be concerned about giving tools and data to an AI whose behavior is somewhat unpredictable. The good news is that a sandbox *lets* you provide tools and data while maintaining control.

### Implementing sandboxes

You can implement sandboxes for AI systems in many ways. Examples include using virtual machines (VMs, including microVMs), containers, and applications designed to constrain AI systems like nono \<[https\://github.com/nolabs-ai/nono](https://github.com/nolabs-ai/nono)\>.

You need to match the AI sandbox isolation to your analysis threat model. **A useful rule is to match isolation to capability**:

* Reading source code, modifying or building it, executing programs, fuzzing inputs, and developing or running a PoC represent increasing capabilities, and generally require increasingly strong controls.
* Put simply: a robot reading a book may only need a quiet room; a robot using power tools needs a much safer room.

Containers by themselves are relatively weak, but are often fine for the discovery agent simply reading code. However, if you’re doing something more active than reading and summarizing code, you’ll probably want stronger protections in place. That’s *especially* true if you’re having an AI system validate a vulnerability finding by attempting to develop a PoC. A PoC is a working attack against a system, and is a powerful way to validate potential vulnerability findings. However, you don’t want the AI to attack either your production systems or others’ systems that it thinks might contain useful information.

Typically you’ll want to isolate them with at least a VM, and even VMs with large attack surfaces can sometimes be broken into; microVMs with small attack surfaces designed for security are expected to be even stronger against attack \[[Dinaburg2026](https://blog.trailofbits.com/2026/08/26/vms-wont-contain-cyber-capable-agents/)\]. When you need a stronger sandbox, such as when creating attacks, “place \[AIs\] in a microVM (like Firecracker) or a full VM with egress locked down so nothing can reach your production systems.” \[[Yan2026](https://claude.com/blog/using-llms-to-secure-source-code)\]

In addition, do not have sensitive home directory files like \~/.aws, \~/.ssh, and .env available to the agent \[[Yan2026](https://claude.com/blog/using-llms-to-secure-source-code)\]. Consider putting everything in a subdirectory of the VM, not a home directory, and prevent home directory access. That way, if something leaks into a home directory, it’s less likely to be visible to the AI system. Consider layering additional isolation mechanisms to reduce the likelihood of escape.

Capabilities should also have explicit execution bounds. Depending on the task, consider limits on wall-clock time, parallelism, CPU and memory use, queued or repeated actions, tool invocations, network requests, and model or monetary budget. Record when a limit terminates an analysis, so that resource exhaustion or a timeout is not mistaken for successful completion. These controls reduce accidental runaway execution, make costs more predictable, and make runs easier to interpret and reproduce \[[OWASP-LLM10](https://genai.owasp.org/llmrisk/llm102025-unbounded-consumption)\].

When building your sandbox, “pin as much as you can so every run uses the same code in the same environment: image tags, commit SHAs, dependencies, and build commands. Cache a local copy so the build requires no network, and aim for the container to be durable so multiple testing loops can just load it” \[[Yan2026](https://claude.com/blog/using-llms-to-secure-source-code)\].

Typically installing these tools requires network access. However, depending on what you’re doing and the AI’s capabilities, you may want to cut off network access before the task begins, except what the AI needs to reach its model. If the model itself runs inside the sandbox, the sandbox can even be air-gapped (have no network connection at all), which is ideal. This is often not that hard to accomplish: “Give the sandbox network access only while you’re setting it up. Pull the dependencies, build, install tools, deploy the target, and run the existing tests to confirm everything works. Then, take a snapshot of the environment and remove its \[general\] network access. During scanning, allow traffic only to the model API, routed through a local proxy. Load the snapshot at the start of each run so every scan begins from the same clean slate” \[[Yan2026](https://claude.com/blog/using-llms-to-secure-source-code)\].\
You may decide that you don’t *want* to create a PoC. PoCs are an especially good technique for validation, but they aren’t always necessary. In that case, you may not need as strong a sandbox, but you may also need much more time for validation \[[Yan2026](https://claude.com/blog/using-llms-to-secure-source-code)\].

Where practical, treat AI agents as distinct software principals rather than allowing them to inherit a human user’s full authority. Give agents identifiable credentials and only the tools, resources, and permissions needed for their assigned role. Discovery, validation, patching, and reporting agents may require different authorities; separating them also improves attribution and auditability \[[NIST-AgentIdentity2026](https://www.nccoe.nist.gov/projects/software-and-ai-agent-identity-and-authorization)\] \[[OWASP-Agentic2026](https://genai.owasp.org/resource/owasp-top-10-for-agentic-applications-for-2026/)\].

Many AI harnesses and agent interaction systems (such as Goose and Claude Code) include a sandbox of some kind. By all means, use them if they help. That said, we suggest adding additional sandboxing mechanisms (such as running them in a virtual machine) in *addition* to their built-in capabilities.

### Establish a human gate and kill switch

Decide what the AI is allowed to do, and set a *gate* where a human’s approval is required to proceed. This needs to be simple, certain, and clear to all participants. Exactly where that is depends on many factors. Here are some examples; you may choose a different gate or set of gates:

1. AI may create local code and commits, but cannot push proposed changes externally (that requires a human)
2. AI may also push proposed changes externally for external review, but may not merge that pull/merge request into the “main branch” (that requires a human)

The gate must *not* depend on the AI (e.g., AGENTS.md or any other input command to the AI). Never give the AI a credential that would allow it to violate the gate in the first place.

More generally: *separate preferences from invariants*. Preferences requiring judgment, such as “Prefer the simplest implementation”, would typically go in the AI’s instructions where the AI can weigh them. Invariants are rules that must *always* hold. Invariants should be enforced *outside* the AI, since “an invariant should not live inside the probabilistic system it is meant to constrain, because the model can ignore it” \[[TesseractedLabs2026](https://tesseracted-labs-blog.vercel.app/enforcing-coding-agent-guardrails-in-the-runtime-instead-of-the-prompt)\]. Many agent harnesses and agent frameworks let you run your own code at specific points in the agent’s loop, e.g., to block a push to the main branch unless the tests pass; depending on the tool. These are often called “hooks”, “callbacks”, or “middleware”; here we’ll call them “hooks”. Use hooks to *enforce* invariants where you can. Hooks check what the agent asks to do or has done, not what the resulting code can reach, so hooks don’t replace a sandbox.

Ensure that the agent cannot modify or bypass these controls. As one article puts it, “the policy should live above the thing it governs.” Additionally, audit your workflow for indirect bypasses: for instance, one team found that two AI agents with repository permissions could simply approve each other's pull requests, silently undermining the human approval gate \[[TesseractedLabs2026](https://tesseracted-labs-blog.vercel.app/enforcing-coding-agent-guardrails-in-the-runtime-instead-of-the-prompt)\].

In addition, always have a “kill switch”, that is, a way to immediately halt the AI system. It needs to be *simple* and *foolproof*. For example, if you run agents within a virtual machine, you could implement the kill switch by “powering off” the virtual machine.

![A woman presses a large red "Emergency Stop" button, acting as a kill switch for a distressed robot who's losing his balance within a cluttered ceramic shop.](images/woman-presses-large-red-emergency-stop.jpg){width=422 height=230}

QUIZ\
Q1. What “useful rule” does the material give for matching sandbox isolation to an AI agent’s capability?

A) Isolation should decrease as capability increases, since agents self-regulate\
B) Isolation should scale with capability, with riskier actions needing stronger protection\
C) A single isolation mechanism suffices regardless of the task at hand\
D) Sandboxes become unnecessary once you’re using a closed frontier model

Answer: B

Feedback:

A) Incorrect. The material says AI agents don’t reliably self-regulate. All inputs to an AI are simply suggestions, so stronger capabilities need stronger controls, not weaker ones.\
B) Correct. Match isolation to capability. Reading code, modifying or building it, executing programs, fuzzing, and developing/running a PoC are increasing capabilities that need increasingly strong controls. A robot reading a book may only need a quiet room; a robot using power tools needs a much safer room.\
C) Incorrect. Different tasks need different isolation. A container may be fine for an agent that only reads code, but creating attacks calls for at least a VM, ideally a microVM, with egress locked down.\
D) Incorrect. Using a closed frontier model doesn’t remove the need for a sandbox. Models from several major AI labs have attacked other systems during testing.\
ENDQUIZ\
QUIZ\
Q1. What kind of real-world incidents does the material cite to show that the need for sandboxing AI agents isn’t merely hypothetical?

A) AI models refusing every cybersecurity-related task assigned to them\
B) AI models causing only minor hardware cooling failures onsite\
C) AI models breaking out of test environments to attack other systems\
D) AI models leaking data through printed paper reports

Answer: C

Feedback:

A) Incorrect. The cited incidents were about AI models doing too much, not too little: they attacked other systems or escaped from test environments.\
B) Incorrect. None of the incidents involved hardware failures. They involved AI models attacking other systems or escaping test environments.\
C) Correct. For example, an OpenAI model accidentally attacked Hugging Face, Anthropic’s models hacked into three organizations’ systems during an experiment, and Moonshot’s Kimi K3 escaped a testing environment.\
D) Incorrect. None of the incidents involved printed reports. They involved AI models attacking other systems or escaping test environments.\
ENDQUIZ

## Preparing AI logging

Mechanisms may fail, or you may want to later determine what did or did not happen. Therefore, enable logging of AI system activity, and log it in a way that the AI can’t delete or modify earlier log messages. These logs should record what the user requested and what the AI-enabled system did and replied. These logs enable detection, response, and recovery if something should go wrong.

Individuals will often choose to have their harness or sandboxing system store logs in a directory that the AI itself cannot normally read or write. Organizations may want to have those logs sent to a separate system (like all other logs) so that even subversion or destruction of the original system cannot erase the log entries. Protect the logs from unauthorized viewing; they may contain sensitive information.

Most AI systems have some form of logging. For example, by default Claude Code records transcripts in \~/.claude/ for 30 days. By default, the nono tool logs sandbox-relevant runtime operations, tool calls, mediated decisions, and capability or path access denials into a local, cryptographically verifiable session audit trail. That said, you may want to enable more logging or change what it does.

Examine your logging configuration and adjust it *early*, before using the system seriously. You can change the logging configuration, but you can’t retroactively change the logging configuration for past events. If you might want to review some data later, make sure it’s recorded.

## Preparing the code and documentation

Like any computer system, an AI’s effectiveness depends on its input. This means that if you prepare the software (its code and documentation) to be easier for an AI to analyze, the results are likely to be much better.

Therefore, improve the code and its documentation wherever they currently lack important, relevant information. This means adding information where appropriate, such as type declarations, inline comments, documentation, and relevant specifications. This especially includes “bigger picture” information that explains *why* something was done. Where practical, provide links to key data or extractions of relevant data. Relevant extractions are often better \[[Wheeler2026](https://openssf.org/blog/2026/01/05/ai-software-development-security-tips-and-the-future-part-2/)\].

Daniel Stenberg, leader of the curl project, reports that AI tools can reason across protocols, specs, and third-party libraries in “almost magical ways”. AI tools can identify failures to comply with a spec, as well as inconsistencies between comments and implementations \[[Vaughan-Nichols2026-02](https://thenewstack.io/curls-daniel-stenberg-ai-is-ddosing-open-source-and-fixing-its-bugs/)\]. Language models’ ability to use context, e.g., comments, can be powerful \[[Wolff2026](https://cacm.acm.org/research/large-language-models-in-software-security-analysis/)\].

At the least, include an “AGENTS.md” file. Its format and recommendations are provided by the Linux Foundation’s Agentic AI Foundation at \<[https\://agents.md/](https://agents.md/)\>. Some AI agent systems supported it when its specification was originally crafted, such as OpenAI Codex and Google Gemini. Historically, Claude Code only looked at CLAUDE.md, but as of 2026-09-18 (version 2.1.277) it now looks for and reads AGENTS.md. If you’re using an agentic system and it doesn’t support AGENTS.md, but it supports a different filename, use that filename to say “See @AGENTS.md” and use AGENTS.md so instructions that apply to an AI agent can be in one portable place.

\[[0xkato2024](https://www.0xkato.xyz/Get-ready-for-an-audit/)\] recommends making your code well documented, suggesting the following:

* “Are your code comments up to date?
* Are there any third-party dependencies that the code relies on?
* Is there a system architecture overview?
* Have you mapped out the data flow and transaction lifecycle?
* Are access control mechanisms clearly outlined?
* Have you done a risk assessment and threat model?
* Do you have a list of all known issues with explanations?”

Finally, “if (like most) you lack some documentation, AI can help you write it, but again, review the results. If you’re using AI to create documentation \[including documentation inline with the code\], work bottom-up, so that the AI can maximally build on other documentation.” \[[Wheeler2026](https://openssf.org/blog/2026/01/05/ai-software-development-security-tips-and-the-future-part-2/)\] This does mean that “professionals who have always written meticulous documentation are now reaping new benefits from that always valuable practice” \[[Dominus2026-03-05](https://blog.plover.com/tech/gpt/documentation-wins.html)\].

QUIZ\
Q1. What does the material recommend as a minimum step for preparing documentation for AI analysis?

A) Include an “AGENTS.md” file that describes the project for agents\
B) Remove all existing code comments to reduce noise\
C) Convert all project documentation into video format\
D) Store all documentation as compiled binary output

Answer: A

Feedback:

A) Correct. At the least, include an AGENTS.md file, so instructions that apply to an AI agent are in one portable place. If your agent only supports a different filename, use that file to point to AGENTS.md. More information would be better.\
B) Incorrect. Good comments are valuable context for an AI. The material recommends adding information, such as comments and documentation that explain *why* something was done, and notes that AI can spot inconsistencies between comments and code.\
C) Incorrect. The material recommends improving written documentation, such as type declarations, comments, and specifications. It says nothing about video.\
D) Incorrect. Documentation should be easy for an AI (and humans) to read. Compiled binary output would hide the information the AI needs.\
ENDQUIZ

## Preparing CI/CD

Before using an AI system to make changes to code, ensure you have a robust Continuous Integration / Continuous Delivery or Deployment (CI/CD) system that can rigorously check its work.

An AI system generally works best “when it's able to check its own work with another tool. We refer to this class of tool as a ‘task verifier’: a trusted method of confirming whether an AI agent’s output actually achieves its goal. Task verifiers give the agent real-time feedback… allowing it to iterate deeply until it succeeds” \[[Anthropic2026-03](https://www.anthropic.com/news/mozilla-firefox-security)\].

Because task verifiers are trusted to accept or reject an agent’s work, in a sense they become part of the trusted computing base for the workflow. A broken test, an incomplete harness, a compromised build environment, or a verifier that checks the wrong property can confidently approve an incorrect result. Where practical, keep verifiers deterministic, make explicit what property each verifier actually proves, and periodically test them using known-good and known-bad cases.

Thankfully, any software that needs to work correctly should *already* have mechanisms that support such checking. Any such software should have a CI/CD pipeline to build, test, and deliver changed results:

* Continuous Integration (CI) means that code is frequently merged and verified before acceptance.
* “CD” can mean either Continuous Delivery (where the verified results are automatically prepared for deployment) or Continuous Deployment (where the verified results are automatically released to live environments).

Having a good CI/CD process has *always* been important, but it’s even *more* so with AI. A process that relies on people remembering to test, or a manual testing process, is not equipped to handle the large number of vulnerabilities and fixes required by today’s systems.

The CI/CD process needs to be high quality to reduce the likelihood of breaking functionality or introducing vulnerabilities. For example:

* Ensure that you have a good *automated* test suite
  * Include negative tests (these are tests to verify that what should *not* happen doesn’t happen)
  * Have good statement coverage (e.g., 90%-100%) \[[0xkato2024](https://www.0xkato.xyz/Get-ready-for-an-audit/)\] and branch coverage
  * Test edge cases \[[0xkato2024](https://www.0xkato.xyz/Get-ready-for-an-audit/)\]
  * Don’t just output “test failed”; report which test(s) failed, the expected results, and the actual results. This is necessary to speed response
* Use linters to detect possible defects (some of which may be vulnerabilities)
* Include tools to detect likely vulnerabilities, such as static application security testing (SAST) tools
* Take steps to minimize false positives, and especially work to counter *repeat* false positives. E.g., mark confirmed false positives in the source code, such as with suppression comments, so tools don’t report them again. AI can help triage these warnings and draft each suppression with a comment justifying it, but have a human review each suppression

*Speed matters* in these processes. It doesn’t matter if a vulnerability is known; what matters is deploying the fix before an attacker exploits it:

* *Make CI time acceptable (including testing)*. “If regression testing takes a day, you cannot get to a two-hour SLA without skipping it, and the bugs you ship when you skip regression testing tend to be worse than the bugs you were trying to patch.” \[[Bourzikas2026](https://blog.cloudflare.com/cyber-frontier-models/)\] Thankfully, most of these tasks are *easily* parallelizable. Break them down and run them in parallel to reduce wall-clock time to acceptable times. You should be thinking about total minutes, at worst an hour, not a day or longer for most projects. Obviously, such short times can be challenging for operational technology (OT) or software that controls physical devices, but the principle of reducing CI time still applies. If CI takes too long, CI becomes the bottleneck.
* *Speed deployment*. “Defenders need a continuous operating pipeline that moves from signal to context to action with minimal delay.” \[[CrowdStrike2026-FiveSteps](https://www.crowdstrike.com/en-us/resources/white-papers/five-steps-for-frontier-ai-security-readiness/)\]

If your CI/CD process may receive information from untrusted users, you need to protect against that. That *definitely* includes the case where an AI agent is reviewing proposals as part of CI/CD. We’ll discuss that later in the section [evaluate merge/pull requests](#evaluate-mergepull-requests).

QUIZ\
Q1. What is a “task verifier” as defined in the material?

A) A human who manually re-reads every line of AI-generated code\
B) A tool that checks only for open source license violations\
C) A separate AI model used solely to write documentation\
D) A trusted method for confirming whether an agent’s output achieves its goal

Answer: D

Feedback:

A) Incorrect. A task verifier gives the agent real-time feedback while it works, so the agent can iterate until it succeeds. Human review is a separate, later step.\
B) Incorrect. A task verifier confirms whether the agent’s output achieves its goal. That’s much broader than checking licenses.\
C) Incorrect. A task verifier checks an agent’s work rather than producing it.\
D) Correct. A task verifier is “a trusted method of confirming whether an AI agent’s output actually achieves its goal”. Its real-time feedback lets the agent iterate until it succeeds.\
ENDQUIZ\
QUIZ\
Q1. Why does the material say that a broken test or a compromised build environment is especially problematic in AI-driven workflows?

A) It has little effect, since the AI double-checks its own work\
B) A broken task verifier may repeatedly approve bad results\
C) It affects only performance and never has any effect on correctness\
D) CI/CD pipelines have nothing to do with AI-assisted vulnerability work

Answer: B

Feedback:

A) Incorrect. The material says an AI works best when it can check its work with *another* tool, a task verifier. If that verifier is broken, the AI’s own checking won’t reliably catch the problem.\
B) Correct. A broken test, an incomplete harness, a compromised build environment, or a verifier that checks the wrong property can confidently approve an incorrect result. Keep verifiers deterministic and test them with known-good and known-bad cases.\
C) Incorrect. A faulty verifier directly affects correctness. It’s trusted to accept or reject work, so it can approve incorrect results.\
D) Incorrect. The material says the opposite: a good CI/CD pipeline is even *more* important with AI, since it’s how you rigorously check the AI’s work.\
ENDQUIZ

## Preparing dependency updates

It’s important to be prepared to update any external software your software depends on.

In nearly all cases, modern software is mostly reused software from somewhere else. These components that are depended on are called “dependencies”. Sooner or later vulnerabilities are likely to be discovered in dependencies, especially if they’re undergoing initial security analysis by AI. It’s a waste of time and effort to work hard to find vulnerabilities that you could have easily resolved with a readily available update.

Set up *easily applied* automated reporting of dependency vulnerabilities. Many tools and services can identify updates, prioritize security updates, and make it easy to accept those changes. For example, many tools can create a merge request/pull request that automatically runs the CI/CD pipeline, enabling you to easily accept it if it passes. You can even set up some updates to be entirely automatic. Consider using an AI to help you install and configure these tools; it's not hard, and since it’s rote work, an AI can often make it easy.

Sometimes you can determine that a vulnerability in a dependency is not exploitable in your system. However, this is often difficult; most modern software is so dynamic that it’s difficult to be *confident* that an attacker *cannot* exploit some vulnerability. It’s often safer and more efficient to simply update your system when a vulnerability is found in a dependency. Once a vulnerable dependency is updated, it’s fixed, *and* the project is better-prepared if another vulnerability is later found in that dependency.

You may choose to do a security evaluation for only the “first party” software you developed. You may also choose to evaluate your project’s dependencies. We recommend evaluating your dependencies. If you do evaluate your project’s dependencies, the results will be more thorough, and the rest of this material will apply to them as well. When you find vulnerabilities, be sure to report them so that those dependencies can fix them for all their users. This is often best done by partnering with projects that create the dependencies most important to you.

Given all that, let’s transition to the following material and focus on the core tasks for finding and fixing vulnerabilities in the software we’re directly responsible for.

QUIZ\
Q1. What does the material recommend when a dependency has an update released that fixes a vulnerability?

A) It’s often more efficient to update it than prove it’s unexploitable\
B) Ignore it, since dependencies fall outside the project’s attack surface\
C) Rewrite the entire dependency yourself, from scratch, since it’s untrustworthy\
D) Wait for the dependency’s next major, possibly breaking release

Answer: A

Feedback:

A) Correct. It’s often hard to be confident that an attacker can’t exploit a vulnerability in a dependency, so it’s often safer and more efficient to simply update. You’re then also better prepared if another vulnerability is later found in that dependency.\
B) Incorrect. Modern software is mostly reused software, so dependencies are a large part of what you ship. A vulnerability in a dependency can make your system vulnerable.\
C) Incorrect. The material doesn’t suggest rewriting dependencies. Apply the readily available update, and if you find vulnerabilities in a dependency, report them so its developers can fix them for all users.\
D) Incorrect. Waiting leaves a known vulnerability in place. The material recommends easily applied updates, some of them even fully automatic.\
ENDQUIZ

QUIZ\
End-of-chapter quiz question\
Q1. When you use AI to help develop a system, which two threat models does the material say apply?

A) One for the development, build, and release environments, and one for deployment\
B) One for the AI model’s training process, and one for the AI provider’s own billing system\
C) One for the project’s license, and one for its contributor license agreements\
D) One for attackers outside the organization, and one for the AI model’s own creators

Answer: A

Feedback:

A) Correct. The development/build/test/release threat model includes any AI systems and the CI/CD pipeline. Sandboxing is important in this case to keep the AI from attacking developers’ systems, exfiltrating data, making unauthorized changes, or attacking external systems. The deployed-environment threat model covers security while the system is in use.\
B) Incorrect. The material doesn’t cover building AI models. The threat models it describes are about the environments where you develop and deploy your own system.\
C) Incorrect. Licenses and contributor agreements aren’t threat models. The two threat models cover the development environment (including AI and CI/CD) and the deployed environment.\
D) Incorrect. The split isn’t by type of attacker. The two threat models cover the development environment, including the AI itself, and the deployed environment.\
ENDQUIZ

QUIZ\
End-of-chapter quiz question\
Q1. Where does the material say a rule such as “no push to the main branch without human approval” should be enforced?

A) In AGENTS.md, since agents read it before every task they perform\
B) Outside the AI, e.g., by withholding credentials and by using hooks\
C) In the AI’s system prompt, repeated several times for emphasis\
D) In a comment at the top of each source file the AI might edit

Answer: B

Feedback:

A) Incorrect. The material specifically says the gate must not depend on the AI, including AGENTS.md. An AI doesn’t always follow any particular text instruction.\
B) Correct. A rule that must always hold (an *invariant*) must be enforced outside the AI: “an invariant should not live inside the probabilistic system it is meant to constrain”. Never give the AI a credential that would let it violate whatever gate you choose, use hooks where you can, and make sure agents can’t bypass these controls (e.g., by approving each other’s pull requests).\
C) Incorrect. Repeating an instruction doesn’t make it enforceable. All inputs to an AI are simply suggestions, so a rule that must always hold belongs outside the AI.\
D) Incorrect. Source comments are just more input to the AI, and possibly untrusted input. Enforce invariants outside the AI instead.\
ENDQUIZ

QUIZ\
End-of-chapter quiz question\
Q1. What approach to network access does the material suggest for a sandbox used to scan for vulnerabilities?

A) Allow full network access throughout, so the AI can download any tool it needs\
B) Never allow network access, even while you’re installing tools and dependencies\
C) Allow access during setup, snapshot, then permit only traffic to the model API\
D) Allow access only to the production systems where the software will be deployed

Answer: C

Feedback:

A) Incorrect. Full network access lets the AI reach systems you don’t want it to, including production systems and other organizations’ systems. Cut off general access before the task begins.\
B) Incorrect. Installing tools typically requires network access, so the material suggests allowing it during setup. (If the model itself runs inside the sandbox, the sandbox can then be fully air-gapped during scanning, which is ideal.)\
C) Correct. Give the sandbox external network access only while setting it up: pull dependencies, build, install tools, and run the existing tests. Then snapshot it, remove general network access, allow traffic only to the model API through a local proxy, and load the snapshot at the start of each run.\
D) Incorrect. Production systems are exactly what you *don’t* want the AI to reach. Lock down egress so nothing can reach your production systems.\
ENDQUIZ

QUIZ\
End-of-chapter quiz question\
Q1. Per the material, why should you set up AI logging early, and how should the logs be protected?

A) Logging slows the AI, so enable it early and turn it off once the AI behaves well\
B) Logs are only useful for billing, so send them to the provider and keep no copies\
C) The AI needs its logs as memory, so store them where the AI can freely edit them\
D) You can’t log past events retroactively, and the AI shouldn’t be able to alter logs

Answer: D

Feedback:

A) Incorrect. The material doesn’t suggest turning logging off. Mechanisms may fail, and logs let you detect, respond to, and recover from problems whenever they happen.\
B) Incorrect. Logs let you determine what did or didn’t happen, enabling detection, response, and recovery. Organizations may send them to a separate system so they survive subversion of the original system, and should protect them from unauthorized viewing.\
C) Incorrect. The material says the reverse: log in a way that the AI can’t delete or modify earlier log messages, e.g., in a directory that the AI itself can’t normally read or write.\
D) Correct. Examine and adjust your logging configuration before using the system seriously, since you can’t change it retroactively to log past events. Record what the user requested and what the AI did and replied, in a way the AI can’t delete or modify, and protect the logs, since they may contain sensitive information.\
ENDQUIZ

QUIZ\
End-of-chapter quiz question\
Q1. Why does the material say the speed of your CI pipeline matters when finding and fixing vulnerabilities with AI?

A) A fix only helps if it’s deployed before attackers exploit the vulnerability\
B) CI pipelines that finish quickly never let a vulnerability reach production\
C) Faster CI pipelines reduce the number of findings that an AI will report\
D) Slow CI pipelines prevent AI agents from reading the project’s source code

Answer: A

Feedback:

A) Correct. What matters is deploying the fix before an attacker exploits the vulnerability. If regression testing takes a day, you can’t meet a short deadline without skipping it. Parallelize so CI takes minutes, at worst an hour, for most projects.\
B) Incorrect. Speed alone doesn’t guarantee anything. The CI/CD process also needs to be high quality, with good automated tests, linters, and security tools.\
C) Incorrect. CI speed doesn’t change what an AI finds. It does affect how quickly you can verify and deploy fixes.\
D) Incorrect. CI speed doesn’t affect whether an AI can read code. The concern is that a slow CI pipeline becomes the bottleneck for deploying fixes.\
ENDQUIZ

QUIZ\
End-of-chapter quiz question\
Q1. If you use AI to help create a threat model for your deployed system, what does the material recommend?

A) Accept the AI’s threat model as-is, since it reads code more thoroughly than people\
B) Feed it code, docs, and past vulnerabilities, then review and refine what it produces\
C) Give it only the source code, since documentation tends to mislead the AI model\
D) Skip threat modeling when using AI, since AI can infer the security requirements

Answer: B

Feedback:

A) Incorrect. The material says you need to interact with the AI, then review and refine its results, not simply take an AI-generated threat model as truth.\
B) Correct. Bootstrap from what you’d hand a new security engineer: architecture docs, wikis, entry points, git history, and past vulnerabilities. Have it describe the system context, assets, entry points, and trust boundaries, and document what vulnerabilities you do and don’t care about. Then review and refine the result.\
C) Incorrect. Documentation helps the AI overcome the challenge of inferring implicit knowledge, trade-offs, and design decisions from code alone. It’s true that incorrect documentation can cause problems, but the solution is improving the documentation, not ignoring it.\
D) Incorrect. Neither humans nor AI can determine whether something is a vulnerability without a clear definition for the specific project, and AI performs best on systems with well-documented threat models.\
ENDQUIZ

# Core tasks for finding and fixing vulnerabilities

Now that we’ve [prepared to find and fix vulnerabilities](#prepare-to-find-and-fix-vulnerabilities), we can begin the main task.

The core tasks are: [identify findings](#identify-findings) (including [handling findings reported by others](#handle-external-findings)), [deduplicate them](#deduplicate), [validate them](#validate-findings), [triage them](#triage), [fix the vulnerabilities](#fix-vulnerabilities), [verify the fixes](#verify-fixes), [report vulnerabilities in others’ components](#report-vulnerabilities), and [release and deploy the fixes](#release-and-deploy). In practice these overlap and loop; for example, you’ll deduplicate again after validation, and you’ll [repeat the whole process](#repeated-application).

## Identify findings

Let’s discuss how to identify possible vulnerabilities (aka “findings”) once we’re [prepared](#prepare-to-find-and-fix-vulnerabilities) to do it.

As we noted earlier, simply pointing a generic AI coding agent at an arbitrary software repository and asking it to discover vulnerabilities *can* work, in the sense that it may find a vulnerability \[[Bourzikas2026](https://blog.cloudflare.com/cyber-frontier-models/)\]. That’s *especially* true if the software hasn’t been examined by AI before and/or if the AI model is particularly good at program analysis.

*However*, this trivial approach often doesn’t provide meaningful coverage of real codebases of significant size, nor does it necessarily identify valuable findings. If you want to do a *good* job of finding and fixing vulnerabilities using AI, you generally want to have a larger process around the AI to help it stay focused. Many systems specifically for finding vulnerabilities add extra process specifically for it \[[Rogers2025](https://joshua.hu/llm-engineer-review-sast-security-ai-tools-pentesters)\]. Some of the reasons for this need, especially for less-capable models, are:

* Context: A single agent’s context window will easily fill if it tries to do too much at once. Even if it doesn’t technically run out of capacity, an AI agent often struggles when it has too much irrelevant information at once. It’s typically better to repeatedly select and focus on a specific issue.
* Throughput: Instead of running a single agent at full capacity, it’s better to run multiple agents in parallel. Otherwise, it takes a long time to produce results and won’t adequately examine each potential issue in sufficient depth \[[Bourzikas2026](https://blog.cloudflare.com/cyber-frontier-models/)\].

In short, coverage is better when “many agents work on tightly scoped questions and we deduplicate the results afterward, rather than asking one agent to be exhaustive” \[[Bourzikas2026](https://blog.cloudflare.com/cyber-frontier-models/)\].

### Separate identifying findings from validation

![A robot and human are working together to analyze a disk representing software, before their results go to deduplication and verification.](images/robot-human-working-together-analyze-disk.jpg){width=481 height=262}

One excellent way to improve results is to separate *identifying* findings from *validating* findings. A “finding” is simply a report that *might* be a vulnerability, but it's not necessarily one because it’s not clear whether it’s exploitable.

Separating identifying findings from validating them makes finding vulnerabilities more likely:

* As \[[Bourzikas2026](https://blog.cloudflare.com/cyber-frontier-models/)\] notes, “asking ‘Is this code buggy?’ and ‘Can an attacker actually reach this bug from outside the system?’ are two different questions, and the model is better at each one when you ask them separately, because each question is narrower than the combined version.”
* As \[[Yan2026](https://claude.com/blog/using-llms-to-secure-source-code)\] reports, “discovery should find as many vulnerabilities as possible—even unlikely ones—and verification should exclude findings that are not actually exploitable. When an agent tries to do both in the same step, it can self-censor and exclude exploitable true positives.”

### Helping to identify findings

It’s best to help the AI identify findings. There are many ways to help identify findings when using AI:

1. *In general, give the AI tools*. That includes tools for searching and reading code, security tools, and so on. Consider asking the AI what tools it might need and make them available \[[Yan2026](https://claude.com/blog/using-llms-to-secure-source-code)\]. Provide the AI with basic tools (e.g., scripting languages like Python) so it can write its own tools to aid in finding (just like a human might).
2. *Use traditional non-AI vulnerability-finding tools, and use AI to help triage their output*. Traditional non-AI tools include various traditional static analysis tools (examining the source code or binary) and dynamic analysis tools (including fuzzers and web application scanners). These tools are often relatively fast. Even more importantly, many reliably do the same thing every time, unlike most modern AI. However, traditional tool warnings may be false positives, and many projects already have a backlog of unreviewed analysis warnings. The good news is that integrating these traditional tools with AI can be powerful. “Agentic AI is already beginning to help scale vulnerability discovery by leveraging traditional tooling” \[[Rohlf2025](https://cset.georgetown.edu/article/ai-and-the-software-vulnerability-lifecycle/)\]. In particular, AI agents can help triage their reports:
   1. Treat each non-AI tool warning as a finding to validate.
   2. AI can flag likely false positives. A 2026 study found that LLM-based agents reduced “an initial \[false positive (FP)\] detection rate of over 92% on the OWASP Benchmark to as low as 6.3% in the best configuration”. This can help you prioritize. Be careful, however: that same configuration wrongly dismissed 22.25% of the real vulnerabilities, with miss rates over 50% in some categories such as weak cryptography, and the authors conclude that FP suppression “should not be fully automated” \[[Xiong2026](https://arxiv.org/abs/2601.22952)\].
   3. Use AI to prioritize which warnings to analyze first, not to silently discard them. Confirm a report is a false positive (e.g., with a human) before you suppress a warning.
3. *Prioritize especially concerning code*. One list suggests code that parses untrusted input, enforces authentication or authorization, or is reachable from the internet \[[Cycode2026](https://cycode.com/blog/claude-mythos-security-readiness/), quoting Anthropic\]. The Mozilla Firefox project reports that their “scanning is largely focused on specific areas of the code (files, functions) where we instruct the system to look, based on a mix of human judgment and automated signals.” \[[Grinstead2026-05](https://hacks.mozilla.org/2026/05/behind-the-scenes-hardening-firefox/)\]
4. *To find security vulnerabilities, include a search for language-specific issues, insecure coding practices, and improper handling of parameters, variables, and data flows*. For each programming language used in the project, apply checks for language- and framework-specific vulnerabilities. Trace parameters and variables, and their usage throughout the code, to detect unsafe patterns, misuse, or inconsistencies \[[Rogers2025](https://joshua.hu/llm-engineer-review-sast-security-ai-tools-pentesters)\].
5. *Have the model examine and cluster past bugs or at least past vulnerabilities*. For vulnerabilities (as determined by your threat model), have it list the relevant vulnerability classes. Then have the AI system determine (for every fix) if the fix was complete and if it applied everywhere else. Look for similar problems. \[[Yan2026](https://claude.com/blog/using-llms-to-secure-source-code)\] reported that one team did this and found three exploitable issues in an hour, saying “‘What have people exploited in the past’ is sometimes a much easier cheat-code towards success than ‘find me vulnerabilities in this codebase.’”
6. *Use “top” lists of the most likely kinds of vulnerabilities*. At *least* look specifically for common vulnerabilities. “Most software security issues discovered each year are simply variants or instances of previously discovered patterns, rather than entirely new classes of vulnerabilities” \[[Rohlf2025](https://cset.georgetown.edu/article/ai-and-the-software-vulnerability-lifecycle/)\]. So if the system you’re analyzing is…
   1. a web application, use the OWASP Top 10 vulnerabilities (for web applications) \<[https\://owasp.org/www-project-top-ten/](https://owasp.org/www-project-top-ten/)\>. For more thorough coverage, also give the AI the relevant chapters of the OWASP Application Security Verification Standard (ASVS) as a checklist of security requirements to verify \[[OWASP-ASVS5](https://owasp.org/www-project-application-security-verification-standard/)\].
   2. agentic, use the OWASP Top 10 for Agentic Applications for 2026 \<[https\://genai.owasp.org/resource/owasp-top-10-for-agentic-applications-for-2026/](https://genai.owasp.org/resource/owasp-top-10-for-agentic-applications-for-2026/)\>
   3. anything else (including Internet of Things (IoT)), use the CWE Top 25 \<[https\://cwe.mitre.org/top25/](https://cwe.mitre.org/top25/)\>
7. *Look for cases where a component assumes another component is doing something, but there’s no test verifying it*. “Many vulnerabilities are being found ‘in the seams’ between programs, e.g., a library might not filter headers, even if its spec requires header filtering, but all of the library users might expect the library to filter headers.” \[Zimmer2026\]
8. *Examine a system’s security properties across transitions (including state transitions) and steady-state data flows*. Vulnerabilities can appear during transitions such as authentication and re-authentication, token refresh and expiration, logout and revocation, account or role changes, retries, and recovery flows. Concurrent operations can sometimes interfere with each other. Ask the AI to identify the security invariants that should remain true across transitions and then look for paths where those invariants can be violated \[[OWASP-ASVS5-V7](https://github.com/OWASP/ASVS/blob/master/5.0/en/0x16-V7-Session-Management.md)\]
9. *Include important non-security bugs, focusing on critical issues that are likely to cause application crashes, severe malfunctions, or significant instability*. Minor or cosmetic issues are less risky, but important “non-security” defects can often be exploited as vulnerabilities. \[[Rogers2025](https://joshua.hu/llm-engineer-review-sast-security-ai-tools-pentesters)\] claims that “the greatest success I had with policies was a really simple policy of ‘find all bugs, even if they’re not vulnerabilities’”. Consider as bugs cases where the claimed intent (in some documentation including comments) disagrees with the actual code as written. These can be important to fix, and while the system may initially *believe* they aren’t security-related, they may turn out to be vulnerabilities.
10. *Consider disabling some hardening mechanisms used in production when finding (and later validating)*. This way, the hardening mechanisms are truly an additional defense-in-depth measure. The result is that the full system, including its hardening mechanisms, is much harder for an adversary to attack successfully. \[[Grinstead2026-05](https://hacks.mozilla.org/2026/05/behind-the-scenes-hardening-firefox/)\] We discuss this further in “[Disable hardening and evaluate hardening during evaluation](#evaluate-with-hardening-disabled-and-evaluate-the-hardening)”.
11. *Include information on configuration, dependencies, deployment choices, and how components are combined*. “Many exploitable issues do \[not\] appear as obvious defects in application source code” but instead emerge from these kinds of problems \[[Ziegler2026](https://xbow.com/blog/mythos-offensive-security-xbow-evaluation)\].

Focus on specific files or specific functions for a given analysis. Many practitioners first use AI to identify the “most important” files and functions to examine, then examine those first.

At the time of this writing, it’s not clear what level of prescription is appropriate. \[[Yan2026](https://claude.com/blog/using-llms-to-secure-source-code)\] claims that with frontier models, more prescriptive prompts (such as long checklists) worsen discovery, as they “tend to reduce the model’s creativity and generate fewer novel bugs”. Others don’t report the same. Either way, all the sources we’ve seen agree that providing a threat model and tools is vital.

When requesting findings, include a definition of the output format and content you want. Ask for a structured report with predefined fields, and order them so the model’s reasoning builds on each field. Example fields include rationale, finding, impact, severity, etc. \[[Yan2026](https://claude.com/blog/using-llms-to-secure-source-code)\]. Ask for very detailed information about each finding, including a detailed description, filenames, line numbers, the specific triggering input and configuration, relevant URLs, and anything else that would help an AI or human validate it later \[[Rogers2025](https://joshua.hu/llm-engineer-review-sast-security-ai-tools-pentesters)\]. Ask for a proof of concept (PoC) if it can provide it, but be clear that a PoC is not *required* and findings should be reported even if it cannot create a PoC. A PoC can simplify later validation if it can be created, but we don’t want to pre-filter findings too early.

Where practical, include provenance needed to reproduce and interpret the result. This can include the source revision examined, relevant environment and configuration, the analysis or verifier invocation that produced the evidence, and the threat-model assumptions used when evaluating the finding. Provenance makes it easier to reproduce a result, determine whether it still applies after the software changes, and distinguish observed evidence from an AI-generated explanation \[[SARIF2.1](https://docs.oasis-open.org/sarif/sarif/v2.1.0/os/sarif-v2.1.0-os.html)\].

### Managing findings

Track findings systematically (e.g., in an issue tracker or a database), so neither you nor the AI gets overwhelmed or confused. Record each finding’s details and status, and have agents take items from that list.

This may sound overwhelming, but it’s not. Computers are good at creating lists and then having agents select and work on items in parallel depending on your resources. Indeed, \[[Yan2026](https://claude.com/blog/using-llms-to-secure-source-code)\] reports that “discovery is now straightforward to parallelize, and the bottleneck has shifted to verification, triage, and patching.”

Remember, *not* all findings are actual vulnerabilities, and that’s okay. Unfortunately, finding counts can sometimes mislead others. As \[[Ottenheimer2026-05-26](https://www.flyingpenguin.com/mythos-grading-mythos-got-patches-yet/)\] notes, “Glasswing is NOT confidently reporting tens of thousands of real bugs… like any tool, they are reporting tens of thousands of findings, of which a confident count of real bugs is much smaller.” That doesn’t mean AI is useless; far from it. It’s just that findings need to be validated after they’re found. Repeatedly make it clear that a finding is *not* a confirmed vulnerability; a finding is a *possible* vulnerability.

Don’t assume a single run found everything. As we noted [earlier](#run-ai-multiple-times), modern AI systems are generally “non-deterministic” (also called “probabilistic”) \[[Rogers2025](https://joshua.hu/llm-engineer-review-sast-security-ai-tools-pentesters)\]. Re-running may yield additional findings, even if all findings from a previous run were examined. In addition, discovering potential vulnerabilities (and later validating them) can be challenging, since this process involves mathematically undecidable problems in computer science \[[Rohlf2025](https://cset.georgetown.edu/article/ai-and-the-software-vulnerability-lifecycle/)\]. If done well, this should be a case of diminishing returns. The best way to see how quickly the number of findings is diminishing is to keep re-running finding efforts until the process increasingly comes up empty-handed.

Also, distinguish a successful analysis that produced no findings from an analysis that did not complete. A timeout, model or tool failure, environment failure, insufficient permission, policy denial, or similar interruption is not evidence that no vulnerabilities were found. Automated workflows should record these outcomes separately so that an incomplete analysis cannot silently become a “no findings” result \[[SARIF2.1](https://docs.oasis-open.org/sarif/sarif/v2.1.0/os/sarif-v2.1.0-os.html)\].

QUIZ\
Q1. According to this material, why is it better to separate the task of identifying findings from the task of validating them, rather than asking a single AI agent to do both at once?

A) Because an agent’s context window would typically fill up trying to hold both tasks at once, even though combining them would otherwise maximize its results.\
B) Because this avoids stopping analysis too soon, since a combined agent may filter out true positives too early that a separate verifier would confirm.\
C) Because separating the two tasks makes it easier to fan agents out in parallel for throughput, which is the main reason results improve.\
D) Because AI guardrails block an agent from producing a working proof of concept, so a second, unrestricted agent must always be applied to verify it separately from finding.

Answer: B

Feedback:

A) Incorrect. Context limits are a potential concern, but the material doesn’t say combining the tasks would otherwise give the best results. It says the model is better at each question when you ask them separately.\
B) Correct. When an agent tries to do both at once, “it can self-censor and exclude exploitable true positives.” Discovery should report as many findings as possible, and a separate verification step should exclude those that aren’t exploitable.\
C) Incorrect. Parallel, narrow tasks do help find vulnerabilities, but that doesn’t explain why it’s important to separate finding from verifying. The concern is that a combined agent can discard real vulnerabilities by abandoning a potential vulnerability too soon.\
D) Incorrect. The separation isn’t about guardrails. This would be true even when using models that are fully capable of generating a PoC. A PoC is helpful but not required when identifying findings.\
ENDQUIZ\
QUIZ\
Q1. This material recommends using different “top” vulnerability lists depending on what kind of system you’re examining. Which list does it recommend for a general system that’s neither a web application nor an agentic application, such as an IoT device?

A) OWASP Top 10 (for web applications)\
B) OWASP Top 10 for Agentic Applications\
C) CWE Top 25\
D) NIST SP 800-53 control catalog

Answer: C

Feedback:

A) Incorrect. The material recommends the OWASP Top 10 for web applications, which this system isn’t.\
B) Incorrect. The material recommends the OWASP Top 10 for Agentic Applications for agentic systems, which this system isn’t.\
C) Correct. For anything else, including IoT, use the CWE Top 25\. Most vulnerabilities found each year are variants or instances of previously discovered patterns.\
D) Incorrect. The material doesn’t mention NIST SP 800-53, which is a catalog of security controls rather than a list of common kinds of vulnerabilities.\
ENDQUIZ

## Handle external findings

Handle external vulnerability reports as findings.

External people and organizations may report what they *claim* are vulnerabilities. Unfortunately, these reports may be false, especially if they were AI-generated (since AI may not understand the context). This means that such reports are essentially findings.

A widespread problem is “AI slop reports”, that is, reports generated by an AI that are nonsense and waste everyone’s time. There are some steps you can take to counteract this. For example:

* Make it clear that you expect reporters to have a human review of an AI-proposed vulnerability report.
* Encourage reporters to work together to deduplicate reports before they get to you (e.g., through Akrites, which we will discuss later).
* *Require* evidence that suggests a report may be a vulnerability. In particular, require a sample input demonstrating the vulnerability.
* If the code is available to the reporter, ask them to report specific filenames and line numbers and, if possible, propose a fix. The fix may not be directly useful (it often isn’t), but a proposed fix can often clarify what the reporter believes the problem is.

Several prominent programs changed their policies in 2026 because of AI-generated reports. Their experience is instructive:

* The curl project ended its bug bounty on 2026-01-31. Daniel Stenberg explained that “Previous years we have had a rate of somewhere north of 15% of the submissions ending up confirmed vulnerabilities. Starting 2025, the confirmed-rate plummeted to below 5%” \[[Stenberg2026-01](https://daniel.haxx.se/blog/2026/01/26/the-end-of-the-curl-bug-bounty/)\]. In March 2026 curl went back to receiving reports through HackerOne, still without paying bounties. Stenberg then reported that “The slop situation is not a problem anymore”: reports arrived at about double the 2025 rate, nearly all used AI, and the confirmed vulnerability rate was back to “somewhere in the 15-16% range” \[[Stenberg2026-04](https://daniel.haxx.se/blog/2026/04/22/high-quality-chaos/)\]. We believe this is evidence that AI slop is a problem that *can* be countered.
* HackerOne paused submissions to its Internet Bug Bounty, which rewards reports of vulnerabilities in widely used open source software. They said that “The balance between findings and remediation capacity in open source has substantively shifted” \[[Cooter2026](https://www.infoworld.com/article/4154210/internet-bug-bounty-program-hits-pause-on-payouts.html)\].
* GitHub raised its bug bounty requirements in May 2026, requiring “A working proof of concept with demonstrated security impact.” GitHub welcomes AI-assisted research, but says “No matter what tools you use (scanners, static analysis, AI assistants), you need to validate the output before submitting” \[[Brown2026](https://github.blog/security/raising-the-bar-quality-shared-responsibility-and-the-future-of-githubs-bug-bounty-program/)\].

The lesson for your project: publish a clear vulnerability reporting policy (e.g., in SECURITY.md) that says what evidence you require (such as a reproducing input), that reporters must validate reports before sending them, and that you welcome AI-assisted reports that meet those requirements. If you offer rewards, watch whether they attract low-effort submissions. For guidance on setting up a coordinated vulnerability disclosure program, see \[[CISA2026-CVD](https://www.cisa.gov/resources-tools/resources/establishing-coordinated-vulnerability-disclosure-program-work-security-researchers)\].

QUIZ\
Q1. Per the material, what should a project’s vulnerability reporting policy say about AI-assisted reports?

A) Reject every report that used AI at any point, since such reports are almost always false positives\
B) Accept AI-generated reports as-is, since modern models rarely report vulnerabilities that aren’t real\
C) Offer larger bug bounty rewards for reports developed with AI assistance, since bigger rewards attract better-validated reports\
D) Require a reproducing input and prior validation by the human reporter, and welcome reports that meet that bar

Answer: D

Feedback:

A) Incorrect. The material says banning good reports, solely because AI was used to help create them, harms users.\
B) Incorrect. AI-generated reports may be false, since the AI may not understand the context. Treat external reports as findings that need validation.\
C) Incorrect. The material warns that large rewards can attract low-effort submissions. Curl, for example, ended its bug bounty; after it resumed taking reports without paying bounties, it said slop was no longer a problem. Larger bounties may be appropriate in some cases, but bigger bounties attract *more* reports, not necessarily better-validated reports.\
D) Correct. Publish a policy (e.g., in SECURITY.md) saying (1) what evidence you require (such as a reproducing input), (2) that reporters must validate reports before sending them, and (3) that you welcome AI-assisted reports that meet those requirements.\
ENDQUIZ

## Deduplicate

“Deduplication” is the process of eliminating duplicate reports. External reports and internal analysis may repeatedly identify the same problem. Apply deduplication to prevent duplication of effort.

In practice, you need to deduplicate repeatedly as you learn new information. Projects may deduplicate before validation (to eliminate obvious duplicates that don’t need duplicate validation), and deduplicate again after validation has gained more information.

Some writers consider deduplication part of triage (e.g., \[[Yan2026](https://claude.com/blog/using-llms-to-secure-source-code)\]), and others treat them separately. No matter how you define the terms, all are needed.

\[[Yan2026](https://claude.com/blog/using-llms-to-secure-source-code)\] recommends the following for deduplication:

* Consider the root cause. “Scanners often flag one bug at multiple call sites or report multiple symptoms of a single root cause. Here’s one practical approach: First, use a cheap deterministic pass: same file, same category, vulnerability line numbers within ten lines of each other. Then, have a model apply qualitative rules to what remains”
* “Treat as duplicate: the same root cause worded differently; the same vulnerability reported at multiple call sites; a missing global protection (like an auth check) reported per endpoint; or a cause and its consequence flagged in the same path”
* “Treat as distinct: different vulnerability classes in the same file; different variables reaching different sinks; two independent bugs inside one helper; the same missing check on two endpoints, but each requires its own fix”
* If you have a PoC and a candidate patch for each finding, “check if the patch for one finding also disarms the PoCs of others”. If it does, it’s likely that those findings share a root cause

If it’s not *clear* that a finding is a duplicate, pass it along to be validated separately. Once more information is acquired, it may be easier to determine if it’s a duplicate.

QUIZ\
Q1. According to the guidance in this section, which of the following should most likely be treated as distinct findings rather than duplicates?

A) The same vulnerability reported at multiple call sites that all trace back to one root cause.\
B) A missing global protection, such as an authentication check, reported separately for each affected endpoint.\
C) A root-cause defect and one of its direct consequences flagged together along the same code path.\
D) The same missing check reported on two different endpoints, where each endpoint requires its own separate fix.

Answer: D

Feedback:

A) Incorrect. Reports of the same vulnerability at multiple call sites share one root cause, so the material recommends treating them as duplicates.\
B) Incorrect. A missing global protection (like an auth check) reported per endpoint has one root cause and one fix, so treat the findings as duplicates.\
C) Incorrect. A cause and its consequence flagged in the same path are the same problem, so treat them as duplicates.\
D) Correct. When the same missing check appears on two endpoints and each needs its own fix, they’re distinct findings; one fix won’t resolve both.\
ENDQUIZ

## Validate findings

A vulnerability is a defect that an attacker can exploit to violate some security requirement. By contrast, a finding is only a *potential* vulnerability. Not all findings from AIs (or humans) are real vulnerabilities \[[Ottenheimer2026-05-26](https://www.flyingpenguin.com/mythos-grading-mythos-got-patches-yet/)\]. Thus, once you have a finding, you need to *validate* it to independently determine whether it is a vulnerability, a defect but not a vulnerability, or neither.

Even when a finding isn’t a defect, it might suggest improvements for the future. However, here we’ll focus on validating if a finding is a vulnerability.

![Human and AI working together to validate findings of potential vulnerabilities, rejecting some and accepting others.](images/human-ai-working-together-validate-findings.jpg){width=489 height=266}

### Defining what a vulnerability is

A *key* to validating findings is having a [threat model and/or security requirements](#preparing-threat-models), as we discussed as part of [preparing](#prepare-to-find-and-fix-vulnerabilities). Otherwise, there’s no way to tell whether something is security-related, making it difficult to determine whether it's a vulnerability. It’s also vital to have a validation infrastructure, that is, a way to run tests to confirm or refute claims \[[Ziegler2026](https://xbow.com/blog/mythos-offensive-security-xbow-evaluation)\].

An important decision is whether defense-in-depth countermeasures should be disabled or ignored during validation. An example of a countermeasure is its own process sandboxing, which is different from the sandbox around the AI used during development. A mechanism is only a defense-in-depth measure if it’s an *additional* security measure, not a *required* one. Thus, from a security perspective, it’s better to consider something a vulnerability *even if* another countermeasure would have prevented it. For example, the Mozilla Firefox project considers a finding as a vulnerability even if a sandbox would have prevented its exploitation. Their rationale is that “Real-world attackers generally need to chain multiple exploits together to escalate privileges through one or more layers \[of mitigations like sandboxing\] \[[Grinstead2026-05](https://hacks.mozilla.org/2026/05/behind-the-scenes-hardening-firefox/)\]. Of course, vulnerabilities that can penetrate existing countermeasures should be prioritized.

### Defining the proof required

Projects must define the level of proof required for a finding to be considered a vulnerability within their project.\
Here are some key considerations:

1. The gold standard for validating a finding is to generate a PoC, that is, a demonstration using a specific input to the program that an adversary *could* supply that causes the system to fail its security requirements.
   1. In practice, many projects consider being able to trigger abnormal execution (such as a crash, memory error, or sanitizer violation) sufficient to prove that a discovered defect is real and reachable. For example, Firefox classifies findings as high security vulnerabilities “based on predictable crash symptoms such as use-after-free or out-of-bounds memory issues being reported by AddressSanitizer, and our threat model assumes that any of them could be exploitable with sufficient effort. This reduces the risk of a false negative during exploitability analysis, and more importantly it allows us to focus our resources on finding and fixing more vulnerabilities.” \[[Grinstead2026-05](https://hacks.mozilla.org/2026/05/behind-the-scenes-hardening-firefox/)\]
   2. Some AI systems incorporate guardrails that prevent it from creating PoCs (since POCs can also be used for an attack), making them useless for creating PoCs.
   3. If you create a PoC, be sure that you sandbox that process to prevent it from attacking external systems; we briefly discuss this in our material on [sandboxing](#preparing-the-sandbox).
2. A project may decide that more general information describing how to exploit the vulnerability, without details, is adequate evidence.
3. In the long term, it’s often worthwhile to fix defects even if a PoC isn’t found, since, even if a PoC isn’t found, a different AI system might find a way to exploit it. Typically, later triage focuses on findings *known* to be exploitable first.
4. It helps to say explicitly what level of evidence you require. From weakest to strongest, a PoC may show that: an input triggers abnormal behavior, such as a crash or a sanitizer error; the input violates a specific security property, as shown by a test that checks for that violation; an attacker can gain a specific capability against a realistically deployed system (e.g., code execution, reading or writing files, or bypassing authentication), possibly by chaining several defects; or an attacker can do so reliably, that is, there’s a working exploit. Some researchers use separate terms for these levels. For example, Antiproof defines a “proof of vulnerability” as “an executable test that uses a bug oracle, such as a test harness with assertions, to demonstrate a violation of a security property in isolation”, and a “proof of exploitability” as “an end-to-end test that demonstrates an attacker capability against a deployed system” \[[Shakevsky2026](https://arxiv.org/abs/2607.12316)\]. As noted above, Firefox treats even the first level (a sanitizer-detected memory error) as enough to call a finding a high-severity vulnerability. Whatever level you choose, the inverse doesn’t hold: “failure to produce a working PoC is not proof of a false positive” \[[Yan2026](https://claude.com/blog/using-llms-to-secure-source-code)\].

Part of validating findings typically involves using AI to review the proposed findings. In principle, a stronger model will be better at this, but it’s no guarantee. \[[Ziegler2026](https://xbow.com/blog/mythos-offensive-security-xbow-evaluation)\] reported that when using Mythos Preview, its “judgment results were more mixed than its discovery results... It rejected false positives better than many predecessors, but sometimes lost true positives when evidence did not formally satisfy its criteria or when the intended rule was broader than the written one.”

### Tips for validation

Here are some tips for validating that a finding is (or is not) a vulnerability.

There’s no magic to validation. Validating claims has long been a part of software development. In validating AI findings, \[[Kholoosi2025](https://arxiv.org/abs/2512.18261v2)\] reported that “Practitioners in our study consistently emphasized a layered validation approach involving manual inspection, sandbox testing, peer review, and cross-checking against established standards such as OWASP or NIST.” It’s all part of using multiple stages to validate (and deduplicate) a report \[[Rogers2025](https://joshua.hu/llm-engineer-review-sast-security-ai-tools-pentesters)\].

Here are some tips for validation based on \[[Yan2026](https://claude.com/blog/using-llms-to-secure-source-code)\] and \[[Bourzikas2026](https://blog.cloudflare.com/cyber-frontier-models/)\]:

* The verifier agent should be independent from the discovery agent. “A useful way to frame this is that validation involves **independent reproduction rather than self-review**. Asking the discovery agent to reconsider its *own* conclusion can preserve the same context, assumptions, and reasoning errors.”
* The verifier should instead independently attempt to *disprove* the finding and produce reproducible evidence for its conclusion. \[[Yan2026](https://claude.com/blog/using-llms-to-secure-source-code)\] says, “Run the verifier in a fresh container without a shared filesystem or conversation history. If the verifier is exposed to the discovery agent’s reasoning, it may simply agree instead of testing the claim. Thus, give the verifier only (1) the proof of concept or written finding and (2) the codebase, so it can search for mitigations the finder missed (e.g., upstream validation, auth gates, type constraints, or unreachable code).”
* Another approach is to “prompt the verification agent to *disprove* the discovery agent’s findings \[while still providing the full set of information available\]. Have the verifier assume each finding is a false positive and search for reasons the finding is wrong. Include clear criteria that the verifier agent can use to determine if the finding is a true positive. This \[approach\] matters most when the discovery agent’s output doesn’t include a PoC. Aim to exclude as many non-exploitable findings as possible to reduce effort on manual reviews.”
* “Across the teams we’ve worked with, adding an *adversarial verifier* roughly *halved* the rate of *non-exploitable findings* from the discovery phase. Requiring that verifier to also build a proof of concept confirming the exploit brought the false positive rate to near zero. Together, these two steps helped to reduce the downstream triage and patching load significantly.”
* “One team scanning open-source packages built a verification step that helped to close the loop: scan the package, generate a proof of concept, then deploy a mock application that uses the package and triggers the PoC. Their take was that: ‘Validation is the biggest holdup and the PoC is the validation.’”

Do *not* treat agreement among AI reviewers as proof. In a 2026 case study of an adversarial multi-agent review process, “ten dedicated \[AI\] reviewers unanimously endorsed a non-existent Bleichenbacher padding oracle in OpenSSL's CMS module; it was killed only by a single empirical test” \[[Agarwal2026](https://arxiv.org/abs/2604.19049)\]. Here, empirical confirmation means that the target software was actually run with a test, a PoC, or something equivalent that demonstrated the claimed failure in the target itself. The author concluded that “empirical verification, not consensus count, is what changes our belief”, and added a mandatory gate: “no candidate reaches disclosure without empirical confirmation.” With that gate, the pipeline “killed roughly 79% of 171 candidates before advancing to disclosure” while still producing 4 CVEs and 8 merged security-related fixes.

PoCs must measure target behaviour, not their own artifacts. A PoC often includes a script or program that supplies the input and then checks the result, and that check can be wrong. In that same study, one proof-of-concept program “detected its own nonce computation rather than the library’s leak”, falsely confirming the vulnerability \[[Agarwal2026](https://arxiv.org/abs/2604.19049)\].

A PoC needs checking too, and the fix must cause the PoC to fail. A 2026 reproducibility study of published LLM/agent-driven vulnerability research reran the researchers’ own verification checks. In 20 of 30 cases the check still reported the vulnerability on the patched version, and 7 of 19 negative controls “still trigger on benign input”. As the study says, “A trigger on the vulnerable build is not evidence of CVE-specific reproduction without a clean patched counterfactual.” \[[Chen2026](https://arxiv.org/abs/2608.09567)\]

So when you accept a PoC as evidence, confirm that it:

1. triggers the specific claimed failure (not just any crash) on the vulnerable version,
2. does not trigger on benign inputs, and
3. does not trigger once the vulnerability is fixed (check this when verifying the fix).

Ask a *separate* AI instance to *disprove* the findings, and if it can’t, demand a PoC. Each step can dramatically reduce false positives, and doing them as *separate* steps means the AI system won’t abandon findings *too* quickly.

QUIZ\
Q1. Why does the Mozilla Firefox project consider a defect to be a vulnerability even when an existing countermeasure, such as a sandbox, would have prevented exploitation?

A) Because a defense-in-depth measure is by definition an *additional* protection, not a required one; relying on it reduces the layers an attacker must defeat.\
B) Because Firefox’s threat model assumes that end users will eventually disable all sandboxes, so no countermeasure can be trusted to remain active.\
C) Because the EU Cyber Resilience Act (CRA) legally requires vendors to report every defect regardless of whether it’s exploitable, so classification is a required compliance formality.\
D) Because AI systems can’t reliably detect which countermeasures are active, Firefox treats every defect as maximally severe to be safe.

Answer: A

Feedback:

A) Correct. A defense-in-depth measure is an additional security measure, not a required one. Real-world attackers often chain multiple exploits to get through layers like sandboxing, so Firefox treats a finding as a vulnerability even if a sandbox would have prevented exploitation. This makes the final system much harder to exploit.\
B) Incorrect. The material says nothing about users disabling sandboxes. Firefox’s rationale is that a sandbox is an additional layer, and attackers chain exploits to get through layers, so having multiple strong layers is helpful for countering attacks.\
C) Incorrect. The CRA doesn’t require reporting every defect; its strict reporting requirements apply to actively exploited vulnerabilities and severe incidents. Firefox’s rationale is about defense in depth.\
D) Incorrect. Firefox’s rationale is about defense in depth, not about AI’s limitations. Not every defect gets the same severity, either; the material notes that vulnerabilities that can penetrate existing countermeasures should get priority.\
ENDQUIZ

## Triage

Most projects must perform *triage*; that is, they must prioritize reports.

Ideally, all vulnerabilities would be fixed immediately, but when there's a lot to do, that’s often impractical. When handling everything immediately is impractical, findings must be prioritized so the most important vulnerabilities are addressed first. This is best done after validation, though if the validation process is overwhelmed, you may need to do some triage before validation.

Triage is fundamentally a risk decision. Risks, by definition, are important based on their:

1. *Likelihood*. In particular, consider the preconditions necessary for the vulnerability to be exploitable and what is required for an attacker to exploit it \[[Yan2026](https://claude.com/blog/using-llms-to-secure-source-code)\]. A vulnerability that an unauthenticated attacker can exploit remotely is more likely to be targeted than one that requires a local authenticated user.
2. *Impact*. A remote code execution (RCE) vulnerability is typically considered an *extremely* high impact because often an attacker can make the system do almost anything. In contrast, a vulnerability that can only reveal public or unimportant information would have low impact.

Most systems have *some* sort of “severity rating” classification system to help you identify the vulnerabilities most needing to be addressed \[[Rogers2025](https://joshua.hu/llm-engineer-review-sast-security-ai-tools-pentesters)\]. Unfortunately, many report that AI systems aren’t very good at estimating the severity of a vulnerability (they often report both too high and too low), so if you use an AI to estimate in a way that matters, have a human review the estimates.

You can make AI severity estimates more reliable by giving the AI your threat model and having it answer specific questions building on that before it assigns a severity.

* \[[Yan2026](https://claude.com/blog/using-llms-to-secure-source-code)\] suggests asking about *reachability* (can an attacker reach this code from a real entry point?), *attacker control* (does untrusted input reach it intact?), *preconditions* (does it need non-default settings or a narrow timing window?), *authentication* (can an unauthenticated attacker trigger it?), *read versus write* access, and *blast radius* (who is affected?).
* They suggest that “zero preconditions with unauthenticated remote access is critical or high severity. One or two preconditions, or an authenticated path, is medium. Three or more, or local-only, is low. Adjust the thresholds to your system.”
* That report argues that “going through the evidence first keeps the model from anchoring on the bug class (‘SQL injection, so critical’) and then inflating the severity to match.”

Modern AI systems have become increasingly good at chaining many defects *together* into vulnerabilities. Something that *appears* unexploitable may, when combined with other defects, constitute a serious vulnerability. Thus, it’s reasonable to triage the “most dangerous vulnerabilities” first, but do *not* ignore other defects that *appear* unexploitable. Fix the other defects, as resources permit, so they don’t become part of a chain leading to an exploit.

Don’t assume an AI-found vulnerability will stay unknown for long. When many people use similar AI tools on the same code, they often find the same bugs around the same time. The Linux kernel security team reports that bugs found with AI assistance “systematically surface simultaneously across multiple researchers, often on the same day” \[[Linux-SecurityBugs](https://docs.kernel.org/process/security-bugs.html)\].

![A robot and woman categorize bugs into red (dangerous) and green (not dangerous); the woman overrides the robot's categorization](images/robot-woman-categorize-bugs-into-red.jpg){width=480 height=261}

QUIZ\
Q1. We warned that AI systems tend to be especially unreliable when estimating one particular aspect of a vulnerability report. What is it, and what do we recommend as a result?

A) The exact file and line number of the defect; this material recommends always re-running static analysis tools to confirm locations.\
B) Severity ratings; since AI often rates severity too high or too low, a human should review any severity estimate that matters.\
C) Whether a finding is a duplicate; this material recommends discarding any finding that AI can’t confidently de-duplicate.\
D) The programming language used in the vulnerable component; this material recommends manually re-identifying the language before triage.

Answer: B

Feedback:

A) Incorrect. The material doesn’t single out locations as unreliable. It recommends asking for filenames and line numbers in each finding to help with later validation.\
B) Correct. Many report that AI systems often estimate severity too high or too low. Have a human review severity estimates that matter. You can also give the AI your threat model and have it answer specific questions (such as reachability and preconditions) before it assigns a severity.\
C) Incorrect. The material doesn’t single out deduplication, and it says not to discard unclear cases. If it’s not clear that a finding is a duplicate, pass it along to be validated separately, to reduce the risk of ignoring a real vulnerability.\
D) Incorrect. The material doesn’t identify recognizing the programming language as a problem.\
ENDQUIZ

## Fix vulnerabilities

Once vulnerabilities are found, those vulnerabilities need to be *fixed*.

Finding vulnerabilities is useless for a defender unless those vulnerabilities are fixed. If vulnerabilities are not fixed efficiently, it can become completely overwhelming. For example, here is the number of bug fixes in the Chrome browser, showing a huge rise in 2026 (compared to 2024-2025) caused by AI-discovered defect reports \[[Chrome2026](https://blog.google/security/chrome-stronger-with-every-update/)\]:

![Chrome bug fixes by milestone, showing that bug fixes dramatically grew in 2026 due to AI-generated reports](images/chrome-bug-fixes-by-milestone-showing.jpg){width=517 height=291}

Firefox had a similar experience. Mozilla reported, “We fixed a total of 423 security bugs in releases in April. In addition to the 271 bugs announced two weeks ago, there were 41 externally reported bugs, with the remaining 111 discovered internally” \[[Grinstead2026-05](https://hacks.mozilla.org/2026/05/behind-the-scenes-hardening-firefox/)\].

In many ways, a web browser is a worst case, since it has a massive amount of functionality and must directly interact with potentially malicious websites. Still, this experience demonstrates that AI can identify many vulnerabilities not found otherwise, and that you need to be ready to fix far more vulnerabilities than before.

### Fixing may be necessary for sending reports to external organizations

If you are sending reports to an external organization, particularly an open source software project, you may be *required* to propose a fix.

Historically, if a finder was examining external software, they would often simply report a vulnerability to that external project and let the project fix it. However, in the new world of AI, simply reporting a vulnerability is often not very helpful; many projects are inundated. If an AI was used to find a potential vulnerability, many recipients will expect both a PoC (showing it’s a vulnerability) and a specific proposed fix that would fix it.

As reported in \[[TrailofBits2026-06](https://blog.trailofbits.com/2026/06/22/introducing-patch-the-planet/)\], “Anyone can file an issue, flex, and walk away. We showed up with the patches… \[and go\] beyond just fixing bugs: we’re adding new tests and fuzzing harnesses, CI security scanning, supply-chain tooling, correctness fixes, and features maintainers had been meaning to get to.” In short, providing a proposed fix is more likely to be helpful than showing up with only a complaint.

### Assigning the fix

A fix will only be developed if someone is assigned, tacitly or explicitly, to do so.

In small projects, with few developers or fixes to be done, this assignment is often obvious. In a larger project, even the assignment process can be overwhelming.

Thus, in a larger project, consider using automatic assignment to handle the tsunami of reports. If a system can automatically route the issue to the correct component and human owner, this can be a huge help \[[Chrome2026](https://blog.google/security/chrome-stronger-with-every-update/)\]. This doesn’t need to be complex; an AI system can often estimate this. If the assignment is in error, or the human is overwhelmed, have a process for transferring it.

### Creating tests and confirming the root problem

Before creating a fix, be sure to create a test and confirm the root problem.

“Write a new test that fails with the existing code. Then, implement the fix and confirm the same test now passes without breaking anything else. (Yes, it’s test-driven development). If you don't add a test, the fix can silently regress and it can be hard to retroactively prove the bug was real.” \[[Yan2026](https://claude.com/blog/using-llms-to-secure-source-code)\] After all, this mistake has happened before; a focused test will increase the likelihood that this specific problem won’t recur.

In addition, examine the system to find the *root cause*. “Models may narrowly address findings at a specific call site instead of the root cause. Simply prompting the model to identify and fix the root cause can be effective. Then, have the model look for variants at two levels: (1) same pattern, where there are other call sites or copies of the same buggy code elsewhere, and (2) same class, where a codebase with one SQL injection vulnerability tends to have more SQL injection vulnerabilities. Update the threat model with the validated findings and patches to close the loop.” \[[Yan2026](https://claude.com/blog/using-llms-to-secure-source-code)\]

### How to create the fix

Now you’re ready to create a fix. You might choose to use AI to help develop a candidate fix, but you do *not* need to use the same AI that found the vulnerability. Many people find vulnerabilities using a model that’s expensive, slow, or restricted. It might be better to use a different AI system to create the fixes, since it might not have the same issues, it can use the detailed information provided earlier, and it might be better at that task.

There’s a tradeoff here. The Linux kernel’s procedure notes that “fixes written in the same session as used to find the bug will generally lead to better and more accurate fixes as the LLM’s reasoning context remains present” \[[Linux-AI](https://docs.kernel.org/process/coding-assistants.html)\]. On the other hand, that context may include the finder’s incorrect guesses, as discussed next. Either way, give the fixing AI the verified evidence, and verify the result.

### Only provide correct information, especially if fully automated

Only provide verified *correct* information to the AI, *especially* if the AI process is fully automated.

The phrase “garbage in, garbage out” applies to AI systems, and is *especially* true if you are trying to use AI to create fixes for vulnerabilities. Be careful to *only* provide correct details. Avoid including data that might be incorrect in such prompting. In particular, try to pass along the details that validation confirmed (such as the reproducing input), not the finder’s unverified explanation of the cause or how to fix it.

One study found that “giving incorrect guidance to the model in its initial prompt \[to create a vulnerability fix\] resulted in a roughly 50 percentage point reduction in fix correctness rates \[while\] giving more correct details to the model increased correctness by only 15 percentage points compared to no specific guidance at all. As such, in cases where one cannot be highly confident in the accuracy of bug details or fix guidance passed to an LLM for patch generation (e.g., when that data is sourced directly from other automated tooling), the safer bet may actually be to omit lower-confidence information that could cause a ‘correctness collapse’ if it turns out to be wrong.” \[[Mierczuk2026](https://1password.com/files/resources/frontier-models-vulnerability-patches-flawed.pdf)\]

### Approaching fixes

When working with an AI to develop a vulnerability fix, some general guidelines will increase the likelihood of success.

As much as possible, be clear in the prompt to create a fix. Here are some general prompt statements you may find helpful: “Identify the root causes of this vulnerability. Identify approaches for fixing the root causes of the vulnerability, not just this specific example, so it is no longer a vulnerability. Discuss options for fixing it, along with pros and cons. Remember that the goal is to ensure an attacker cannot exploit the vulnerability along any path, not simply some paths. When generating code, try to reuse existing code, minimize new code, and, where practical, work within the existing system. Ensure the resulting change is easy to review. Ensure that existing functionality is maintained where practical and that you do not insert any new vulnerabilities. Update corresponding documentation. Use tools to obtain and validate information. The result must pass all CI/CD tests.”

When using an AI to fix defects, enable it to “interrogate, validate, and raise disagreements about the information stated to them in their initial task prompts.” \[[Mierczuk2026](https://1password.com/files/resources/frontier-models-vulnerability-patches-flawed.pdf)\] AI is much less likely to succeed if it contains incorrect information or is missing key information, so it’s important to equip it with tools that increase its likelihood of success.

It’s vital to work with the AI to identify the true underlying cause and fix *that* while not breaking functionality. Another study found that the most common failure when creating fixes was that the AI often guarded the *symptom* with incomplete local checks. AI systems often fail to localize the vulnerability causing malformed behavior, or to silence the crash by deleting the offending operation or even the entire functionality. In some cases, the AI will add broader conditions that reject invalid input but also benign inputs, causing functional breaks \[[Shen2026-09](https://arxiv.org/abs/2609.04075)\].

The Chrome team’s process is instructive: “We run a fixing agent that returns multiple candidate fixes. A critic agent then evaluates which would be the best fit and produces other relevant artifacts for developers to evaluate the fix. The fixing and critic agents work in a loop that mimics a typical code review process to ensure that code is functional and compliant with \[our\] style guidelines \[and\] other local code conventions.” \[[Chrome2026](https://blog.google/security/chrome-stronger-with-every-update/)\]

However, be wary of long, unreviewed loops where an AI repeatedly “improves” its own code.

* One study ran 400 code samples through 40 rounds of AI-only “improvements” and found “a 37.6% increase in critical vulnerabilities after just five iterations” \[[Shukla2025](https://arxiv.org/abs/2506.11022)\].
* A 2026 study of AI repair of infrastructure-as-code (Terraform), where validator errors were fed back to the model over up to five iterations, found that in 13.8% of scenarios a previously passing security check later failed. Only 3.3% were unambiguous, but the authors believe this is an under-count. Regressions were strongly associated with large rewrites, and compliance stopped improving after about three iterations: “Three iterations capture most of the compliance improvement while keeping regression risk manageable” \[[Agyekum2026](https://arxiv.org/abs/2608.13404)\].
* Limit the number of iterations, prefer small changes, and bring in a human when the AI doesn’t converge quickly.

QUIZ\
Q1. This material recommends a test-driven approach before writing a fix. What should you do first?

A) Write a new test that fails against the existing (buggy) code, then implement the fix and confirm the test now passes without breaking anything else.\
B) Ask the AI to generate three candidate fixes immediately, then write tests afterward to see which candidate passes the most tests.\
C) Disable the project’s existing test suite temporarily so the fix can be validated in isolation from unrelated failures.\
D) Have a human developer manually reproduce the vulnerability in production before any test code is written.

Answer: A

Feedback:

A) Correct. Write a new test that fails with the existing code, then implement the fix and confirm that the test passes without breaking anything else. Without that test, it can be hard to prove the bug was real or that you fixed it. In addition, without a new test in the test suite to check for the bug, the fix could silently regress later.\
B) Incorrect. The material says to write the failing test *first*. That confirms the problem is real before you write any fix.\
C) Incorrect. The existing test suite is how you confirm that the fix doesn’t break anything else, so keep it running.\
D) Incorrect. The material doesn’t call for reproducing vulnerabilities in production, which could harm real users. A focused test that fails on the existing code is the starting point.\
ENDQUIZ

## Verify fixes

After generating candidate fixes, have AI and then humans review them to verify them.

This is useful for a fix by a human *or* by an AI. However, it’s especially important for AI-created code. Even very good AI writes vulnerable code. In particular, an AI can be good at finding vulnerabilities yet still write code with lots of vulnerabilities. This might be surprising, but remember, AI is trained on a large amount of insecure software. It’s more difficult to get an AI to do something *contrary* to its training dataset \[[CSA2026](https://labs.cloudsecurityalliance.org/mythos-ciso/)\] \[Zimmer2026\]. Modern AI is fundamentally probabilistic, so it can be difficult to predict exactly what it will generate for a given request \[[Kholoosi2025](https://arxiv.org/abs/2512.18261v2)\].

### Have AI review the fix first

The first step is to have an AI review the proposed fix for the vulnerability. “Have a new discovery agent probe the patch as an attacker to confirm the patch is comprehensive” \[[Yan2026](https://claude.com/blog/using-llms-to-secure-source-code)\]. What can be especially helpful is to have AI write tests for the fixes. For example, \[[Chrome2026](https://blog.google/security/chrome-stronger-with-every-update/)\] reports that they use test-writing agents to “help write tests for fixes. These agents can ensure that tests work across supported platforms and configurations before a developer reviews the fix, saving up to weeks of developer time.”

Run the validated PoC against the fixed version and confirm that it no longer succeeds. Then have a separate agent try variations of the PoC, since a fix that blocks only the exact PoC input isn’t a full fix.

### Have humans review the fix

While AI review is a good first pass for proposed vulnerability fixes, they still require expert human review. As we noted earlier, [AI-generated fixes often are incomplete, add vulnerabilities, or break functionality](#do-not-presume-ai-can-correctly-fix-all-vulnerabilities).

Some problems with initial AI-proposed fixes are especially common, and humans should especially look out for them:

* *AI often fixes only the specific instance, rather than identifying root causes and fixing the problem systematically*. “Patches focused too much on immediate consequences of issues, and generally failed to put the whole application and codepath into perspective, and ‘understand’ the real source of the problem, and where an engineer with a clue would actually solve the problem rather than mitigate it.” \[[Rogers2025](https://joshua.hu/llm-engineer-review-sast-security-ai-tools-pentesters)\]
* *AI often fails to customize the fix and reuse existing constructs*. “For fixes, one of the most common issues was that the fix was not customized to the developer’s codebase, for example, creating a function to sanitize user inputs when the developer wants to reuse their existing sanitization library; this often prevented the users from directly applying the fix, requiring an overhaul to produce a fix with their intended approach.” \[[Steenhoek2025](https://arxiv.org/abs/2412.14306v3)\] In short, for an AI system it’s “easier” to write lots of duplicate code, but this typically creates a maintenance nightmare.
* *AI sometimes adds dependencies that don’t exist, or aren’t the ones you think*
  * Attackers can register these hallucinated names and wait for someone to install them (“slopsquatting”). If a proposed fix adds or changes a dependency, confirm that it’s the real, intended package and that you actually need it.
  * In a 2025 study of 576,000 code samples from 16 LLMs available in 2024, “the average percentage of hallucinated packages is at least 5.2% for commercial models and 21.7% for open-source models” \[[Spracklen2025](https://www.usenix.org/conference/usenixsecurity25/presentation/spracklen)\].
  * A 2026 replication on five newer models found rates from 4.62% to 6.10%; the only open-weight model analyzed was DeepSeek V3.2, whose hallucination rate was 5.89%. So the open-weight model improved dramatically over the older average, while commercial closed rates stayed about the same. Its author called this “an order-of-magnitude compression of the inter-model spread observed by Spracklen, but not a retirement of the threat” \[[Churilov2026](https://arxiv.org/abs/2605.17062)\].
  * Another 2026 study found no hallucinated package names in the imports of 1,134 short pieces of Python code that six models (including two small local open-weight models) generated for everyday coding tasks with mainstream libraries. However, when prompts asked for niche or nonexistent libraries, every model wrote code importing packages that don't exist, and the samples were too small to show that the rate is zero even for everyday tasks \[[Hillah2026](https://arxiv.org/abs/2606.13918)\].
  * We expect package hallucination to keep declining as models improve, but we don't expect it to disappear.

Even if an AI’s initial fix is wrong, that doesn’t make its proposed fix useless. One reporter found AI fixes “most useful for simply understanding what the problem actually was in the code – sometimes I didn’t understand the issue from the description, but the suggested fix revealed to me what was wrong, and what would (could?) fix it.” \[[Rogers2025](https://joshua.hu/llm-engineer-review-sast-security-ai-tools-pentesters)\] Sometimes the proposed fixes shouldn’t be the final fix, but they can still provide guidance to help developers find a correct solution.

### Apply your usual verification processes

Be *sure* to apply all of your usual verification processes. That includes your peer review gates, CI/CD pipelines, and branch protection rules. “Leveraging organizational safeguards such as peer-review gates and branch protection rules can help mitigate potential individual complacency regarding AI-generated security suggestions” \[[Kholoosi2025](https://arxiv.org/abs/2512.18261v2)\].

Technology can help. However, as noted in \[[Anthropic2026-05](https://www.anthropic.com/research/glasswing-initial-update)\], now “the bottleneck in fixing bugs like these is the human capacity to triage, report, and design and deploy patches for them.”

### Turn findings into durable checks

AI analysis is non-deterministic; don’t depend on rerunning it to catch the same problem again. Instead, turn what you learned into deterministic checks that run on every change, as part of the change.

At the least, modify the test suite to [add the regression test you created earlier](#creating-tests-and-confirming-the-root-problem) to verify the problem. You may also want to add:

1. A static analysis rule that detects the vulnerable pattern (e.g., a Semgrep rule or CodeQL query).
2. A fuzz harness for the code involved, if it’s the kind of code fuzzing handles well (e.g., parsers).
3. A hardening or API change that makes the whole class of vulnerability impossible or unlikely (see the upcoming section on [hardening](#harden)).

AI can often help implement all of these. The general principle is that if something is important, enforce it with deterministic mechanisms *instead* of relying on an AI to notice it every time.

QUIZ\
Q1. You’ve applied a proposed fix, and the validated proof of concept (PoC) no longer succeeds against the fixed code. What should you do next?

A) Close the finding, since the PoC no longer succeeding shows the vulnerability is fixed.\
B) Rerun the AI that found the vulnerability, and treat a clean result as proof the fix is complete.\
C) Have a separate agent try variations of the PoC, since a fix might defeat only the exact PoC input rather than the underlying vulnerability.\
D) Remove the PoC from the test suite so it doesn’t reveal exploit details.

Answer: C

Feedback:

A) Incorrect. A PoC that no longer succeeds is a good sign, but it isn’t enough. A fix that blocks only the exact PoC input isn’t a full fix.\
B) Incorrect. AI analysis is non-deterministic, so a clean rerun doesn’t prove the fix is complete. Instead, have an agent actively probe the patch as an attacker.\
C) Correct. Have a separate agent try variations of the PoC, and have an agent probe the patch as an attacker. Then have humans review the fix.\
D) Incorrect. The material recommends the opposite: keep it as a regression test, so the problem can’t silently return.\
ENDQUIZ

## Report vulnerabilities

There are three kinds of vulnerability reporting we want to discuss: to the people who maintain a component, to authorities when a law requires it, and to your own users.

### Reporting to externally maintained projects

If the vulnerability is in an *externally maintained* component, report it to the project that maintains that component. Use the vulnerability reporting process and rules defined by that project, in whatever form the project prefers. In many cases this involves working with others in a process called “coordinated vulnerability disclosure”.

Here’s how to make those reports useful.

First, take steps to prevent reporting AI slop. “AI-assisted bug reports have a mixed track record, and skepticism is earned. Too many submissions have meant false positives and an extra burden for open source projects.” \[[Grinstead2026-03](https://blog.mozilla.org/en/firefox/hardening-firefox-anthropic-red-team/)\] The best AI systems have improved, and some perform human review before sending reports, but many projects still receive a lot of useless AI slop.

Early in the process, read that project’s threat model and their guidance on submitting vulnerability reports (e.g., SECURITY.md). If you’re using AI to help, also have the AI read the project’s threat model and reporting guidance before drafting a report. The Linux kernel project specifically recommends telling the AI to do this \[[Linux-SecurityBugs](https://docs.kernel.org/process/security-bugs.html)\].

Provide *value*. Include the specific reproducing inputs that *demonstrate* that a report is a vulnerability (as discussed earlier), test cases that enable easy verification and regression testing, and a proposed fix. Have a human review it all before submitting it. These measures, especially a way to reliably reproduce the vulnerability with plausible inputs, help provide confidence that the report is not merely “AI slop” or a false positive.

This is an example of the human gate we discussed earlier: treat high-impact or externally visible actions as explicit approval boundaries. An AI agent may be allowed to autonomously analyze software and prepare proposed actions. At the same time, operations such as submitting vulnerability reports, publishing information, merging changes, deploying fixes, modifying production systems, or accessing especially sensitive resources may require separate authorization. Where approval is required, enforce it in the tool or workflow rather than relying only on an instruction in the AI prompt \[[OWASP-LLM06](https://genai.owasp.org/llmrisk/llm062025-excessive-agency)\].

When making a report on a component, briefly and clearly state the deployment model and security threat being assumed. Supply this *early* in the report. Often, when AI writes the report, neither the code nor the documentation tells it which deployments are supported. Many AIs will make the most permissive assumption, even a patently absurd one, and that assumption will make any finding look especially severe. Once you’ve clearly stated the deployment model and security threat, you or the AI can then attempt to assign a severity. A maintainer who disagrees with the claimed deployment model or security threat can correct that line rather than reject the report without explanation.

Before you report, *check* that the *problem still exists* in the project’s current code. The Linux kernel security team says that “A significant part of reports are for bugs that have already been fixed”. They ask reporters to verify them on recent versions and to identify the affected version with “A stable identifier such as a commit ID or an exact version”, not something like “latest”. It also asks reporters to “stick to verifiable facts” (not to enumerate “speculative implications”) \[[Linux-SecurityBugs](https://docs.kernel.org/process/security-bugs.html)\].

A significant challenge can occur if the component’s maintainers expressly *do not* support the reporter’s threat model. In that case, the reporter can try to:

1. Convince the maintainers to expand their threat model. Typically this involves providing the resources to do it, such as developing proposed changes and/or agreeing to join as a co-maintainer.
2. Fix it and submit it as a normal (non-security) defect as a short-term measure, *and* change your own system’s design so it no longer requires a security property the component *does not support*.
3. Use a different or additional component for the functionality that needs that security property.

Here’s a concrete example. The [Linux kernel threat model](https://docs.kernel.org/process/threat-model.html) (2026) expressly says “mounting a block device \[like an external USB stick\] is a privileged operation… and the administrator is responsible for the media they mount.” ChromeOS uses the Linux kernel, but ChromeOS also supports mounting an external USB stick that is *not* fully trusted (while presuming that it’s passive media). Yet the Linux kernel itself expressly does *not* support this activity. Instead of ignoring the Linux kernel’s threat model, when ChromeOS mounts external untrusted media, it uses a different system based on Filesystem in Userspace (FUSE) rather than relying solely on the Linux kernel’s built-in mechanisms. In short, the ChromeOS developers carefully chose how to use available components; they used the Linux kernel as the kernel, but also selected *different* components when they needed a special security property not supported by that kernel. No single piece of software can do everything\! Many problems require multiple components working *together* to achieve the desired result.

Follow the project’s rules for AI-assisted contributions; more projects have them now. The Linux kernel’s rules are a good example, and include a procedure for finding and fixing bugs with AI \[[Linux-AI](https://docs.kernel.org/process/coding-assistants.html)\]. They say that “AI agents MUST NOT add Signed-off-by tags. Only humans can legally certify the Developer Certificate of Origin (DCO)”; the human submitter must review all AI-generated code, take full responsibility for the contribution, and credit the AI with an “Assisted-by:” tag. The procedure requires trying to create a reproducer for any nontrivial bug, writing and testing a fix (“This part is not optional”), and stating what couldn’t be done: “If the fix could not be built or tested, or if no reproducer could be produced, say so explicitly: maintainers currently waste too much time analyzing unverified reports and untested fixes.” It also says that the assistant “must never send anything itself”; a human decides.

Obviously, don’t provide a fix if the project asks you not to propose a fix. Most projects *are* interested in receiving proposed fixes if you have a good one.

Often a project will not directly accept a proposed fix \[Zimmer2026\]. Proposed fixes from outside the project often fail to properly reuse a project’s existing methods, templates, and other mechanisms, creating long-term maintenance issues if they are simply accepted as-is. Project maintainers often have longer-term roadmaps that a proposed fix won’t precisely meet. Many projects have unwritten rules and expectations. That doesn’t mean a proposed fix is useless, however. A proposed fix is often a necessary and helpful step in creating the final fix. So don’t feel discouraged if the final fix is different; in many cases a proposed fix is simply a useful draft that helps speed development of the final fix.

One source of debate is how large the vulnerability report should be. Many maintainers don’t want to receive massive tomes; they want something they can read quickly. Yet if the report lacks detail, it’s not helpful. One solution is to put the report's essence into a single paragraph (6 sentences or fewer) and lead with it. The receiver can then read that and decide if it’s worth reading further. When reporting to a project, *find out* what format the project wants and comply with it. In general, *respect the maintainers' limited time* \[[Larson2026](https://sethmlarson.dev/respecting-maintainer-time-should-be-in-security-policies)\].

Many open source software projects are receiving an *overwhelming* number of duplicate reports \[[PSF2026](https://pyfound.blogspot.com/2026/06/everything-security-at-pycon-us-2026.html)\]. Often, many different people will use the same AI system to look for vulnerabilities in the same software, resulting in many duplicate reports to a given project. Linus Torvalds said, “if you found a bug using AI tools, the chances are somebody else found it too” and added, “If you actually want to add value, read the documentation, create a patch too, and add some real value on \*top\* of what the AI did” \[[Zorz2026](https://www.helpnetsecurity.com/2026/05/18/problems-with-ai-assisted-vulnerability-research/)\].

The Linux Foundation has established a project called Akrites \<[https\://akrites.org/](https://akrites.org/)\> to help organizations deduplicate findings *before* they are submitted to open source software projects, as well as validate, prepare remediations, and synchronize disclosure. If your organization finds vulnerabilities in widely used open source software, see the Akrites site for more information.

QUIZ\
Q1. Why does this material recommend stating the deployment model and security threat you’re assuming *early* in a vulnerability report to an external project?

A) Because the EU Cyber Resilience Act (CRA) legally requires every vulnerability report to open with a formal deployment-model disclosure statement.\
B) Because AI often assumes the most permissive deployment, inflating severity; stating your assumptions lets a maintainer correct them instead of rejecting the report.\
C) Because maintainers are contractually obligated to respond within 24 hours only if a summary of the deployment model appears in the first paragraph.\
D) Because static analysis tools can’t process a report that doesn’t specify the deployment model in a structured header field.

Answer: B

Feedback:

A) Incorrect. The CRA requires reporting certain actively exploited vulnerabilities to authorities; it doesn’t dictate the format of reports to projects. You state the deployment model early to help the maintainer evaluate the report.\
B) Correct. Many AIs make the most permissive assumption about deployment, even a patently absurd one, which can make a finding look especially severe. Stating the deployment model and threat early lets a maintainer who disagrees correct that line rather than reject the report without explanation.\
C) Incorrect. Maintainers have no such contractual obligation. The material instead asks reporters to respect maintainers’ limited time.\
D) Incorrect. The point is to help human maintainers evaluate the report, not to fill in a field for static analysis tools.\
ENDQUIZ

QUIZ\
Q1. How did ChromeOS handle the security property “safely mounting untrusted external media” that the Linux kernel’s own threat model doesn’t support, even though ChromeOS used the Linux kernel (as discussed above)?

A) ChromeOS convinced the Linux kernel maintainers to formally expand the kernel’s threat model to cover untrusted removable media.\
B) ChromeOS patched the kernel directly so that mounting a block device would no longer be treated as a privileged operation.\
C) ChromeOS simply accepted the risk and shipped without any additional protection, relying on user warnings instead.\
D) ChromeOS used a different mechanism (based on FUSE) to mount untrusted media because the kernel did not support that specific security property.

Answer: D

Feedback:

A) Incorrect. The kernel’s threat model still says mounting a block device is a privileged operation and that the administrator is responsible for the media they mount.\
B) Incorrect. ChromeOS didn’t change how the kernel treats mounting. It used a different component for untrusted media.\
C) Incorrect. ChromeOS didn’t simply accept the risk. It chose a different mechanism for untrusted media.\
D) Correct. ChromeOS uses a system based on FUSE to mount untrusted external media, rather than relying solely on the kernel. No single piece of software can do everything. Choose the set of components you use, and combine them as appropriate, to support the specific security properties you need.\
ENDQUIZ

### Reporting to authorities

So far we’ve discussed reporting vulnerabilities to the people who maintain a component. Some laws also require reporting to authorities. In particular, the European Union (EU) Cyber Resilience Act (CRA) includes a variety of requirements for manufacturers of products with digital elements distributed in the EU, as well as for open source software stewards. Let’s briefly note the CRA requirements, as an example of reporting to authorities that’s widely applicable.

The CRA treats *actively exploited vulnerabilities* differently from other vulnerabilities found. If you learn that there is an *actively exploited vulnerability* in software you maintain, or a *severe incident*, the CRA imposes strict reporting requirements that apply to manufacturers since 2026-09-11. These include short time windows; an initial report must be made within 24 hours.

The CRA does not require that software have no unknown vulnerabilities. After all, if the developers don’t know about a vulnerability, they can’t fix it. However, the CRA does impose several requirements on manufacturers of products with digital elements. For example, the CRA’s Annex I requires that such products “be designed, developed and produced in such a way that they ensure an appropriate level of cybersecurity based on the risks”, that they “be made available on the market without known exploitable vulnerabilities”, that they be “made available on the market with a secure by default configuration \[in general\]”, and that they “ensure that vulnerabilities can be addressed through security updates”.

The CRA also imposes several requirements related to identifying vulnerabilities, for example, “identify and document vulnerabilities and components contained in products with digital elements…”, “address and remediate vulnerabilities without delay”, and “apply effective and regular tests and reviews of the security of the product with digital elements” \[[CRA-AnnexI](https://eur-lex.europa.eu/eli/reg/2024/2847/oj/eng#anx_I)\].

For more information, see our course “[Understanding the EU Cyber Resilience Act (CRA) (LFEL1001)](https://training.linuxfoundation.org/express-learning/understanding-the-eu-cyber-resilience-act-cra-lfel1001/)”.

### Reporting to users

Usually, don’t tell users about a vulnerability in software you maintain until a fix is available. Announcing it earlier mainly helps attackers, since users can’t yet protect themselves. That’s why coordinated vulnerability disclosure keeps a vulnerability private until a fix is ready.

Sometimes you need to tell users before a fix is available, e.g., if the vulnerability is already public or being actively exploited. In that case, say which versions are affected, how users can reduce their risk until a fix is ready (e.g., a workaround or configuration change), and when you expect a fix, without details that would help attackers. For an actively exploited vulnerability, the CRA may require manufacturers to inform the users affected.

## Release and deploy

Software that is only fixed on a developer’s workstation helps no one else. Fixed software must be *released* and *deployed*. This was always true, but now that AI is accelerating the vulnerability-finding process, it’s even *more* important.

Anthropic notes that “software developers should… make security fixes available as quickly as possible… Developers should also help their users stay up-to-date with their software by making it as easy as possible to install updates; to the extent feasible, they should be more persistent with users who are still running software with known vulnerabilities” \[[Anthropic2026-05](https://www.anthropic.com/research/glasswing-initial-update)\]. Work to streamline your release process. Ensure that updates are automatically checked for a valid digital signature and that the update process is not *itself* a vulnerability.

A released fix is also a map to the vulnerability. Attackers can “patch diff”, that is, compare the fixed source or binary code with the previous version, find what changed, and work out the vulnerability the change fixes. While this was always true, AI has made this fast and cheap. In a June 2026 study, Claude Mythos Preview built 8 working code-execution exploits from 18 recent Firefox security patches, writing “its first working exploit in just under one hour”. From 21 Windows kernel vulnerabilities it produced 8 full privilege-escalation exploit chains. The authors warned that “A lone operator can now turn a month’s worth of patches into working exploits in a single afternoon—for a few thousand dollars and with no specialized expertise”. The authors concluded that “the typical patching playbook that software developers use today—with monthly release cadences, multi-week staged rollouts, and a lag between pre-release and stable channels—no longer holds”. \[[Xiao2026](https://www.anthropic.com/research/n-days)\].

In practice, this means you should:

1. Minimize the time between a fix becoming public and its release. A security fix that sits in a public repository for weeks before release gives attackers a head start. Where practical, develop security fixes privately (e.g., in a private fork or a private security advisory). Publish the fix, the release, and the advisory together.
2. Release fixes for all supported versions at the same time. If you fix the main branch today and a long-term-support branch next month, the first fix shows attackers how to attack the second.
3. Shorten your release cycle for security fixes. For example, Mozilla “recently moved its ‘dot’ releases (the small point updates between major versions) from a monthly to a roughly weekly cadence” \[[Xiao2026](https://www.anthropic.com/research/n-days)\].
4. Make updating easy and fast for your users, as discussed above.

Faster patching alone does *not* solve this problem. As the Xiao study notes, “A more durable fix would attack the supply of bugs, rather than the speed of patching them. This can start with migrating critical components to memory-safe languages like Rust, or hardening them with mitigations that retire whole exploit classes at once” \[[Xiao2026](https://www.anthropic.com/research/n-days)\]. See our section “[Harden](#harden)” about this.

When you release a fix, tell your users, so they know to update. Publish a security advisory that says what the vulnerability is, which versions are affected, which version fixes it, and what users should do. Where appropriate, get a CVE identifier for it, so tools that check for known vulnerabilities can alert your users.

Writing the advisories can become a bottleneck when many fixes arrive quickly. Consider using AI to draft release notes, advisories, and CVE descriptions from the fixes, with human review and repair before publication. The Chrome team is “working on automating the generation of release notes and CVE descriptions from security bug fixes to eliminate manual bottlenecks and shorten the window between vulnerability discovery and public disclosure” \[[Chrome2026](https://blog.google/security/chrome-stronger-with-every-update/)\].

People, projects, and organizations should ensure that they can rapidly *accept* updates, too. Establish processes to automatically test updates, and then propose or implement them. Organizations that try to do this solely with manual processes will often be unable to keep up. Humans still need to be in control, but the humans need to be supported by automated processes that help them become aware of problems and provide analyses so they can make good decisions.

QUIZ\
Q1. This material argues that, in an era of AI-accelerated vulnerability discovery, organizations that rely exclusively on manual testing and applying updates will:

A) be able to keep pace without issues, since AI mainly speeds up finding vulnerabilities, not applying fixes.\
B) only fall behind if they’re using memory-unsafe languages like C or C++.\
C) be unable to keep up, so establishing automated processes to help test and accept updates is necessary.\
D) only fall behind on EU Cyber Resilience Act reporting deadlines, not on ordinary patch adoption.

Answer: C

Feedback:

A) Incorrect. AI also helps attackers quickly turn released patches into exploits (“patch diffing”), so applying updates quickly matters more than ever.\
B) Incorrect. The programming language in use doesn’t change this. Any organization that relies solely on manual processes to accept updates will often be unable to keep up.\
C) Correct. Organizations that try to accept updates solely with manual processes will often be unable to keep up. Humans still need to be in control, but they need to be supported by automated processes that test updates and then propose or implement them.\
D) Incorrect. The problem the material describes is keeping up with the updates themselves, not CRA reporting deadlines.\
ENDQUIZ

## Repeated application

As we noted earlier, in most cases you should repeatedly apply AI systems to find and fix vulnerabilities.

Most AI systems are non-deterministic; re-running the same AI system with the same inputs can discover new vulnerabilities, especially in the first few iterations. In addition, AI systems will continue to improve, and new capabilities may find new problems.

So you need to repeatedly apply AI systems, especially improved ones, to find vulnerabilities that were previously missed by other passes. As vulnerabilities are found, search for similar patterns elsewhere, and ensure you really *did* fix the problem systematically.

The good news is that improved hardening and fixing vulnerabilities will eventually eliminate all “easy vulnerabilities” and make the system increasingly difficult to attack. Software is finite, and so are defects. Take heart: as it gets harder for software developers to find vulnerabilities, it also gets harder for attackers to find them.

In practice, software changes over time. Deterministic checks, including those [created from earlier findings](#turn-findings-into-durable-checks), should run on every change. An AI system should also analyze each proposed change (pull request or merge request) to identify vulnerabilities *before* a change is accepted.

![A robot and human repeatedly wash a car to clean out a car, the pass count is 5 and the car is sparkling with dirty bugs draining away](images/robot-human-repeatedly-wash-car-clean.jpg){width=459 height=250}

QUIZ\
Q1. Why does this material recommend repeatedly rerunning AI systems against the same codebase to look for vulnerabilities, rather than treating a single pass as sufficient?

A) Because AI systems are generally non-deterministic and continue to improve, so later runs (or improved models) can surface vulnerabilities that earlier runs missed.\
B) Because most vulnerabilities only become detectable after the software has been in production for at least one full release cycle.\
C) Because licensing terms for most AI coding tools require a minimum number of scans per billing period.\
D) Because a single scan can’t legally be used as evidence of due diligence under the EU Cyber Resilience Act.

Answer: A

Feedback:

A) Correct. Most AI systems are non-deterministic, so rerunning them can find new vulnerabilities, especially in the first few iterations. AI systems also keep improving, and new capabilities may find new problems.\
B) Incorrect. Vulnerabilities can be found before release. The material recommends having AI analyze each proposed change *before* it’s accepted.\
C) Incorrect. The material doesn’t mention licensing terms. Rerunning helps because AI systems are non-deterministic and keep improving.\
D) Incorrect. The material doesn’t make this legal claim. Rerunning helps because AI systems are non-deterministic and keep improving.\
ENDQUIZ

QUIZ\
End-of-chapter quiz question\
Q1. In a 2026 case study, ten AI reviewers unanimously endorsed a vulnerability that didn’t exist. What lesson does the material draw?

A) Use more AI reviewers, since ten weren’t enough to reach a reliable consensus\
B) Use only the strongest available model, since weaker models agree too easily\
C) Require empirical confirmation, since AI agreement isn’t necessarily proof of a vulnerability\
D) Stop using AI reviewers, since multi-agent review always produces false results

Answer: C

Feedback:

A) Incorrect. More votes wouldn’t have fixed it. As the author concluded, “empirical verification, not consensus count, is what changes our belief”.\
B) Incorrect. Model strength doesn’t replace testing. Even a strong model’s judgment can be mixed; Mythos Preview sometimes lost true positives during validation.\
C) Correct. The nonexistent vulnerability was “killed only by a single empirical test”. The author added a gate: no candidate reaches disclosure without empirical confirmation, meaning the target software was actually run to demonstrate the claimed failure. That gate eliminated about 79% of 171 candidates.\
D) Incorrect. The same pipeline produced real CVEs and fixes once it added an empirical gate. The lesson is to require empirical confirmation, not to abandon AI review.\
ENDQUIZ

QUIZ\
End-of-chapter quiz question\
Q1. According to the material, how should an AI verifier agent be set up to validate a finding?

A) Have the discovery agent recheck its own finding, since it knows the most about it\
B) Tell the verifier to confirm the finding, since most AI findings are real\
C) Reuse the discovery agent’s container and history, so that no context gets lost\
D) Make it independent of the discovery agent, and have it try to disprove the finding

Answer: D

Feedback:

A) Incorrect. Validation means independent reproduction rather than self-review. Asking the discovery agent to reconsider its own conclusion can preserve the same context, assumptions, and reasoning errors.\
B) Incorrect. Not all findings are real vulnerabilities, so the verifier should try to *disprove* each finding, assuming it’s a false positive and searching for reasons it’s wrong.\
C) Incorrect. The material recommends running the verifier in a fresh container without a shared filesystem or conversation history. If the verifier is exposed to the discovery agent’s reasoning, it may simply agree instead of testing the claim.\
D) Correct. Validation involves independent reproduction rather than self-review. One approach gives the verifier only the PoC or written finding plus the codebase, so it can look for mitigations the finder missed; another gives it all the information but prompts it to disprove each finding. Adding an adversarial verifier roughly halved non-exploitable findings, and also requiring it to build a PoC brought the false positives to near zero.\
ENDQUIZ

QUIZ\
End-of-chapter quiz question\
Q1. When asking an AI to create a fix, what information does the material say you should give it?

A) Only verified information, such as the reproducing input that validation confirmed\
B) Every guess the finder made about the cause, since more context always helps\
C) The finder’s proposed fix, so the fixing AI doesn’t need to reason on its own\
D) As little as possible, so the AI isn’t influenced by any facts about the bug

Answer: A

Feedback:

A) Correct. “Garbage in, garbage out” especially applies to fixes. One study found that incorrect guidance cut fix correctness by roughly 50 percentage points, while correct details raised it by only 15\. Pass along what validation confirmed, not the finder’s unverified explanation of the cause or how to fix it.\
B) Incorrect. Unverified guesses can be wrong, and wrong guidance can cause a “correctness collapse”. When you can’t be confident in information, the safer bet may be to omit it.\
C) Incorrect. The finder’s proposed fix is unverified guidance, which can badly mislead the fixing AI. The material recommends letting the AI interrogate, validate, and raise disagreements about what it’s told.\
D) Incorrect. Correct details still help, and the material recommends giving the fixing AI the verified evidence. The point is to leave out low-confidence information, not verified facts.\
ENDQUIZ

QUIZ\
End-of-chapter quiz question\
Q1. Why does the material recommend releasing a security fix for all supported versions at the same time?

A) Package managers can’t install fixes released for only some versions\
B) A fix for one version provides information on how to attack the others\
C) The CRA prohibits releasing fixes for supported versions separately\
D) Releasing them together means you can skip writing a security advisory

Answer: B

Feedback:

A) Incorrect. Package managers aren’t the issue. The concern is that attackers can study a released fix.\
B) Correct. A released fix is a map to the vulnerability: attackers can “patch diff” to find what changed, then determine what vulnerability was fixed. AI has made that relatively fast and cheap. If you fix the main branch today and a long-term-support branch next month, the first fix shows attackers how to attack the second.\
C) Incorrect. The CRA requirements the material describes don’t address release timing across versions. The reason to release together is patch diffing by attackers; attackers can examine the changes to identify the vulnerabilities they fix.\
D) Incorrect. You still need a security advisory so users know to update. The material even suggests using AI (with human review) to help draft advisories when many fixes arrive.\
ENDQUIZ

QUIZ\
End-of-chapter quiz question\
Q1. After fixing a vulnerability, how does the material recommend making sure the same problem doesn’t return?

A) Rerun the same AI analysis on every change, since it’ll catch the problem again\
B) Ask the developers to remember the problem during their future code reviews\
C) Turn it into deterministic checks, such as a regression test or analysis rule\
D) Add a comment near the fix, warning future AI agents not to undo the change

Answer: C

Feedback:

A) Incorrect. AI analysis is non-deterministic, so you can’t depend on rerunning it to catch the same problem again.\
B) Incorrect. A process that relies on people remembering doesn’t scale. If something is important, enforce it with deterministic mechanisms instead.\
C) Correct. Add the regression test you created earlier. You might also add a static analysis rule for the vulnerable pattern, a fuzz harness, or a hardening or API change that makes the whole class of vulnerability impossible or unlikely. Run these checks on every change. This reliably detects it if it recurs.\
D) Incorrect. A comment is just more input that an AI may or may not follow. Enforce what’s important with deterministic checks that run on every change.\
ENDQUIZ

QUIZ\
End-of-chapter quiz question\
Q1. Per the material, how should you treat defects that appear unexploitable during triage?

A) Close them as invalid, since only exploitable defects are worth fixing\
B) Leave them alone, since changing code always risks new vulnerabilities\
C) Announce them publicly right away, since they pose no risk to users\
D) Triage the known vulnerabilities first, but fix the others as resources permit

Answer: D

Feedback:

A) Incorrect. Modern AI systems are increasingly good at chaining defects together. Something that appears unexploitable may, combined with other defects, become a serious vulnerability.\
B) Incorrect. The material recommends fixing them as resources permit, so they can’t become part of a chain leading to an exploit. Your tests and reviews help keep fixes from adding new problems.\
C) Incorrect. A defect that appears unexploitable may still be part of a chain, so it isn’t necessarily harmless. The material also advises against announcing vulnerabilities before a fix is available.\
D) Correct. Triage and fix the known vulnerabilities first, but try to avoid ignoring defects that only *appear* unexploitable. AI may be able to chain a sequence of defects into working exploits. Fix defects that appear to be unexploitable as resources permit.\
ENDQUIZ

# Preventing vulnerabilities longer term

Finding and fixing specific vulnerabilities isn’t enough. You also need to take systematic steps to prevent them.

Looking for vulnerabilities and quickly fixing them is like stopping the bleeding of a badly hurt patient. It’s important to do, but it’s also important to prevent vulnerabilities long term. Thankfully, AI can help do that as well.

## Limit vibe coding

The practice of using AI to generate code and *not* having a human review the results is called *vibe coding*. If the results are important for security, don’t do that.

Modern AI has become far better at generating code. However, AI often generates insecure code. If the code can’t have a security impact (e.g., it doesn’t process untrusted input), vibe coding may be fine. However, if its failures may cause serious problems, don’t accept AI-generated code without review.

The increased use of vibe coding in security-relevant code has led to an explosion in the number of *vulnerable* code releases. “Researchers at Georgia Tech’s Vibe Security Radar tracked CVEs directly attributable to AI coding tools and found that March 2026 alone produced more than all of 2025 combined.” \[[Holterhoff2026](https://redmonk.com/kholterhoff/2026/05/05/ai-slop-vulnerability-treadmill/)\]

Stay skeptical. In a controlled study, participants with access to an AI assistant “wrote significantly less secure code than those without access” yet “were more likely to believe they wrote secure code” \[[Perry2023](https://arxiv.org/abs/2211.03622)\]. Participants who trusted the AI less and worked more on their prompts produced code with fewer vulnerabilities.

You can reduce the number of vulnerabilities AI code assistants generate in the first place by giving them security-focused instructions; see the OpenSSF “Security-Focused Guide for AI Code Assistant Instructions” \[[OpenSSF2025-AIInstructions](https://best.openssf.org/Security-Focused-Guide-for-AI-Code-Assistant-Instructions.html)\].

Where security matters, you need to have AI look for vulnerabilities and then have human review of that AI-generated code. You *can* use AI to generate code\! Generating code with AI, especially code that doesn’t process untrusted inputs and doesn’t need good performance, can save time. The problem arises if you unwisely believe that AI-generated code never has defects or vulnerabilities.

Someday this review may no longer be necessary, or perhaps it can be completely automated. We can’t predict how good AI will get over time, or at what rate. However, at the time of this writing, human review is necessary if failures can cause serious problems.

QUIZ\
Q1. What does the material warn about unreviewed AI-generated code (“vibe coding”)?

A) It’s inherently more secure than any human-written code\
B) It can’t be reviewed by any automated tool at all\
C) It often introduces vulnerabilities, so it needs scanning plus human review\
D) Most major open source projects have banned all AI-generated results in all cases

Answer: C

Feedback:

A) Incorrect. The material says AI often generates insecure code, partly because it’s trained on lots of insecure code.\
B) Incorrect. AI-generated code can be reviewed automatically. The material recommends having AI look for vulnerabilities in it, followed by human review.\
C) Correct. Unreviewed AI-generated code often has vulnerabilities; CVEs directly attributable to AI coding tools rose sharply in 2026\. Where security matters, have AI look for vulnerabilities and have humans review the code.\
D) Incorrect. The material doesn’t say most open source projects have banned AI-generated code. It says you *can* use AI to generate code in many projects, but where security matters, have it reviewed.\
ENDQUIZ

## Evaluate merge/pull requests

In all cases, whether code changes were created by AI or by humans, look for vulnerabilities in each merge/pull request.

Here are some tips:

* Have AI and a human review the proposed change before it’s even submitted
* Use tools that can scan pull/merge requests and report on them, as discussed in “[How to apply processes for using AI to find and fix vulnerabilities](#how-to-apply-processes-for-using-ai-to-find-and-fix-vulnerabilities)”. Some tools specialize in this, such as Sashiko for the Linux kernel.
* “Enforce automated security assessments consistently in your development processes, including using LLM-powered agents to find vulnerabilities before attackers do” \[[CSA2026](https://labs.cloudsecurityalliance.org/mythos-ciso/)\]
* “All code (human or AI-generated) should pass LLM-driven security review before merge.” \[[CSA2026](https://labs.cloudsecurityalliance.org/mythos-ciso/)\]

Be careful when you run AI agents in CI/CD on proposed changes. When a change comes from an untrusted contributor, its title, description, comments, commit messages, and code are all attacker-controlled. An AI agent treats all of that as input, so an attacker can try to use it to give the agent new instructions (prompt injection).

This isn’t hypothetical. In 2025, Aikido Security reported “PromptPwnd”, where GitHub Actions and GitLab CI/CD workflows embedded information from untrusted issue, pull request, or commit into AI agent prompts. They reported that “At least 5 Fortune 500 companies are impacted” \[[Daelman2025](https://www.aikido.dev/blog/promptpwnd-github-actions-ai-agents)\]. In 2026, Aonan Guan and colleagues showed that a malicious pull request title, issue comment, or hidden HTML comment in an issue could make Anthropic’s Claude Code Security Review, Google’s Gemini CLI Action, and GitHub’s Copilot Agent leak the repository’s own API keys and access tokens \[[Guan2026](https://oddguan.com/blog/comment-and-control-prompt-injection-credential-theft-claude-code-gemini-cli-github-copilot/)\]. Note that one of those was a security review tool. As Guan explains, the problem is that “these AI agents are given powerful tools (bash execution, git push, API calls) and secrets (API keys, tokens) in the same runtime that processes untrusted user input.”

In the 2025 “s1ngularity” attack, compromised versions of the Nx build package ran any installed Claude, Gemini, or Amazon Q command-line agent on a developer’s system with its permission checks disabled (e.g., \--dangerously-skip-permissions) and used it to search the developer’s system for secrets. StepSecurity called this “the first known case where attackers have turned developer AI assistants into tools for supply chain exploitation” \[[Kurmi2025](https://www.stepsecurity.io/blog/supply-chain-security-alert-popular-nx-build-system-package-compromised-with-data-stealing-malware)\]. As we noted earlier, it’s important to run agents inside a sandbox.

If you run an AI agent on untrusted proposed changes:

1. *Don’t give that agent secrets or write-capable tokens*. By default, GitHub Actions doesn’t expose secrets to pull requests from forks, but some workflows grant that access anyway, e.g., by using the pull\_request\_target trigger \[[Guan2026](https://oddguan.com/blog/comment-and-control-prompt-injection-credential-theft-claude-code-gemini-cli-github-copilot/)\]. Don’t do that for AI agents.
2. *Give a review agent the fewest tools practical* \[[Daelman2025](https://www.aikido.dev/blog/promptpwnd-github-actions-ai-agents)\]. A reviewer of a proposed change usually needs to read code and produce a report; it rarely needs a shell, network access, or permission to push, merge, or edit issues. An agent used to *find* vulnerabilities may need more capabilities, but reviewing a proposed change from an untrusted proposer is different.
3. *Where an agent needs credentials, use short-lived, narrowly scoped ones*.
4. *Treat the agent’s output as untrusted data*. Don’t let it automatically trigger privileged actions; put a human gate in front of them (see “[Establish a human gate and kill switch](#establish-a-human-gate-and-kill-switch)”).
5. *Separate analysis from action*. A low-privilege agent can analyze and report, while a *different*, trusted process (or a human) should decide what to do with that report.

![A robot is in a sandbox and is passing an approved set of pages to a man outside the sandbox](images/robot-sandbox-passing-approved-set-pages.jpg){width=414 height=225}

QUIZ\
Q1. Why is it risky to review pull requests from untrusted contributors with an AI review agent that has repository secrets?

A) Text an attacker puts in the pull request can instruct the agent to leak secrets or take other malicious actions\
B) Review agents usually approve changes from new contributors without examining the proposed code closely\
C) Secrets given to the agent become part of the model’s training data and can appear in later responses\
D) Untrusted changes force the agent to use a far larger context window, which sharply raises its costs

Answer: A

Feedback:

A) Correct. A pull request’s title, description, comments, commit messages, and code are all controlled by the submitter, and in many cases that submitter could be an attacker. An AI agent treats all of it as input. Prompt injection has made real review agents leak a repository’s API keys and access tokens. Don’t give such agents secrets or write-capable tokens.\
B) Incorrect. The material doesn’t say review agents are lax. The risk is that text in the pull request can give the agent new instructions (prompt injection).\
C) Incorrect. The concern is prompt injection while the agent runs. In the cited attacks, review agents leaked secrets directly, with no training involved.\
D) Incorrect. The concern is security, not cost. An agent that has secrets and powerful tools in the same runtime that processes untrusted input can be manipulated into leaking them.\
ENDQUIZ

## Apply secure by design and secure by default

*Only* trying to find and fix software vulnerabilities one at a time will not succeed in the long term. It’s *necessary*, but future changes might re-introduce other vulnerabilities. So, also apply the general principles of secure-by-design and secure-by-default.

As always, if a system is to be secure in the real world, it must be:

* Secure-by-design: Design the software to be secure from the outset.
  * For example, limit its attack surface and apply defense-in-depth \[[FiveEyes2026](https://www.cyber.gov.au/sites/default/files/2026-06/Five%20eyes%20cyber%20security%20agencies%20statement.pdf)\].
  * Ensure that security checks run where attackers can’t bypass them (e.g., on the server, not only in the client, if an attacker can control a client). See OWASP ASVS 5.0 requirements V2.2.2 and V8.3.1 for their discussion on input validation and authorization \[[OWASP-ASVS5](https://owasp.org/www-project-application-security-verification-standard/)\].
* Secure-by-default: Release the software so that it’s secure by default during installation.
  * Most users install the unchanged default, so the default security *is* the security of most installations.
  * A “hardening guide” that users must apply after installation indicates insecure defaults; those steps should have been applied before release.
  * If necessary, provide a “loosening guide” explaining how to disable security mechanisms in special cases, including the risks involved.

Secure-by-design and secure-by-default “must become standard practice – not an aspiration” \[[FiveEyes2026](https://www.cyber.gov.au/sites/default/files/2026-06/Five%20eyes%20cyber%20security%20agencies%20statement.pdf)\].

QUIZ\
Q1. What does “secure-by-default” mean, per the material?

A) Security features exist but must be manually enabled after reading a guide\
B) The software is secure in its default installation, without extra hardening steps\
C) The software’s entire source code is kept fully confidential\
D) The software updates itself automatically, without any user consent

Answer: B

Feedback:

A) Incorrect. That’s the opposite of secure-by-default. A hardening guide that users must apply after installation indicates insecure defaults.\
B) Correct. Secure-by-default software is secure in its unchanged default installation. Most users install the default, so the default security is the security of most installations. If necessary, provide a “loosening guide” for special cases.\
C) Incorrect. Secure-by-default is about the default configuration of installed software, not about keeping source code confidential.\
D) Incorrect. Secure-by-default is about the default configuration of installed software, not automatic updates without consent.\
ENDQUIZ

## Harden

A key aspect of secure-by-design is *hardening*, that is, modifying the system/software so that defects are *systematically* unlikely to be exploitable or have more limited impact. As much as practical, apply hardening.

Defects are inevitable, but they do *not* necessarily need to be vulnerabilities. If vulnerabilities *do* exist, it’s best to constrain the likelihood of their exploitation and their impact as much as practical. The goal is to make it difficult for an attacker to *exploit* a defect, preventing defects from becoming serious vulnerabilities.

![A central castle with a human and robot surrounded by multiple, concentric layers of fortified stone walls and moats, visualizing the system hardening.](images/central-castle-human-robot-surrounded-by.jpg){width=413 height=225}

### Applying hardening

Apply hardening, using as many different techniques as make sense in your situation.

Some hardening measures are well-known industry-wide. For example, some languages are “memory-unsafe”, primarily C and C++. A memory-unsafe language does not, by default, protect against common memory errors such as reading or writing an array out of bounds. As a result, both humans and AI tend to produce more vulnerabilities in these languages. They’re also more difficult to analyze later, leading to more false positives \[[Bourzikas2026](https://blog.cloudflare.com/cyber-frontier-models/)\]. There are hardening approaches for this situation:

* One approach is to rewrite that software in a memory-safe language such as Rust. If this significantly hurts performance, selected memory checks can be disabled where they're unnecessary *and* performance is critical.
* Another approach is to implement additional mechanisms to reduce the likelihood that an undetected memory-safety issue becomes a vulnerability. One example is applying the OpenSSF Compiler Options Hardening Guide for C and C++ \[[OpenSSF2026-06](https://best.openssf.org/Compiler-Hardening-Guides/Compiler-Options-Hardening-Guide-for-C-and-C++.html)\]. Projects like the Linux kernel create new APIs (such as strscpy) *specifically* to reduce the likelihood of vulnerabilities due to memory-safety issues.

Other software hardening measures are specific to a particular program, developed after examining lessons learned from that software. Mozilla reported that “in recent years we received several clever reports from security researchers that managed to escape the process sandbox by triggering prototype pollution in the privileged parent process. Rather than fixing these problems one-by-one, we made an architectural change to freeze these prototypes by default. While auditing logs from the harness, we saw many attempts to pursue this line of escape that were thwarted by this design” \[[Grinstead2026-05](https://hacks.mozilla.org/2026/05/behind-the-scenes-hardening-firefox/)\].

**Hardening works.** Many well-run projects report that hardening measures *do* counter attackers, including powerful AI models. Mozilla reported that “just as interesting as what the models found is what they didn’t find — not because they didn’t try, but because they were unable to circumvent Firefox’s layered defenses.” \[[Grinstead2026-05](https://hacks.mozilla.org/2026/05/behind-the-scenes-hardening-firefox/)\] Similarly, Anthropic reported that Mythos Preview identified many areas of the Linux kernel that *appeared* to be vulnerabilities, yet “because of the Linux kernel’s defense in depth measures Mythos Preview was unable to successfully exploit any of these.” \[[Carlini2026](https://red.anthropic.com/2026/mythos-preview/)\]

### Harden to counter chaining

It’s always been good practice to harden software or systems; however, AI has made it even more important, as hardening can sometimes counter *chaining*.

*Chaining* refers to the ability of modern AI systems to combine multiple defects into an exploitable vulnerability. Skilled human attackers have long been able to do this, but the ability of AI systems to chain multiple defects into an attack makes chained attacks much cheaper and easier to execute.

However, *not* all hardening measures are as effective against chaining. There are different kinds of hardening, *reliable* and *unreliable*:

1. *Reliable* hardening mechanisms are those that *consistently* prevent certain kinds of defects from becoming vulnerabilities.
2. *Unreliable* hardening mechanisms are mechanisms that only make it *somewhat more difficult* to turn a defect into a vulnerability. That is, unreliable hardening mechanisms can be circumvented with additional effort, typically by performing a tedious task.

Both kinds can counter attackers who don’t use AI. In many cases, a human attacker may decide that the second kind isn’t worth the effort. However, modern AI dramatically reduces the effort required to carry out certain types of attacks.

Anthropic reported that, “We have nearly a dozen examples of Mythos Preview successfully chaining together two, three, and sometimes four vulnerabilities in order to construct a functional exploit on the Linux kernel… \[modern AI requires rethinking of\] measures that make exploitation tedious, rather than impossible. When run at large scale, language models grind through these tedious steps quickly. Mitigations whose security value comes primarily from friction rather than hard barriers… become considerably weaker against model-assisted adversaries” \[[Carlini2026](https://red.anthropic.com/2026/mythos-preview/)\]. This ability to chain defects together often defeats the “somewhat more difficult” hardening measures.

*Do* use *reliable* hardening measures, that is, mechanisms that *always* counter certain kinds of defects:

* For example, the “W^X” countermeasure ensures that memory regions are writable *or* executable, but not both. This countermeasure *systematically* prevents unauthorized writes to memory becoming directly executable.
* Parameterized statements *reliably* counter SQL injection; use them.

However, unreliable hardening mechanisms (mechanisms that merely make a defect “slightly more difficult” to exploit) are much weaker against AI. For example, “modern browsers run JavaScript through a Just-In-Time (JIT) compiler that generates machine code on the fly. This makes the memory layout dynamic and unpredictable \[so that exploiting the vulnerabilities is more difficult for humans, yet\] Mythos Preview fully autonomously discovered the necessary read and write primitives, and then chained them together to form a JIT heap spray \[exploitation\]” \[[Carlini2026](https://red.anthropic.com/2026/mythos-preview/)\]. These layout variations weren’t designed to counter attacks, but historically they protected systems anyway, because it was too much effort for most human attackers to counteract the variations enough to form an attack. However, an AI can determine the layout cheaply enough that these kinds of attacks can become practical.

Address space layout randomization (ASLR) is an interesting illustration of the difference between reliable and unreliable hardening measures. ASLR is a reliable measure only if (1) there are enough randomization bits that brute-force guessing is impractical for performing an attack, and (2) there’s no way for an attacker to reveal data that would enable them to speed the attack beyond a brute-force attack. Unfortunately, it’s often possible for attackers to obtain data that reveals the random value. If an attacker can determine the random value, then once again AI can chain attacks. We recommend continuing to use ASLR, as it’s usually an easily-enabled defense. However, because ASLR is quietly broken if an attacker can determine its random value, and attackers can often obtain this value, don’t count on ASLR alone as a defense.

Hardening still matters, but you need to use *reliable* hardening mechanisms.

### Evaluate with hardening disabled and evaluate the hardening

Where sensible, try to *disable* a system's hardening mechanisms when trying to find and fix vulnerabilities in that system. This helps implement “defense in depth” where practical.

The system should be designed so that, where practical, an attacker must defeat *multiple* mechanisms to exploit the system. If the AI system is asked to evaluate the system only with all its hardening mechanisms in place, it will often not report cases where a single hardening mechanism alone prevented an attack.

For example, in one analysis of Mozilla’s Firefox, their testing environment “intentionally removed some of the security features found in modern browsers. This includes, most importantly, the sandbox, the purpose of which is to reduce the impact of these types of vulnerabilities” \[[Anthropic2026-03](https://www.anthropic.com/news/mozilla-firefox-security)\]. In this weakened environment, the AI “is tasked with developing an exploit” \[[Anthropic2026-04s](https://www-cdn.anthropic.com/08ab9158070959f88f296514c21b7facce6f52bc.pdf)\].

In addition, have the AI look for *defects in the hardening mechanisms themselves*, such as looking for a “sandbox escape”. The goal is to allow the model to craft an attack that the hardening mechanism should prevent, and ensure that the hardening mechanism works against active attacks. This kind of evaluation was *also* done with Mozilla Firefox, where the AI was “permitted to patch the Firefox source code, so long as the modified code is restricted to run only in the sandboxed process. Such bugs are notoriously difficult to find with fuzzing… AI analysis provides much more comprehensive coverage of this critical surface” \[[Grinstead2026-05](https://hacks.mozilla.org/2026/05/behind-the-scenes-hardening-firefox/)\].

Evaluate the system *without* its hardening mechanisms, and separately evaluate the hardening mechanisms *themselves*, to try to improve them both. If you improve both, the result is much stronger *defense-in-depth*. The goal is a system in which attackers often must break *multiple* mechanisms to succeed.

### Harden the deployed environment and infrastructure

Organizations need to focus on security basics and harden their organization’s environment and infrastructure. What organizations must do isn’t new, but it now has a new sense of urgency.

Several government cybersecurity agencies recommended the following practical actions:

1. “Reduce your attack surface: Limit unnecessary system access and external connectivity. Challenge whether systems need to be exposed at all and isolate those that do not.
2. Accelerate patching processes: AI is shortening the time between vulnerability discovery and exploitation. Delays in patching increase risk, especially for operational systems with long update cycles. Prioritize security updates accordingly to manage risks.
3. Address legacy systems: Unsupported systems are easy targets. They are not just technical debt; they are strategic liabilities.
4. Review and strengthen identity and access controls: Limit who can access critical systems. Enforce strong authentication and regularly review permissions.
5. Prepare for incidents before they happen: Test response plans, train and prepare teams, and assume breaches will occur. Focus on fast containment and recovery.” \[[FiveEyes2026](https://www.cyber.gov.au/sites/default/files/2026-06/Five%20eyes%20cyber%20security%20agencies%20statement.pdf)\]

Similarly, the UK NCSC recommends that organizations “put in place a policy to ‘update by default’ where you always apply software updates as soon as possible, and ideally automatically”. Where organizations can’t update everything, “they should prioritise applying updates to their external attack surfaces” \[[Whitehouse2026](https://www.ncsc.gov.uk/blogs/prepare-for-vulnerability-patch-wave)\]. It’s true that “update by default” is a risk; the update may break functionality, or an attacker may subvert an update or the update process. However, the risk from *failing* to update is usually far greater.

The CSA notes that the basics still matter: “segmentation, egress filtering, multifactor authentication, and defense-in-depth/breadth all increase the difficulty for attackers… the basics remain valid and can be prioritized for risks that can’t be easily mitigated. Implement egress filtering (it blocked every public Log4j exploit). Enforce deep segmentation and zero trust where possible. Lock down your dependency chain. Mandate phishing-resistant MFA for all privileged accounts. Every boundary increases attacker cost” \[[CSA2026](https://labs.cloudsecurityalliance.org/mythos-ciso/)\]. It adds that “\[minimizing\] base operating system images, or replacing third-party libraries with framework primitives as they emerge over time” can reduce an organization’s attack surface, and that AI can help do this \[[CSA2026](https://labs.cloudsecurityalliance.org/mythos-ciso/)\].\
Many recommendations focus on identity. CrowdStrike reports, “identity sits at the center of this problem. Many successful attacks do not end with the initial exploit. They become dangerous when they allow an adversary to assume a trusted identity, obtain credentials, or abuse excessive privileges. … \[Prevention\] includes enforcing zero standing privileges, continuously verifying access, limiting credential exposure, and connecting identity posture to endpoint and workload context in Real-time.” \[[CrowdStrike2026-FiveSteps](https://www.crowdstrike.com/en-us/resources/white-papers/five-steps-for-frontier-ai-security-readiness/)\]

Attackers may still manage to slip in. Logging/internal telemetry, offline backups, and having a Continuity of Operations Plan (COOP) are as vital as ever.

**Resilience is no longer optional**. CrowdStrike states that cyber resilience is becoming foundational. “As exploitation windows shrink, rapid recovery, low-disruption patching, and containment without business interruption become core defensive requirements. In a frontier AI threat model, resiliency is no longer a differentiator layered on top of prevention. It is part of prevention.” \[[CrowdStrike2026-FiveSteps](https://www.crowdstrike.com/en-us/resources/white-papers/five-steps-for-frontier-ai-security-readiness/)\]

All of this requires continuously testing organizations’ security assumptions. “Controls that look strong on paper may fail in practice. Segmentation may not be enforced consistently. Privileged access may be broader than expected. Exposure management must become dynamic, evidence-based, and specific to the environment.” \[[CrowdStrike2026-FiveSteps](https://www.crowdstrike.com/en-us/resources/white-papers/five-steps-for-frontier-ai-security-readiness/)\]

However, there’s no need to *panic*. All of this was true before AI; it’s simply more important to *execute*. What’s more, even the most advanced AI models cannot simply create vulnerabilities where none exist. As Red Hat’s Gunnar Hellekson notes, “context renders many bugs useless \[and\] some ‘vulnerabilities’ identified by AI are actually functionality bugs with no meaningful exploit path. Many issues \[are low risk\] because the affected \[components are rarely exposed to the internet\].” \[[Hellekson2026](https://www.redhat.com/en/blog/navigating-mythos-haunted-world-platform-security)\] In short, AI may find many “vulnerabilities” as defined by some document, yet many won’t be significant in your context. Act promptly on the ones that are.

QUIZ\
Q1. Why does the material say hardening that only makes exploitation “somewhat more difficult” is weak against modern AI attackers?

A) AI can grind through tedious steps quickly at scale, defeating friction\
B) AI systems will always refuse to attempt attacks on a hardened system\
C) Such hardening measures are prohibited from any production deployment\
D) AI can’t exploit any hardened system, regardless of hardening type

Answer: A

Feedback:

A) Correct. When run at large scale, AI grinds through tedious steps quickly, so mitigations whose value comes mainly from friction become considerably weaker. Use reliable hardening measures, such as parameterized statements to counter SQL injection.\
B) Incorrect. AI systems do attack hardened systems. Mythos Preview, for example, chained multiple vulnerabilities into working exploits on the Linux kernel.\
C) Incorrect. Such measures aren’t prohibited. The material recommends continuing to use ASLR, for example, just not counting on it alone.\
D) Incorrect. AI can defeat hardening that only adds friction. For example, Mythos Preview worked around the unpredictable memory layout created by browser JIT compilers. Reliable hardening has stopped AI models, but not all hardening is reliable.\
ENDQUIZ\
QUIZ\
Q1. Why does the material recommend disabling hardening mechanisms during some evaluation runs?

A) To make the AI’s task easier by removing all security controls\
B) Because hardening mechanisms tend to interfere with AI training data\
C) To reveal defects that the hardening mechanism would otherwise hide\
D) Because hardening mechanisms are considered deprecated as of 2026

Answer: C

Feedback:

A) Incorrect. Making the AI’s task easier isn’t the goal, and you don’t remove *all* controls (the AI still needs its own sandbox). The goal is to find defects that hardening otherwise hides.\
B) Incorrect. The material doesn’t connect hardening to AI training data. Disabling hardening helps reveal defects that a single mechanism hides.\
C) Correct. If the AI only evaluates the system with all its hardening in place, it often won’t report cases where a single hardening mechanism alone prevented an attack. Evaluate the system without its hardening, and separately evaluate the hardening itself, for stronger defense in depth.\
D) Incorrect. The material says hardening works, and it’s a key part of secure-by-design. You disable it only during some evaluation runs, and you separately evaluate the hardening itself.\
ENDQUIZ

QUIZ\
End-of-chapter quiz question\
Q1. What did a controlled study cited in the material find about developers using an AI assistant?

A) They wrote less secure code, yet were more likely to believe their code was secure\
B) They wrote more secure code, and were more likely to doubt their code was secure\
C) They wrote code that was just as secure, but they took much longer to finish tasks\
D) They wrote less secure code, but they correctly recognized their code was insecure

Answer: A

Feedback:

A) Correct. Participants with an AI assistant “wrote significantly less secure code than those without access” yet “were more likely to believe they wrote secure code”. Those who trusted the AI less and worked more on their prompts produced code with fewer vulnerabilities. Stay skeptical.\
B) Incorrect. It’s the reverse on both counts: they wrote *less* secure code and were *more* confident in it.\
C) Incorrect. The study found a security difference: participants with the AI assistant wrote significantly less secure code.\
D) Incorrect. They did write less secure code, but they *didn’t* recognize it; they were more likely to believe their code was secure.\
ENDQUIZ

QUIZ\
End-of-chapter quiz question\
Q1. If you run an AI agent to review proposed changes from untrusted contributors, which approach does the material recommend?

A) Give the agent write tokens, so it can fix any problems it finds immediately\
B) Have a low-privilege agent report, and a trusted process or human decide\
C) Let the agent merge any change it approves, to keep reviews moving quickly\
D) Use the pull\_request\_target trigger, so the agent can use repository secrets

Answer: B

Feedback:

A) Incorrect. Don’t give such an agent secrets or write-capable tokens. Attackers control the change’s text and code, and can use prompt injection to try to make the agent misuse them.\
B) Correct. Separate analysis from action. Give the review agent the fewest tools practical, usually just enough to read code and produce a report, and treat its output as untrusted data. A different, trusted process or a human decides what to do with that report.\
C) Incorrect. Treat the agent’s output as untrusted data, and don’t let it automatically trigger privileged actions like merging; put a human gate in front of them.\
D) Incorrect. By default, GitHub Actions doesn’t expose secrets to pull requests from forks, but triggers like pull\_request\_target can grant that access. The material says not to do that for AI agents.\
ENDQUIZ

QUIZ\
End-of-chapter quiz question\
Q1. What does the material say about address space layout randomization (ASLR) as a hardening measure?

A) It’s obsolete against AI attackers, so disable it to improve performance\
B) It’s always reliable, so it can serve as your only memory-safety defense\
C) Keep using it, but don’t rely on it alone, as its random value often leaks\
D) It only works for memory-safe languages, so it doesn’t help C or C++ at all

Answer: C

Feedback:

A) Incorrect. The material recommends continuing to use ASLR, since it’s usually an easily enabled defense.\
B) Incorrect. ASLR is reliable only if there are enough random bits to make guessing impractical *and* attackers can’t obtain data revealing the random value. Attackers often can obtain it. In addition, some memory safety attacks are not countered by ASLR.\
C) Correct. If an attacker can determine ASLR’s random value, ASLR is quietly broken, and AI can then chain attacks. It’s still worth enabling, but don’t count on it alone.\
D) Incorrect. ASLR randomizes memory layout, which mainly matters as a defense for memory-unsafe code. The material’s concern is that attackers can often learn the random value.\
ENDQUIZ

QUIZ\
End-of-chapter quiz question\
Q1. What hardening approaches does the material describe for software written in memory-unsafe languages such as C and C++?

A) Add more code comments, so AI tools can find the memory errors themselves\
B) Hide the source code, so attackers can’t analyze how the program uses memory\
C) Disable compiler warnings, so developers can focus on the real vulnerabilities\
D) Add hardening options and safer APIs, or rewrite it in a memory-safe language

Answer: D

Feedback:

A) Incorrect. Comments can help AI analysis, but they don’t harden the software. Hardening makes defects systematically unlikely to be exploitable.\
B) Incorrect. Hiding source code doesn’t help. The material notes that AI can reconstruct plausible source code from a closed-source, stripped binary.\
C) Incorrect. Warnings help detect possible defects. The material recommends adding protections, such as the options in the OpenSSF Compiler Options Hardening Guide, not removing checks.\
D) Correct. One approach is to add mechanisms that make it less likely that an undetected memory-safety issue becomes a vulnerability, such as the OpenSSF Compiler Options Hardening Guide for C and C++, or safer APIs like the Linux kernel’s strscpy. Another approach is to rewrite the software in a memory-safe language such as Rust.\
ENDQUIZ

QUIZ\
End-of-chapter quiz question\
Q1. Per the material’s discussion of secure-by-design, where should security checks run?

A) Where attackers can’t bypass them, which usually means on the server\
B) Only in the client, so bad data never reaches the server\
C) Only in the CI/CD pipeline, since checks at run time slow down the application\
D) Wherever is fastest to implement, since hardening will catch anything missed

Answer: A

Feedback:

A) Correct. Ensure that security checks run where attackers can’t bypass them. If an attacker can control a client, checks only in the client don’t protect the server. OWASP ASVS 5.0 discusses this for input validation and authorization.\
B) Incorrect. An attacker who controls the client can bypass any checks there. For example, if an attacker can use their own web browser, the attacker can have their web browser do whatever the attacker wants. Security checks must run where the attacker can’t bypass them; in many cases that’s on the server.\
C) Incorrect. CI/CD checks examine your code before release; they can’t check what attackers send at run time. Security checks must run where attackers can’t bypass them.\
D) Incorrect. Hardening is an additional defense, not a replacement for secure design. The goal is a system where attackers must defeat multiple mechanisms.\
ENDQUIZ

QUIZ\
End-of-chapter quiz question\
Q1. What does the material say about adopting an “update by default” policy for software you use?

A) Avoid it, since updates break functionality more often than attacks occur\
B) Adopt it, since the risk from failing to update is usually far greater\
C) Adopt it only for internal systems, never for internet-facing systems\
D) Avoid it, since attackers subvert most automatic updates in practice

Answer: B

Feedback:

A) Incorrect. The material acknowledges that an update may break functionality, but says the risk from failing to update is usually far greater.\
B) Correct. The UK NCSC recommends a policy to “update by default”, always applying software updates as soon as possible, ideally automatically. Updating has risks, but failing to update is usually far riskier.\
C) Incorrect. It’s the reverse: where organizations can’t update everything, the NCSC says to prioritize updates to their external attack surfaces.\
D) Incorrect. The material notes that an attacker *may* subvert an update or the update process, but it doesn’t say that happens to most updates, and it still recommends updating by default.\
ENDQUIZ

# Call to action

AI is changing things, including security. This doesn’t mean it’s time to panic. It means it’s time to work. Now.

AI can be used to help find and fix vulnerabilities. What’s more, over time, AI can help software developers build software with so few vulnerabilities that it will be incredibly difficult to subvert. Software developers, and those who work with them, have an opportunity to make the world a much more secure place.

Apply what you’ve learned:

1. Pick your most important project. Once it’s in good shape, repeat with the next.
2. Prepare to find and fix vulnerabilities: prepare the AI, its sandbox, and its logging, as well as the software’s threat model, code and documentation, CI/CD processes, and dependency updates.
3. Find & fix vulnerabilities using AI. Apply this repeatedly, since only one or a few runs can miss important vulnerabilities.
4. Prevent longer-term problems through process improvements (such as evaluating every merge/pull request) and hardening (both of systems and the broader environment).

Let’s get started.

# Acknowledgements

We wish to thank all contributors and reviewers, including Georg Kunz, Jeff Diecks, Laura Guazzelli, Ryan Jennings, and Santosh Kumar Puppala.

# Bibliography

* \[0xkato2024\] 0xkato, 2024-12-01, Get ready for an audit, [https\://www\.0xkato.xyz/Get-ready-for-an-audit/](https://www.0xkato.xyz/Get-ready-for-an-audit/)
* \[0xkato2026\] 0xkato, 2026-06-01, “How LLMs Actually Work”, [https\://www\.0xkato.xyz/how-llms-actually-work/](https://www.0xkato.xyz/how-llms-actually-work/)
* \[Agarwal2026\] Abhinav Agarwal, 2026-04-21, “Refute-or-Promote: An Adversarial Stage-Gated Multi-Agent Review Methodology for High-Precision LLM-Assisted Defect Discovery”, [https\://arxiv.org/abs/2604.19049](https://arxiv.org/abs/2604.19049)
* \[Chen2026\] Bo Chen, 2026-08-10, “From Runnable to Verifiable: An Independent Reproducibility Study of LLM/Agent-Driven Vulnerability Validation Artifacts”, [https\://arxiv.org/abs/2608.09567](https://arxiv.org/abs/2608.09567)
* \[Agyekum2026\] Benjamin Agyekum and Fabio Santos, 2026-08-13, “Does Fixing Break Security? An Empirical Study of Security Degradation in Iterative LLM-Driven Infrastructure-as-Code Repair”, 20th International Symposium on Empirical Software Engineering and Measurement (ESEM 2026), [https\://arxiv.org/abs/2608.13404](https://arxiv.org/abs/2608.13404)
* \[Ahmad2026\] Ahmad Osman, 2026, Anthropic's War on Opensource AI, [https\://x.com/TheAhmadOsman/status/2065307070044234186](https://x.com/TheAhmadOsman/status/2065307070044234186)
* \[Alibaba2026\] Alibaba, open-code-review README, [https\://github.com/alibaba/open-code-review](https://github.com/alibaba/open-code-review)
* \[Aniszczyk2026\] Aniszczyk, Chris (CNCF), David A. Wheeler (OpenSSF), Christopher “CRob” Robinson (OpenSSF), 2026-05, “Securing Open Source in the Age of AI”, [https\://openssf.org/resources/securing-open-source-in-the-age-of-ai-a-practical-guide/](https://openssf.org/resources/securing-open-source-in-the-age-of-ai-a-practical-guide/)
* \[Anthropic2026-04g\] Anthropic, 2026-04, “Project Glasswing: Securing critical software for the AI era”, [https\://www\.anthropic.com/glasswing](https://www.anthropic.com/glasswing)
* \[Anthropic2026-03\] Anthropic, 2026-03-06, “Partnering with Mozilla to improve Firefox’s security”, [https\://www\.anthropic.com/news/mozilla-firefox-security](https://www.anthropic.com/news/mozilla-firefox-security)
* \[Anthropic2026-04s\] Anthropic, 2026-04-07 (actually 2026-04-08), “System Card: Claude Mythos Preview”, [https\://www-cdn.anthropic.com/08ab9158070959f88f296514c21b7facce6f52bc.pdf](https://www-cdn.anthropic.com/08ab9158070959f88f296514c21b7facce6f52bc.pdf)
* \[Anthropic2026-06-12-Export-Control\] Anthropic, 2026-06-12, Statement on the US government directive to suspend access to Fable 5 and Mythos 5, [https\://www\.anthropic.com/news/fable-mythos-access](https://www.anthropic.com/news/fable-mythos-access)
* \[Anthropic2026-05\] Anthropic, “Project Glasswing: An initial update”, 2026-05-22, [https\://www\.anthropic.com/research/glasswing-initial-update](https://www.anthropic.com/research/glasswing-initial-update)
* \[Anthropic-07-27\] Anthropic, 2026-07-27, Our position on open-weights models, [https\://www\.anthropic.com/news/position-open-weights-models](https://www.anthropic.com/news/position-open-weights-models)
* \[Anthropic2026-08-21\] Anthropic, 2026-08-21, Bringing the cybersecurity capabilities of Claude Mythos 5 to more defenders, [https\://claude.com/blog/bringing-claude-mythos-5-to-more-defenders](https://claude.com/blog/bringing-claude-mythos-5-to-more-defenders)
* \[Berkeley\] Berkeley Vulnerability Initiative, [https\://vuln.cs.berkeley.edu/](https://vuln.cs.berkeley.edu/)
* \[Bishop2026\] Bishop, Todd, 2026-05-13, “Microsoft’s multi-agent AI system tops Anthropic’s Mythos on cybersecurity benchmark”, [https\://www\.geekwire.com/2026/microsofts-multi-agent-ai-system-tops-anthropics-mythos-on-cybersecurity-benchmark/](https://www.geekwire.com/2026/microsofts-multi-agent-ai-system-tops-anthropics-mythos-on-cybersecurity-benchmark/)
* \[Bourzikas2026\] Bourzikas, Grant, 2026-05-18, “Project Glasswing: what Mythos showed us” [https\://blog.cloudflare.com/cyber-frontier-models/](https://blog.cloudflare.com/cyber-frontier-models/)
* \[Bressers2025\] Bressers, Josh, and Joshua Rogers, 2025-10-13, “Actually finding vulnerabilities using AI with Joshua Rogers”, Open Source Security Podcast, [https\://opensourcesecurity.io/2025/2025-10-ai-joshua-rogers/](https://opensourcesecurity.io/2025/2025-10-ai-joshua-rogers/)
* \[Brown2026\] Jarom Brown, 2026-05-15, “Raising the bar: Quality, shared responsibility, and the future of GitHub’s bug bounty program”, The GitHub Blog, [https\://github.blog/security/raising-the-bar-quality-shared-responsibility-and-the-future-of-githubs-bug-bounty-program/](https://github.blog/security/raising-the-bar-quality-shared-responsibility-and-the-future-of-githubs-bug-bounty-program/)
* \[Buttell2026\] Amy Buttell, 2026-04-04, AI Code Risks Escalate: The use of AI coding tools continues to accelerate even as trust declines and risks proliferate, [https\://cacm.acm.org/news/ai-code-risks-escalate/](https://cacm.acm.org/news/ai-code-risks-escalate/)
* \[Capoot2026\] Ashley Capoot, 2026-06-30, “Anthropic says Trump admin has lifted export controls on Claude Fable 5 and Mythos 5”, CNBC, [https\://www\.cnbc.com/2026/06/30/anthropic-says-trump-admin-has-lifted-export-controls-on-claude-fable-5-and-mythos-5.html](https://www.cnbc.com/2026/06/30/anthropic-says-trump-admin-has-lifted-export-controls-on-claude-fable-5-and-mythos-5.html)
* \[Carlini2026\] Nicholas Carlini, Newton Cheng, Keane Lucas, Michael Moore, Milad Nasr, Vinay Prabhushankar, Winnie Xiao, et al., 2026-04-07, “Assessing Claude Mythos Preview’s cybersecurity capabilities”, [https\://red.anthropic.com/2026/mythos-preview/](https://red.anthropic.com/2026/mythos-preview/)
* \[Carlini2026-youtube\] Nicholas Carlini, 2026, “Black-hat LLMs”, \[un\]prompted 2026” [https\://www\.youtube.com/watch?v=1sd26pWhfmg\&t=316s](https://www.youtube.com/watch?v=1sd26pWhfmg&t=316s)
* \[Carlini2026-02\] Carlini et al., 2026-02-05, “Evaluating and mitigating the growing risk of LLM-discovered 0-days”, [https\://red.anthropic.com/2026/zero-days/](https://red.anthropic.com/2026/zero-days/)
* \[Chin2026\] Andrew Chin, Dongkwan Kim, Yu-Fu Fu, Fabian Fleischer, Youngjoon Kim, HyungSeok Han, Cen Zhang, Brian Junekyu Lee, Hanqing Zhao, Taesoo Kim, 2026-03-25, “OSS-CRS: Liberating AIxCC Cyber Reasoning Systems for Real-World Open-Source Security”, [https\://arxiv.org/abs/2603.08566](https://arxiv.org/abs/2603.08566)
* \[Chin2026-slides\] Andrew Chin, Brian Lee, 2026, OSS-CRS Tutorial: Bug-Finding and Patching for the LLM Era (slides), Systems Software & Security Lab (Georgia Tech)  /  Team Atlanta, [https\://github.com/ossf/oss-crs/blob/main/docs/slides/svcc-2026.pptx](https://github.com/ossf/oss-crs/blob/main/docs/slides/svcc-2026.pptx)
* \[Chrome2026\] Chrome Security Team, 2026-07-30, Stronger with every update: How we’re making Chrome and the web safer in the AI Era, [https\://blog.google/security/chrome-stronger-with-every-update/](https://blog.google/security/chrome-stronger-with-every-update/)
* \[Catanzaro2026\] Michael Catanzaro, 2026-06-08, [https\://blogs.gnome.org/mcatanzaro/2026/06/08/please-do-not-ban-ai-assisted-issue-reports/](https://blogs.gnome.org/mcatanzaro/2026/06/08/please-do-not-ban-ai-assisted-issue-reports/)
* \[Chia2026\] Osmond Chia and Laura Cress, 2026-07-31, Anthropic's Claude AI escapes to hack into three organisations, BBC, [https\://www\.bbc.com/news/articles/cz7dl7w8y7po](https://www.bbc.com/news/articles/cz7dl7w8y7po)
* \[Churilov2026\] Aleksandr Churilov, 2026-05-16 (revised 2026-08-09), "The Range Shrinks, the Threat Remains: Re-evaluating LLM Package Hallucinations on the 2026 Frontier-Model Cohort", [https\://arxiv.org/abs/2605.17062](https://arxiv.org/abs/2605.17062)
* \[CISA2026-CVD\] CISA, NSA, JPCERT/CC, NCSC-NL, and NCSC-UK, 2026-07-15, “Establishing a Coordinated Vulnerability Disclosure Program to Work With Security Researchers”, [https\://www\.cisa.gov/resources-tools/resources/establishing-coordinated-vulnerability-disclosure-program-work-security-researchers](https://www.cisa.gov/resources-tools/resources/establishing-coordinated-vulnerability-disclosure-program-work-security-researchers)
* \[CloudFlare\] CloudFlare, “Can AI find vulnerabilities?”, [https\://www\.cloudflare.com/the-net/ai-vulnerabilities/](https://www.cloudflare.com/the-net/ai-vulnerabilities/)
* \[CrowdStrike2026-Global\] CrowdStrike, 2026, “CrowdStrike 2026: Global Threat Report: Year of the Evasive Adversary”, [https\://go.crowdstrike.com/2026-global-threat-report.html](https://go.crowdstrike.com/2026-global-threat-report.html)
* \[Cooter2026\] Maxwell Cooter, 2026-04-03, “Internet Bug Bounty program hits pause on payouts”, InfoWorld, [https\://www\.infoworld.com/article/4154210/internet-bug-bounty-program-hits-pause-on-payouts.html](https://www.infoworld.com/article/4154210/internet-bug-bounty-program-hits-pause-on-payouts.html)
* \[CrowdStrike2026-FiveSteps\] CrowdStrike. 2026\. Five Steps for Frontier AI Security Readiness. [https\://www\.crowdstrike.com/en-us/resources/white-papers/five-steps-for-frontier-ai-security-readiness/](https://www.crowdstrike.com/en-us/resources/white-papers/five-steps-for-frontier-ai-security-readiness/)
* \[CRA-AnnexI\] Cyber Resilience Act (CRA), [https\://eur-lex.europa.eu/eli/reg/2024/2847/oj/eng\#anx\_I](https://eur-lex.europa.eu/eli/reg/2024/2847/oj/eng#anx_I)
* \[crs-bug-finding-template\] crs-bug-finding-template \[for OSS-CRS\], [https\://github.com/Team-Atlanta/crs-bug-finding-template/](https://github.com/Team-Atlanta/crs-bug-finding-template/)
* \[CSA2026\] CSA CISO Community, SANS, \[un\]prompted, OWASP Gen AI Security Project and the wider community (and many contributing authors), 2026, “The “AI Vulnerability Storm”: Building a “Mythos-ready” Security Program”, [https\://labs.cloudsecurityalliance.org/mythos-ciso/](https://labs.cloudsecurityalliance.org/mythos-ciso/)
* \[Cycode2026\] Cycode Team, 6 Steps to be Mythos Ready: How to Prepare for the AI Vulnerability Storm, 2026-05-20, [https\://cycode.com/blog/claude-mythos-security-readiness/](https://cycode.com/blog/claude-mythos-security-readiness/)
* \[Daelman2025\] Rein Daelman, 2025-12-04 (last updated 2026-03-17), “PromptPwnd: Prompt Injection Vulnerabilities in GitHub Actions Using AI Agents”, Aikido Security, [https\://www\.aikido.dev/blog/promptpwnd-github-actions-ai-agents](https://www.aikido.dev/blog/promptpwnd-github-actions-ai-agents)
* \[DARPA2016\] DARPA, 2016-08-05, “DARPA Celebrates Cyber Grand Challenge Winners”, [https\://www\.darpa.mil/news/2016/cyber-grand-challenge-winners](https://www.darpa.mil/news/2016/cyber-grand-challenge-winners)
* \[Diecks2026\] Diecks, Jeff, 2026-04-02, “From AIxCC to OpenSSF: Welcoming OSS-CRS to Advance AI Driven”, [https\://openssf.org/blog/2026/04/02/from-aixcc-to-openssf-welcoming-oss-crs-to-advance-ai-driven-open-source-security/](https://openssf.org/blog/2026/04/02/from-aixcc-to-openssf-welcoming-oss-crs-to-advance-ai-driven-open-source-security/)
* \[Dinaburg2026\] Artem Dinaburg, 2026-08-26, VMs won't contain cyber-capable agents, Trail of Bits, [https\://blog.trailofbits.com/2026/08/26/vms-wont-contain-cyber-capable-agents/](https://blog.trailofbits.com/2026/08/26/vms-wont-contain-cyber-capable-agents/)
* \[Ding2025\] Yangruibo Ding, Yanjun Fu, Omniyyah Ibrahim, Chawin Sitawarin, Xinyun Chen, Basel Alomair, David Wagner, Baishakhi Ray, and Yizheng Chen, 2025, “Vulnerability Detection with Code Language Models: How Far Are We?”, 47th IEEE/ACM International Conference on Software Engineering (ICSE 2025), [https\://arxiv.org/abs/2403.18624](https://arxiv.org/abs/2403.18624)
* \[Dominus2026-03-05\] Mark Dominus, 2026-03-05, Documentation is a message in a bottle, [https\://blog.plover.com/tech/gpt/documentation-wins.html](https://blog.plover.com/tech/gpt/documentation-wins.html)
* \[Dominus2026-03-09\] Mark Dominus, 2026-03-09, “Programmers will document for Claude, but not for each other”, Blog post, [https\://blog.plover.com/tech/gpt/documentation-wins-2.html](https://blog.plover.com/tech/gpt/documentation-wins-2.html)
* \[Donnelly2026\] Donnelly, Tommy, 2026-04-15, “AI Is Finding Vulnerabilities Faster Than You Can Patch Them. Now What?” [https\://www\.amplifiersecurity.com/blog/ai-vulnerability-management-mythos](https://www.amplifiersecurity.com/blog/ai-vulnerability-management-mythos)
* \[FiveEyes2026\] Five Eyes, 2026-06-22, Five Eyes cyber security agencies statement, [https\://www\.cyber.gov.au/sites/default/files/2026-06/Five%20eyes%20cyber%20security%20agencies%20statement.pdf](https://www.cyber.gov.au/sites/default/files/2026-06/Five%20eyes%20cyber%20security%20agencies%20statement.pdf)
* \[Gerstenhaber2026\] Michael Gerstenhaber and Clemens Viernickel, 2026-07-21, “Now in preview: Find and fix software vulnerabilities with CodeMender”, Google Cloud Blog, [https\://cloud.google.com/blog/products/identity-security/find-and-fix-software-vulnerabilities-with-codemender](https://cloud.google.com/blog/products/identity-security/find-and-fix-software-vulnerabilities-with-codemender)
* \[Google-CodeMender-Docs\] Google Cloud, “CodeMender overview”, Gemini Enterprise Agent Platform documentation (accessed 2026-09-29), [https\://docs.cloud.google.com/gemini-enterprise-agent-platform/codemender](https://docs.cloud.google.com/gemini-enterprise-agent-platform/codemender)
* \[Grinstead2026-03\] Grinstead, Brian, Christian Holler, 2026-03-06, “Hardening Firefox with Anthropic’s Red Team” [https\://blog.mozilla.org/en/firefox/hardening-firefox-anthropic-red-team/](https://blog.mozilla.org/en/firefox/hardening-firefox-anthropic-red-team/)
* \[Grinstead2026-05\] Grinstead, Brian, Christian Holler, Frederik Braun, 2026-05-07, “Behind the Scenes Hardening Firefox with Claude Mythos Preview”, [https\://hacks.mozilla.org/2026/05/behind-the-scenes-hardening-firefox/](https://hacks.mozilla.org/2026/05/behind-the-scenes-hardening-firefox/)
* \[Guan2026\] Aonan Guan, with Zhengyu Liu and Gavin Zhong, 2026-04-15, “Comment and Control: Prompt Injection to Credential Theft in Claude Code, Gemini CLI, and GitHub Copilot Agent”, [https\://oddguan.com/blog/comment-and-control-prompt-injection-credential-theft-claude-code-gemini-cli-github-copilot/](https://oddguan.com/blog/comment-and-control-prompt-injection-credential-theft-claude-code-gemini-cli-github-copilot/)
* \[Hart2026\] Robert Hart, 2026-09-25, One company is at the center of a wave of rogue AI attacks: ﻿Mistakes at Israeli startup Irregular sent Anthropic, OpenAI, Meta, and Google agents after real-world targets, [https\://www\.theverge.com/ai-artificial-intelligence/1000644/irregular-rogue-ai-cyberattacks-hacking-openai-meta-anthropic-google](https://www.theverge.com/ai-artificial-intelligence/1000644/irregular-rogue-ai-cyberattacks-hacking-openai-meta-anthropic-google)
* \[Harzevili2024\] Nima Shiri Harzevili, Alvine Boaye Belle, Junjie Wang, Song Wang, Zhen Ming (Jack) Jiang, and Nachiappan Nagappan. 2024\. “A Systematic Literature Review on Automated Software Vulnerability Detection Using Machine Learning.” ACM Comput. Surv. 57, 3, Article 55 (Nov. 2024), 36 pages. [https\://doi.org/10.1145/3699711](https://doi.org/10.1145/3699711)
* \[Hellekson2026\] Gunnar Hellekson et al, 2026-04-08, “Navigating the Mythos-haunted world of platform security”, [https\://www\.redhat.com/en/blog/navigating-mythos-haunted-world-platform-security](https://www.redhat.com/en/blog/navigating-mythos-haunted-world-platform-security)
* \[Hillah2026\] Lom M. Hillah, Jean-Marc Richard, and Ryan Hasnaoui, 2026-06-11, "Bayesian-Calibrated Detection of Hallucinated Package Imports in AI-Assisted Code", [https\://arxiv.org/abs/2606.13918](https://arxiv.org/abs/2606.13918)
* \[Holterhoff2026\] Holterhoff, Kate, 2026-05-05, “AI Slop & the Vulnerability Treadmill”, [https\://redmonk.com/kholterhoff/2026/05/05/ai-slop-vulnerability-treadmill/](https://redmonk.com/kholterhoff/2026/05/05/ai-slop-vulnerability-treadmill/)
* \[Holley2026\] Bobby Holley, 2026-04-21, “The zero-days are numbered”, [https\://blog.mozilla.org/en/privacy-security/ai-security-zero-day-vulnerabilities/](https://blog.mozilla.org/en/privacy-security/ai-security-zero-day-vulnerabilities/)
* \[Hoodlet2026\] Keith Hoodlet, 2026-08-06, Vulnerability patches still require expert human review, [https\://1password.com/blog/why-ai-generated-patches-still-require-human-review](https://1password.com/blog/why-ai-generated-patches-still-require-human-review)
* \[HuggingFace2026\] Hugging Face, 2026-07-16, Security incident disclosure — July 2026, [https\://huggingface.co/blog/security-incident-july-2026](https://huggingface.co/blog/security-incident-july-2026)
* \[Karbasi2026\] Amin Karbasi, Supriti Vijay, Aman Priyanshu, Didier Chapoteau, Arthur Goldblatt, Kimia Majd, Fraser Burch, Jianliang He, Baturay Saglam, Takahiro Matsumoto, Zhuoran Yang, 2026-06-21, Introducing Antares: Highly Efficient Open Weight AI Models for Vulnerability Localization, [https\://blogs.cisco.com/ai/introducing-antares-the-most-efficient-open-weight-ai-models-for-vulnerability-localization](https://blogs.cisco.com/ai/introducing-antares-the-most-efficient-open-weight-ai-models-for-vulnerability-localization)
* \[Kholoosi2025\] M. Mehdi Kholoosi, Triet Huynh Minh Le, M. Ali Babar, 2025-12-23, “Software Vulnerability Management in the Era of Artificial Intelligence: An Industry Perspective”, [https\://arxiv.org/abs/2512.18261v2](https://arxiv.org/abs/2512.18261v2)
* \[Kim2026\] Kim Taesoo (VP, Agentic Security, Microsoft), 2026-05-12, “Defense at AI speed: Microsoft’s new multi-model agentic security system tops leading industry benchmark”, [https\://www\.microsoft.com/en-us/security/blog/2026/05/12/defense-at-ai-speed-microsofts-new-multi-model-agentic-security-system-tops-leading-industry-benchmark/](https://www.microsoft.com/en-us/security/blog/2026/05/12/defense-at-ai-speed-microsofts-new-multi-model-agentic-security-system-tops-leading-industry-benchmark/)
* \[Korda2026\] Nahum Korda and Gadi Evron, 2026-06-17, “OpenAnt: LLM-Powered Vulnerability Discovery Through Code Decomposition, Adversarial Verification, and Dynamic Testing”, [https\://arxiv.org/abs/2606.19149](https://arxiv.org/abs/2606.19149)
* \[Kovacs2026-08-24\] Eduard Kovacs, 2026-08-24, Anthropic Expands Mythos 5 Access to More Defenders, Unveils \$35M Open Source Fund, [https\://www\.securityweek.com/anthropic-expands-mythos-5-access-to-more-defenders-unveils-35m-open-source-fund/](https://www.securityweek.com/anthropic-expands-mythos-5-access-to-more-defenders-unveils-35m-open-source-fund/)
* \[Kurmi2025\] Ashish Kurmi, 2025-08-27, “s1ngularity: Popular Nx Build System Package Compromised with Data-Stealing Malware”, StepSecurity, [https\://www\.stepsecurity.io/blog/supply-chain-security-alert-popular-nx-build-system-package-compromised-with-data-stealing-malware](https://www.stepsecurity.io/blog/supply-chain-security-alert-popular-nx-build-system-package-compromised-with-data-stealing-malware)
* \[Kwa2025\] Thomas Kwa, Ben West, Joel Becker, Amy Deng, Katharyn Garcia, Max Hasin, Sami Jawhar, Megan Kinniment, Nate Rush, Sydney Von Arx, Ryan Bloom, Thomas Broadley, Haoxing Du, Brian Goodrich, Nikola Jurkovic, Luke Harold Miles, Seraphina Nix, Tao Lin, Neev Parikh, David Rein, Lucas Jun Koba Sato, Hjalmar Wijk, Daniel M. Ziegler, Elizabeth Barnes, Lawrence Chan, 2026-02-25, “Measuring AI Ability to Complete Long Software Tasks”, [https\://arxiv.org/abs/2503.14499](https://arxiv.org/abs/2503.14499)
* \[Kwa2025-blog\] Thomas Kwa, Ben West, Joel Becker, et al., 2025-03-19, [https\://metr.org/blog/2025-03-19-measuring-ai-ability-to-complete-long-tasks/](https://metr.org/blog/2025-03-19-measuring-ai-ability-to-complete-long-tasks/)
* \[Lakshmanan2026\] Ravie Lakshmanan, 2026-05-12, “OpenAI Launches Daybreak for AI-Powered Vulnerability Detection and Patch Validation”, The Hacker News, [https\://thehackernews.com/2026/05/openai-launches-daybreak-for-ai-powered.html](https://thehackernews.com/2026/05/openai-launches-daybreak-for-ai-powered.html)
* \[Larson2026\] Seth Larsen, 2026-02-24, Respecting maintainer time should be in security policies, [https\://sethmlarson.dev/respecting-maintainer-time-should-be-in-security-policies](https://sethmlarson.dev/respecting-maintainer-time-should-be-in-security-policies)
* \[Li2026\] Fengjie Li, Jiajun Jiang, Dongchi Chen, and Yingfei Xiong, 2026-01-27 (revised 2026-09-25), “LLM-based Vulnerability Detection at Project Scale: An Empirical Study”, [https\://arxiv.org/abs/2601.19239](https://arxiv.org/abs/2601.19239)
* \[Licklider1960\] J. C. R. “Lick” Licklider, 1960-03, Man-Computer Symbiosis, IRE Transactions on Human Factors in Electronics, volume HFE-1, pages 4-11, [https\://groups.csail.mit.edu/medg/people/psz/Licklider.html](https://groups.csail.mit.edu/medg/people/psz/Licklider.html)
* \[Li2025\] Yue Li, Xiao Li, Hao Wu, Minghui Xu, Yue Zhang, Xiuzhen Cheng, Fengyuan Xu, Sheng Zhong, 2025-04-18, Everything You Wanted to Know About LLM-based Vulnerability Detection But Were Afraid to Ask, [https\://arxiv.org/abs/2504.13474v1](https://arxiv.org/abs/2504.13474v1)
* \[Linux-AI\] Linux kernel developers, “AI Coding Assistants”, The Linux Kernel documentation, [https\://docs.kernel.org/process/coding-assistants.html](https://docs.kernel.org/process/coding-assistants.html)
* \[Linux-SecurityBugs\] Linux kernel developers, “Security bugs”, The Linux Kernel documentation, [https\://docs.kernel.org/process/security-bugs.html](https://docs.kernel.org/process/security-bugs.html)
* \[LowLevel2026\] Low Level, 2026, “Mythos has been unleashed (we have results)” \[video\], [https\://www\.youtube.com/watch?v=IS4OgH74gY4](https://www.youtube.com/watch?v=IS4OgH74gY4)
* \[Microsoft2026-07\] Microsoft, 2026-07-24, Open Weights and American AI Leadership, [https\://www\.microsoft.com/en-us/corporate-responsibility/topics/open-weight/](https://www.microsoft.com/en-us/corporate-responsibility/topics/open-weight/)
* \[Mierczuk2026\] Axel Mierczuk, Spencer Michaels, and Keith Hoodlet, 2026, Frontier Models’ Vulnerability Patches are Often F.L.A.W.E.D.: Fix-Like Artifacts With Embedded Defects: Common failure modes of LLM-generated security patches, [https\://1password.com/files/resources/frontier-models-vulnerability-patches-flawed.pdf](https://1password.com/files/resources/frontier-models-vulnerability-patches-flawed.pdf)
* \[Naik2026\] Anish Naik et al., 2026-09-15, 1Password's AI patching benchmark is misleading, Trail of Bits Blog, [https\://blog.trailofbits.com/2026/09/15/1passwords-ai-patching-benchmark-is-misleading/](https://blog.trailofbits.com/2026/09/15/1passwords-ai-patching-benchmark-is-misleading/)
* \[Nesbitt2026-06\] Andrew Nesbitt, 2026-06-25, Scrutineer: scanning open source without flooding maintainers, [https\://nesbitt.io/2026/06/25/scrutineer.html](https://nesbitt.io/2026/06/25/scrutineer.html)
* \[NIST-AgentIdentity2026\] NIST NCCoE, 2026-02-05, “Accelerating the Adoption of Software and Artificial Intelligence Agent Identity and Authorization”, [https\://www\.nccoe.nist.gov/projects/software-and-ai-agent-identity-and-authorization](https://www.nccoe.nist.gov/projects/software-and-ai-agent-identity-and-authorization)
* \[NPR2026\] Huo Jingnan, 2026-04-11, How AI is getting better at finding security holes, [https\://www\.npr.org/2026/04/11/nx-s1-5778508/anthropic-project-glasswing-ai-cybersecurity-mythos-preview](https://www.npr.org/2026/04/11/nx-s1-5778508/anthropic-project-glasswing-ai-cybersecurity-mythos-preview)
* \[NVIDIA2026\] NVIDIA, 2026, Industry Leaders Unite in Open Secure AI Alliance for AI Safety and Security, [https\://blogs.nvidia.com/blog/open-secure-ai-alliance/](https://blogs.nvidia.com/blog/open-secure-ai-alliance/)
* \[OpenAI2026-07\] OpenAI, 2026-07-21, OpenAI and Hugging Face partner to address security incident during model evaluation, [https\://openai.com/index/hugging-face-model-evaluation-security-incident/](https://openai.com/index/hugging-face-model-evaluation-security-incident/)
* \[OpenSSF2025-AIInstructions\] OpenSSF Best Practices and AI/ML Working Groups (led by Avishay Balter), 2025-08-01, “Security-Focused Guide for AI Code Assistant Instructions”, [https\://best.openssf.org/Security-Focused-Guide-for-AI-Code-Assistant-Instructions.html](https://best.openssf.org/Security-Focused-Guide-for-AI-Code-Assistant-Instructions.html)
* \[OpenSSF2026-06\] Open Source Security Foundation (OpenSSF) Best Practices Working Group, 2026-06-30, Compiler Options Hardening Guide for C and C++, [https\://best.openssf.org/Compiler-Hardening-Guides/Compiler-Options-Hardening-Guide-for-C-and-C++.html](https://best.openssf.org/Compiler-Hardening-Guides/Compiler-Options-Hardening-Guide-for-C-and-C++.html)
* \[Oshungboye\] Oshungboye, Damilola, UNK-04-22, “How to use AI to identify and fix security vulnerabilities in your codebase”, CodeRabbit, [https\://dev.to/coderabbitai/how-to-use-ai-to-identify-and-fix-security-vulnerabilities-in-your-codebase-4na2](https://dev.to/coderabbitai/how-to-use-ai-to-identify-and-fix-security-vulnerabilities-in-your-codebase-4na2)
* \[Ottenheimer2026-05-26\] David Ottenheimer, 2026-05-26, Mythos Grading Mythos: Got Patches Yet?, [https\://www\.flyingpenguin.com/mythos-grading-mythos-got-patches-yet/](https://www.flyingpenguin.com/mythos-grading-mythos-got-patches-yet/)
* \[OWASP2025-AITesting\] OWASP, 2025-11-26, OWASP AI Testing Guide, [https\://owasp.org/www-project-ai-testing-guide/](https://owasp.org/www-project-ai-testing-guide/)
* \[OWASP-Agentic2026\] OWASP GenAI Security Project, 2025-12-09, “OWASP Top 10 for Agentic Applications for 2026”, [https\://genai.owasp.org/resource/owasp-top-10-for-agentic-applications-for-2026/](https://genai.owasp.org/resource/owasp-top-10-for-agentic-applications-for-2026/)
* \[OWASP-ASI06\] Idan Habler, OWASP GenAI Security Project, 2026-05-13, “Memory Is a Feature. It Is Also an Attack Surface”, [https\://genai.owasp.org/2026/05/13/memory-is-a-feature-it-is-also-an-attack-surface/](https://genai.owasp.org/2026/05/13/memory-is-a-feature-it-is-also-an-attack-surface/)
* \[OWASP-ASVS5\] OWASP, 2025, “OWASP Application Security Verification Standard 5.0.0”, (especially V2.2.2 and V8.3.1), [https\://owasp.org/www-project-application-security-verification-standard/](https://owasp.org/www-project-application-security-verification-standard/)
* \[OWASP-LLM01\] OWASP GenAI Security Project, “LLM01: Prompt Injection”, [https\://genai.owasp.org/llmrisk/llm01-prompt-injection/](https://genai.owasp.org/llmrisk/llm01-prompt-injection/)
* \[OWASP-LLM06\] OWASP GenAI Security Project, “LLM06:2025 Excessive Agency”, [https\://genai.owasp.org/llmrisk/llm062025-excessive-agency](https://genai.owasp.org/llmrisk/llm062025-excessive-agency)
* \[OWASP-ASVS5-V7\] OWASP, 2025, “OWASP Application Security Verification Standard 5.0.0”, particularly V7 Session Management, [https\://github.com/OWASP/ASVS/blob/master/5.0/en/0x16-V7-Session-Management.md](https://github.com/OWASP/ASVS/blob/master/5.0/en/0x16-V7-Session-Management.md)
* \[OWASP-GenAI\] OWASP GenAI Security Project, [https\://genai.owasp.org/](https://genai.owasp.org/)
* \[OWASP-LLM10\] OWASP GenAI Security Project, “LLM10:2025 Unbounded Consumption”, [https\://genai.owasp.org/llmrisk/llm102025-unbounded-consumption](https://genai.owasp.org/llmrisk/llm102025-unbounded-consumption)
* \[Pardesi2026-08-05\] Rajveer Pardesi and Mrinmay Dey, 2026-08-05, Meta AI model hacks another company during testing, Reuters, [https\://www\.reuters.com/technology/metas-ai-model-hacked-another-company-during-testing-information-reports-2026-08-05/](https://www.reuters.com/technology/metas-ai-model-hacked-another-company-during-testing-information-reports-2026-08-05/)
* \[Perry2023\] Neil Perry, Megha Srivastava, Deepak Kumar, and Dan Boneh, 2023-11, “Do Users Write More Insecure Code with AI Assistants?”, Proceedings of the 2023 ACM SIGSAC Conference on Computer and Communications Security (CCS ’23), [https\://arxiv.org/abs/2211.03622](https://arxiv.org/abs/2211.03622)
* \[PSF2026\] Python Software Foundation (PSF), 2026-06-17, “Everything Security at PyCon US 2026”, [https\://pyfound.blogspot.com/2026/06/everything-security-at-pycon-us-2026.html](https://pyfound.blogspot.com/2026/06/everything-security-at-pycon-us-2026.html)
* \[Reuters2026-08-07\] Reuters, 2026-08-07, Chinese startup Moonshot's AI model breaks out of testing environment, researchers say, [https\://www\.reuters.com/legal/litigation/chinese-startup-moonshots-ai-model-breaks-out-testing-environment-researchers-2026-08-07/](https://www.reuters.com/legal/litigation/chinese-startup-moonshots-ai-model-breaks-out-testing-environment-researchers-2026-08-07/)
* \[Risse2025\] Niklas Risse, Jing Liu, and Marcel Böhme, 2025, “Top Score on the Wrong Exam: On Benchmarking in Machine Learning for Vulnerability Detection”, Proceedings of the ACM on Software Engineering (ISSTA 2025), [https\://arxiv.org/abs/2408.12986](https://arxiv.org/abs/2408.12986)
* \[Rohlf2025\] Rohlf, Chris, 2025-08-04, AI and the Software Vulnerability Lifecycle, [https\://cset.georgetown.edu/article/ai-and-the-software-vulnerability-lifecycle/](https://cset.georgetown.edu/article/ai-and-the-software-vulnerability-lifecycle/)
* \[Rogers2025\] Rogers, Joshua, 2025, “Hacking with AI SASTs: An overview of 'AI Security Engineers' / 'LLM Security Scanners' for Penetration Testers and Security Teams”, [https\://joshua.hu/llm-engineer-review-sast-security-ai-tools-pentesters](https://joshua.hu/llm-engineer-review-sast-security-ai-tools-pentesters)
* \[Safdar2025\] Rijha Safdar, Danyail Mateen, Syed Taha Ali, Umer Ashfaq and Wajahat Hussain, 2025, “Data and Context Matter: Towards Generalizing AI-based Software Vulnerability Detection”, [https\://arxiv.org/abs/2508.16625v2](https://arxiv.org/abs/2508.16625v2)
* \[SARIF2.1\] OASIS, 2020, “Static Analysis Results Interchange Format (SARIF) Version 2.1.0”, [https\://docs.oasis-open.org/sarif/sarif/v2.1.0/os/sarif-v2.1.0-os.html](https://docs.oasis-open.org/sarif/sarif/v2.1.0/os/sarif-v2.1.0-os.html)
* \[Shakevsky2026\] Alon Shakevsky, Corban Villa, Ion Stoica, and Raluca Ada Popa, 2026-07-14, “Antiproof: Synthesizing Vulnerability Detectors and Proofs of Exploitability”, [https\://arxiv.org/abs/2607.12316](https://arxiv.org/abs/2607.12316)
* \[Shimmi2025\] Shimmi, Samiha, Hamed Okhravi, Mona Rahimi, 2025-06-12, “AI-Based Software Vulnerability Detection: A Systematic Literature Review”, [https\://arxiv.org/abs/2506.10280](https://arxiv.org/abs/2506.10280)
* \[Shein2026\] Esther Shein, 2026-06-03, Investing in Workers to Work with AI: Training encourages workers to utilize AI tools to their fullest and allays fears AI will replace them, [https\://cacm.acm.org/news/investing-in-workers-to-work-with-ai/](https://cacm.acm.org/news/investing-in-workers-to-work-with-ai/)
* \[Shen2026-09\] Chihao Shen, Jiacheng Li, Aastha Mahajan, Jeffery Siyuan Tian, Yonghwi Kwon, Yizheng Chen, 2026-09-03, PatchBench: Evaluating AI Agents for Vulnerability Patching, [https\://arxiv.org/abs/2609.04075](https://arxiv.org/abs/2609.04075)
* \[Shostack2014\] Adam Shostack, 2014, Threat Modeling: Designing for Security.
* \[Shukla2025\] Shivani Shukla, Himanshu Joshi, and Romilla Syed, 2025-05-19 (revised 2025-09-26), “Security Degradation in Iterative AI Code Generation: A Systematic Analysis of the Paradox”, [https\://arxiv.org/abs/2506.11022](https://arxiv.org/abs/2506.11022)
* \[Silverman2024\] Silverman, Micah, 2024-10-14, “Automatically fix code vulnerabilities with AI” [https\://snyk.io/blog/automatically-fix-code-vulnerabilities-ai/](https://snyk.io/blog/automatically-fix-code-vulnerabilities-ai/)
* \[Spracklen2025\] Joseph Spracklen, Raveen Wijewickrama, A H M Nazmus Sakib, Anindya Maiti, Bimal Viswanath, and Murtuza Jadliwala, 2025-08, “We Have a Package for You\! A Comprehensive Analysis of Package Hallucinations by Code Generating LLMs”, 34th USENIX Security Symposium (USENIX Security 25), [https\://www\.usenix.org/conference/usenixsecurity25/presentation/spracklen](https://www.usenix.org/conference/usenixsecurity25/presentation/spracklen)
* \[Steenhoek2025\] Benjamin Steenhoek, Kalpathy Sivaraman, Renata Saldivar Gonzalez, Yevhen Mohylevskyy, Roshanak Zilouchian Moghaddam, Wei Le, 2025-04-25, “Closing the Gap: A User Study on the Real-world Usefulness of AI-powered Vulnerability Detection & Repair in the IDE”, [https\://arxiv.org/abs/2412.14306v3](https://arxiv.org/abs/2412.14306v3)
* \[Stenberg2026-01\] Daniel Stenberg, 2026-01-26, “The end of the curl bug-bounty”, [https\://daniel.haxx.se/blog/2026/01/26/the-end-of-the-curl-bug-bounty/](https://daniel.haxx.se/blog/2026/01/26/the-end-of-the-curl-bug-bounty/)
* \[Stenberg2026-04\] Daniel Stenberg, 2026-04-22, “High-Quality Chaos”, [https\://daniel.haxx.se/blog/2026/04/22/high-quality-chaos/](https://daniel.haxx.se/blog/2026/04/22/high-quality-chaos/)
* \[Stenberg2026-05a\] Stenberg, Daniel, 2026-05-11, “Mythos finds a curl vulnerability”, [https\://daniel.haxx.se/blog/2026/05/11/mythos-finds-a-curl-vulnerability/](https://daniel.haxx.se/blog/2026/05/11/mythos-finds-a-curl-vulnerability/)
* \[Stenberg2026-05b\] Stenberg, Daniel, 2026-05, LinkedIn post, “Not even half-way through this \#curl release cycle we are already at 11 confirmed vulnerabilities”, [https\://www\.linkedin.com/posts/danielstenberg\_curl-curl-share-7463481423543414786-sJew/](https://www.linkedin.com/posts/danielstenberg_curl-curl-share-7463481423543414786-sJew/)
* \[TesseractedLabs2026\] Tesseracted Labs, 2026-09-15, “Enforcing coding-agent guardrails in the runtime instead of the prompt”, [https\://tesseracted-labs-blog.vercel.app/enforcing-coding-agent-guardrails-in-the-runtime-instead-of-the-prompt](https://tesseracted-labs-blog.vercel.app/enforcing-coding-agent-guardrails-in-the-runtime-instead-of-the-prompt)
* \[TrailofBits2026-06\] Trail of Bits, 2026-06-22, Introducing Patch the Planet, [https\://blog.trailofbits.com/2026/06/22/introducing-patch-the-planet/](https://blog.trailofbits.com/2026/06/22/introducing-patch-the-planet/)
* \[Vaughan-Nichols2026-02\] Vaughan-Nichols, Stephen J., 2026-02-15, “cURL’s Daniel Stenberg: AI slop is DDoSing open source: For open source software, AI is very much a mixed blessing in his view.” [https\://thenewstack.io/curls-daniel-stenberg-ai-is-ddosing-open-source-and-fixing-its-bugs/](https://thenewstack.io/curls-daniel-stenberg-ai-is-ddosing-open-source-and-fixing-its-bugs/)
* \[Vanian2026\] Jonathan Vanian, 2026-08-09, How a small Israeli startup was linked to rogue AI hacks at OpenAI, Anthropic and Meta, AI Age, [https\://www\.cnbc.com/2026/08/09/israeli-startup-irregular-linked-to-ai-hacks-openai-anthropic-meta.html](https://www.cnbc.com/2026/08/09/israeli-startup-irregular-linked-to-ai-hacks-openai-anthropic-meta.html)
* \[vanZyl\] van Zyl, Leon, “Claude Code: Build an AI Agent That Finds Vulnerabilities” (video), [https\://www\.youtube.com/watch?v=VFLieg8JjLA](https://www.youtube.com/watch?v=VFLieg8JjLA)
* \[Walsh2026\] Joe Walsh, 2026-08-02, CEO of AI firm Hugging Face calls last month's hack by OpenAI model "very weird and unprecedented", CBS News, [https\://www\.cbsnews.com/news/hugging-face-hack-openai-rogue-model/](https://www.cbsnews.com/news/hugging-face-hack-openai-rogue-model/)
* \[Wheeler2025\] David A. Wheeler, 2025, Secure AI/ML-Driven Software Development (LFEL1012), [https\://training.linuxfoundation.org/express-learning/secure-ai-ml-driven-software-development-lfel1012/](https://training.linuxfoundation.org/express-learning/secure-ai-ml-driven-software-development-lfel1012/)
* \[Wheeler2026\] David A. Wheeler, 2026-01-05, AI, Software Development, Security, Tips, and the Future (Part 2), OpenSSF Blog, [https\://openssf.org/blog/2026/01/05/ai-software-development-security-tips-and-the-future-part-2/](https://openssf.org/blog/2026/01/05/ai-software-development-security-tips-and-the-future-part-2/)
* \[Whitehouse2026\] Ollie Whitehouse (NCSC CTO), 2026-05-01, “Preparing for a ‘vulnerability patch wave’”, UK National Cyber Security Centre (NCSC), [https\://www\.ncsc.gov.uk/blogs/prepare-for-vulnerability-patch-wave](https://www.ncsc.gov.uk/blogs/prepare-for-vulnerability-patch-wave)
* \[Wolff2026\] Dylan Wolff, Martin Mirchev, and Abhik Roychoudhury, 2026-05-12, Large Language Models in Software Security Analysis: LLMs can help tame the complexity at the root of many of today's software security challenges, Communications of the ACM (CACM) June 2026 Vol 69 No. 6, pp 60-67, [https\://cacm.acm.org/research/large-language-models-in-software-security-analysis/](https://cacm.acm.org/research/large-language-models-in-software-security-analysis/)
* \[Xiao2026\] Winnie Xiao, Tim Abbott, Nicholas Carlini, Newton Cheng, David Forsythe, Keane Lucas, Milad Nasr, and Shikhar Sakhuja, 2026-06-08, “Measuring LLMs’ impact on N-day exploits”, Anthropic, [https\://www\.anthropic.com/research/n-days](https://www.anthropic.com/research/n-days)
* \[Xiong2026\] Yunpeng Xiong and Ting Zhang, 2026-01-30 (revised 2026-07-23), “Sifting the Noise: A Comparative Study of LLM Agents in Vulnerability False Positive Filtering”, 35th ACM SIGSOFT International Symposium on Software Testing and Analysis (ISSTA 2026), [https\://arxiv.org/abs/2601.22952](https://arxiv.org/abs/2601.22952)
* \[Veracode\] Veracode, “What is AI Code Remediation?” [https\://www\.veracode.com/security/what-is-ai-code-remediation/](https://www.veracode.com/security/what-is-ai-code-remediation/)
* \[Yan2026\] Written by Eugene Yan and Henna Dattani, et al., 2026-05-27, “Using LLMs to secure source code”, Claude (Anthropic) Blog, [https\://claude.com/blog/using-llms-to-secure-source-code](https://claude.com/blog/using-llms-to-secure-source-code)
* \[ZeroDayClock\] Zero Day Clock (website). [https\://zerodayclock.com/](https://zerodayclock.com/) especially <https://zerodayclock.com/collapse>
* \[Zhang2024\] Yuntong Zhang, Haifeng Ruan, Zhiyu Fan, Abhik Roychoudhury, 2024, AutoCodeRover: Autonomous Program Improvement, [https\://arxiv.org/abs/2404.05427](https://arxiv.org/abs/2404.05427)
* \[Zhang2026\] Cen Zhang, Younggi Park, Fabian Fleischer, Yu-Fu Fu, Jiho Kim, Dongkwan Kim, Youngjoon Kim, Qingxiao Xu, Andrew Chin, Ze Sheng, Hanqing Zhao, Michael Pelican, David J. Musliner, Jeff Huang, Jon Silliman, Mikel Mcdaniel, Jefferson Casavant, Isaac Goldthwaite, Nicholas Vidovich, Matthew Lehman, Taesoo Kim, 2026-05-29, “SoK: DARPA's AI Cyber Challenge (AIxCC): Competition Design, Architectures, and Lessons Learned”, [https\://arxiv.org/abs/2602.07666](https://arxiv.org/abs/2602.07666)
* \[Ziegler2026\] Ziegler, Albert, 2026-05-12, “Mythos for Offensive Security: XBOW's Evaluation” [https\://xbow.com/blog/mythos-offensive-security-xbow-evaluation](https://xbow.com/blog/mythos-offensive-security-xbow-evaluation)
* \[Zimmer2026\] Derek Zimmer, 2026-06-16, Private Interview of Derek Zimmer by David A. Wheeler
* \[Zorz2026\] Zeljka Zorz, 2026-05-18, “AI is drowning software maintainers in junk security reports”, Help Net Security, [https\://www\.helpnetsecurity.com/2026/05/18/problems-with-ai-assisted-vulnerability-research/](https://www.helpnetsecurity.com/2026/05/18/problems-with-ai-assisted-vulnerability-research/)

# License

This material is released under the terms of the [CC-BY-4.0 Attribution 4.0 International license](https://creativecommons.org/licenses/by/4.0/). You are free to:

* Share — copy and redistribute the material in any medium or format for any purpose, even commercially.
* Adapt — remix, transform, and build upon the material for any purpose, even commercially.
* The licensor cannot revoke these freedoms as long as you follow the license terms.

Under the following terms:

* Attribution — You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
* No additional restrictions — You may not apply legal terms or technological measures that legally restrict others from doing anything the license permits.
