# Temporal UI State Inconsistency in Desktop GUI Agents: Formalizing and Defending Against TOCTOU Attacks on Computer-Use Agents

This study examines UI changes between a desktop agent’s screenshot observation and action dispatch. Its pre-execution state checks address overlay and focus manipulation, while the reported DOM-injection blind spot limits the defense’s coverage.

- Catalog URL: https://awesomecua.github.io/resources/arxiv-2604-18860/
- Original source: https://arxiv.org/abs/2604.18860
- Kind: paper
- Review: curated
- Scope: core
- Environments: desktop, web
- Topics: safety-security, robustness, evaluation, state-tracking
- Evidence checked: 2026-10-16T06:36:39Z
- ID: arxiv:2604.18860

## Limitations

The annotation was reviewed against the complete retained official abstract. Experimental findings and artifact availability have not been independently reproduced.

- Record JSON: https://awesomecua.github.io/resources/arxiv-2604-18860/record.json

## Authors

Wenpeng Xu

## Citation exports

- BibTeX: https://awesomecua.github.io/resources/arxiv-2604-18860/citation.bib
- CSL JSON: https://awesomecua.github.io/resources/arxiv-2604-18860/citation.csl.json

## Recorded arXiv snapshot

- Version: 1
- Version source: https://arxiv.org/abs/2604.18860v1
- First submission: 2026-04-20T21:36:16Z
- Version updated: 2026-04-20T21:36:16Z
- Abstract SHA-256: 8eb499729268ef287a9b9bf73275f526d47dabf2d7de399beaead2fe54cfd74e
- Abstract hash normalization: sha256-utf8-whitespace-collapsed-v1

## License declarations

- code: not recorded
- data: not recorded
- document: not recorded
- weights: not recorded

## Primary evidence

- https://export.arxiv.org/api/query?search_query=%28ti%3A%22computer+use%22+OR+ti%3A%22computer-use%22+OR+ti%3A%22GUI+agent%22+OR+ti%3A%22GUI+agents%22+OR+ti%3A%22GUI+grounding%22+OR+ti%3A%22web+agents%22+OR+ti%3A%22browser+agent%22%29+AND+submittedDate%3A%5B200001010000+TO+202610160636%5D&start=300&max_results=100&sortBy=submittedDate&sortOrder=descending (retrieved 2026-10-16T06:36:39Z; SHA-256 27c33576ed43c7bc63d4b290f6558553bd1d3aa112a7358138f4045e1bc14918)
- https://export.arxiv.org/api/query?search_query=%28ti%3A%22computer+use%22+OR+ti%3A%22computer-use%22+OR+ti%3A%22GUI+agent%22+OR+ti%3A%22GUI+agents%22+OR+ti%3A%22GUI+grounding%22+OR+ti%3A%22web+agents%22+OR+ti%3A%22browser+agent%22%29+AND+submittedDate%3A%5B200001010000+TO+202610160636%5D&start=300&max_results=100&sortBy=submittedDate&sortOrder=descending (retrieved 2026-10-16T06:36:39Z; SHA-256 27c33576ed43c7bc63d4b290f6558553bd1d3aa112a7358138f4045e1bc14918)
