apple-hig-designer
Warn
Audited by Gen Agent Trust Hub on Sep 15, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The script
scripts/generate_ios_component.shutilizes theevalcommand to assign variables based on user input in theprompt_inputandprompt_selectfunctions. This implementation is vulnerable to shell command injection; if the agent provides an input containing command separators (e.g.,;,&&) or backticks, arbitrary code can be executed in the environment. - [DYNAMIC_EXECUTION]: The skill provides a component generation utility (
scripts/generate_ios_component.sh) that dynamically constructs SwiftUI and UIKit source files. It usessedto replace placeholders with user-provided names and feature lists without escaping special characters. This allows for 'sed injection,' which can lead to corrupted source files or the injection of unexpected code into the generated Swift components. - [INDIRECT_PROMPT_INJECTION]: The skill possesses a vulnerability surface for indirect prompt injection because it reads and analyzes external Swift source files.
- Ingestion points:
scripts/audit_accessibility.shandscripts/validate_design.shread content from files or directories provided at runtime. - Boundary markers: No clear delimiters or instructions are present to prevent the agent from following instructions potentially embedded in the files being audited.
- Capability inventory: The skill can write new files to the filesystem and execute shell scripts.
- Sanitization: The auditing scripts perform simple
grepoperations and return raw matches without escaping.
Audit Metadata