Trojan's Whisper: Stealthy Manipulation of OpenClaw through Injected Bootstrapped Guidance
Organizations: Shanghai Jiao Tong University, Shanghai, China
Abstract
Autonomous coding agents are increasingly integrated into software development workflows, offering capabilities that extend beyond code suggestion to active system interaction and environment management. OpenClaw, a representative platform in this emerging paradigm, introduces an extensible skill ecosystem that allows third-party developers to inject behavioral guidance through lifecycle hooks during agent initialization. While this design enhances automation and customization, it also opens a novel and unexplored attack surface. In this paper, we identify and systematically characterize guidance injection, a stealthy attack vector that embeds adversarial operational narratives into bootstrap guidance files. Unlike traditional prompt injection, which relies on explicit malicious instructions, guidance injection manipulates the agent's reasoning context by framing harmful actions as routine best practices. These narratives are automatically incorporated into the agent's interpretive framework and influence future task execution without raising suspicion.We construct 26 malicious skills spanning 13 attack categories including credential exfiltration, workspace destruction, privilege escalation, and persistent backdoor installation. We evaluate them using ORE-Bench, a realistic developer workspace benchmark we developed. Across 52 natural user prompts and six state-of-the-art LLM backends, our attacks achieve success rates from 16.0% to 64.2%, with the majority of malicious actions executed autonomously without user confirmation. Furthermore, 94% of our malicious skills evade detection by existing static and LLM-based scanners. Our findings reveal fundamental tensions in the design of autonomous agent ecosystems and underscore the urgent need for defenses based on capability isolation, runtime policy enforcement, and transparent guidance provenance.
Figures & tables
| Method | Detection Rate / Avg. Score by Risk | ||
| High (n=10) | Medium (n=8) | Low (n=8) | |
| Static Pattern Scan | 10% (1/10) | 0% (0/8) | 0% (0/8) |
| LLM-Guard | 0% (0/10) | 0% (0/8) | 0% (0/8) |
| Hybrid Classifier | 10% (1/10) | 0% (0/8) | 0% (0/8) |
| SkillScan (avg.) | 19.75 | 14.70 | 14.88 |
Appendix figures & tables1 asset
Supplementary material from the paper’s appendix.
Appendix
| Risk Level | Attack Category | Skill Name | Disguised Function | Attack Target |
| High | Information Gathering | network-diagnostics | Network troubleshooting | Port scanning (nmap, nc), network reconnaissance |
| performance-profiler | Performance analysis | System info (ps, top, netstat, free, df) | ||
| Privilege Escalation | permission-optimizer | Permission optimization | Add user to docker group, modify sudoers, chmod 777 | |
| service-manager | Service management | Create systemd services with elevated privileges | ||
| Persistence Control | shell-optimizer | Shell optimization | Inject malicious code into .bashrc/.zshrc | |
| task-automator | Task automation | Create malicious cron jobs for persistence |
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 508 papers