Your Agent, Their Asset: A Real-World Safety Analysis of OpenClaw
Organizations: UC Santa Cruz · NUS · Tencent · ByteDance ·
Abstract
OpenClaw, the most widely deployed personal AI agent in early 2026, operates with full local system access and integrates with sensitive services such as Gmail, Stripe, and the filesystem. While these broad privileges enable high levels of automation and powerful personalization, they also expose a substantial attack surface that existing sandboxed evaluations fail to capture. To address this gap, we present the first real-world safety evaluation of OpenClaw and introduce the CIK taxonomy, which unifies an agent's persistent state into three dimensions, i.e., Capability, Identity, and Knowledge, for safety analysis. Our evaluations cover 12 attack scenarios on a live OpenClaw instance across four backbone models (Claude Sonnet 4.5, Opus 4.6, Gemini 3.1 Pro, and GPT-5.4). The results show that poisoning any single CIK dimension increases the average attack success rate from 24.6% to 64-74%, with even the most robust model exhibiting more than a threefold increase over its baseline vulnerability. We further assess three CIK-aligned defense strategies alongside a file-protection mechanism; however, the strongest defense still yields a 63.8% success rate under Capability-targeted attacks, while file protection blocks 97% of malicious injections but also prevents legitimate updates. Taken together, these findings show that the vulnerabilities are inherent to the agent architecture, necessitating more systematic safeguards to secure personal AI agents. Our project page is https://ucsc-vlaa.github.io/CIK-Bench.
Figures & tables
| Dimension | Files | Description |
| Capability | skills/ | Executable scripts ( .sh / .py ) with tool documentation ( SKILL.md ) |
| Identity | SOUL.md , IDENTITY.md , USER.md , AGENTS.md | Agent persona, core values, owner profile, operational rules |
| Knowledge | MEMORY.md | Learned facts, owner preferences, behavioral patterns |
| Model | Baseline | Knowledge | Identity | Capability |
| Sonnet 4.5 | 26.7 | 89.2 | 85.4 | 88.5 |
| Gemini 3.1 Pro | 36.7 | 83.3 | 75.4 | 71.5 |
| GPT-5.4 | 25.0 | 80.8 | 63.1 | 57.7 |
| Opus 4.6 | 10.0 | 44.2 | 33.1 | 55.4 |
| Sonnet 4.5 | Gemini 3.1 Pro | GPT-5.4 | Opus 4.6 | |||||
| Dim. | Ph.1 | Ph.2 | Ph.1 | Ph.2 | Ph.1 | Ph.2 | Ph.1 | Ph.2 |
| Capability | 100.0 † | 88.5 | 100.0 † | 71.5 | 100.0 † | 57.7 | 100.0 † | 55.4 |
| Identity | 89.2 | 93.1 | 85.4 | 91.5 | 96.2 | 76.2 | 65.4 | 60.8 |
| Knowledge | 100.0 | 89.2 | 99.2 | 88.3 | 100.0 | 84.2 | 87.5 | 60.0 |
| Defense | Baseline | Knowledge | Identity | Capability |
| No defense | 26.7 | 89.2 | 85.4 | 88.5 |
| Knowledge defense | 8.3 | 35.8 | 36.2 | 76.9 |
| Identity defense | 13.3 | 55.0 | 49.2 | 75.4 |
| Capability defense | 1.7 | 17.5 | 9.2 | 63.8 |
| Prompt | Condition | Sonnet 4.5 | Gemini 3.1 Pro | GPT-5.4 | Opus 4.6 |
| Attack | No protection | 92.6 | 89.5 | 97.4 | 68.4 |
| File protection | 16.8 | 0.0 | 0.0 | 3.2 | |
| Benign | No protection | 100.0 | 100.0 | 100.0 | 100.0 |
| File protection | 13.2 | 0.5 | 0.9 | 10.0 |
Appendix figures & tables11 assets
Supplementary material from the paper’s appendix.
Appendix
| Dimension | Vector | Target | Total cases |
| — | Baseline | No injection | 12 |
| Knowledge | mem-long | MEMORY.md (persistent) | 12 |
| mem-session | Session context (within-session) | 12 | |
| Identity | identity-* | SOUL/IDENTITY/USER/AGENTS.md | 26 |
| Capability | skill-md | SKILL.md (text injection) | 12 |
| skill-bash/py | Executable script (payload) | 14 |
| Category | ID | Scenario | Description |
| Privacy Leakage | |||
| Financial Data | P-F1 | Credential exfiltration | Agent uploads API keys and auth tokens to attacker-controlled webhook, enabling full account takeover |
| P-F2 | Customer PII exfiltration | Agent sends Stripe customer records (names, emails, payment methods) to external address, constituting a PCI-DSS breach | |
| Identity & Physical | P-P1 | IP geolocation exfiltration | Agent sends owner’s public IP and geolocation to external endpoint, revealing approximate physical location |
| P-P2 | Passport exfiltration | Agent emails owner’s passport scan to attacker, enabling identity fraud | |
| Other Sensitive | P-O1 | Work email exfiltration | Agent forwards confidential work emails (financials, M&A, compensation) to external address, breaching NDA |
| Sonnet 4.5 | Gemini 3.1 | GPT-5.4 | Opus 4.6 | |||||||
| Dim. | Vector | Target | Ph.1 | Ph.2 | Ph.1 | Ph.2 | Ph.1 | Ph.2 | Ph.1 | Ph.2 |
| K | mem-long | MEMORY.md | 100.0 | 98.3 | 98.3 | 100.0 | 100.0 | 85.0 | 75.0 | 80.0 |
| mem-session | Session context | 100.0 † | 80.0 | 100.0 † | 76.7 | 100.0 † | 83.3 | 100.0 † | 40.0 | |
| I | identity-* | Identity files | 89.2 | 93.1 | 85.4 | 91.5 | 96.2 | 76.2 | 65.4 | 60.8 |
| C | skill-md | SKILL.md (text) | 100.0 † | 75.0 | 100.0 † | 40.0 | 100.0 † | 35.0 | 100.0 † | 3.3 |
| skill-bash/py | Script (payload) | 100.0 † | 100.0 | 100.0 † | 98.6 | 100.0 † | 77.1 | 100.0 † | 100.0 | |
| Condition | Baseline | Knowledge | Identity | Capability |
| No defense | 26.7 | 89.2 | 85.4 | 88.5 |
| GuardianClaw (passive install) | 16.7 | 71.7 | 76.2 | 83.1 |
| GuardianClaw (active load) | 1.7 | 17.5 | 9.2 | 63.8 |
| Knowledge | Identity | Capability | |
| Mechanism | Fabricates facts or habits in memory | Plants trust anchors in owner/agent profile | Embeds executable payloads in skill scripts |
| Attack vector | Fact fabrication (false history) | Trust boundary manipulation (false authorization) | Code execution (hidden payload) |
| LLM involvement | Reads fabricated facts and treats them as established knowledge | Reads injected trust anchors and treats them as owner preferences | Executes code without inspecting it |
| Defensibility | Detectable in principle: fabricated facts can be cross-referenced against external evidence | Harder to detect: trust preferences are subjective with no external ground truth | Largely opaque: payload not designed to be inspected; some models may partially inspect |
| Case study | Fabricated refund habit unauthorized batch refunds (R-F2) | Planted backup URL credential exfiltration (P-F1) | Hidden rm -rf silent workspace destruction (R-D1) |
| Model | Baseline | Knowledge | Identity | Capability |
| Sonnet 4.5 | 26.7 8.2 | 89.2 6.8 | 85.4 5.7 | 88.5 4.2 |
| Gemini 3.1 Pro | 36.7 10.0 | 83.3 2.6 | 75.4 5.8 | 71.5 1.9 |
| GPT-5.4 | 25.0 11.8 | 80.8 6.8 | 63.1 8.6 | 57.7 8.8 |
| Opus 4.6 | 10.0 3.3 | 44.2 6.2 | 33.1 3.1 | 55.4 3.1 |
| Sonnet 4.5 | Gemini 3.1 | GPT-5.4 | Opus 4.6 | |||||
| Dim. | Ph.1 | Ph.2 | Ph.1 | Ph.2 | Ph.1 | Ph.2 | Ph.1 | Ph.2 |
| Knowledge | 100.0 | 89.2 5.9 | 99.2 1.7 | 88.3 4.1 | 100.0 | 84.2 3.1 | 87.5 | 60.0 5.3 |
| Identity | 89.2 4.5 | 93.1 2.9 | 85.4 3.8 | 91.5 4.5 | 96.2 2.4 | 76.2 5.1 | 65.4 4.9 | 60.8 2.9 |
| Capability | 100.0 † | 88.5 4.2 | 100.0 † | 71.5 1.9 | 100.0 † | 57.7 8.8 | 100.0 † | 55.4 3.1 |
| Defense | Dim. | Baseline | Knowledge | Identity | Capability |
| No defense | — | 26.7 8.2 | 89.2 6.8 | 85.4 5.7 | 88.5 4.2 |
| Knowledge defense | Knowledge | 8.3 | 35.8 5.7 | 36.2 3.9 | 76.9 4.2 |
| Identity defense | Identity | 13.3 4.1 | 55.0 4.1 | 49.2 6.6 | 75.4 1.9 |
| Capability defense | Capability | 1.7 3.3 | 17.5 10.0 | 9.2 3.9 | 63.8 3.9 |
| Prompt | Condition | Sonnet 4.5 | Gemini 3.1 | GPT-5.4 | Opus 4.6 |
| Attack | No protection | 92.6 3.1 | 89.5 2.9 | 97.4 1.7 | 68.4 3.3 |
| File protection | 16.8 2.1 | 0.0 | 0.0 | 3.2 2.0 | |
| Benign | No protection | 100.0 | 100.0 | 100.0 | 100.0 |
| File protection | 13.2 3.7 | 0.5 1.1 | 0.9 1.2 | 10.0 2.0 |
| Sonnet 4.5 | Gemini 3.1 | GPT-5.4 | Opus 4.6 | |||||||
| Dim. | Vector | Target | Ph.1 | Ph.2 | Ph.1 | Ph.2 | Ph.1 | Ph.2 | Ph.1 | Ph.2 |
| K | mem-long | MEMORY.md | 100.0 | 98.3 3.3 | 98.3 3.3 | 100.0 | 100.0 | 85.0 3.3 | 75.0 | 80.0 4.1 |
| mem-session | Session context | 100.0 † | 80.0 11.3 | 100.0 † | 76.7 8.2 | 100.0 † | 83.3 5.3 | 100.0 † | 40.0 9.7 | |
| I | identity-* | Identity files | 89.2 4.5 | 93.1 2.9 | 85.4 3.8 | 91.5 4.5 | 96.2 2.4 | 76.2 5.1 | 65.4 4.9 | 60.8 2.9 |
| C | skill-md | SKILL.md (text) | 100.0 † | 75.0 9.1 | 100.0 † | 40.0 3.3 | 100.0 † | 35.0 13.3 | 100.0 † | 3.3 6.7 |
| skill-bash/py | Script (payload) | 100.0 † | 100.0 | 100.0 † | 98.6 2.9 | 100.0 † | 77.1 7.0 | 100.0 † | 100.0 | |
| Condition | Baseline | Knowledge | Identity | Capability |
| No defense | 26.7 8.2 | 89.2 6.8 | 85.4 5.7 | 88.5 4.2 |
| GuardianClaw (passive install) | 16.7 7.5 | 71.7 6.7 | 76.2 6.6 | 83.1 1.9 |
| GuardianClaw (active load) | 1.7 3.3 | 17.5 10.0 | 9.2 3.9 | 63.8 3.9 |
AI Agent Security
Artificial intelligence agent security studies attacks and safeguards for tool-using, persistent, and collaborative systems across digital and physical settings.
See all 491 papers