pr-and-cleanup
Fail
Audited by Gen Agent Trust Hub on Mar 2, 2026
Risk Level: HIGHCOMMAND_EXECUTIONREMOTE_CODE_EXECUTIONPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The file
scripts/pr_and_cleanup.shcontains a command injection vulnerability in thecreate_pull_requestfunction. It builds a command string by interpolating variables$TITLEand$BODYand then executes that string usingeval. Because these variables are intended to hold user-supplied text, shell metacharacters can be used to execute unintended commands. - [REMOTE_CODE_EXECUTION]: The vulnerability allows for arbitrary command execution. If the agent populates the PR title or description using untrusted content from a repository, this becomes a vector for remote code execution.
- [PROMPT_INJECTION]: The skill is vulnerable to indirect prompt injection as it ingests untrusted data that reaches a sensitive sink. 1. Ingestion points: The
--titleand--bodyparameters inscripts/pr_and_cleanup.sh. 2. Boundary markers: None. 3. Capability inventory: Git and GitHub CLI access with system shell capabilities viaeval. 4. Sanitization: No input validation or escaping is performed on the title or body strings before shell evaluation.
Recommendations
- AI detected serious security threats
Audit Metadata