desktop-ui-audit
Warn
Audited by Gen Agent Trust Hub on Oct 9, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTIONDATA_EXFILTRATION
Full Analysis
- [COMMAND_EXECUTION]: The skill invokes
osascriptinSKILL.mdto programmatically set the frontmost application process, which requires macOS Accessibility permissions. It also uses thescreencapturesystem utility inscripts/screenshot.shto take images of specific window IDs. - [DYNAMIC_EXECUTION]: In
scripts/screenshot.sh, the skill usesswiftcto compile a Swift source file (winid.swift) at runtime. Furthermore,SKILL.mdcontains multiple instances wherejs_evalis used to execute dynamically constructed JavaScript within the application's execution environment. - [INDIRECT_PROMPT_INJECTION]: The skill ingests untrusted data from the application's DOM via tools like
dom_query,dom_html, andjs_eval(Ingestion Points). There are no delimiters or boundary markers present in the scripts to help the agent distinguish between UI data and instructions (Boundary Markers). The skill has access to sensitive capabilities such as screen capture, AppleScript focus control, and arbitrary JavaScript execution (Capability Inventory). No sanitization or filtering logic for the ingested DOM content is observed (Sanitization). - [DATA_EXFILTRATION]: Through the
screenshot.shscript, the skill provides a mechanism to capture and store the visual state of the native application window. If the audited application displays sensitive data such as credentials or private information, this data is exposed to the agent and recorded to the local filesystem.
Audit Metadata