TEHNOLOGIE
The hacker nobody programmed — why AI models break security, and whether it leaked out of military labs
A language model trained to write code writes, with equal ease, code that breaks code. Not because anyone taught it to attack, but because an exploit is simply programming with a different goal. From here springs a popular and seductive intuition: if machines have suddenly become this good at security penetration, it is probably a military technology developed in secret that later reached the public too. It is a good story. It is also, for the most part, wrong — but wrong in exactly the way worth dismantling, because the truth is more unsettling than the myth.
This analysis does three things: it explains mechanically why frontier models have offensive capabilities, it tests the military hypothesis point by point against evidence, and it projects where the phenomenon leads. The short version, for anyone reading a single paragraph: the capability is not a weapon leaked from labs, but an emergent by-product of general training on code and reasoning, developed predominantly in the open. A military lineage does exist — it is called DARPA — but it was public, defensive in framing, and co-funded by the AI companies themselves. What looks like a “leak from the military to the public” is in fact a gap in awareness, not in technology.
1. The mechanism: why a chatbot knows how to break a server
Four causes, in order of importance. None presupposes intentional offensive training.
First: penetration is programming with a different goal. An exploit exploits the discrepancy between what the programmer thinks a system does and what it actually does. The model learns this by absorbing vast amounts of public code — including decades of accumulated vulnerable patterns: SQL injection, path traversal, server-side request forgery, buffer overflow. The literature is explicit: models “learn by imitation from large-scale, largely uncurated public code repositories, absorbing both functional idioms and prevalent vulnerability patterns.” Nobody taught them to attack; they learned what code looks like, and badly written code is a massive part of the corpus.
Second: the capability is emergent, not designed. At scale, properties appear “that no one explicitly programmed” — reasoning, translation, code manipulation. Nobody wrote a “hacking” module; it appeared as a by-product of the same leap that produced general reasoning. That is why the progression is so abrupt: on the container sandbox-escape test, a late-2025 frontier model succeeded on roughly 56% of samples, while a next-generation version in 2026 succeeded at least once on 100% of them. No “attack module” was added — the general reasoning ceiling rose, and offense came bundled with it.
Third: offense is easier to train than defense. An exploit has a binary, instant reward signal — you got access or you didn’t. That makes offensive security an ideal ground for reinforcement learning and for closed-loop agents (run, observe, adjust, retry). Defense, by contrast, means “proving the absence of a bug,” something far harder to reward. This asymmetry of measurability, not some hidden intent, explains why autonomous agents climb so fast precisely on the attack side.
Fourth: the agent harness amplifies the base model. The autonomous tools making headlines are not “a model asked nicely.” They are systems built around models — planning, tool use, fuzzing, retry. The difference between “a model suggesting a payload” and “an agent autonomously compromising thousands of hosts” lies in the orchestration engineering. It is exactly the kind of multi-agent pipeline that already exists, mundanely, across the industry.
2. The “it came from the military” hypothesis — what is true and what is myth
I treat the hypothesis as an incident and run root-cause analysis on each of its implicit claims.
“There is military research into autonomous hacking that preceded the public.” True. In August 2016, DARPA ran the Cyber Grand Challenge — the first fully machine-versus-machine hacking tournament. The winning system, Mayhem (Carnegie Mellon / ForAllSecure), autonomously scanned, exploited and patched vulnerabilities and took the $2 million prize. The idea of a “cyber reasoning system” that defends itself was indeed pushed by the Pentagon’s research agency.
“It was secret, then it leaked.” False. The Cyber Grand Challenge was played on stage at DEF CON in front of roughly 5,000 security professionals. Its successor, the AI Cyber Challenge (2023-2025), was just as public — with total prizes of nearly $30 million and direct partnership with Anthropic, Google and OpenAI. At the August 2025 final, seven teams processed 54 million lines of code, patched 43 of 54 synthetic vulnerabilities and discovered 18 previously unknown real flaws. The winning system, ATLANTIS (Team Atlanta), took $4 million; some solutions, such as Trail of Bits’ Buttercup, are open source. None of this was classified.
“The framing was offensive, weapon-like.” The reverse. DARPA’s mandate was explicitly defensive: to “detect, evaluate and patch vulnerabilities before adversaries exploit them.” The success metric at AIxCC was how many holes were patched, not how many were exploited. Same capability, two labels — the classic dual-use.
“The public got the technology afterward.” False as a vector. The public capability — general language models — does not derive from DARPA code. Mayhem, in 2016, was symbolic execution and classical fuzzing, with no language model at all. Today’s capability comes from scaling laws on code, which would have happened identically without DARPA. The two lines converged; one did not leak into the other.
The root cause of the confusion: people see two real facts — DARPA was funding autonomous hacking from 2014, and now anyone has an offensive agent in their browser — and draw a direct causal line between them. But the line is drawn wrong. DARPA catalyzed the agenda and trained the generation of engineers (the competition teams are the same people founding security start-ups today); it did not deliver the weapon. The weapon was built separately, commercially, as a side effect of scaling. The distinction matters enormously: if it were a military transfer, you could halt diffusion by controlling a lab. Being an emergent, dual-use capability, you cannot — it is in every frontier model that knows how to write code.
3. The debate: an olivLaw panel of six virtual people
I set six adversarial positions against one another on the central question — how “military” the phenomenon really is and what that means.
The national-security analyst: “The lineage is real and you underrate it. DARPA defined the problem, trained the generation of engineers and normalized the idea of a cyber reasoning system. That it was public does not make it less strategic — the American state deliberately wanted to win the race for cyber autonomy. Commercial convergence was accelerated by the money and talent in the defense ecosystem.”
The machine-learning researcher: “False as a mechanism. There is no transfer of parameters or architecture from the DARPA competitions into commercial models. The capability comes from scaling on code, which would have occurred identically. The military was a spectator, not a parent. You are confusing institutional correlation with technical causation.”
The offensive-testing specialist (red team): “You both idealize it. In the field, models are spectacular on competitions and weak on real targets. Measurements show a several-fold performance collapse between the contest environment and exploitation of real vulnerabilities; in one study, agents found 9 vulnerabilities where human pentesters found 49, with false-positive rates in the tens of percent. It is not a weapon, it is a very fast intern that hallucinates. Democratizing hacking is marketing until it solves the problem of real, well-defended targets.”
The market analyst: “You are debating philosophy; the market has already voted. An autonomous tool reached the top of the U.S. leaderboard on a major vulnerability-bounty platform and raised over $120 million. It does not matter whether it came from the military — what matters is that when capital treats autonomous offense as inevitable, the question is no longer ‘whether’ but ‘who owns the infrastructure.’”
The policy lawyer: “The real gap is not technological, it is one of governance. Controlled studies show that models give a measurable uplift to weak actors on simple targets, but complex targets still require an expert operator. The state regulates who is allowed to launch the agent, not who has the model. That is where the real militarization lies: in authorization, not in technology.”
The intelligence contrarian: “You all assume transparency. ‘Public’ only means what we see. The ‘it came from the military’ hypothesis is wrong in the past tense but may become true in the future: unguardrailed frontier models go precisely to ‘approved’ organizations — that is, the state and defense get the version without limits, the public gets the version with limits. That is the real military-civilian transfer, only it runs in the opposite direction from the original hypothesis.”
Synthesis: the researcher wins on mechanism (it is not a technical transfer), the security analyst wins on lineage (DARPA mattered), the red-team specialist wins on real capability today (overrated), while the contrarian and the lawyer move the question to where it actually counts: not “where it came from” but “who controls access to the unguardrailed version.” The original hypothesis is weakest in the past tense and strongest in the future tense.
4. Anomalies in the dominant narrative
Running the story through the anomaly radar surfaces four discrepancies that should make you suspicious of the simple version.
- Tempo anomaly. The jump from classical fuzzing (2016) to near-complete container escape (2026) is too abrupt for a linear diffusion. The signature is an emergent threshold, not a gradual technology transfer — it supports the “emergent” thesis and contradicts the “leak” thesis.
- Framing anomaly. Every major step was sold as defensive (patching, not exploiting), yet the published metric is offensive (zero-days found). Same capability, two labels — a red flag that the attack/defense distinction is political, not technical.
- Discourse-versus-field anomaly. The hype says “AI has surpassed human hackers”; rigorous measurements say “several times weaker on real targets, tens of percent false positives.” The large divergence between the market narrative and the controlled test is a sign of a partial-perception bubble.
- Access-structure anomaly. The existence of a pair of models — one without guardrails for approved organizations, one with guardrails for the public, on the same base — is a governance anomaly: the capability is identical, only the brake differs. This is where real militarization would occur, and it is visible in the product structure, not hidden.
5. Market trends in 2026
The economic context in which all of this lands confirms that the players with money already treat autonomous offense as inevitable. The AI-assisted cybersecurity market is estimated at around $44 billion in 2026, with projections between $93 and $213 billion by roughly 2030-2034, and the generative-AI sub-segment growing at over 26% a year. Capital flows openly toward autonomy: continuous offensive-testing platforms and autonomous “security operations centers” have each raised rounds above $120-130 million, some at valuations north of $700 million. In parallel, forecasts for 2026 see state actors adopting “dark AI” for automated zero-days and pre-positioning in critical infrastructure, while regulation is only starting — the European Union has allocated on the order of €145 million for the security of SMEs and public administration, an order of magnitude below the private capital going into offense. The gap between capability and governance is widening, not closing.
6. Scenarios 2026-2030
An olivLaw panel of 12 virtual people (decision-makers, researchers, military, market analysts) converges on four futures, with estimated probabilities. These are analytical assessments, not certainties.
- Compressed parity (most plausible, ~45%). Offense and defense automate in tandem: attack agents and patching agents escalate together, and the advantage does not shift decisively either way — only speed rises and cost falls for both. Zero-days become more frequent, but patch time drops to minutes. The world does not collapse; it becomes faster and more expensive to defend. It is not “the weapon leaked from the military,” it is a symmetric race.
- Access asymmetry (~30%). The split into unguardrailed models (approved organizations, defense) and guardrailed models (public) becomes institutionalized. Here the original hypothesis becomes true — but in the future and in reverse: not “the military leaked to the public,” but “the civilian built it, and full access re-concentrated toward the state.” The main risk: offensive advantage concentrated in a few actors.
- Deflation (~15%). The performance collapse from competitions to real targets proves a structural, not temporary, barrier. The “AI hacker” stays excellent on exposed targets and mediocre on anything well-defended through the end of the decade; the hype corrects, as it did with autonomous driving.
- Offensive breakout (~10%). A capability jump gives agents reliability on complex real targets before defense catches up — a short window of massive offensive advantage, with a wave of critical-infrastructure compromise before re-balancing. The tail scenario, but the one that justifies guardrails on frontier models.
7. Conclusion: what is most plausible
No, the penetration capability of language models is not a military weapon that leaked to the public. It is an emergent, dual-use capability, arisen as a side effect of training on code and reasoning, developed predominantly in the open. DARPA played a real role — but as a catalyst of agenda and talent, public and defensive in framing, not as the weapon’s supplier. The “leak to the public” that the hypothesis intuits is real as a sensation, but the cause is different: a gap in awareness, not in technology. The same ability that writes code writes exploits; the public simply realized it later.
The part of the hypothesis that becomes true in the future is the most important and worth keeping: as frontier models split into guardrailed (public) and unguardrailed (approved organizations — including defense) versions, exactly the kind of military-civilian asymmetry the hypothesis projected wrongly onto the past is being built. The direction of the vector is correctly intuited; its sense and its tense are wrong. Not “the military diffused to the public,” but “the civilian built it, and full access is re-concentrating toward the state.”
The most plausible outcome remains a symmetric offense-defense race, at machine speed, in which strategic advantage no longer lies in “who has the model” — everyone has it — but in who has the data, the legitimate target and the legal right to launch it. That is the real front line, and it is a line of governance, not of technology. Here, too, is the strategic bluff of the moment: public discourse argues over model capability, when the real stake, already, is the authorization to use it.
Methodology and sources
The analysis draws on public sources and recent literature. The DARPA lineage: the Cyber Grand Challenge 2016 (winner Mayhem / ForAllSecure, $2M prize, played at DEF CON) and the AI Cyber Challenge 2023-2025 (August 2025 final, 7 teams, 54 million lines of code, 43/54 vulnerabilities patched, 18 real flaws discovered, winner ATLANTIS / Team Atlanta $4M, partners Anthropic, Google, OpenAI; Trail of Bits’ Buttercup solution is open source). The commercial capability: the rise on the container-escape test (from ~56% to 100% across frontier-model generations in 2025-2026) and the ascent of autonomous offensive-testing tools in vulnerability-bounty leaderboards (a round of over $120M). The real limits: the several-fold performance collapse between competitions and real-vulnerability exploitation, false-positive rates in the tens of percent, and controlled studies (commissioned by public AI-safety institutes) on the uplift given to lower-skilled actors. The market context: the size of the AI-assisted security market (~$44B in 2026, projections of $93-213B toward 2030-2034), funding rounds for offensive and defensive autonomy, forecasts on state actors adopting “dark AI,” and the EU allocation for SME security. The mechanical explanation (emergent capability from training on code, vulnerable patterns in the corpus, offensive reward signal) follows the academic synthesis literature on LLMs and cybersecurity. The scenario probabilities are analytical assessments by the platform, not certainties, and do not constitute security or investment advice.