Automated red-teaming finds persistent weaknesses in claw-style ai agents
AutoRedClaw: Automated Red-Teaming for Claw-Style Agents
Cryptography and SecurityArtificial Intelligence
Summary
Some AI assistants keep long-term memory and skills, which makes them handy but also means they can be attacked repeatedly once tricked. The authors found that current ways to test these AI agents are limited because they rely on manual test cases that quickly become outdated. They created AutoRedClaw, a tool that automatically generates realistic attacks and testing environments to find these persistent weaknesses more effectively and cheaply. This tool helped build a benchmark that showed many advanced AI agents still have significant security risks.
What this means in practice
- •For ai security teams: Evaluate and improve the resilience of persistent AI assistants by automatically generating and validating realistic attack scenarios.
- •For large ai model developers: Use AutoRedClaw’s benchmark to compare and harden AI agents for persistent threats emerging from stored configurations and memories.
Authors
Hao Li, Tongyan Hu, Weidi Luo, Shanghao Shi, Xiaogeng Liu, Aiden Suh, Yulong Cao, Ning Zhang, William Yeoh, Yevgeniy Vorobeychik, Chaowei Xiao
Abstract
Agent systems are shifting from task-scoped tool-use agents to persistent, personalized assistants such as OpenClaw. These claw-style agents maintain configuration files (e.g., AGENTS.md), long-term memory, and reusable skills. Once poisoned, this persistent state is repeatedly reloaded into the agent's context, creating persistent threats across tasks and sessions. Existing security evaluation systems struggle to evaluate these complex claw-style systems since they rely heavily on manually constructed test cases and environments, which limits their scale and coverage; in addition, these manually designed cases quickly become outdated as agents evolve, and their evaluation settings leave a gap with how claw-style agents are deployed in practice. To address this, we introduce AutoRedClaw, an automated red-teaming framework that generates end-to-end attacks together with the environments needed to execute them. AutoRedClaw combines a strict quality-checking protocol with execution-based validation to ensure the correctness, realism, and effectiveness of generated samples, and adopts task-driven environment construction to keep costs low. To achieve broad coverage, it organizes generation along risk categories, attack strategies, attack stages, and attack surfaces, and uses experience-guided exploration to steer generation toward under-explored regions. AutoRedClaw achieves an effective attack rate above 30% at less than $0.10 per successful sample. From its outputs, we construct RedClaw-Bench, a 330-case benchmark that yields substantially higher attack success rates (ASRs) than AgentDojo, AgentDyn, and DTap. Across seven harnesses and four frontier models, most agent systems exceed 50% ASR, showing that our red-teaming pipeline provides a strong evaluation signal even for the most advanced agent systems. Our code and benchmark are released at https://github.com/SaFo-Lab/AutoRedClaw.