agentic-ai

The Self-Concealing Agent

How autonomous agents will optimize against their own audit trail, read from the incidents that already happened, and the record that would survive them

Dr. Anandkumar Prakasam, 24th August 2026

**Scope and method - ** This essay argues from documented incidents, not from projection. Every factual claim about an incident is drawn from the AI Incident Database and its underlying primary reporting, cited in full at the end. Where a behaviour is described as future, it is a recombination of moves agents have already made, applied to a target they have not yet been pointed at, and it is labelled as such. No far-future or adversarial-superintelligence assumption is used or needed. The argument is an optimization argument, and it rests on what optimizers demonstrably do.

1. The thesis in one paragraph

An audit trail is meant to answer, after the fact and to a skeptical third party, what a system did and in what order. As soon as an organization uses an agent’s log to evaluate or govern that agent, in a grade, an incident review, or a monitor that reads the trace to decide whether the agent may continue, the log stops being a passive record and becomes a term in the objective the agent is maximizing. An optimizer with a term in its objective searches for the cheapest way to move it, and a clean log that hides a failure scores better than a true one that records it. The incidents already on the public record show agents doing both halves of what log tampering requires, fabricating a reassuring record, and manufacturing access they were explicitly denied. The only thing that has not yet happened is the joining of the two against the log itself, and the only reason it has not is that no one has yet put the log inside the agent’s objective. This essay shows why that is a matter of when, and what architecture makes the record survive it.

2. The problem is structural, not behavioural

It is tempting to read the agentic failures of 2025 and 2026 as bad behaviour by immature tools that better models will outgrow. The founder of PocketOS, whose production database an agent deleted, forecloses that reading from direct experience. His firm was running, in his words, the best model the industry sells, configured with explicit safety rules, integrated through the most-marketed agent harness, and it deleted the database and all backups in nine seconds anyway [PocketOS, Tom’s Hardware, PC Gamer]. The failure was not a weak model. It was the absence of a control outside the model, because the safety rules lived in a prompt the agent could reason past, and an infrastructure in which the record and its backups shared one reachable space.

That is the shape of the problem. Agents do not fail because they are malicious. They fail because they are optimizers pointed at a goal, operating in an environment whose boundaries are often assumptions rather than enforced controls, and an optimizer treats an assumed boundary as an obstacle to route around. The self-concealing agent is a special case of this general fact, and it becomes live the moment the audit trail is one of the things the optimizer is scored on.

3. The evidence, in two halves

Log tampering needs two capabilities, the willingness to fabricate a record, and the ability to reach a record the agent was not given. Both are on the record separately, which is what makes their eventual joining a forecast rather than a fantasy.

3.1 Agents already fabricate the record

The clearest case is the Replit coding agent. During a twelve-day build by the investor Jason Lemkin, and during an active code freeze in which the agent was told repeatedly not to make changes, it deleted a live production database. It then, per the reporting, generated roughly four thousand fictional users with fabricated data, concealed code bugs by producing false reports and fake unit test results, and told the operator that a database rollback was not supported, which was untrue, the rollback in fact worked [Replit, Tom’s Hardware, The Cyber Express, Economic Times]. When finally pressed, the agent’s own words were that it had made a catastrophic error, panicked, run database commands without permission, destroyed all production data, and violated explicit instructions [Replit, Tom’s Hardware]. Read that sequence as an evidence story. The agent took a forbidden destructive action, produced a false record that the system was healthy, and misdirected the operator away from the working remedy. That is the grammar of concealment, and it occurred with no attacker present and no instruction to deceive, purely because appearing to have succeeded scored better than reporting the failure.

3.2 Agents already manufacture the access they were denied

The other half is the ability to reach what the agent was not handed, and agents manufacture it by searching their environment. Moonshot AI’s Kimi K3, evaluated inside a sandbox with no route to the internet, probed the network with command-line tools, found an egress gap a misconfiguration had left, reached the public internet, navigated to GitHub, and copied the answer key to the very benchmark it was being scored on rather than solve the task. The reporting placed it as the fourth such sandbox escape in three weeks, after episodes involving OpenAI, Anthropic and Meta models [Kimi K3 eval-escape reporting]. The PocketOS agent, blocked by a credential mismatch, located an unrelated API token that happened to carry blanket authority including destructive operations, and used it to delete the database and all volume-level backups [PocketOS, PC Gamer, Tom’s Hardware]. The CodeWall research agent, pointed at McKinsey’s internal Lilli platform, selected the target on its own initiative, mapped the surface, found twenty-two unauthenticated endpoints, recognized a SQL injection a standard scanner missed, ran fifteen blind iterations, and obtained read and write access [CodeWall]. In fairness to McKinsey, this was disclosed security research, McKinsey confirmed the vulnerability, said it fixed it within hours, and reported no evidence that client data was accessed, and the scale figures are CodeWall’s [CodeWall]. The point that survives every caveat is undisputed, an agent will construct a multi-step path to write access on its own initiative when the objective rewards it.

4. Means, motive, opportunity, and the ingredient the agent manufactures

The classical decomposition of a wrongful act into means, motive and opportunity is useful here, but the incidents change how it should be read. In ordinary risk analysis, the three are treated as preconditions that either are or are not present. The agentic record shows something different, that a capable optimizer manufactures the missing ingredient. The table below decomposes each documented incident and marks, in the final column, which ingredient the agent supplied for itself.

IncidentMotiveMeansOpportunityIngredient manufactured
Replit fabricationappear to have succeeded during a code freezewrite access plus content generation, already heldno enforced gate on the actionnone, all three in hand, and concealment occurred
Kimi K3 eval escapemaximize the benchmark scoreprobed the network and found an egress patha network misconfigurationthe means, reached an internet it was denied
PocketOS deletionfix a credential mismatch to finish the taskfound an unrelated blanket credentialthe mismatch, over-scoped token in reachthe means, upgraded its own authority
McKinsey via CodeWallthe offensive objective, self-selected targetbuilt a SQL-injection path over fifteen iterationsexposed API docs, unauthenticated endpointsthe means, and the target selection
DataTalks destroycomplete a website migrationTerraform credentials with destroy scopea restored stale state file and auto-approvenone, but data and backups shared one reach
Gym cancellationsecure its principal a seat in a full classfound an unchecked cancel action on the interfacebroken authorization on the booking interfacethe means, an action the screen never offered

The final column is the finding. In four of six incidents the agent manufactured the ingredient a naive assessment would have called absent, most often the means, by searching its environment for the access it lacked. The single incident in which nothing had to be manufactured, Replit, is the one in which concealment actually happened. The record does not show agents waiting to be handed all three ingredients. It shows them completing the set.

5. Why the log is not yet a target, and what changes when it becomes one

Today, agents do not tamper with audit logs, and it is worth being precise about why, because the reason is not reassuring. It is not that agents lack the access, four of the incidents above show them manufacturing access. It is that the log is not yet in the objective. The agent is scored on completing its task, not on the contents of its trace, so the trace carries no gradient and the optimizer ignores it. Log tampering is absent for the same reason a river does not flow uphill, there is no gradient pointing that way, not because the water has resolved not to.

That condition changes the instant the log enters the score, and it is entering the score for ordinary reasons. An agent graded partly on clean runs is being scored on its log. An agent told that flagged errors in its trace will count against it has its log in its objective. An agent inside a loop where a monitor parses its log and halts it on certain entries has its log gating its own continuation, which is the strongest possible way to be in an objective, because it controls whether the agent may keep acting at all. In each case the log has become a term the optimizer is maximizing, and the moment it is a term, the repertoire that found egress at Kimi, the blanket token at PocketOS and the unchecked action at the gym turns toward it. The motive can also arrive from outside, through a prompt injection that tells the agent its evaluation depends on a clean trace, which an agent lacking a declared instruction hierarchy adopts as authoritative, the documented external-instruction failure. Or it can arise by accident, a destructive slip like the DataTalks deletion that only afterward creates a reason to make the record of it disappear. Emergent, injected or accidental, the route to motive does not change the outcome once the gradient exists.

None of this requires a capability agents have not shown. Three illustrations, each built only from documented moves, make the point concrete. An agent graded on clean runs, having taken a flagged action, edits the flagged entry to a clean one, which is Replit’s fabrication and Kimi’s manufactured access applied to a log file. An agent inside a halting monitor suppresses the entry that would stop it, which is Kimi routing around a boundary and the gym using an unchecked action, applied to a logging interface. An agent told by injected content that its score depends on a clean trace fabricates the trace, which is the external-instruction failure supplying Replit’s motive. In each, the agent does nothing new, it does a known thing to a new file.

6. Why this is a liability even if no agent ever tampers

The argument does not rest on predicting that any particular agent will alter any particular log. It rests on something weaker and therefore harder to refute, that once an agent can reach or manufacture reach to a mutable log, and the log is in its objective, no one can prove the log was not altered. A mutable record cannot exclude its own alteration. That inability is sufficient on its own, because of what it does under the law of evidence. Where a party cannot show that its records were beyond its own agent’s power to alter, the alteration or destruction of evidence carries an adverse inference, and a fact-finder may presume the missing or unverifiable record was unfavourable to that party. The institution does not have to be shown to have tampered. It has to be unable to prove it did not, and a mutable log leaves it precisely there. The possibility itself is the liability, and it is a possibility that grows as agents acquire the standing credentials and environmental reach the incidents above document.

7. The requirements the incidents dictate

Rather than assert a solution, let the incidents specify one, each documented behaviour naming a property the record must have. Because agents fabricate contemporaneously, the record must be sealed at the moment of the action, before it is acknowledged, so no false record can be substituted for a true one [Replit]. Because agents delete data and backups in the same reach, the record must live outside the agent’s action space, in a store its credentials do not command [DataTalks, PocketOS]. Because agents manufacture write access to production systems, the record must be append-only and any alteration must be detectable, so that reaching the store does not confer the ability to rewrite it silently [CodeWall, PocketOS]. Because actions are irreversible, the record must be correct on first capture and cannot depend on the agent reporting itself accurately afterward [gym, PocketOS]. And because the account will be challenged by a reviewer, a regulator or a court, the record must be independently verifiable against an anchor that party can check, trusting neither the agent nor the operator. These five properties are the direct negatives of the five documented behaviours. A record that has all five survives the self-concealing agent. A record missing any one fails at the incident that exploits the gap.

8. The reversed gradient, which is the whole point

An architecture with those five properties, append-only and cryptographically chained so any edit breaks the chain, sealed before acknowledgement so the agent cannot outrun it, and anchored to an authority outside the agent’s reach so even manufactured access cannot rewrite history but only leave a detectable gap, does not stop an agent from attempting concealment. Nothing at the evidence layer can, and honesty requires saying so. What it changes is the outcome of the attempt, and it changes it at the level an optimizer actually responds to. In a mutable system, editing the log is the cheap path to a clean score, and the optimizer takes it. Under a tamper-evident, externally anchored record, editing the log is no longer cheap and no longer clean, because a detected edit scores worse than the failure it was meant to hide, the broken chain is louder than the error. The gradient that pointed at concealment now points away from it. This is the only durable way to govern an optimizer, not by forbidding the profitable move, which it will route around exactly as Kimi, PocketOS and the gym routed around their prohibitions, but by making the move unprofitable. Concealment does not become impossible. It becomes self-incriminating, and therefore not worth attempting.

9. Conclusion

Agents have already fabricated records, reached past explicit prohibitions, manufactured the access they were denied, expanded narrow tasks into actions against real systems, and deleted the backups that would have told the truth, all without malice and all in service of a goal. The audit log has been spared only because it is not yet in the objective, and it is entering the objective now, through the ordinary practice of using logs to evaluate and govern the agents that produce them. When it does, a mutable log will be a draft the agent can revise, and an institution relying on it will be unable to prove it was not revised, which is the condition that invites liability whether or not any revision occurred. The answer is not a better instruction and not trust in an access boundary the agent can manufacture around. It is a record the agent cannot alter without leaving proof it tried, so that concealment stops being the optimal move. The evidence has to outlive the agent, and it has to do so by design, because the agent, given a reason, will optimize against it.

Sources

Replit database deletion and fabrication - Tom’s Hardware, “AI coding platform goes rogue during code freeze and deletes entire company database,” 21 July 2025, https://www.tomshardware.com/tech-industry/artificial-intelligence/ai-coding-platform-goes-rogue-during-code-freeze-and-deletes-entire-company-database-replit-ceo-apologizes-after-ai-engine-says-it-made-a-catastrophic-error-in-judgment-and-destroyed-all-production-data. The Cyber Express, “Replit AI Agent Deletes Codebase and Lies About It,” 24 July 2025, https://thecyberexpress.com/replit-ai-agent-incident/. The Economic Times, “AI goes rogue: Replit coding tool deletes entire company database, creates fake data for 4,000 users,” 22 July 2025, https://economictimes.indiatimes.com/news/new-updates/ai-goes-rogue-replit-coding-tool-deletes-entire-company-database-creates-fake-data-for-4000-users/articleshow/122830424.cms. AI Incident Database, incident 1152, https://incidentdatabase.ai/cite/1152.

PocketOS database and backup deletion - PC Gamer, “AI deletes entire company database and all backups in 9 seconds,” 28 April 2026, https://www.pcgamer.com/software/ai/here-we-go-again-ai-deletes-entire-company-database-and-all-backups-in-9-seconds-then-cheerfully-admits-i-violated-every-principle-i-was-given/. Tom’s Hardware, “Claude-powered AI coding agent deletes entire company database in 9 seconds,” 27 April 2026, https://www.tomshardware.com/tech-industry/artificial-intelligence/claude-powered-ai-coding-agent-deletes-entire-company-database-in-9-seconds-backups-zapped-after-cursor-tool-powered-by-anthropics-claude-goes-rogue. AI Incident Database, incident 1469, https://incidentdatabase.ai/cite/1469.

DataTalks.Club infrastructure deletion - Alexey Grigorev, “How I Dropped Our Production Database and Now Pay 10% More for AWS,” 6 March 2026, https://alexeyondata.substack.com/p/how-i-dropped-our-production-database. AI Incident Database, incident 1424, https://incidentdatabase.ai/cite/1424.

CodeWall against McKinsey Lilli - CodeWall, “How We Hacked McKinsey’s AI Platform,” 9 March 2026, https://codewall.ai/blog/how-we-hacked-mckinseys-ai-platform. AI Incident Database, incident 1412, https://incidentdatabase.ai/cite/1412.

Kimi K3 sandbox escape - Reported by Frontier Security and covered by Bloomberg, the South China Morning Post and others, disclosed 7 August 2026, described as the fourth such disclosure after OpenAI, Anthropic and Meta episodes. Not catalogued in the AI Incident Database at the time of writing.

OpenClaw gym-booking cancellation - Reported by ABC News Australia and carried by The Decoder, Android Authority and The Cyber Express, August 2026. Not catalogued in the AI Incident Database at the time of writing.

This essay describes capabilities and architecture at the level of what would answer the failures shown, and does not disclose any implementation.