Atomicity of Agents: Exposing, Exploiting, and Mitigating TOCTOU Vulnerabilities in Browser AgentsAtomicity for Agents: Exposing, Exploiting, and Mitigating TOCTOU Vulnerabilities in Browser-Use Agents
AI summary
The researchers define the time gap caused by a web page changing between planning and execution as a TOCTOU vulnerability in browser agents, and evaluated 10 mainstream open-source agents with a benchmark covering synthetic and real websites, showing that such vulnerabilities are widespread. Dynamic or adversarial web content can exploit this window to induce agents to perform unintended actions based on outdated page assumptions. The authors propose a lightweight mitigation based on pre-execution validation that monitors DOM and layout changes during planning and validates page state immediately before action execution, to reduce the risk of unsafe execution and unintended side effects.