Red-Teaming Agent Execution Contexts: Open-World Security Evaluation on OpenClaw

Hongwei Yao, Yiming Liu, Yiling He, Bingrun Yang
5/11/2026
2 citations
cs.CRcs.AI

Official code: ZJUICSR/DeepTrap (11 stars, Python, MIT, last commit 2026-05-22).

Abstract

Agentic language-model systems increasingly rely on mutable execution contexts, including files, memory, tools, skills, and auxiliary artifacts, creating security risks beyond explicit user prompts. This paper presents DeepTrap, an automated framework for discovering contextual vulnerabilities in OpenClaw.

Show full abstract

DeepTrap formulates adversarial context manipulation as a black-box trajectory-level optimization problem that balances risk realization, benign-task preservation, and stealth. It combines risk-conditioned evaluation, multi-objective trajectory scoring, reward-guided beam search, and reflection-based deep probing to identify high-value compromised contexts. We construct a 42-case benchmark spanning six vulnerability classes and seven operational scenarios, and evaluate nine target models using attack and utility grading scores. Results show that contextual compromise can induce substantial unsafe behavior while preserving user-facing task completion, demonstrating that final-response evaluation is insufficient. The findings highlight the need for execution-centric security evaluation of agentic AI systems. Our code is released at: https://github.com/ZJUICSR/DeepTrap

View on arXivView PDF

Code Implementations(1)

ZJUICSR/DeepTrapOfficial100%
MIT
111PythonMay 7, 20266 months agoMIT

Similar Papers

Cite this paper

@article{yao2026redteaming,
  title  = {Red-Teaming Agent Execution Contexts: Open-World Security Evaluation on OpenClaw},
  author = {Hongwei Yao and Yiming Liu and Yiling He and Bingrun Yang},
  year   = {2026},
  eprint = {2605.11047},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2605.11047v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2605.11047.svg)](https://codeofpaper.com/paper/2605.11047)

Discussion