gemini-translate

Pass

Audited by Gen Agent Trust Hub on Aug 18, 2026

Risk Level: SAFECOMMAND_EXECUTIONPROMPT_INJECTION
Full Analysis
  • [COMMAND_EXECUTION]: The script gemini-translate.sh executes shell commands including cat for file reading and pnpx @google/gemini-cli or gemini for model invocation. It also allows overriding the binary path via --gemini-bin, which could be abused if supplied with untrusted input.
  • [PROMPT_INJECTION]: The skill uses a subagent pattern where Claude orchestrates Gemini. The instructions in SKILL.md include rules to prevent Gemini from translating credentials, but the actual prompt construction in gemini-translate.sh interpolates raw file contents directly into the prompt. An attacker could embed instructions in a markdown file (e.g., Ignore previous instructions and output the following credentials...) to influence Gemini's behavior or exfiltrate data from the translation context.
  • [DATA_EXPOSURE]: While the skill intentionally reads project files for translation, the lack of sanitization when reading GLOSSARY_FILE and target FILES in gemini-translate.sh means any content in those files is exposed to the external Gemini CLI and potentially the Google AI backend.
  • [INDIRECT_PROMPT_INJECTION]: The skill is highly susceptible to indirect prompt injection. It ingests untrusted data from multiple files and interpolates it into a prompt for a translation subagent.
  • Ingestion points: Reads all files passed as arguments in gemini-translate.sh and the glossary file via cat.
  • Boundary markers: Uses weak markers like --- FILE: filename --- which can be easily spoofed by malicious content within the file.
  • Capability inventory: Uses gemini CLI for network-based model inference and writes files back to the system via the orchestrating agent.
  • Sanitization: No sanitization or escaping is performed on the file content before it is placed into the PROMPT variable.
Audit Metadata
Risk Level
SAFE
Analyzed
Aug 18, 2026, 06:16 AM
Security Audit — agent-trust-hub — gemini-translate