macos-swift-e2e
Pass
Audited by Gen Agent Trust Hub on Nov 26, 2026
Risk Level: SAFECOMMAND_EXECUTIONEXTERNAL_DOWNLOADSREMOTE_CODE_EXECUTIONDATA_EXFILTRATIONINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: Harness scripts execute system commands such as
open,screencapture,swift build, andxcodebuildviasubprocess.runto manage the lifecycle and testing of macOS applications. It also invokes thecua-driverCLI for background UI interaction. - [EXTERNAL_DOWNLOADS]: The skill instructions direct the installation of the toolkit from the author's GitHub repository and suggest downloading the
cua-driverruntime dependency from the provider's official source (cua.ai). - [REMOTE_CODE_EXECUTION]: The harness provides instructions for installing dependencies using automated scripts from the provider's website, such as the
cua-driverinstallation script. - [DATA_EXFILTRATION]: The tool reads macOS Accessibility (AX) trees and captures window screenshots, which provides access to application content. While the skill instructs the agent to keep this data local, these privileged capabilities allow the observation of potentially sensitive information.
- [INDIRECT_PROMPT_INJECTION]: The tool processes external data from AX trees and screenshots, creating a surface where malicious application content could influence the agent's instructions.
- Ingestion points:
harness/macos_e2e_harness/ax.py(Accessibility tree) andharness/macos_e2e_harness/windows.py(screenshots). - Boundary markers:
SKILL.mdwarns that AX trees can expose sensitive data and advises keeping audit dumps local. - Capability inventory:
subprocess.run(CLI commands) andSafeDriver(UI automation). - Sanitization: UI content is processed without filtering to support testing assertions.
- [DYNAMIC_EXECUTION]: The toolkit generates executable scripts from templates and compiles local Swift source code into
.appbundles at runtime for testing purposes. It also uses dynamic module loading for environment-based configuration.
Audit Metadata