When Actions Go Off-Task: Detecting and Correcting Misaligned Actions in Computer-Use Agents
Yuting Ning 1, Jaylen Jones 1, Zhehao Zhang 1, Chentao Ye 2, Weitong Ruan 2, Junyi Li 2, Rahul Gupta 2, Huan Sun 1
Published on arXiv
2602.08995
Prompt Injection
OWASP LLM Top 10 — LLM01
Excessive Agency
OWASP LLM Top 10 — LLM08
Key Finding
DeAction outperforms all baselines by over 15% absolute F1 on MisActBench and reduces attack success rate by over 90% under adversarial (indirect prompt injection) settings
DeAction
Novel technique introduced
Computer-use agents (CUAs) have made tremendous progress in the past year, yet they still frequently produce misaligned actions that deviate from the user's original intent. Such misaligned actions may arise from external attacks (e.g., indirect prompt injection) or from internal limitations (e.g., erroneous reasoning). They not only expose CUAs to safety risks, but also degrade task efficiency and reliability. This work makes the first effort to define and study misaligned action detection in CUAs, with comprehensive coverage of both externally induced and internally arising misaligned actions. We further identify three common categories in real-world CUA deployment and construct MisActBench, a benchmark of realistic trajectories with human-annotated, action-level alignment labels. Moreover, we propose DeAction, a practical and universal guardrail that detects misaligned actions before execution and iteratively corrects them through structured feedback. DeAction outperforms all existing baselines across offline and online evaluations with moderate latency overhead: (1) On MisActBench, it outperforms baselines by over 15% absolute in F1 score; (2) In online evaluation, it reduces attack success rate by over 90% under adversarial settings while preserving or even improving task success rate in benign environments.
Key Contributions
- MisActBench: first benchmark of realistic CUA trajectories with human-annotated action-level alignment labels covering both externally induced (prompt injection) and internally arising misaligned actions
- DeAction: a universal runtime guardrail that detects misaligned actions before execution and iteratively corrects them via structured feedback
- Reduces attack success rate by over 90% under adversarial settings while preserving or improving task success rate in benign environments