git-pushing
Warn
Audited by Gen Agent Trust Hub on Nov 5, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The script
scripts/smart_commit.shis vulnerable to shell command injection. It accepts a commit message as a command-line argument and interpolates it directly into a shell command. - Evidence:
MESSAGE="${1:-chore: update code}"followed bygit commit -m "$MESSAGE". - Impact: A malicious user or an indirect prompt injection could provide a commit message containing shell metacharacters (e.g.,
"; rm -rf / #) which would be executed by the bash shell. - [INDIRECT_PROMPT_INJECTION]: The skill acts as a surface for indirect prompt injection by processing external data (commit messages) that influence shell command execution without sanitization.
- Ingestion points: The first argument to
scripts/smart_commit.sh(found inSKILL.mdusage examples). - Boundary markers: None present to distinguish the commit message from shell control characters.
- Capability inventory: Shell execution via
gitcommands. - Sanitization: None; the script uses standard variable interpolation which does not prevent shell breakout.
Audit Metadata