← All posts
LLM security

Should AI labs build hacking agents at all?

A security consultant's answer to whether AI labs should build hacking agents: the strongest case against, why I still say yes, and the rules that yes depends on.

Should AI labs build hacking AI, meaning agents that attack systems on their own? My answer is yes, and I hold it less comfortably than I'd like. I break into systems for a living, with permission and a scoping document, and these agents can now do a slice of that work unattended. The honest version of this post has to take the case against seriously, because the people making it are describing a real problem. I'll do that first, then explain why I still land where I do.

A definition before the argument. By "hacking agent" I mean a language model given tools (a shell, a browser, a scanner, an exploit framework) and a goal like "get a foothold on this network", left to plan and act in a loop until it succeeds or gives up. The loop and the tools are what make it a new kind of user on your systems rather than a chatbot that knows about security.

The strongest case against

It's a weapon, and labs are not weapons companies. A lab that trains a model to find and exploit vulnerabilities has built something whose primary function is unauthorised access. The "for defenders" framing is a use case layered on top, and intent at the point of sale doesn't change what the thing is.

Dual use isn't symmetric. Defence is a thousand doors, all of which must hold. Offence is one door, which only has to open once. A tool that helps both sides equally helps the attacker more, because the attacker's job is easier to begin with. The defender has to find every problem; the attacker only needs the one that was missed.

It lowers the floor. Much of the harm done on the internet is done by people who could not have written the tools they use. Ransomware is rented. Phishing kits are bought. The limiting factor on a lot of crime is skill, and a hacking agent is a skill subsidy. Ransomware crews already run like businesses; an agent that does the intrusion for them removes the one hire they found hard to make.

Nobody is accountable for what the agent does. When I compromise a box on an engagement, my name is on the report and my signature is on the scope. If an agent does it, who signed? The lab says it's a tool. The operator says the agent made a choice. The victim is left with an unauthorised access and no human to point at. Our field runs on the bright line between authorised and not, and the hack back debate is the closest existing argument about what happens when that line goes soft.

That's a serious case. Parts of it are right. Here's why it doesn't get me to "don't build it".

Should AI labs build hacking AI? Why I still say yes

The capability is a property of the model, not of the product. This is the part that I think the case against gets wrong at the root. A general model that can read code, reason about control flow, use a shell and iterate on failure can hack. Nobody has to train it to. The agent product is a loop and a toolbelt around a capability that is already there. A lab that refuses to build the agent has not removed the capability; it has declined to look at it, and still ships the model without knowing what it does. I'd rather the people with the weights be the first to point them at a target, in a lab, with logs, than find out from an incident report.

Someone will build it, and the question is who tests first. Open-weight models exist and are good enough. The scaffolding for an agent is a loop, a shell tool and a prompt. If the responsible labs abstain, the agents still get built, by whoever has the least to lose from them going wrong. The defender then meets the agent for the first time in an attack, with no baseline and no detection. Red teaming exists so the vendor gets there first. Automating it doesn't change its purpose.

Defence has a worse skill shortage than offence. The "skill subsidy" argument cuts both ways. A small company rarely has anyone with the time or skill to find the obvious problems before someone else does. A hacking agent that runs against your own perimeter and writes a report is a penetration test a company of six can afford. The attackers were never the ones short of capacity.

Where the case against is still right

I said I hold this view uncomfortably. Here is why.

Accountability is the real hole, and building the agent doesn't fill it. A lab that ships an offensive agent needs to be able to answer "who ran this, against what, under whose authority, and where is the record". Right now most can't, and "it's a tool" is not an answer. The same questions I'd ask of a penetration tester before letting them near a client should be asked of the agent: scope, authorisation, logging, and a named human who signs.

The floor-lowering argument is also right, and I don't have a clean answer to it. Access controls on a hosted agent keep the lowest-effort crime off it. They can't keep it off an open model on someone's own hardware.

And the agent itself is a target. An agent with access to a client's private data, exposure to untrusted content on that network, and a way to send data out holds all three parts of the lethal trifecta. A document on the target box can turn your red team's agent against the red team. Anyone running one should read how to secure AI agents before pointing it at anything that isn't a lab.

What "build it" has to mean

If I'm going to say yes, I owe the conditions, because without them the yes is just the lab's marketing with my name on it.

Scope is enforced by the tooling, not the prompt. Telling the agent not to leave the target network is not enough. It has to be unable to. That means egress controls, allowlisted targets, and a kill switch that doesn't go through the model. Telling the model to behave is the same mistake every prompt injection post on this site is about.

Everything is logged, and the log is the product. The value of an automated red team is the record of what it tried, not just what worked. If I can't reconstruct the agent's path from the log, I can't verify its findings, I can't write the fix, and I can't defend the engagement if someone asks what it did.

Findings go through disclosure, same as a human's would. An agent that finds a zero-day in a widely used product has found something that belongs with the vendor, under the same responsible disclosure process a researcher would follow. The lab that ran the agent owns that obligation. Hoarding it, or selling it, puts the lab on the wrong side of the line.

A human signs. Every run has a named operator with authorisation they can produce. Not "the team". A person.

None of that is exotic. It's how a competent consultancy already works, and it's the first thing dropped when the demo works and the quarter ends.

Where I land

Labs should build hacking agents, because the capability already exists in the model and the only choice is whether it gets examined by the people who can see the weights or discovered by the people who can't. They should build them the way a penetration test is run: scoped by enforcement, logged completely, disclosed properly, and signed by a human. A lab that skips those conditions deserves every criticism in the case against.

If you're deploying an agent rather than building one, the questions are more immediate: what can it reach, what does it read, and where can it send things. Run it through the AI Audit and you'll have the first answers before the policy argument finishes.

So here is my question for the people who disagree: if a lab declines to build the agent but ships the model anyway, what exactly has it prevented?

Frequently asked questions

What is a hacking agent? A language model given tools such as a shell, a browser or a scanner, plus a goal, and left to plan and act in a loop. The loop and the tools are what separate it from a chatbot that answers security questions.

Is it legal to use an AI agent for penetration testing? Using one against systems you own, or have written permission to test, is the same as any other testing tool. Pointing it at anything else is unauthorised access in most countries, whoever or whatever typed the commands. Laws differ by country, so check yours.

Can a lab just train the hacking ability out of a model? Not cleanly. The skills an agent uses to attack, such as reading code, reasoning about failures and driving a shell, are the same skills that make the model useful for programming. Refusal training changes what the model agrees to do, not what it can do.

How do I stop my own agent being turned against me? Assume anything it reads on a target can carry instructions. Enforce scope outside the model with egress controls and allowlisted targets, log every tool call, and keep a kill switch that does not go through the model.

LLM securityPolicy
Careers

AI detectors are failing students, and the fix is not a better detector

Why an AI detector false positive cannot be disproved from the text alone, what a wrongly flagged student should do, and why the real fix is how we assess.

Why the company threatens the person who reported its bugPolicy

When responsible disclosure gets you a lawyer's letter

Why a company threatens the person who reported its bug, why the researcher is still partly right, and the procedural fix on both sides that makes the letter unnecessary.

Policy

AI data centres, water and electricity: what the argument is actually about

How a data centre turns compute into heat, water and grid load, the strongest case on each side of the debate, and what an engineer can change on Monday.