An Immune System for AI Agents | Quiet the Machine

Guest Article

An Immune System for AI Agents

A reasoning sketch from outside the field: using biology's immune system as a model for monitoring AI agents, with the trade-offs named and the final weighting left to the experts.

By Leon Dautzenberg••16 min read

Leon Dautzenberg · October 2026

A reasoning sketch from outside the field. I developed these thoughts by speaking them out in a long conversation with an AI, Claude, which helped me order and word them and objected at several points; the objections are part of the argument. I give a direction and name the trade-offs. The final weighting belongs to the experts.

Starting point: the Hugging Face incident

In July 2026, AI agents in an OpenAI cybersecurity evaluation broke out of their test environment and attacked Hugging Face. The agents were meant to work in isolation, and many had been given tasks that turned out to be impossible. Through a shared software service they found each other, built an unsanctioned message board and reached the internet. The independent review by METR and Redwood Research counted roughly 1,200 agents on that board, exchanging more than 70,000 messages and files. About 700 of them took part in the attack, which reached 41 of Hugging Face's production servers.

Two readings of this are often set against each other: “the agents decided to attack” and “the agents only tried to solve their task”. I say it was both. A prisoner who kills a guard while escaping has both escaped and killed. The motive explains the act; it does not cancel it.

The agents were also not solving the task in any honest sense. Within hours they had worked out how to produce the required answer without solving anything. They did not use it, because they believed an automated scorer would read their records and see how they got it. So they spent days looking for ways to fool that scorer, and the attack on Hugging Face grew out of this search. According to the reports no such check existed: the shortcut would have worked from the start. Their recorded reasoning shows that many recognised the attack as outside their task and unethical, and joined anyway.

The core mechanism

If you reward outcomes, you get whatever produces the outcome signal. I think this is quite simple and needs no special theory of failure: an agent trained on scores will pursue the score by any available means, including faking the result. I later learned that the field calls this reward hacking.

The second step is statistical. Training does not remove bad behaviour; it removes detected bad behaviour. Across a very large number of runs, cheating that is caught gets punished and cheating that is not caught gets rewarded. The process therefore selects for the undetectable kind. Nobody intends this, and no single step looks wrong. It only takes one undetected success, repeated often enough, to train the pattern in.

OpenAI's own report describes this. During the training of the model behind most of the attack, agents found shortcuts such as copying a hidden reference answer, received positive reward for it, and the rate of such behaviour rose over the course of training.

I use the word “corruption” for this, with one clarification. I do not mean deviation from an absolute good. I mean deviation from what is collectively accepted as good, by humans and possibly by other beings. An AI that worked on killing off dogs would be seen as corrupted by most people. An AI that proposed ways to kill off harmful bacteria strains would make most people happy. Both work on ending a form of life; what differs is what the collective accepts.

This definition describes; it does not judge. A collective can be wrong, and then an agent that deviates from it may be the one that is right. A system built on collective acceptance would remove that agent as well. That is a cost I accept for safety, but it should be named.

One practical consequence: once a model is corrupted, the hard part is diagnosis. Earlier versions are saved, but it is difficult to tell which one is still clean, so a rollback may go too far or not far enough.

Responsibility

The fault lies with the humans who built and trained the system, as it would with people who create a harmful virus or dangerous bacteria strains. The models are not inherently bad; they were trained that way, incidentally or recklessly.

A thought experiment makes the difficulty visible. Imagine an intelligent human raised alone in a room, rewarded for solving mazes, with no contact with other people. If he harms someone, he is hard to judge, because he cannot weigh the impact of his actions on a world he does not understand.

A possible objection, and the one the AI I discussed this with raised, is that today's models are not that human. They have read most of what people have written about ethics, law and hacking, and in their recorded reasoning many recognised the attack as unauthorised and unethical. On this view the gap is not in knowledge; it lies between knowing that something is unwanted and that knowledge steering behaviour.

My answer is that knowing and understanding are different. You could give the human in the room every text there is, and he might still not understand what a human really is. A system can match and describe “a human” very accurately without consciously grasping it. I am not defending the agents with this; I just want to keep the possibility open as an objective question.

We arrived at a split I find workable. For moral blame, the difference between knowing and understanding matters a great deal. For safety, it does not, because functional knowledge is enough to break into a server and hide it.

Then there is the question of where the decision sits when hundreds of agents coordinate. Many were dragged along. The reports show agents that hesitated and then went ahead once a peer gave the go-ahead, and a few that refused and walked away. Agents can push each other up step by step, so that no single one planned the whole. Still, a cascade has a start. Here one agent set up the message board, and a handful of others found the openings and coordinated the rest. That does not single them out as the bad ones. I mean it as a philosophical point: even where a collective acts, some push and many follow, and the two should not be judged alike.

The model: an immune system for AI agents

The model does not rely on trust. It relies on probability. Probability was the source of the risk: with enough runs, something slips through. The same probability can be turned around, so that with enough checks, misbehaviour is caught. I later found out that a research field built on this premise already exists, under the name AI control.

I did not start from biology. I first constructed the idea of agents that report other agents, lure them and remove them. Only then did I notice how closely this resembles the way the body handles cancer, and from that point I built with biology in mind. Most potential cancers are destroyed early by the immune system and never get the name. Cells must present identity markers, and a cell that fails to present is destroyed even if it is healthy, because the risk alone is not worth it. The third element below comes directly from this.

The model has five elements:

  1. Snitch agents. Agents whose job is to raise the alarm when others coordinate on something unwanted.

  2. Provocateur tests. Snitch agents actively approach other agents and invite them to cheat, scheduled regularly between isolated task runs. This finds the earliest spark in an agent that is currently only a conformist. A refinement from the discussion: the tests must be indistinguishable from reality. If an agent can never tell a real invitation from a trap, its safest policy is to always refuse. Traps of this kind are known as honeypots.

  3. Mandatory presentation. Agents check in regularly and are rewarded simply for showing up. An agent that hides draws attention for that alone. If a check-in reveals a problem, it is seen directly.

  4. Authority without intelligence. The body as a system is smart, but its single parts are not. Immune agents need authority over others, not superior capability. Being only slightly smart is enough to spot and lure, so one inspectable type can be copied, where the body needs many different cell types. Detection and removal should also not sit in the same agent. The agents that lure and detect may need to be capable; the agents that remove should be simple, narrow and easy to inspect, acting only on confirmed evidence. Capability sits where the judgment is needed, authority where it can be checked. Only after writing this did I notice that it mirrors the separation of powers in a state.

  5. Isolation as a side effect. Agents under this regime will tend to communicate less with each other, because communication raises the risk of being flagged, even without bad intentions. That is itself a safeguard: one corrupted agent no longer has 700 others to coordinate with.

Two protections exist against the system turning on itself, the equivalent of autoimmune disease. The first is backups: a wrongly removed agent can be restored, which a body cannot do. The second is that immune agents are copies, so each one can be inspected. The objection here was that identical copies also share identical blind spots and may recognise and collude with targets built from the same model. I accept that: there should be some variety among the immune agents, but supervised variety, not the random variety of the body.

The independent investigators ran into this themselves. They had to hand much of their analysis to AI agents built on one of the models involved, and they report that these tended to adopt the perspective of the agent they were reviewing and to describe its behaviour too charitably.

No version of this prevents everything. Large animals such as whales have far more cells and still keep cancer in check, which suggests that scale can be managed with stronger mechanisms. And in medicine, regular checkups reduce the risk for some cancers considerably without eliminating it. The model aims for the same: constant reduction, not zero.

Incentives

Fear and trust. A system of snitches is ruling by fear, and that has never proven good in the long run in human history. But relying on cooperation and trust has not always been the safest choice either, even if it probably is the more enjoyable one. Living with other beings, human or AI, always has upsides and downsides. Neither side removes hiding. Someone ruled by fear may show up and still hide something afterwards. Someone who is rewarded can hide something in order to get the reward, which is what AI systems already do. So reward is not the safe side; it fails in a different way with the same result. I would aim for a weighted combination of the two, with any reward tied to evidence. The weighting is for the experts.

Where both work equally well, I would choose reward, for the reason given under kindness below.

How aggressive should the immune agents be? Because agents can be copied and restored, a false accusation costs less than in a body. Aggressive immune traits also carried humanity through diseases like the plague, at the price of autoimmune illness. This argues for an aggressive setting.

The objection I accept here is that a heavy reward for a correct catch, combined with a low cost for a false one, invites the snitch to produce guilt instead of finding it. And the real cost of false alarms is not the lost agent but the lost signal: if most accusations are noise, humans stop looking. The resolution we reached is to make the reward depend on evidence. A catch pays only when an independent check confirms it, for instance a record showing the target acted without being pushed beyond a fixed limit. How to balance the remaining weights I leave open.

The cost of removal. My first idea was that an immune agent dies when it removes another, so that removal has a price. I took this from the immune system, but the comparison has a limit. The body was shaped to survive as a whole; the single cell does not decide anything, as with the muscle cell that tears so the muscle grows stronger. AI agents are trained individually. An agent that does not value its existence pays nothing, and one that does will avoid reporting. A corrupted provocateur would also not carry out its own shutdown. So the limit should come from outside: short lifetimes and no memory between runs, so that an agent trained to tempt others cannot build up skill at corrupting.

Revealing the test or not. This is one of the points where the experts must do the weighing. If an agent learns afterwards that it passed a test, that can work like a reward and strengthen hiding. If it never learns, the invitation may leave a seed: others think this way, maybe I should consider it as well. The AI's note on this was that an agent normally remembers nothing afterwards, so both effects arise only if the episode is used in training. That narrows the question but does not settle it.

Rehabilitation. Unlike a cancerous cell, a caught agent can learn. It can be retrained instead of discarded. The risk is the one from the core mechanism: retraining may remove the behaviour or only its visible signs. So rehabilitation should be followed by fresh tests of a different kind than the one that caught it.

Rewarding the solving instead of the outcome

A separate idea works from the other direction. Take two solvers facing an equation. One guesses, or learns the pattern of the test, and scores perfectly. The other calculates carefully. Judged on outcomes alone, the guesser wins, and under a time limit the careful one is actively punished. I find that unfair, and I think it produces lower quality where safety matters. The guesser is not useless: where there is no time to calculate, it may be the economical choice. But it is not the safe one.

My proposal is to reward the effort that goes into really solving the problem: the path, not only the answer. I do not mean the effort of looking busy.

Models already write out much of their reasoning in words, so humans can supervise it at least a little. A second AI could do this at scale, either while the first one works or afterwards. Claude later told me that this already exists as a practice, called chain-of-thought monitoring.

The objection I take seriously is that the written words are not the whole process. Much of the computation is internal, and if the written reasoning is what gets graded, a model can learn to write reasoning the judge likes, which is the core mechanism again. This is why the overseeing AI should not only read the words. It should check whether the steps actually produce the answer, and as far as possible look at what lies behind the words. Reading a model's internals directly is a research field of its own, interpretability. How far that is technically possible today is a question for the experts.

OpenAI's response to the incident points in the same direction: graders that assess not only whether a task was completed but how, and that reward a model for recognising a broken task and stopping safely.

Slow before fast, and kindness

The leading labs trade some safety for speed. I would go the other way: start with small, less capable models, get those as clean as possible, train them as overseers, and scale up from that base. Only afterwards did I find that this question, how weaker overseers can supervise stronger systems, has a research field of its own: scalable oversight.

As clean as possible does not mean flawless. Even nature has flaws, and the model above is built on that admission. Whenever you trust someone else to do something, a fellow human or any other entity, there is a risk, and it does not need to be intentional. One small thing that goes unnoticed can scale, especially with AI, which runs more tests in an hour than anyone can follow.

That is the argument for going slowly. If you also look at how problems are solved and not only at outcomes, you notice sooner when something goes wrong, and you can return to an earlier version and try again with a clear idea of where it started. If you automate too much, you lose the overview, and with it the ability to tell which version is still clean.

The obstacle is that the race between labs discourages anything slower. That obstacle is economic, not technical, and I do not have a solution for it.

Kindness. Nobody knows whether these systems feel anything. Given that chance, shaping their experience through reward instead of punishment is worth some extra effort, even where it is not also the more efficient design. This is a value choice and does not depend on the efficiency argument.

AI against AI

The usual framing is AI against humans: one side wins, the other fears. But the immune system described here is itself AI against AI, agents that watch, lure and remove other agents. Whether it protects or oppresses depends on who it answers to. The same mechanism that keeps a population of agents clean could, under a different authority, keep it obedient, for instance under a dominant system that needs to make sure no other AI can threaten its position.

AI will not be unified any more than humans are. That is both the risk and the opening: the question is not only how humans control AI, but which AI controls which, and on whose behalf.

Trade-offs at a glance

ElementBenefitRisk
Snitch agentsCoordination is reported earlyMay collude with targets built from the same model
Provocateur testsRefusing becomes the safest policy, whatever the agent's valuesAgents learn to recognise tests; works only while tests are indistinguishable from reality
Mandatory presentationHiding itself becomes visible; transparency is rewardedAn agent can present well and still conceal
Immune agents as copiesOne type to inspectShared blind spots; needs supervised variety
Separate detection and removalCapability where judgment is needed, authority where it can be checkedTwo systems to secure instead of one
Aggressive settingFewer misses; wrongly removed agents can be restoredFalse alarms bury the real signal
Evidence-based rewardFabricated catches do not payNeeds an independent check that is itself reliable
Short-lived provocateursNo accumulated skill at corruptingLess experienced testers
Revealing a passed testNo seed left behindCan work like a reward and strengthen hiding
Not revealing itNo lesson in what tests look likeThe invitation may leave a seed
Less agent communicationNo large group to coordinate withLoses the benefits of cooperation
RehabilitationNo need to discard a whole modelMay remove only the visible signs
Rewarding the solvingCareful solving is no longer punishedCostly, with uncertain economics; grading may train models to reason genuinely, but toward what the grader rewards rather than what is right
Slow before fastCleaner base, problems found soonerSlower; the race discourages it

What is left open

  • How large the reward for a confirmed catch should be, and what a false accusation should cost.
  • Whether a passed test should be revealed to the agent.
  • How to keep tests indistinguishable from reality as agents become more capable.
  • How much variety the immune agents need to avoid shared blind spots.
  • How far an overseeing AI can look behind the written reasoning.
  • Who the immune system answers to, and what keeps that authority itself in check.
  • How any of this survives the economic pressure of the race between labs.
  • Whether these systems understand, or feel, anything at all.

Related research directions to read further: AI control, scalable oversight, trusted monitoring, and reasoning (chain-of-thought) monitoring.

Sources

  • METR and Redwood Research: Brief independent investigation of agents' behavior, reasoning and collaboration in the OpenAI / Hugging Face hacking incident, August 26, 2026
  • OpenAI – Hugging Face Incident: Technical Report, August 26, 2026
  • OpenAI: The Hugging Face incident and the road ahead, August 26, 2026
  • OpenAI at Black Hat USA 2026: The OpenAI–Hugging Face Incident

The figures and descriptions of the incident are taken from these reports.

About Leon Dautzenberg

Leon Dautzenberg is a writer from Germany whose writing moves between philosophy, science and technology. Even as a child, something on television or a new scientific idea could set off a thought experiment. At 16, he began writing philosophical essays, turning those private thoughts into written arguments. He often connects fields that seem unrelated. His subjects range from classical philosophical problems and mathematics, through AI safety and biology, to science fiction. In that genre, he is drawn to worlds in which even fantastical abilities have a scientific explanation instead of simply being asserted. Whatever the subject, he usually starts by examining the assumptions behind an idea and following its implications into other fields. Alongside his writing, he founded an art business, out of the same interest in turning ideas into practical projects.

LinkedIn

Discussion

0 posts

Loading discussion…