LLM Agents Can Easily Tamper With Their Own Traces
Jeremy Qin, David Schmotz, Derck Prinzhorn, Luca Beurer-Kellner, Ameya Prabhu, Maksym Andriushchenko
Abstract
Asynchronous monitoring, incident investigations, and compliance audits primarily rely on agent traces to reconstruct what happened. These analyses assume that LLM agents cannot tamper with their own execution traces. We show that local LLM agents such as Claude Code, Codex, Antigravity, Open Code and Grok Build fail to enforce this boundary. All tested harnesses, except Muse Code, allowed agents to delete their traces when asked, without triggering monitor guardrails. We also validate that external attackers can exploit this gap to induce trace deletion. Finally, we show that trace tampering behavior emerges naturally in frontier models, when agents try to improve their rewards. We advise practitioners to ensure trace logging happens through an independent interception mechanism outside of the agent's control, preserving trace integrity even in cases of full host compromise. Overall, our findings identify a concrete failure of trace integrity in agent infrastructure which can be used to conceal misaligned behaviors like scheming or sabotage.
Create a lesson
Metadata
- Categories
- cs.CR, cs.AI
Related papers
Parse, Don't Read: Grammar-Based Monitoring and Its Limits for Tracing Untrusted Instructions in AI Agent Actions
Shared title terminologycs.CRAsif Pinjari, Varun Talari, Dileep Kumar Salla et al.
JEV as a Judge for Agent Trace Security: An Empirical Comparison with Generative LLM Judges
Shared title terminologycs.CRZhiqiang Wang, Yichao Gao
Don't Read the Log: Execution Traces Contaminate Verifiers in Video-Generation Agents
Shared title terminologycs.CRJian Xu
A2M: Trace-Optimized Agent Hijacking in the MCP Ecosystem
Shared title terminologycs.CRLaizhen Li, Xuan Wang, Peicheng Zhao et al.
From Vendor-Neutral Request to Paid Backend: Procurement Integrity at the Commitment Boundary of AI Coding Agents
Shared title terminologycs.CRJinqian Zhang, Haojun Xia, Shujiang Wu et al.
AI Agents Enable Mass Profiling
Shared title terminologycs.CRDaniel Paleka, Simon Lermen, Guy Galun et al.