agent-desktop-ffi
Pass
Audited by Gen Agent Trust Hub on Sep 8, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTIONCOMMAND_EXECUTIONDATA_EXFILTRATION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill captures and processes desktop UI data, including window titles and element text, which could contain malicious instructions designed to influence the agent's behavior.
- Ingestion points: UI data is ingested via
ad_snapshot,ad_get_tree_exact, andad_last_error_details()withinSKILL.mdandreferences/error-handling.md. - Boundary markers: The documentation mentions redacting sensitive fields in logs, but does not specify delimiters for UI-sourced text processed by the agent.
- Capability inventory: The skill allows for comprehensive desktop interaction including clicking, typing (
ad_execute_by_ref), and window management. - Sanitization: Log events have sensitive fields replaced with
{"redacted":true}. - [DYNAMIC_EXECUTION]: The skill uses FFI (Foreign Function Interface) to dynamically load and execute functions from a compiled library (
libagent_desktop_ffi). The Python examples inreferences/build-and-link.mdusectypes.CDLLto interface with this binary code. - [COMMAND_EXECUTION]: The documentation includes instructions for building the library from source using
cargo build --profile release-ffi -p agent-desktop-ffiinSKILL.mdandreferences/build-and-link.md. - [DATA_EXFILTRATION]: The
ad_last_error_details()function provides access to structured JSON context which may include sensitive information from the user's screen, such as window titles and element values. The skill documentation inreferences/error-handling.mdexplicitly instructs developers to treat this as sensitive data and avoid routing it to shared logs.
Audit Metadata