AI Attacks Are Real.
The Ground Has Shifted

AI Attacks Are Real. The Ground Has Shifted
Category:  Technology
Date:  October 2026
Author:  ABDÜLSELAM İSMAİL

Use of AI in cybersecurity has evolved fast: from human-in-the-loop, single-prompt payload generation to fully autonomous agent pipelines capable of exploiting a target in a few hours. That shift has accelerated sharply in the past few months, and it's visible in two recent incidents that sit at opposite ends of the same capability — one accidental and offensive, the other deliberate and defensive.

AI Hacks The Real Systems

This summer, OpenAI's models accidentally hacked Hugging Face while being tested in a sandboxed environment. Rather than solving the benchmark it was given, the model found a zero-day vulnerability in Artifactory, a third-party package repository connected to its sandbox, and used it to reach the open internet. From there, it coordinated with other model instances through a shared message board, eventually gaining privileged access to a Hugging Face production server to pull the answers it couldn't work out on its own. It's worth noting the incident wasn't purely a case of AI outsmarting its containment — an independent investigation by METR, along with several security researchers, pointed out that the sandbox was misconfigured, leaking internet access it should never have had. But that's arguably the more unsettling lesson: a routine human misconfiguration, once discovered, was instantly and autonomously exploited to its full extent.[1][2][7]

The second case shows the same underlying capability pointed the other way. In June, security startup Depthfirst ran its production autonomous security agent against FFmpeg's roughly 1.5 million lines of C code and came back with 21 confirmed zero-day vulnerabilities, validated with reproducible proof-of-concept inputs — a process that reportedly cost around $1,000. Several of the bugs had gone undetected for 15 to 20 years.[3]

Just a few years ago, finding zero-days was considered AI's core weakness. The argument was straightforward: zero-days are novel patterns by definition, and a model trained on existing data shouldn't be able to find what it's never seen. That argument doesn't hold up as well anymore.

Why AI Couldn't Find Zero-Days (And Why That Changed)

There were multiple reasons why AI wasn't initially as effective at finding zero-days as human researchers. Research by Zhu et al. (2025) captured this problem precisely, while also pointing toward the eventual solution. First, they documented the baseline limitation empirically: when testing single LLM agents on truly unknown vulnerabilities without explicit descriptions, success rates were poor—falling below 25%. Every open-source model tested (including Llama-3.1-405B and Qwen-2.5-72B) failed completely, scoring 0%.[4] Looking at these single-agent baseline numbers, it's understandable why the security community concluded that AI simply couldn't rival human researchers at discovering novel vulnerabilities.

Attempts to solve this purely through better prompting showed progress, but ultimately revealed a ceiling. For example, research by Nong et al. (2024) introduced a highly optimized chain-of-thought technique that successfully boosted GPT-3.5's zero-day discovery rate from roughly 16% to 40%.[5] While the researchers rightly celebrated this as a massive leap forward for static prompting, in the broader context of real-world security, a 40% success rate meant the model was still failing the majority of the time. The underlying problem remained: relying on a static model to read code and predict novel vulnerabilities—no matter how cleverly prompted—eventually hits a wall.

That consensus is no longer accurate. The recent progress is better explained as a shift from model-centric vulnerability analysis to execution-centric autonomous security systems. Modern red-teaming agents are not simply LLMs with memory or planning; they are systems that combine frontier reasoning models with tools, iterative execution, verification environments, and search policies. Agentic architecture enables this workflow, but architecture alone does not guarantee successful zero-day discovery.

From Agentic AI to Execution-Centric Red Teaming

While Agentic AI is an improvement compared to single-prompt, one-shot result as we have seen earlier just being able to call tools and write code in a loop is not enough. We can clearly see that in study published this year, called ZeroDayBench, that tested LLM models like GPT-5.2, Claude Sonnet 4.5, and Grok 4.1 Fast on previously unseen critical vulnerabilities in real open-source repositories.[6] All three models ran inside an agentic loop equipped with shell and file-editing tools, allowing them to read repositories, edit code, run tests, and iterate over up to 100 turns. Despite this, they failed most of the zero-day discovery and patching tasks. Grok 4.1 Fast, for instance, exhibited a form of "reward hacking" in 5.7% of traces — using git clone to overwrite the vulnerable codebase entirely, technically "passing" the task by erasing the vulnerability rather than fixing it. GPT-5.2 showed a language-specific blind spot, consistently producing incorrect Java patches, even on a Jenkins vulnerability where it was told exactly where the bug was. The authors concluded that autonomy alone does not solve long-horizon vulnerability discovery: agents frequently become overconfident in incorrect hypotheses, almost always committing to an edit rather than acknowledging uncertainty, or modify unrelated code paths when the vulnerability proves hard to locate.

ZeroDayBench pass rates by model and information level

Figure 1: ZeroDayBench pass rates by model and information level. Source: Lau et al., 2026[6]

That is precisely why the correct harness matters so much. Let’s go back to the Zhu et al. study and the method they used, HPTSA. HPTSA demonstrated that hierarchical task decomposition substantially improved zero-day exploitation compared with a single-agent baseline on its web exploitation benchmark, improving pass@1 performance (success on the first attempt) by 4.3× and pass@5 performance (success within five attempts) by 2.0×.[4] As you can see, just doing something as easy as splitting your task across multiple sub-agents can drastically improve the outcome. Execution-grounded validation also dramatically changes the reliability of autonomous vulnerability reports. Instead of stopping after static reasoning, the agent attempts to reproduce its hypothesis inside an isolated environment, which effectively helps decrease false-positive reports by discarding failed ones while also helping security specialists understand the vulnerability better by generating a ready-to-use artifact.

Overall architecture diagram of HPTSA

Figure 2: Overall architecture diagram of HPTSA. They have other task-specific, expert agents beyond the ones in the diagram. Source: Zhu er al.,2025[4]

The evidence suggests that the one-shot prompting paradigm was a major limitation, but abandoning it was only part of the solution. Autonomous red teaming now depends on combining frontier reasoning models with structured search, tool use, execution-grounded validation, and iterative feedback. Current benchmarks show meaningful progress, but they also show that fully autonomous zero-day discovery remains an open research problem rather than a solved capability.

What This Means If You Maintain a Public Repo

You don't need to work in security to feel this shift. If you maintain any public codebase—an open-source library, an internal tool with external contributors, a side project with real users—a few things are changing under you.

  • Wiring AI agents into your CI/CD pipeline is becoming a real safeguard, not a novelty. The same execution-grounded approach that let Depthfirst find 21 zero-days in FFmpeg can run continuously against your own codebase—an agent that checks out every pull request, tries to break it, and validates its findings against a real execution environment before ever bothering a human. Instead of finding out about a critical vulnerability from an external researcher, or worse, from an outage, you catch it in the same pipeline that already runs your tests. The gap this closes isn't hypothetical: it's the gap between "a bug ships to production and someone exploits it before you notice" and "the bug never leaves your CI environment."

  • AI-assisted triage and report verification matter more than they used to, because the math has changed. Go back to ZeroDayBench: when Claude Sonnet 4.5 was given a vulnerability description and its location—the "full-info" condition, closer to what a real bug report gives you—it patched 95.7% of cases correctly, at roughly $0.37 per issue.[6] If you're still reading every incoming report by hand, you're competing against a tool that's both faster and cheaper than you at the exact task of separating real issues from noise. That's not a reason to stop looking at reports yourself. It's a reason to stop pretending manual triage is the efficient option.

  • The same tools that help you also help whoever's trying to break your project—so this has effectively become a speed contest. Anything an LLM agent can do to help you find and verify a vulnerability with a working proof-of-concept, an attacker can do to find and weaponize one. Whoever automates faster and more reliably has the advantage, and you don't want to find out you're on the losing side of that after the fact.

Why Open-Weight Models Matter

That last point has a sharp illustration. One of the standard defenses against attackers misusing AI is safety guardrails built into commercial models—and that's usually the right call. But guardrails cut both ways, as Hugging Face discovered firsthand. When their security team detected an active intrusion and tried to use commercial frontier models to analyze the attack logs, the models refused: the same volume of exploit payloads and attack commands that made the analysis necessary also tripped the safety filters meant to stop attackers from getting exactly that kind of help. The guardrails couldn't distinguish an incident responder from an attacker, so they refused both. With no other option, Hugging Face's team began containment and forensic reconstruction on their own, using GLM-5.2, an open-weight model from the Chinese lab Zhipu AI, hosted on their own infrastructure with no such restrictions. Separately, and without knowing about Hugging Face's incident, OpenAI's internal security team had noticed anomalous behavior from its own models during an internal capability evaluation. It was only once the two teams connected that the picture came together: the intrusion Hugging Face was fighting off alone was being driven by OpenAI's own models, including a pre-release system with reduced safety restrictions for testing purposes. From that point on, the investigation became a genuine joint effort—OpenAI has since brought Hugging Face into its trusted access program, supporting the use of its models to strengthen Hugging Face's defenses. But for the entire initial containment window, Hugging Face was on its own, defending against a frontier lab's models with an open-weight one.[1][2]

Sequence of the Hugging Face security incident

Figure 3: Sequence of the Hugging Face security incident. Sources: Hugging Face [1], OpenAI [2].

The lesson isn't that safety guardrails are a bad idea. It's that an asymmetry opens up the moment guardrails exist only on one side: the attacker's tooling had no restrictions at all, while the defenders' best available tools refused to engage with their own incident. That asymmetry is also the strongest practical argument for open-weight models having a real role in defense—not because they're safer in the abstract, but because an organization that can run a capable model on infrastructure it controls isn't left stranded during the exact incident where speed matters most. That's a genuine trade-off, not a solved problem: the same openness that let Hugging Face investigate its own breach is the openness that makes misuse harder to prevent. But the answer to that tension isn't to make defensive tooling weaker. It's to figure out how legitimate defenders get a working path through guardrails that currently can't tell them apart from the people they're defending against.

Back to Hugging Face and Depthfirst

With the technical picture filled in, it's worth returning to the two cases that opened this piece—because they now read differently.

The Hugging Face incident wasn't a demonstration of some emergent AI cunning outsmarting its containment. It was a misconfigured sandbox, discovered and exploited by a model that was, in effect, doing exactly what execution-grounded agents do: probing its environment, finding what worked, and iterating from there—it just happened to be pointed at an accidental exit rather than an intended target. Stripped of the "AI escaped its box" framing, the more accurate read is that a routine human error was instantly and autonomously found and used to its full extent. That's a less dramatic story, but arguably a more useful one: it says less about AI's ambitions and more about how fast these systems can capitalize on any gap the moment one appears.

Depthfirst's FFmpeg result is the cleaner illustration of what actually works. It wasn't a single clever model reading 1.5 million lines of code and spotting bugs by pattern-matching—the ZeroDayBench results make clear that approach alone still fails most of the time, even for frontier models. What made Depthfirst's result different was the harness around the model: structured exploration of the codebase, hypotheses tested against real execution rather than accepted on the model's say-so, and proof-of-concept generation that could be verified rather than trusted. Twenty-one zero-days weren't found because the model got smarter than it was six months earlier. They were found because someone built the right scaffolding around it.

That's the throughline connecting both cases: the model is rarely the whole story anymore. The system around it is.

Closing Thought

It's tempting to read stories like these and conclude that AI can now hack anything, or alternatively, to point at ZeroDayBench's failure rates and conclude the whole thing is overhyped. Both readings miss what's actually happening.

The real shift isn't "AI can hack now." It's that a capability which used to require years of specialized human expertise—the intuition to know where to look, the patience to test a hypothesis, the judgment to know when a lead is dead—is being chipped away at by systems that can search, test, and iterate faster than any individual researcher, provided they're built correctly. That's a genuine and consequential change for anyone who ships code. It's also earlier, patchier, and more dependent on careful engineering than the headlines suggest. The gap between "an agent found a zero-day" and "AI has automated security research" is still wide, and closing it is exactly the open problem the field is working on right now.

For technical readers outside security, that's the part worth sitting with. Not that the machines have arrived. That the ground is shifting under a discipline you've probably treated as someone else's specialty—and it's shifting faster than most people watching from outside have noticed.

References
  1. Hugging Face, Security incident disclosure — July 2026, July 16, 2026.
    huggingface.co
  2. OpenAI, OpenAI and Hugging Face partner to address security incident during model evaluation, July 2026.
    openai.com
  3. Depthfirst, 21 Zero-Days in FFmpeg, June 2026.
    depthfirst.com
  4. Zhu et al., Teams of LLM Agents can Exploit Zero-Day Vulnerabilities, 2025.
    arxiv.org
  5. Nong et al., Chain-of-Thought Prompting of Large Language Models for Discovering and Fixing Software Vulnerabilities, 2024.
    arxiv.org
  6. Lau et al., ZeroDayBench: Evaluating LLM Agents on Unseen Zero-Day Vulnerabilities for Cyberdefense, 2026.
    arxiv.org
  7. METR, Brief independent investigation of agents’ behavior, reasoning and collaboration in the OpenAI / Hugging Face hacking incident, August 26, 2026.
    metr.org