swiftui-expert-skill
Pass
Audited by Gen Agent Trust Hub on Sep 19, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill provides scripts (
record_trace.pyandanalyze_trace.py) that invoke the system-levelxctraceutility. These scripts are used to list devices, record application activity, and export trace data for performance analysis.\n - Evidence:
scripts/record_trace.pyandscripts/instruments_parser/xctrace.pyutilize thesubprocessmodule to execute commands using thexctracebinary with arguments derived from user and agent input.\n- [INDIRECT_PROMPT_INJECTION]: The skill analyzes external data from.tracefiles, including application logs and signposts. This data is then processed and displayed to the agent, creating a vulnerability where malicious content within a trace file could influence the agent's logic or subsequent actions.\n - Ingestion points:
scripts/analyze_trace.pyprocesses.tracefiles (provided as paths) by exporting their contents to XML and parsing them.\n - Boundary markers: There are no explicit delimiters or instructions to treat trace content as untrusted data, which may lead the agent to follow instructions embedded in logs.\n
- Capability inventory: The agent can execute local scripts that interact with the system (e.g., launching apps via
xctrace) and is primary intended to perform code modifications on the project.\n - Sanitization: The provided Python tools use secure argument handling for process execution, but there is no specific sanitization of the text data extracted from the traces before it is presented to the agent.
Audit Metadata