swift-clean-review
Warn
Audited by Gen Agent Trust Hub on Sep 23, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill instructions provide a shell command template (
find $ARGUMENTS ...) for the agent to execute using theBashtool. The direct interpolation of the$ARGUMENTSvariable without explicit sanitization or validation instructions creates a command injection risk. A malicious user providing an argument such as; malicious_commandcould lead the agent to execute arbitrary shell commands on the host system. - [INDIRECT_PROMPT_INJECTION]: The skill identifies a significant attack surface for indirect prompt injection, which could allow maliciously crafted code files to manipulate the agent.
- Ingestion points: The skill reads external
.swiftfiles discovered via thefindcommand or specified by the user. - Boundary markers: The instructions lack specific delimiters or warnings for the agent to ignore instructions embedded within the files being audited (e.g., in comments).
- Capability inventory: The agent is granted
Bash,Edit, andReadtools, providing it the ability to execute code and modify the filesystem based on its analysis. - Sanitization: No sanitization or validation of the external file content is required before processing. A malicious actor could place hidden instructions in a Swift file (e.g., inside a comment) that, when read by the agent, could trick it into performing unauthorized file modifications or executing arbitrary bash commands.
Audit Metadata