gerrit
Pass
Audited by Gen Agent Trust Hub on Oct 10, 2026
Risk Level: SAFECOMMAND_EXECUTIONEXTERNAL_DOWNLOADSINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The wrapper script
scripts/gerrit.pyutilizes thesubprocess.runfunction to execute Gerrit commands via SSH. The script correctly uses the list-based argument format, which mitigates the risk of shell injection on the local system by avoiding the shell interpreter for command execution. - [EXTERNAL_DOWNLOADS]: Documentation within the skill (e.g., in
references/troubleshooting.md) includes instructions for downloading acommit-msghook from a Gerrit server usingcurl. This is a standard and expected procedure in Gerrit-based development environments to ensure commits include a unique Change-Id. - [INDIRECT_PROMPT_INJECTION]: The skill operates on untrusted data fetched from external Gerrit servers, such as commit messages, subjects, and review comments. This represents a potential attack surface for indirect prompt injection if an attacker submits a change containing malicious instructions aimed at the AI agent.
- Ingestion points: Change metadata and review comments are retrieved in
scripts/gerrit.pyviarun_gerrit_query(SSH) andfetch_change_diff(REST API). - Boundary markers: There are no specific delimiters or instruction-ignore markers used when presenting Gerrit content to the agent.
- Capability inventory: The skill performs subprocess execution (
ssh), network requests (urllib.request), and suggests usage of thegit-reviewCLI tool. - Sanitization: The skill does not perform sanitization or filtering of natural language content fetched from the Gerrit server before displaying it.
Audit Metadata