collaborating-with-gemini
Pass
Audited by Gen Agent Trust Hub on May 8, 2026
Risk Level: SAFECREDENTIALS_UNSAFECOMMAND_EXECUTIONPROMPT_INJECTION
Full Analysis
- [CREDENTIALS_UNSAFE]: The function
seed_user_auth_into_homeinscripts/gemini_bridge.py, triggered by the--seed-user-authflag, copies sensitive files such asoauth_creds.jsonandgoogle_accounts.jsonfrom the user's home directory (~/.gemini) into the local workspace folder (.gemini_cli_home). This creates a risk of exposing private authentication tokens if the workspace is shared, version-controlled, or accessed by other processes.\n- [COMMAND_EXECUTION]: Thescripts/gemini_bridge.pyscript wraps thegeminiCLI tool usingsubprocess.Popen. While it mitigates direct shell injection by usingshell=False, the script executes a local binary based on agent-provided prompt content and configuration parameters.\n- [PROMPT_INJECTION]: The skill is susceptible to indirect prompt injection as it interpolates data from local workspace files (e.g.,topic-brief.md,evidence-matrix.csv) into templates defined inassets/prompt-template.md.\n - Ingestion points: Data from
topic-brief.md,evidence-matrix.csv, andcontribution-map.yamlis ingested as model context.\n - Boundary markers: The templates use structural headers (e.g., "Input:"), but do not include specific delimiters or instructions to ignore embedded commands.\n
- Capability inventory: The skill is capable of reading workspace files and executing the
geminiCLI.\n - Sanitization: No validation or escaping logic is present to sanitize the ingested file content before it is processed by the model.
Audit Metadata