create-pr
Pass
Audited by Gen Agent Trust Hub on Oct 5, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTIONPRIVILEGE_ESCALATION
Full Analysis
- [COMMAND_EXECUTION]: The skill executes shell commands via
gitandgh. It employs a high level of shell safety by enforcing single-quote rendering for dynamic values, using--as an option terminator, and strictly prohibiting the use of heredocs. These measures effectively prevent command injection from attacker-controlled branch names or commit messages. - [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted data such as branch names and commit logs. It mitigates indirect prompt injection risks by implementing a robust sanitization script (
sanitize-pr-content.sh) that strips forbidden AI-attribution patterns and by requiring explicit user confirmation throughAskUserQuestionbefore performing any mutating actions. - [PRIVILEGE_ESCALATION]: The
sanitize-pr-content.shscript implements a sophisticated security control by establishingbash -p(privileged mode) via a re-execution logic. This protects the enforcement process from environment and shell function poisoning. Additionally, it usesumask 077to ensure that temporary PR body files are not readable by other users on the system. - [DYNAMIC_EXECUTION]: The skill utilizes a canonical cleanup block that safely captures subshell exit codes. It includes a specific validation step using
casepatterns to ensure that status variables are numeric before they are evaluated in arithmetic contexts, preventing potential expression-based injections within the shell logic.
Audit Metadata