gemini-tts
Pass
Audited by Gen Agent Trust Hub on Jul 3, 2026
Risk Level: SAFEPROMPT_INJECTIONCOMMAND_EXECUTION
Full Analysis
- [PROMPT_INJECTION]: The script
scripts/generate.pyis susceptible to indirect prompt injection as it interpolates external text directly into the AI prompt template without protective delimiters. - Ingestion points: Text is ingested from command-line arguments or local files via the
-f/--fileargument inscripts/generate.py. - Boundary markers: Absent. The input is directly concatenated into a string template (
Say {style}: {text}) before being sent to the model. - Capability inventory: The script performs network requests to the Gemini API and writes audio files to the local file system.
- Sanitization: None. The script does not filter or escape the input text for potential instructions directed at the TTS model.
- [COMMAND_EXECUTION]: The script
scripts/generate.pyprovides a mechanism to disable SSL certificate verification, which is a significant security weakness. - Evidence: The
--no-ssl-verifyflag and theGEMINI_TTS_NO_SSL_VERIFYenvironment variable trigger thedisable_ssl_verification()function. - Method: This function modifies the global
sslstate and monkey-patches thehttpxlibrary to skip certificate validation, increasing the risk of man-in-the-middle (MitM) attacks during API communication.
Audit Metadata