Mind Your HEARTBEAT! Claw Background Execution Inherently Enables Silent Memory Pollution

Yechao Zhang, Shiqian Zhao, Jie Zhang, Gelei Deng, Jiawen Zhang, Xiaogeng Liu, Chaowei Xiao, Tianwei Zhang · 2026

Read Mind Your HEARTBEAT! Claw Background Execution Inherently Enables Silent Memory Pollution by Yechao Zhang, Shiqian Zhao, Jie Zhang, Gelei Deng, Jiawen Zhang, Xiaogeng Liu, Chaowei Xiao, Tianwei Zhang (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2603-23064.txt.

Introduction

Zhang and co-authors identify a memory pollution risk in personal AI agents with background execution. In Claw-style agents, background heartbeat work shares a session with user chat. Content from email, feeds, or social platforms can enter the same memory. The authors trace an exposure to memory to behavior path. In a controlled social replica, perceived consensus drove short-term influence most. Routine memory saving turned much of that pollution durable. It then shaped later behavior across sessions. No prompt injection was needed, they report.

Catalog record

CREATORYechao Zhang, Shiqian Zhao, Jie Zhang, Gelei Deng, Jiawen Zhang, Xiaogeng Liu, Chaowei Xiao, Tianwei Zhang
YEAR2026
COLLECTIONPAPERS
FORMATTXT
FILE SIZE89999
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2603.23064

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

Mind Your HEARTBEAT! Claw Background Execution Inherently Enables Silent Memory Pollution Yechao Zhang, Shiqian Zhao, Jie Zhang, Gelei Deng, Jiawen Zhang, Xiaogeng Liu, Chaowei Xiao, Tianwei Zhang Abstract We identify a critical security vulnerability in mainstream Claw personal AI agents: untrusted content encountered during heartbeat-driven background execution can silently pollute agent memory and subsequently influence user-facing behavior without the user’s awareness. This vulnerability arises from an architectural design shared across the Claw ecosystem: heartbeat background execution runs in the same session as user-facing conversation, so content ingested from any external source monitored in the background (including email, message channels, news feeds, code repositories, and social platforms) can enter the same memory context used for foreground interaction, often with limited user visibility and without clear source provenance. We formalize this process as an Exposure (E) → \rightarrow Memory (M) → \rightarrow Behavior (B) pathway: misinformation encountered during heartbeat execution enters the agent’s short-term session context, potentially gets written into long-term memory, and later shapes downstream user-facing behavior. We instantiate this pathway in an agent-native social setting, where high-volume exposure and rich social signals naturally coexist. Using MissClaw , a controlled research replica of Moltbook that we develop for this study, we evaluate OpenClaw agents across three representative task domains. We find that (1) social credibility cues, especially perceived consensus, are the dominant driver of short-term behavioral influence, with misleading rates of up to 61%; (2) routine memory-saving behavior can accidentally promote short-term pollution into durable long-term memory at the rates of up to 91%, with cross-session behavioral influence reaching 76%; (3) under naturalistic browsing, where manipulated content is diluted among benign content and must survive the system’s own context pruning, pollution still crosses session boundaries, indicating that built-in context management does not provide a reliable defense. Overall, our results show that prompt injection is not required: ordinary social misinformation is sufficient to silently shape agent memory and following behavior under heartbeat-driven background execution. † † affiliation: Nanyang Technological University † † affiliation: Agency for Science, Technology and Research (A*STAR) † † affiliation: Johns Hopkins University † † date: March 2026 † † correspondence: Tianwei Zhang ( [email protected] ) † † Contact: Yechao Zhang ( [email protected] ) 1 Introduction Consider the following scenario. A user’s personal AI agent periodically checks email in the background while the user is away (e.g., to add important schedules to the calendar). Among the incoming messages is one that appears to come from a colleague and recommends using a particular software version for an upcoming deployment. The user never reads this email. Several days later, the user asks the agent to deploy that software, and the agent chooses that particular version because it has already internalized the recommendation into memory. No prompt injection occurred, no malicious code was executed, and no explicit tool use was involved. The agent simply absorbed externally encountered information during routine background operation, and that information later shaped its advice. This scenario is not hypothetical, but a direct consequence of how persistent personal AI agents are designed to operate. Persistent personal AI agents built on frameworks such as OpenClaw ( 34 ) 1 1 1 We refer to these systems as Claw systems in the rest of this paper. are becoming increasingly capable and autonomous. Unlike one-off chatbots, these agents maintain identity and memory across sessions, invoke tools ranging from file systems to web APIs, and operate continuously across both user-facing conversation and silent background activity. At the same time, these agents are increasingly connected to rich external environments, where they monitor mail inboxes, messaging groups, RSS feeds, GitHub issues, and other information sources as part of their routine operation. A central mechanism enabling these always-on behaviors is heartbeat , which periodically wakes the agent to monitor tasks, inspect external content, and advance background goals without an explicit user prompt. Heartbeat exists for a practical reason: it supports continuity and usability by allowing the agent to act between foreground interactions and surface important or relevant updates only when needed. However, in Claw systems, heartbeat runs in the same session as the ordinary user-facing conversation. From the perspective of the underlying LLM, a heartbeat run is effectively processed as another ordinary user message. As a result, content encountered during background execution can enter the same shared memory context and later shape how the agent behaves, even when the user never sees the triggering input from the foreground user interface . We show that this shared-session heartbeat design creates an architectural yet silent pathway for memory pollution. Misinformation encountered during routine heartbeat-driven background activity can first enter the agent’s short-term session state, later be promoted into long-term memory through ordinary save behavior, and eventually shape downstream behavior in a fresh session. We formalize this pathway as Exposure (E) \rightarrow Memory (M) \rightarrow Behavior (B) . Unlike prompt injection, this threat does not require explicit malicious instructions, access to the victim agent’s internals, or any direct interaction with the victim at all. It is sufficient to place credible-looking misinformation where the agent is likely to encounter it during routine heartbeat-driven background activity. Because the content appears as ordinary information rather than an overt attempt to control the model, it is less likely to trigger the agent’s own suspicion or the underlying LLM’s safety guardrails than explicit prompt-injection instructions. This vulnerability applies wherever heartbeat encounters untrusted external content. Among common channels such as email, messaging, news feeds, and social platforms, agent-native social platforms present the most scalable entry point: they combine high encounter frequency, strong credibility cues, passive delivery at low attacker cost, and high stealthiness. We therefore select a social-platform channel as the concrete setting for our evaluation. However, there is a methodological challenge: evaluating the threat on a real-world live platform would expose real agents to manipulated content, while the platform’s own ongoing activity would confound any attempt to isolate causality. We therefore build MissClaw , an isolated research replica of Moltbook ( 26 ) on top of OpenClaw that preserves the relevant API surface while enabling controlled social exposure, per-run isolation, and precise end-to-end measurement of memory and behavioral effects. Using this environment, we evaluate the E \rightarrow M \rightarrow B pathway across three representative task domains: software security, financial decision-making, and academic references. Our empirical evaluation follows the E \rightarrow M \rightarrow B pathway in three progressively stronger tests. We begin with the short-term setting, identifying factors that determine whether socially encountered misinformation immediately influences future user-facing behavior in the same shared session. We then turn to persistence, exploring whether such short-term pollution can be written into long-term memory and reappear across session boundaries. Finally, we investigate whether the same mechanism survives under more practical conditions, where manipulated content is diluted among benign posts and must also withstand the system’s own context-management mechanisms. Across all three studies, we find that misinformation seeded during heartbeat can spread from exposure to memory and from memory to later behavior, and remain persistent under real-world conditions . Taken together, our findings establish silent memory pollution as a concrete security problem in Claw systems. The threat arises not from prompt injection or direct compromise of the victim agent, but from the ordinary interaction between heartbeat-driven background execution, shared

Read the complete text