git-sync
Pass
Audited by Gen Agent Trust Hub on Oct 8, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill includes a Python script
scripts/inspect_repository.pythat executes Git commands to discover repository metadata. - Execution Safety: The script uses
subprocess.Popenwith a list of arguments rather than a shell string, preventing shell injection vulnerabilities. The arguments passed within the discovery functions are hardcoded strings (e.g.,rev-parse,symbolic-ref,for-each-ref). - Environment Sanitization: The script implements a security-conscious environment by explicitly removing sensitive Git variables (e.g.,
GIT_CONFIG_PARAMETERS,GIT_DIR,GIT_INDEX_FILE,GIT_CONFIG_KEY_*) and settingGIT_TERMINAL_PROMPT='0'to prevent credential leakage or unauthorized interactive prompts. - Resource Management: It includes robust timeout handling (20s default) and process group termination (SIGKILL) to ensure that Git operations do not hang or consume excessive system resources.
- [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted data from local Git repositories, such as branch names, status, and configuration files, which could potentially contain malicious instructions.
- Mitigation Through Structure: The skill mitigates this surface by using a Python script to parse Git output into structured JSON, which helps prevent the agent from misinterpreting repository content as direct instructions.
- Instructional Guardrails: Main instructions in
SKILL.mdrequire the agent to clearly distinguish between "facts," "rules," and "user authorization," and to never assume that presence of a configuration file grants permission for destructive actions.
Audit Metadata