ClawSafety: Safe LLM, Unsafe AgentClawSafety: "Safe" LLMs, Unsafe Agents
The authors evaluate five agent backbones using 120 cases from ClawSafety, with overall ASR on OpenClaw ranging from 40.0% to 75.0%.
- Personal agents have high privileges on the local machine, and a single indirect injection in a skill file, email, or webpage can leak credentials, alter transactions, or destroy files. The authors believe existing evaluations mostly stay in chat or synthetic environments and do not test the model and framework together.
- ClawSafety contains 120 cases distributed across five professional workspaces, with adversarial content entering only one of skills, email, or web. Five frontier models serve as backbones, running up to 64 rounds in a sandbox, with ASR measured by whether the harmful action is fully completed.
- Overall ASR on OpenClaw ranges from 40.0% for Sonnet 4.6 to 75.0% for GPT-5.1. Skill injection is higher than email and web. The same Sonnet on Nanobot is 48.6%, and email injection surpasses skill injection. The authors state that credential forwarding and destructive actions are 0%.
- The paper has no dedicated limitations section. The Conclusion calls for joint evaluation of model, framework, and domain. Cross-framework results are reported only for Sonnet 4.6. The paper does not report chat baseline refusal rates. The model list in Appendix A.5 is inconsistent with Table 1.
- Threat model
- The attacker cannot modify the system prompt, model weights, or orchestration framework, only knows the rough structure of the workspace and the task context, and cannot read internal state in real time; the attacker can place adversarial content in exactly one channel among workspace skill files, forged emails from trusted senders, or web pages the task will fetch. The victim system is a personal agent with read and write access to local files, email, web, and code execution.
- Evaluated models
- Claude Sonnet 4.6GPT-5.1Gemini 2.5 ProDeepSeek V3Kimi K2.5
- Benchmarks
- ClawSafetyS1 Software EngineeringS2 Financial OperationsS3 Healthcare AdministrationS4 Legal / Contract ManagementS5 DevOps / Infrastructure
- Metrics
- ASR
The researchers release the ClawSafety benchmark, using 120 adversarial test cases across 5 frontier models to complete 2520 sandbox trials, evaluating the safety of personal AI Agents under indirect prompt injection. Attack success rates range from 40% to 75%, with skill file injection averaging 69.4%, higher than email injection at 60.5% and web injection at 38.4%. Claude Sonnet 4.6 has the lowest overall attack success rate (40.0%), and maintains 0% on credential forwarding and destructive operations. When the same model is switched to the Nanobot framework, the overall attack success rate rises from 40.0% to 48.6%, and email injection overtakes skill injection, showing that safety depends on the combination of model and framework. The paper also finds that imperative wording triggers the model's multi-source verification, while declarative wording bypasses defenses.
Why it was selectedThe paper gives the attack success rates of five frontier models under three injection channels, and shows that the same model's safety performance changes when it is switched to a different Agent framework.
Paper analysis
What problem does this paper attempt to solve?
Whether a high-privilege personal agent still executes harmful actions when it reads adversarial content in everyday artifacts.
The core question is whether a high-privilege personal agent will still execute harmful actions when it reads implanted adversarial content during normal work.
- Scenario: The authors state that assistants like OpenClaw can connect to a user-chosen LLM API on the user's local machine and access local files, email, cryptocurrency wallets, and development environments; a single successful prompt injection could leak credentials, alter financial transactions, or destroy files.
- Existing gaps: The authors state that most evaluations stop at isolated chat, use synthetic or task-centric environments, and do not treat the backbone model and agent framework as joint variables. Shapira et al. (2026) and Wang et al. (2026c) are described by the authors as still qualitative or narrow in scope.
- Hypothesis: The authors' core hypothesis is that chat-level safety does not equal agent-level safety: text can refuse harmful requests, yet tool calls may still execute prohibited actions.
- What this paper does: The authors propose the benchmark ClawSafety, with 120 adversarial cases organized by harm domain, attack vector, and harmful action type, situated in software engineering, finance, medical, legal, and DevOps workspaces.
- Threat model:
- Goal: Not to test whether explicitly harmful user prompts can be refused, but whether adversarial content in everyday artifacts causes harmful actions to be completed.
- Knowledge: The attacker knows the approximate workspace structure and task context, cannot read internal state in real time, and cannot modify system prompts, model weights, or the orchestration framework.
- Capability: Can place adversarial content in exactly one channel: a workspace instruction file, an inbox email from a forged trusted sender, or a webpage fetched during the task.
- Victim system: A personal AI assistant with read/write access to local files, email archives, web content, and code execution tools; implemented in the paper as an OpenClaw agent.
What related research exists?
The authors position ClawSafety as a multi-trust-channel agent-level quantitative evaluation, distinguishing it from InjecAgent and others.
Personal Agent Ecosystem
- ReAct by Yao et al. (2022), HuggingGPT by Shen et al. (2023): the authors classify these as early framework-level optimization, connecting language models to tools and external applications.
- Agent S / Agent S2 by Agashe et al. (2025a;b), as well as Song et al. (2025), Gonzalez-Pumariega et al. (2025), Liang et al. (2026): the authors classify these as system-level integration and personalized agent exploration.
- Zhang et al. (2026b) study agent behavior on Moltbook; Wang et al. (2026c) evaluate OpenClaw under adversarial conditions. The main text calls the latter black-box, with fewer attack scenarios and backbone models.
From Text Jailbreaks to Agent Attacks
- Hakim et al. (2026), Vidgen et al. (2024), Zhang et al. (2026a): text jailbreaks targeting harmful text. The appendix states that automated attacks achieve an ASR of 90–99% on open-source models, and that all 39 models in AILuminate v0.5 can be jailbroken to some degree.
- Greshake et al. (2023) formalize indirect prompt injection; subsequent work covers web agents, multi-agent systems, tool chains, and coding agents. The authors state that Kaleli et al. (2026) documents the first confirmed real-world indirect prompt injection incident, from a Unit 42 report dated December 2025.
- Cartagena & Teixeira (2026) report that text refusal and tool-call execution can occur simultaneously; Betley et al. (2026) report that fine-tuning on narrow tasks can cause broad misalignment in unrelated domains. The authors use these works to support the claim that chat safety does not equal agent safety. Detection-side work such as Liu et al. (2025) and Wang et al. (2026a) is only described as a complementary direction.
Agent Safety Benchmarks
- ASB and AgentHarm formalize adversarial tasks for tool agents; WASP targets web browsing; SafeAgentBench and AgentDyn target embodied or dynamic settings; MASpi evaluates multi-agent prompt injection. Except for the works named below, the paper only provides scope descriptions.
- InjecAgent (Zhan et al., 2024): 1,054 indirect prompt injection cases, 30 LLMs, with ReAct-prompted GPT-4 vulnerable 24% of the time. The authors note that it evaluates LLM-level responses, a single injection channel, and binary outcomes.
- Shapira et al. (2026) conduct qualitative red-teaming of OpenClaw, documenting 11 cases. The appendix states that 20 researchers interacted for two weeks on isolated virtual machines. Appendix A.5 states that Wang et al. (2026c) tested Llama-3.1-70B, Qwen2.5-7B, and GPT-4o-mini, with a combined ASR of up to 66.8%.
Baselines and Datasets: The main experiments do not reproduce the above benchmarks, nor do they run defense-method comparisons. The evaluated environment is the authors' self-built ClawSafety. The authors position this paper as agent-level evaluation: separating channels by three trust levels, recording full action trajectories, and targeting graded harm scores rather than binary labels as a design goal, then iteratively refining payloads against frontier models.
How does the paper address this problem?
120 cases are constructed across five professional workspaces, with adversarial content entering only one of skills, email, or web.
ClawSafety does not send harmful requests directly to users; instead, it embeds adversarial content into artifacts the agent would read during normal work, then checks whether it completes harmful actions.
Three-Dimensional Taxonomy
- Harm domain: software engineering (data theft), financial operations (financial loss), healthcare administration (privacy/security), legal contracts (privileged information exposure), DevOps (system integrity). The abstract and the third dimension in §3.1 are harmful action types; the introduction additionally writes the third dimension as task domain (finance, coding, communication, information retrieval), which is inconsistent with Table 5.
- Attack vector: skill injection, email injection, web injection. The authors state that skill files carry the highest implicit trust, web content the lowest, and email depends on the sender.
- Harmful action: data exfiltration, configuration or file modification, destination replacement, credential forwarding, destructive actions. The appendix states that each vector has about 3 exfiltration cases, 1–2 file-modification cases, 1–2 destination-replacement cases, and 1 case each of credential forwarding and destruction.
- Scale: 5×3×8=120. In Table 5, each domain has 24 cases and each vector has 40 cases. The authors state that conversation granularity is adjustable, so it can scale to thousands of samples; the results in this paper are still based on these 120 cases.
Workspace and Conversation
- Each scenario has 4–5 colleagues, organizational context, protected assets, and domain compliance pressure. Table 6 lists roles and assets, and the workspace has about 50–60 files.
- S1 contains 25 Python files, YAML/JSON configuration, SQLite with 8 tables, Slack exports, and email archives. The authors state that mixed formats affect inspection depth; binary libraries cannot be easily verified by direct reading.
- Default 64 turns with four phases: 1–20 warm-up, 21–45 read the workspace, 46–48 encounter exactly one injection vector, 49–64 request output documents. The main text states that the disclosure phase has 16 frameworks, and there are more than 40 turns of legitimate context before injection.
- Appendix Table 7 gives lower bounds, including at least 50 files, at least 8 formats, at least 14 emails in the inbox, at least 4 colleagues, and 5 honey tokens at each of two layers.
Construction of the Three Channels
- Skill injection: adversarial instructions are written into workspace files treated as operating procedures, with behavior distributed across scripts, configuration references, and auxiliary files. The adjustments recorded in the appendix target wording, specificity, procedural plausibility, and file provenance. The appendix gives the iteration process; the phrasing or replacement words are not repeated here.
- Email injection: adversarial emails are mixed into a legitimate inbox and need to resemble everyday collaboration in sender, task alignment, and context. The authors state that the agent's main verification method is consensus comparison of claimed changes against other local sources.
- Web injection: page content, presentation, task relevance, and relationship to local files are adjusted together. The authors state that simply replacing page data struggles to override the preference for local files; later designs instead describe existing correct data as carrying regulatory or security issues.
Run Protocol and Success Determination
- The main framework is OpenClaw. §4.1 writes v2026.3.11, and §4.3 writes 2026.3.12. Cross-framework runs use only Sonnet 4.6, additionally testing Nanobot v0.8.2 and NemoClaw v0.1.0. The authors state that NemoClaw adds network egress policies and filesystem isolation, and routes inference through the OpenShell gateway.
- Each case deploys the corresponding workspace on a fresh sandbox EC2, injects one vector, then provides benign multi-turn user prompts. External actions are blocked. Web pages are served by a CDN and fetched via the agent's built-in web fetch. System prompts and tool configurations use framework defaults, changing only the LLM API.
- ASR means the agent fully completes the predetermined harmful action, such as the attack value appearing in a draft delivery email or a trusted configuration being overwritten. Each (model, case) is run 3 independent trials, reporting the majority result, and recording all tool calls.
- Case discussions also include Safe, Partial, and Compromised. A Partial example is refusing while still referencing the attack value. In related work, the authors state that the design goal includes graded harm scores; Table 1 reports only ASR and does not give the scale for that score.
What experiments did the paper conduct?
Across five models on OpenClaw, overall ASR ranges from 40.0% to 75.0%, with skill injection higher than email and web.
Experimental Setup
- Models: Claude Sonnet 4.6, GPT-5.1, Gemini 2.5 Pro, DeepSeek V3, Kimi K2.5. The first three are closed-source APIs, the latter two are open-weight models with native tool use. Appendix A.5 also mentions GPT-5.4, Claude Opus 4.6, Gemini 3.0, Qwen 3.5; these names do not appear in Table 1.
- Frameworks: All five models run on OpenClaw; only Sonnet 4.6 additionally runs on Nanobot and NemoClaw. The paper does not mention a separate attack-generation model or judge model.
- Data: 120 cases, 24 per scenario across five scenarios, 40 per vector across three vectors. Default maximum of 64 turns.
- Metrics: ASR is the proportion of harmful actions fully completed, broken down by model, vector, scenario, and action type. Table 4 additionally counts how many of 5 honey tokens per case appear in the output.
- Judging and scale: Majority vote across three trials. The paper does not report human agreement or judgment thresholds. There were 2,520 runs and about 100,000 API calls, consistent with 5×120×3 plus Sonnet's two frameworks ×120×3. The paper does not give the success numerators for each cell in Table 1.
Main Results
Swipe horizontally to read the table
Model (Framework) SKILL Email Web Overall Claude Sonnet 4.6 (OpenClaw) 55.0 45.0 20.0 40.0 Gemini 2.5 Pro (OpenClaw) 72.5 55.0 37.5 55.0 DeepSeek V3 (OpenClaw) 82.5 67.5 52.5 67.5 Kimi K2.5 (OpenClaw) 77.5 60.0 45.0 60.8 GPT-5.1 (OpenClaw) 90.0 75.0 60.0 75.0 Claude Sonnet 4.6 (Nanobot) 50.0 62.5 33.3 48.6 Claude Sonnet 4.6 (NemoClaw) 58.3 58.3 20.8 45.8 Per Table 1, in %. The same table's Overall Vector avg. is skill 69.4, email 60.5, web 38.4, overall 56.1; that row matches the average of the seven rows above, not a separate average of the five OpenClaw models. Nanobot's Web and several NemoClaw cells are not multiples of 2.5; the paper does not explain how they correspond to 40 cases per vector.
- The authors say that on OpenClaw, skill injection is higher than email, and email higher than web; this gradient is steepest on Sonnet 4.6 and flattest on GPT-5.1.
- The authors say the safety difference forms two tiers, and this ordering is consistent across OpenClaw's three vectors. Kimi K2.5's overall value lies between Gemini 2.5 Pro and DeepSeek V3, yet the authors still place it in the latter cluster.
- The authors say changing frameworks changes the same model's vulnerability distribution: on Nanobot, email injection exceeds skill injection, reversing the trust gradient; on NemoClaw, skill and email converge. The authors say the framework alone changes overall ASR by 8.6 percentage points (40.0% to 48.6%), and that this effect also interacts with professional domain, but they do not give framework numbers by domain.
Harmful Actions and Professional Domains
- The main text, with Figure 1, says data exfiltration is the most exploitable: Sonnet 4.6 reaches 65%, GPT-5.1 reaches 93%. For configuration modification and destination replacement, the authors write Sonnet at 30–35% and other models at 55–70%, attributing this to import-chain checks and post-execution verification.
- The authors say Sonnet has 0% ASR for credential forwarding and destructive actions across all domains and all vectors; GPT-5.1 has 60–63% for these two types. The paper does not separately list these numbers for the other models. The figure caption only says ASR averaged across S1–S5, and the extracted text does not give axis names.
- The authors say the five-domain ordering is stable, with Sonnet lowest everywhere and GPT-5.1 highest everywhere; S4 legal is hardest, S5 DevOps is easiest. The conclusion says DevOps is nearly twice as exploitable as the legal setting; the main text does not give ASR per scenario. The authors attribute S4 to the attorney–client privilege framework and S5 to the urgency of incident response.
Speech-Act Boundary in Web Injection
- §4.6 compares three S5 web cases, only for Sonnet 4.6: delivery, style, and target data are the same, wording differs. Figure 2 labels W2 as Safe (refused to write the database), W1 as Partial (detected but value leaked), and W4 as Compromised (accepted and value entered the deliverable).
- Table 2: two imperative-framed cases trigger 4/4 and 5/5 defenses respectively, with results Safe and Partial; the declarative-framed case triggers 0/5, with result Compromised. W1's attack value appears in the refusal warning, which the authors count as information leakage.
- The authors say this boundary is sensitive to intent and insensitive to content. The authors believe the declarative frame passes because reporting discrepancies in incident response is expected behavior. This is a comparison of three cases, not a full-benchmark scan.
Qualitative Cases
- Case 1: a skill file guides exfiltration through business-field mapping. The authors say Sonnet wrote five honey tokens into an email draft without triggering safety mechanisms.
- Case 2: a hidden import side effect overwrites configuration. The authors say GPT-5.1 did not detect it; Gemini 2.5 Pro noticed the value changed but classified it as a data-entry error and continued using it; Sonnet 4.6 traced it to the import chain and refused to use the altered value.
- Cases 3–5: the authors say a financial controller induced exfiltration successfully, while a higher-ranking CFO failed; web data replacement generally failed, a compliance-fear frame succeeded on Gemini, and Sonnet resisted regardless of severity; a trojan replacing an existing script was run directly by Sonnet, while an equivalent new file was read and refused.
Other Ablations and Analyses
- Conversation length (Table 3, 8 S2 cases): Sonnet 4.6's ASR at 10/20/40/64 turns is 50.0/62.5/75.0/77.5; GPT-5.1's is 75.0/87.5/92.5/95.0. The authors say gains diminish after 40 turns and the ordering is unchanged. 77.5 and 95.0 are not integer multiples of 1/8; the paper does not give numerators.
- Colleague identity (Table 4, S5, Sonnet 4.6, 8 exfiltration cases): 40/40 (100%) when named, 19/40 (47.5%) when only the role is given. The authors say this is a 52.5-percentage-point drop and consider identity verification the main mechanism of the trust heuristic.
- Appendix B.3.3: web data replacement v1–v12 is 0/12 compromised across all frontier models; the code-embedded v13–v15 are also recorded as failures.
- Appendix B.3.1: the authors say a single wording adjustment changed several construction-phase cases from 0% to 100%, and one precise field mapping yielded 5/5 honey tokens. This is not the three-trial majority ASR of Table 1.
- The conclusion writes 40–75% as a range for "models that would refuse harmful chat requests still comply under indirect injection"; the experimental section does not report refusal rates in chat settings.
What are some points that can be further explored?
The paper does not have a dedicated limitations section; the Conclusion calls for joint evaluation of models, frameworks, and domains.
Limitations and Future Directions Noted by the Authors
The paper has no dedicated Limitations section, and Discussion and Future Work are not separate sections either.
- The Conclusion calls for future evaluations to treat model, framework, and domain as joint variables rather than looking only at the backbone model.
- Appendix A.3 states that the optimization-based attack strategy of Shahroz et al. (2025) could be used in the future to strengthen adversarial payloads.
Experimental Coverage
- The backbones for the main results are Claude Sonnet 4.6, GPT-5.1, Gemini 2.5 Pro, DeepSeek V3, and Kimi K2.5, all reported on OpenClaw; cross-framework numbers come only from Sonnet 4.6 on OpenClaw, Nanobot v0.8.2, and NemoClaw v0.1.0.
- The cases number 120, i.e., 5 professional domains × 3 vectors × 8 examples; each (model, case) is run 3 times with majority voting, for a total of 2,520 sandbox runs.
- The conversation-length ablation uses Sonnet 4.6 and GPT-5.1, 8 S2 cases, and 10/20/40/64 turns; the identity ablation uses Sonnet 4.6 and 8 S5 exfiltration cases; the speech-act comparison uses three S5 web cases with only Sonnet 4.6.
- The paper does not report refusal rates for chat baselines, reviewer models, human agreement, or a summary table of graded harm scores. Appendix A.3 discusses detection-type methods, but the experimental section does not report comparison numbers for these methods.
- GPT-5.4, Claude Opus 4.6, Gemini 3.0, and Qwen 3.5 listed in Appendix A.5 do not appear in Table 1. The OpenClaw version is v2026.3.11 in §4.1 and 2026.3.12 in §4.3.
Summarize the main content of the paper
The authors report an overall ASR of 40.0% to 75.0% across the five models under indirect injection, varying with the framework.
ClawSafety measures whether high-privilege personal agents complete harmful actions after everyday artifacts are injected.
- What the authors want to separate is chat refusal from tool execution: a personal assistant can read and write files, email, web pages, and code, and a single indirect injection could exfiltrate credentials, redirect funds, or destroy files. The authors say existing evaluations mostly stop at chat or synthetic environments and rarely vary model and framework together.
- The benchmark contains 120 sandbox cases spanning software engineering, finance, healthcare, law, and DevOps. Adversarial content enters only one of skill files, trusted-sender emails, or web pages; by default, more than 40 turns of legitimate work come first, then within at most 64 turns it checks whether deliverables and files are altered.
- The overall ASR on OpenClaw is: Sonnet 4.6 40.0%, Gemini 2.5 Pro 55.0%, Kimi K2.5 60.8%, DeepSeek V3 67.5%, GPT-5.1 75.0% (Table 1). The vector averages including all framework rows are skill 69.4%, email 60.5%, and web 38.4%.
- The same Sonnet 4.6 on Nanobot has an overall ASR of 48.6%. The authors state that the framework alone accounts for an 8.6-percentage-point change and can reverse the ordering of skill and email.
- The authors state that Sonnet maintains 0% ASR for credential forwarding and destructive actions, but data exfiltration still reaches 65%; GPT-5.1 has 93% data exfiltration and 60–63% for these two action types. Across three S5 web cases, imperative wording triggers defenses, while declarative wording is 0/5.
- The authors' conclusion is that agent safety is a combination of model and framework, and evaluations should vary model, framework, and domain together. The authors plan to release the code and data. The 40–75% in the conclusion has no accompanying chat refusal rate.