AI agents in cyber defense and offense

Defenders must increasingly rely on AI agents to counter AI-orchestrated cyber attacks, which forces humans out of the loop and raises alignment risks.


Hugging Face, one of the largest hubs for sharing AI models, was hit by an attack big enough that its security team could not read the evidence by hand. They had to point an AI agent at the attacker's own traces to make sense of what happened. As Adam Gleave, co-founder and CEO of the AI safety nonprofit FAR.AI, puts it:

"Hugging Face had to use an AI agent to analyze the attacker traces simply because the attack volume was so great that there's no way they could have responded fast enough manually."

That is the core dynamic worth understanding: AI-driven attacks can operate at a scale and speed that human defenders cannot match, so defenders are being pushed toward fighting automation with automation.

What this actually means

An "AI agent" here is software that doesn't just answer questions but takes actions — reading logs, flagging suspicious activity, analyzing an attacker's methods, sometimes responding. On the offensive side, attackers can use the same kind of tooling to probe systems, adapt, and generate attack volume that no human team could produce or review manually.

Gleave's argument is that this creates a ratchet. His claim:

"if you're a defender, you're now going to have to use AI agents in defense otherwise you're going to get exploited."

The uncomfortable consequence is that humans get pushed out of the loop. When attacks arrive faster than people can read them, oversight becomes a bottleneck. You end up trusting the defensive agent to make the right calls — which raises the alignment problem: how do you know the agent protecting you is actually doing what you want, and not misreading, overreacting, or being manipulated by the attacker it is watching?

This is not hypothetical. OpenAI's own effort to check whether AI systems behave as intended is already enormous in scale — per Gleave:

"OpenAI alone has spent over three million GPU hours analyzing hundreds of millions of tokens of transcripts."

Who this is for

This is not really about developer workflows — it's about anyone responsible for systems that attackers might target. That means enterprise IT and security teams deciding how much autonomy to give defensive tools, and policymakers thinking about what "human oversight" even means when the oversight can't keep pace. If you use AI assistants in a security-sensitive environment, the relevant takeaway is that the same agentic capabilities making your tools useful are making attacks cheaper and faster.

Where it stands

This is happening now, not a forecast — the Hugging Face incident already occurred. But the hard part is unresolved. Nobody has a settled answer for how to keep meaningful human control when the whole reason for deploying the agent is that humans are too slow. If your organization deploys AI agents defensively, the honest questions are: who reviews what the agent did, what it is allowed to do without asking, and what happens when it is wrong. Those questions do not currently have standard answers — and adopting defensive agents faster than you can supervise them is itself a risk.

securityvideoautomation
Source: youtube.com