git-pushing
Pass
Audited by Gen Agent Trust Hub on Oct 8, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill executes a bash script
scripts/smart_commit.shwhich performs several Git operations. It stages all local changes usinggit add ., creates a commit with an automatically generated or user-provided message, and pushes the branch to the remote origin usinggit push. These operations are consistent with the skill's purpose of managing version control workflows. - [INDIRECT_PROMPT_INJECTION]: The script analyzes the repository's state to determine commit types and scopes, which introduces a surface for indirect prompt injection.
- Ingestion points: Untrusted data is ingested in
scripts/smart_commit.shviagit diff --cached --name-only(filenames) andgit diff --cached(file contents). - Boundary markers: No specific delimiters or warnings are used when the agent processes the analyzed diff data to generate messages.
- Capability inventory: The skill has the capability to modify the repository index (
git add) and transmit code to remote servers (git push). - Sanitization: The script uses proper shell quoting for variables like
"$COMMIT_MSG"and"$CURRENT_BRANCH", which prevents malicious file content or branch names from escalating into command injection during the execution of git commands. - [SAFE]: No malicious patterns such as credential harvesting, unauthorized network exfiltration, or persistence mechanisms were found. The skill operates locally on the user's repository and interacts only with the user's established Git remotes. The inclusion of a footer mentioning Claude Code and Anthropic is consistent with typical agent-assisted development practices.
Audit Metadata