Back to skill

Security audit

Google Gemini TTS

Security checks for vulnerabilities and agentic risk

Overview

This skill is a straightforward Gemini text-to-speech wrapper that sends user-provided text to Google's Gemini API and writes a WAV file locally.

Install only if you are comfortable sending the text, style prompts, and related request data to Google's Gemini API using your API key. Avoid using it with secrets, regulated data, or private documents unless your policy allows that, and monitor Google API quota or billing when selecting preview models.

Vulnerability Patterns
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (6)

External Model or Provider Selection

High
Category
Excessive Agency
Confidence
90% confidence
Finding

Skill selects an external model or provider that may use a different account or billing plan than the operator expects. Undisclosed model switches can cause unexpected cost or quota consumption.

Content

Scanner excerpt · README.md (reported line 105)May include surrounding context.

Fallback model selection:

bash
scripts/gemini_tts.sh -m gemini-2.5-pro-preview-tts "Long-form narration example"

Requirements

External Model or Provider Selection

High
Category
Excessive Agency
Confidence
90% confidence
Finding

Skill selects an external model or provider that may use a different account or billing plan than the operator expects. Undisclosed model switches can cause unexpected cost or quota consumption.

Content

Scanner excerpt · SKILL.md (reported line 77)May include surrounding context.

Switch model examples:

bash
scripts/gemini_tts.sh -m gemini-2.5-pro-preview-tts "Your text here"
scripts/gemini_tts.sh -m gemini-2.5-flash-preview-tts "Your text here"

External Model or Provider Selection

High
Category
Excessive Agency
Confidence
90% confidence
Finding

Skill selects an external model or provider that may use a different account or billing plan than the operator expects. Undisclosed model switches can cause unexpected cost or quota consumption.

Content

Scanner excerpt · SKILL.md (reported line 78)May include surrounding context.

bash
scripts/gemini_tts.sh -m gemini-2.5-pro-preview-tts "Your text here"
scripts/gemini_tts.sh -m gemini-2.5-flash-preview-tts "Your text here"

Voices

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The README tells users to provide a Gemini/Google API key and use a hosted REST API, but it does not clearly warn that any text passed to the skill will be transmitted to Google's external service. In an agent setting, this omission can lead to accidental disclosure of sensitive prompts, PII, internal reports, or user content to a third party, especially if operators assume the skill is local-only.

Content

No source excerpt is available for this finding.

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
93% confidence
Finding

The skill declares shell-capable behavior and lists required executables (curl, jq, base64, ffmpeg) but does not define any explicit tool scope such as permissions or allowed-tools. In an agent environment, this weakens least-privilege controls and can allow broader shell execution than the skill actually needs, increasing the blast radius if the script or its inputs are abused.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
70% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · scripts/gemini_tts.sh (reported line 134)May include surrounding context.

sh
ATTEMPT=1
HTTP_CODE=""
while (( ATTEMPT <= MAX_ATTEMPTS )); do
  HTTP_CODE=$(curl -s -w "%{http_code}" -o "$TMPFILE" \
    --connect-timeout 10 --max-time 60 \
    -X POST "$API_URL" \
    -H "Content-Type: application/json" \