gh-switch
Pass
Audited by Gen Agent Trust Hub on Oct 13, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The skill manages GitHub accounts by executing the
gitandghcommand-line tools. The implementation inscripts/gh_switch.pyusessubprocess.runwith list-based arguments, ensuring that user-provided values like target repositories or login names are not interpreted by a shell, which mitigates command injection risks. - [INDIRECT_PROMPT_INJECTION]: The skill exposes a surface for indirect prompt injection by reading project files and repository metadata. Ingestion points include the
.env/.envconfiguration file and the output ofgit remote -v. Boundary markers are effectively implemented through programmatic parsing and strict input validation rather than direct prompt interpolation. Capability inventory includes reading local files and executing CLI tools. Sanitization is performed using a restrictive regular expression for GitHub logins, which prevents the processing of malicious payloads embedded in the configuration file. - [DYNAMIC_EXECUTION]: The skill's test suite (
scripts/test_gh_switch.py) dynamically generates and executes a mockghutility. This is a standard testing practice using a static template to simulate CLI responses and does not involve executing untrusted code or remote payloads.
Audit Metadata