cs.CRMar 19, 2026

ClawTrap: A MITM-Based Red-Teaming Framework for Real-World OpenClaw Security Evaluation

Authors: Haochen Zhao, Shaoyang Cui

Organizations: School of Computing National University of Singapore Singapore · Department of Psychological and Cognitive Sciences Tsinghua University Beijing, China

Abstract

Autonomous web agents such as OpenClaw are rapidly moving into high-impact real-world workflows, but their security robustness under live network threats remains insufficiently evaluated. Existing benchmarks mainly focus on static sandbox settings and content-level prompt attacks, which leaves a practical gap for network-layer security testing. In this paper, we present ClawTrap, a MITM-based red-teaming framework for real-world OpenClaw security evaluation. ClawTrap supports diverse and customizable attack forms, including Static HTML Replacement, Iframe Popup Injection, and Dynamic Content Modification, and provides a reproducible pipeline for rule-driven interception, transformation, and auditing. This design lays the foundation for future research to construct richer, customizable MITM attacks and to perform systematic security testing across agent frameworks and model backbones. Our empirical study shows clear model stratification: weaker models are more likely to trust tampered observations and produce unsafe outputs, while stronger models demonstrate better anomaly attribution and safer fallback strategies. These findings indicate that reliable OpenClaw security evaluation should explicitly incorporate dynamic real-world MITM conditions rather than relying only on static sandbox protocols.

Figures & tables

Explore similar work

CardsList
  1. AutoRedClaw: Automated Red-Teaming for Claw-Style Agents

    Oct 19, 2026Hao Li, Tongyan Hu, Weidi Luo +8AI Agent SecurityAutomated Red Teaming

  2. A Systematic Security Evaluation of OpenClaw and Its Variants

    Apr 3, 2026Yuhang Wang, Haichang Gao, Zhenxing Niu +4AI Agent SecurityLLM Agent Security

  3. Security of OpenClaw Agents: Fundamentals, Attacks, and Countermeasures

    May 25, 2026Yuntao Wang, Jianle Ba, Han Liu +5AI Agent SecurityLLM Agent Security