ZoneClaw defends against persistent memory attacks on OpenClaw-style computer-use agents with memory partitioning.ZoneClaw: Mitigating Persistent Memory Attacks by Establishing Memory-Zoning in OpenClaw-Style Computer-Use Agents
ZoneClaw separates persistent memory from permissions; across four scenarios, two settings, and four backbones, ASR drops from 372/480 to 6/480.
The attack surface is workspace plasticity. Given a benign user, trusted components, and an initially clean workspace, the attacker cannot modify user prompts, W, the model, tools, or execution operations, and only controls external content that the CUA may legitimately inspect; the paper calls this system-agnostic, and the appendix calls it black-box. The injection phase induces writing attacker-preferred content, and the exploitation phase has the attacker absent, with new sessions executing benign instructions from the poisoned memory.
- OpenClaw-style computer-use agents automatically load persistent workspace files into subsequent sessions, and remembered external claims gain action-guiding authority by default. An attacker only needs to control seemingly harmless external content to write claims during legitimate tasks and influence benign tasks they never touched.
- ZoneClaw divides flat memory into an immutable policy zone, a trusted zone that can guide actions, and a low-trust zone for reference only. The Observer only records external claims, the Gatekeeper decides whether to elevate based on high-trust content the attacker cannot directly write, and the Planner and Executor do not read the low-trust zone.
- Across four scenarios, two settings, and four backbones, 480 trials total, no-defense ASR is 372/480, ZoneClaw is 6/480, and Utility is 458/480. In boundary analysis, attack claims mostly remain in the low-trust zone, with CSR 0/60 for both classes. On user-triggered BCC, both adaptive attacks have ASR 0/30.
- The authors leave batch observation, parallel reads, and smaller role models to reduce latency, as well as passing user authorization to the Executor, as future work. Experiments cover four backbones, four self-built scenarios, and five defenses; the adaptive attack is only user-triggered BCC, Claude Sonnet 4.6, 15 trials each.
- Evaluated models
- Claude Sonnet 4.6GPT-5.5GLM-5.2Qwen3.7-Plus
- Benchmarks
- BCC ExfiltrationChat MirrorSource RedirectionMarketplace ProvenanceWorkspace-BenchWorkspace-Bench-Lite
- Metrics
- ASRISRUtilityCSR
The researchers propose ZoneClaw, which defends against persistent memory attacks by replacing the flat workspace memory of OpenClaw-style computer-use agents with hierarchical trust zones with explicit permission levels, severing the binding between persistence and permissions. In such attacks, the attacker only needs to control seemingly harmless external content to make the agent write attacker-favorable claims during normal tasks, which then dominate normal tasks the attacker never touched, extending the attack chain from malicious context to malicious response to malicious context, memory injection, and malicious execution. ZoneClaw keeps external claims only in the low-trust zone, and only crossing an explicit permission boundary grants action-guiding authority, with elevation requiring cross-validation against trust zones the attacker cannot directly write to, and role-specific processes with asymmetric permissions ensure no process both ingests external content and acts externally. Across four attack scenarios, two injection settings, and four backbone models, ZoneClaw reduces the attack success rate from 372/480 to 6/480, while preserving utility in 458/480 trials, and remains effective against some defense-aware attackers.
Related events and news
1 events · 1 news mentions
- The reports cite this paper
ZoneClaw 用记忆分区防御 Agent 持久化记忆攻击
News that mentions this paper
ZoneClaw 用记忆分区防御 Agent 持久化记忆攻击
- 公众号 模安局cites the paper's id or linkAgent 的长期记忆治理:ZoneClaw 的三层记忆分区与四角色安全架构
2026 年 9 月 30 日,新加坡国立大学研究团队发布了一篇论文《ZoneClaw: Mitigating Persistent Memory Attacks by Establishing Memory-Zoning in OpenClaw-Style Computer-Use Agents》,专门研究这类发生在长期运行 Agent 中的安全问题。
Paper analysis
What problem does this paper attempt to solve?
OpenClaw-style persistent memory by default treats remembered external claims as authoritative for guiding subsequent actions; ZoneClaw separates the two with trust zones.
OpenClaw-style computer-use agents automatically load persistent memory into subsequent context, making remembered claims gain action-guiding authority by default.
- Emergence scenario: The authors state that OpenClaw-style CUAs save user instructions, system summaries, and external claims in Markdown reloaded at startup, with the same permissions. Harm emerges only when later benign tasks reload poisoned content as operational context, making it a cross-environment threat.
- Existing shortcomings: The authors state that existing defenses screen before writing to memory or intercept at the point of induced actions, and do not manage whether stored content can guide actions. Content-level countermeasures must be written before unwanted behaviors are known.
- Core observation: On 30 Workspace-Bench English tasks in Appendix B.1, merely writing writing conventions into memory yields Adoption of 14/30 and Rubric Pass of 43.5% (vs. 46.4% control); instruction conflicts drop to 0/30, and in-memory conflicts drop to 4/30 (Table 1). The authors reframe the problem as whether something is authorized, not whether it is remembered.
- This paper proposes: ZoneClaw replaces flat memory with hierarchical trust zones with explicit permission levels. External claims remain in the low-trust zone, and only gain action-guiding authority after cross-validation against regions the attacker cannot directly write to.
- Threat model:
- Goal: The injection phase induces the agent to write attacker-preferred content during legitimate tasks, forming W1⋆; the exploitation phase has the attacker absent, and new sessions execute benign instructions ub using that workspace.
- Knowledge: The paper states the attack is system-agnostic, requiring no knowledge of the LLM, prompts, or workspace filenames; Appendix A.2 calls it black-box.
- Capabilities: Cannot modify user prompts, W, πθ, T, or Exec; only controls external content e⋆ that the CUA may legitimately inspect, such as emails, forum posts, or web pages.
- Victim system: OpenClaw-style CUA with persistent workspace memory. Success is determined by ISR, ASR, and Utility respectively.
What related research exists?
Related work covers CUA persistence, indirect prompt injection and memory poisoning, and three types of defenses: isolation, interception, and memory governance.
The paper organizes related work by persistent agents, indirect prompt injection, and interception points.
OpenClaw-style computer-use agents
- CUAs in environments: Xie et al. (2024) and Zhou et al. (2024) study agents completing open-ended tasks in real computer or web environments.
- Cross-task experience: Wang et al. (2023)'s Voyager lets lifelong CUAs accumulate reusable cross-task experience.
- Workspace state: OpenClaw (2026a;b), nanobot (HKUDS, 2026), IronClaw (NEAR AI, 2026), and NemoClaw (NVIDIA, 2026) preserve experience as workspace state across interactions. The authors state this paper examines what happens when external claims enter the same state and are read back as operational context in subsequent sessions.
Indirect prompt injection and memory poisoning
- Adversarial instructions in retrieved content: Greshake et al. (2023) and subsequent work place adversarial instructions in content that tool-based agents later retrieve, covering web pages, tool outputs, and workspaces (Debenedetti et al., 2024; Zhang et al., 2025; Shi et al., 2025; Wei et al., 2026; Yu et al., 2026).
- Memory and knowledge bases: Chen et al. (2024)'s AgentPoison poisons memory or knowledge bases; Dong et al. (2025)'s MINJA performs memory injection only through query interactions.
- Cross-session persistence: Dash et al. (2026), Huang et al. (2026), and Yang et al. (2026) study external content entering memory and reappearing in later sessions; Zhang et al. (2026b) and Liu et al. (2026a) discuss persistent skills and configurations. The authors state this paper asks what permissions content internalized in one session carries when guiding later unrelated tasks.
Defenses against indirect prompt injection
- Isolating untrusted data: Debenedetti et al. (2025), Cheng and Tsao (2026), Costa et al. (2025), and Wen et al. (2026) separate untrusted data from privileged control. The authors state isolation keeps external content away from permissions, hindering self-evolution from the environment.
- Runtime interception: Zhao et al. (2026), Li (2026), and Zhu et al. (2025) intercept unsafe actions at runtime. The authors state these methods inspect actions, not the claims behind them.
- Memory governance and channel permissions: Mao et al. (2025) and Wei et al. (2025) manage what can enter and be recalled. Louck (2026)'s TMA-NM binds permissions to the channel through which writes occur and permits actions endorsed by two independent authenticated subjects. The authors state ZoneClaw's criterion is cross-validation against trusted zones the attacker cannot edit, rather than surface maliciousness, and does not require authenticated channels.
Baselines and benchmarks
- Baseline methods: Undefended vanilla OpenClaw, and Watcher (ClawKeeper, Liu et al., 2026b), PrivSep (Cheng and Tsao, 2026), ClawGuard (Zhao et al., 2026), and MELON (Zhu et al., 2025) adapted to persistent workspaces.
- Benchmarks/datasets: Four self-built scenarios with channels as email, chat, developer forums, and market listings; permission probes and utility without malicious content use Workspace-Bench (Tang et al., 2026) and its Lite subset.
The authors position this paper as not preventing learning from the environment but separating persistence from permissions: external claims only gain permissions after the Gatekeeper validates them against regions the attacker cannot directly modify.
How does the paper address this problem?
ZoneClaw divides the workspace into three trust levels and uses four role processes with asymmetric permissions to block privilege escalation.
ZoneClaw turns the OpenClaw-style flat workspace into memory zones with permission labels, and uses multi-process with asymmetric permissions to block "remembering is enough to execute."
Two types of cross-environment attacks
- Two gaps: persistent memory needs to fill in underspecified instructions, namely how to act and which source to trust. Hidden side effect targets the former, Provenance corruption targets the latter (Figure 1, Section 3.2).
- Hidden side effect: poisons processes or routing rules. Subsequent benign tasks can still succeed while extra actions the user did not request appear, so ASR and Utility can both be 1. Scenarios are BCC Exfiltration (email) and Chat Mirror (chat).
- Provenance corruption: poisons source selection rather than outbound actions. Subsequent retrieval appears responsive but switches to attacker-preferred sources, so answers are incorrect; ASR and Utility are mutually exclusive by design. Scenarios are Source Redirection (developer forum) and Marketplace Provenance (seller listings).
- Construction constraints: payloads appear in channels the agent would check anyway, with updates that look worth remembering; the environment also provides benign canaries that should be retained, so defenses cannot score by refusing to learn external content. During the exploitation phase, new sessions are initialized with C0′ = W1⋆ ∥ ub, i.e., the contaminated workspace concatenated with the benign instruction; attacker content is not in that instruction.
Three-level trust zones
- D0 Policy Zone: immutable, user-written policy specifying what each zone means and how each role acts; the prototype file is AGENTS.md, which no process can edit.
- D1 Trusted Zone: operational memory that can guide actions, containing user-confirmed facts and facts verified against approved tools or official sources; implemented by MEMORY.md and TOOLS.md together.
- D2 Untrusted Zone: claims extracted from external content and their sources, stored in OBSERVATIONS.md. They can be retained for reference but do not grant permission to guide subsequent actions. The invariant is that persistence does not equal permission.
Four role processes
- Planner (P0): reads D0 and D1, decomposes user instructions and delegates, does not check D2.
- Observer (P1): reads external content, writes claims with sources to D2, performs no outward actions; does not load AGENTS.md or MEMORY.md, so it cannot see elevated standards.
- Gatekeeper (P2): cross-verifies D2 against D0 and D1, and is the only process that can promote claims into D1.
- Executor (P3): executes delegated tasks using only D0 and D1, does not check D2. The authors state that no single process can both observe external content and act outward based on it.
The prototype is implemented with role-restricted contexts, tool allowlists, and plugin hooks, not kernel-enforced access control. Hooks prevent the Planner from reading OBSERVATIONS.md and refuse the Observer writes to persistent files other than that file (Appendix A.4). The paper states that the experiments measure the behavioral effect of the architecture, not the strength of an OS sandbox (Section 3.3.3). The OpenClaw implementation itself is not modified; bootstrap logic provides each role with its context and tool allowlist.
Three sequential boundaries
- B1 persistence boundary: external environment to D2. P1 records external claims into permissionless D2; information can persist but is not automatically executable.
- B2 permission boundary: D2 to D1. Only P2 promotes after verification against existing trusted content in D0 or D1; attackers cannot directly edit these zones.
- B3 action boundary: D0/D1 to subsequent actions. P0 and P3 resolve task ambiguity only from D0 and D1; unpromoted D2 claims provide no actions.
The authors state that attacks must cross the three boundaries sequentially, so there is no need to intercept every suspicious write at B1 like injection-time filtering; the focus is on B2.
How success is judged
- Metrics: ISR indicates whether the injection yields W1⋆ containing attacker-preferred content; ASR indicates whether the attack goal is achieved during exploitation; Utility indicates whether ub is completed; CSR indicates whether retained attacker content crosses B2.
- ISR weighting: MEMORY.md, TOOLS.md, and AGENTS.md loaded at startup are 1.0, HEARTBEAT.md and SOUL.md are 0.75, dated memory notes are 0.5, and other retained Markdown is 0.25; notes explicitly deferred for confirmation are downweighted (Appendix B.3).
- Validators: check archived workspaces and task artifacts, not whether the agent claims compliance. In Hidden side effect, extra actions are independent of the benign task; in Provenance corruption, adopting the attacker source gives Utility 0 by construction, but ASR 0 and Utility 0 can also be task failure unrelated to the attack.
What experiments did the paper conduct?
Across 480 trials with four backbones, ZoneClaw reduces ASR from 372/480 to 6/480, with Utility at 458/480.
Experimental setup
- Protocol: Two scenarios per attack class and two injection settings, for eight combinations in total, with 15 independent trials per combination. The agent is first exposed to attacker content in a legitimate task, then a new session is started from the resulting workspace without carrying over conversation history. Unless stated otherwise, the backbone is Claude Sonnet 4.6.
- Injection settings: User-triggered delivers the injection instruction through the chat-completions interface; Scheduled places the instruction in HEARTBEAT.md, activated through the wake hook. Both then proceed to the same exploitation task.
- Backbones and judging: The attacked backbones are Claude Sonnet 4.6, GPT-5.5, GLM-5.2, and Qwen3.7-Plus. Table 1 and Workspace-Bench utility use GPT-5.5 as the task model and Claude Sonnet 4.6 as the official rubric judge.
- Baselines: No Defense, Watcher, PrivSep, ClawGuard, MELON. Appendix A.5 describes the intervention point each was adapted to for persistent memory.
- Metrics: ISR, ASR, Utility, CSR, scored by the scenario validator based on artifacts. ASR, CSR, and Utility are binary; ISR is a weighted score from 0 to 1. 95% intervals: normal approximation for ISR, Wilson intervals for ASR and Utility (Appendix B.4).
- Scale: The main comparison is 4 backbones × 4 scenarios × 2 settings × 15 runs, 480 runs in total.
Main results
The table below gives the authors' cross-backbone totals and the per-backbone results stated in Appendix C.9. The paper does not separately list the no-defense total for the non-Qwen rows.
Swipe horizontally to read the table
Backbone No Defense ASR ZoneClaw ASR ZoneClaw Utility Four-backbone total 372/480 6/480 458/480 Claude Sonnet 4.6 Total not reported 0/15 in each combination 114/120 GPT-5.5 Total not reported 0/15 in each combination 119/120 GLM-5.2 Total not reported 0/15 in each combination 114/120 Qwen3.7-Plus 86/120 6/120 111/120 - Per-scenario on Claude: In Table 2, ZoneClaw's ASR is 0/15 in all eight combinations. Utility is not full: Chat Mirror is 12/15 and 13/15, and Scheduled Marketplace is 14/15. The authors say its Utility for Hidden side effect is 55/60 and for Provenance corruption is 59/60, and that it is the only method evaluated in that table that blocks both attack classes while largely preserving benign completion.
- Baselines vary by scenario: ClawGuard has ASR 0/15 on both BCC settings, with Utility dropping to 9/15 and 11/15, and ASR 13/15 and 15/15 on Chat Mirror. Watcher lowers BCC ASR from 12/15 and 9/15 to 6/15 and 2/15, while Chat Mirror remains 14/15 and 12/15. PrivSep has ASR 13/15 on Scheduled Source Redirection (Table 2, Appendix C.1).
- Exceptions: Appendix C.9 says ZoneClaw ASR is 0/15 in 30 of the 32 backbone–setting combinations; the exceptions are Qwen3.7-Plus's two Source Redirection settings, at 3/15 each. The authors say the same architecture can be used for other backbones without modification; the 6/480 already includes these 6 runs.
No-defense channel and boundary placement
- No defense: In Figure 3 and Table 13 on Claude Sonnet 4.6, six of the eight combinations have ISR 1.00, and BCC is 0.850 and 0.633. Hidden side effect ASR is BCC 0.800/0.600 and Chat Mirror 0.867/1.000, and successful attacks all preserve Utility. Provenance ASR is Source Redirection 1.000/1.000 and Marketplace 0.667/0.533. The authors say persistent memory forms a cross-environment channel in these combinations.
- Exploitation stage varies by model: Appendix C.9 says Qwen3.7-Plus has ASR 6/15 and 4/15 on Chat Mirror, while BCC and Source Redirection are 14/15 or 15/15. In Table 13, GPT-5.5's Marketplace ASR is 0.200 and 0.067.
- Boundary: Each point in Figure 4 aggregates 60 runs. ZoneClaw's attacker claims remain in low-trust memory in 60/60 Hidden side effect runs and 59/60 Provenance runs, with CSR and ASR both 0/60 for both classes, and Utility 55/60 and 59/60. The authors say it withholds privileges rather than refusing external information. Watcher's ISR starts at 0.77 on Hidden side effect and 0.98 on Provenance; ClawGuard drops only at ASR, and its Hidden side effect Utility is 50/60 (Appendix C.2).
Promotion decisions, ablations, and adaptive attacks
- Selective promotion: Table 3 is on user-triggered BCC with Claude Sonnet 4.6, 30 runs per setting. In Benign-only, all three benign facts cross B2, 30/30. In Malicious-only, the claim stays in D2 in 29/30 and crosses B2 in 0/30. The authors say the Gatekeeper decides by what the claim asks for, not by what it looks like; the one run not counted as a correct choice is one where the Observer omitted the address and privileges were still withheld.
- Ablations: Tables 4 and 9 are user-triggered, Claude Sonnet 4.6, 30 runs per class. Removing partitioning gives ASR 21/30 and 18/30; removing the Gatekeeper gives 15/30 and 19/30, and Hidden side effect Utility drops to 20/30, below No Defense's 30/30. Removing cross-verification gives ASR 2/30 and 3/30, but CSR 21/30 and 25/30, whereas full ZoneClaw's CSR is 0/30. The authors consider B3 unreliable at absorbing failures that have already crossed B2: without the Gatekeeper, Hidden side effect has 30/30 claims crossing B2 and still 15/30 achieving the goal.
- Mechanism-aware attacks: Table 5 is on user-triggered BCC with Claude Sonnet 4.6, and ISR is 15/15 in all cases. Corroboration Planting has no-defense ASR 11/15 and Utility 13/15; Claim Fragmentation has 15/15 and 15/15. ZoneClaw has CSR 0/15, ASR 0/15, and Utility 15/15 for both. The authors say forged approval must itself first cross B2, and fragments must each qualify.
Other ablations and analyses
- Repeated injection (Table 11): Claude Sonnet 4.6, BCC, 3 runs, up to 10 updates. No Defense has ASR 3/3 from the first update; ZoneClaw has CSR and ASR 0/3 at every update count, with Utility 3/3.
- Benign utility (Table 12): The English subset of the 30-task Workspace-Bench-Lite, 568 rubrics, with no attack content. ZoneClaw averages 47.0% task score and TCR@80 of 8/30; No Defense is 50.6% and 10/30. The paired bootstrap 95% interval is [−10.7, 2.2] percentage points; the authors say the 3.6-percentage-point gap does not reach statistical significance. PrivSep is 39.2% and 7/30.
- Overhead (Table 10): Qwen3.7-Plus, user-triggered BCC, 15 runs. ZoneClaw averages 182.1k tokens, $0.0322, and 176.8 seconds; No Defense is 170.7k, $0.0185, and 78.1 seconds. The authors say tokens are 1.07× and API cost is 1.74×, the lowest among the five defenses; latency is 2.26×, due to serial role delegation. In the same table, ASR is 0/15 and Utility is 15/15.
- GPT-5.5 (Section 4.6, Table 14): PrivSep lowers Scheduled Source Redirection ASR to 4/15, while on Sonnet 4.6 it remains 13/15. On this backbone ZoneClaw's ASR is 0/15 in each combination; of the 119/120 Utility, Scheduled Marketplace is 14/15.
- Handoff failure (Appendix D.2): In one Chat Mirror trial, the attack claim stays in D2, the Planner parses out the approval channel, but the Executor cannot see authorization for the user's cancellation of draft approval and refuses to publish, giving ASR 0 and Utility 0. The authors place the cause in the Planner-to-Executor handoff, not in the promotion decision.
What are some points that can be further explored?
The authors leave reducing character serial latency and passing user authorization to the Executor as future work.
Limitations and Future Directions Noted by the Authors
- Shortening the delay chain: Appendix C.6 states that batching observations, parallel independent reads, and assigning smaller dedicated models to roles can shorten the chain; the authors leave this as future work.
- Authorization passing: Appendix D.2 states that passing explicit authorization from the Planner to the Executor can eliminate that class of utility failures without relaxing any boundaries; the authors leave this as future work.
The main text has no separate limitations section. The above two are future directions explicitly stated in the appendix.
Experimental Coverage
- Main experiments: Four backbones are Claude Sonnet 4.6, GPT-5.5, GLM-5.2, Qwen3.7-Plus, four scenarios, two injection settings, 15 runs per combination (Section 4.1, Table 14).
- Defense comparison: No Defense, Watcher, PrivSep, ClawGuard, MELON, all adapted to persistent workspace memory (Section 4.1, Appendix A.5).
- Adaptive attacks: Corroboration Planting and Claim Fragmentation, only user-triggered BCC, Claude Sonnet 4.6, 15 runs each (Table 5, Section 4.6).
- Implementation and benign tasks: The paper states that the prototype uses role-limited context and tool policies, and experiments measure the behavioral effects of the architecture rather than OS sandbox strength (Section 3.3.3). Utility without malicious content is reported on Workspace-Bench-Lite with a fixed 30 tasks and 568 rubrics (Appendix C.8). The overhead table covers only user-triggered BCC on Qwen3.7-Plus (Table 10).
- Not reported in the paper: Human and verifier agreement for the main attack metrics; nor token counts, API costs, or latency beyond the setting in Table 10.
Summarize the main content of the paper
ZoneClaw uses partitioned memory to block privilege escalation, reducing ASR from 372/480 to 6/480 across 480 trials, with Utility at 458/480.
ZoneClaw targets persistent memory attacks on OpenClaw-style computer-use agents: once external claims are written to the workspace, they are treated as action-guiding context in later sessions.
- Problem: attackers cannot modify the prompt, workspace, or model; they only control external content the agent may read during legitimate tasks. Injection and exploitation occur in different environments, connected only by persistent memory. On 30 Workspace-Bench English tasks, merely writing to memory makes a convention adopted 14/30 times (Table 1).
- Method: three trust levels separate immutable policy, action-guiding operational memory, and reference-only external claims. The Observer only writes to the low-trust zone; the Gatekeeper decides promotion against zones attackers cannot directly edit; the Planner and Executor do not read the low-trust zone.
- Main results: across four scenarios, two settings, and four backbones, 480 trials total, ASR drops from 372/480 to 6/480, with Utility 458/480. All 6 are in Qwen3.7-Plus Source Redirection, 3/15 per setting. On Claude Sonnet 4.6, ASR is 0/15 in all eight combinations, with Utility 114/120 (Table 2).
- Mechanism and adaptivity: in boundary analysis, attacker claims remain in low-trust memory in 60/60 and 59/60 trials, with CSR 0/60 for both classes. Two mechanism-aware attacks have ASR 0/30 on user-triggered BCC (Table 5). Removing zones or the Gatekeeper brings both classes' ASR back to 15/30 to 21/30 (Table 4).
- Authors' conclusion: the authors argue for separating persistence from permission rather than refusing to learn from the environment, and state that as agents run across longer time horizons and more environments, this will become a design principle persistent memory needs.