Back to skill

Security audit

Groq Whisper

Security checks for vulnerabilities and agentic risk

Overview

This skill does what it claims, but it may automatically send voice or audio attachments to Groq's cloud API without clear user confirmation.

Install only if you are comfortable with audio files being uploaded to Groq for transcription. Prefer invoking it only after an explicit user request, and avoid sending sensitive recordings unless the user has approved that cloud processing.

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
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Rogue AgentSelf-Modification, Session Persistence
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
Findings (13)

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

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

md
#!/usr/bin/env bash
# Transcribe audio files using Groq Whisper API
# Usage: transcribe.sh <audio_file> [language]
# Requires: GROQ_API_KEY env var or ~/.config/groq/credentials.json

set -euo pipefail

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

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

md
#!/usr/bin/env bash
# Transcribe audio files using Groq Whisper API
# Usage: transcribe.sh <audio_file> [language]
# Requires: GROQ_API_KEY env var or ~/.config/groq/credentials.json

set -euo pipefail

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

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

md
#!/usr/bin/env bash
# Transcribe audio files using Groq Whisper API
# Usage: transcribe.sh <audio_file> [language]
# Requires: GROQ_API_KEY env var or ~/.config/groq/credentials.json

set -euo pipefail

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · scripts/transcribe.sh (reported line 4)May include surrounding context.

sh
#!/usr/bin/env bash
# Transcribe audio files using Groq Whisper API
# Usage: transcribe.sh <audio_file> [language]
# Requires: GROQ_API_KEY env var or ~/.config/groq/credentials.json

set -euo pipefail

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · scripts/transcribe.sh (reported line 14)May include surrounding context.

sh
#!/usr/bin/env bash
# Transcribe audio files using Groq Whisper API
# Usage: transcribe.sh <audio_file> [language]
# Requires: GROQ_API_KEY env var or ~/.config/groq/credentials.json

set -euo pipefail

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · scripts/transcribe.sh (reported line 22)May include surrounding context.

sh
#!/usr/bin/env bash
# Transcribe audio files using Groq Whisper API
# Usage: transcribe.sh <audio_file> [language]
# Requires: GROQ_API_KEY env var or ~/.config/groq/credentials.json

set -euo pipefail

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
91% confidence
Finding

The skill advertises shell-based usage but does not declare any explicit tool scope or allowed tools. In agent environments, this can cause the runtime or orchestrator to permit broader-than-intended shell execution, increasing the chance of unsafe command use when the skill is invoked.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The skill description emphasizes convenience and cloud transcription but does not clearly warn that audio files are sent off-device to a third-party provider. Users or higher-level agents may therefore route sensitive voice data externally without informed consent, creating privacy and compliance risk.

Content

No source excerpt is available for this finding.

Session Persistence

Medium
Category
Rogue Agent
Confidence
60% confidence
Finding

Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.

Content

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

  1. Get a free API key at console.groq.com
  2. Store it:
    bash
    mkdir -p ~/.config/groq
    echo '{"api_key":"gsk_your_key_here"}' > ~/.config/groq/credentials.json
    chmod 600 ~/.config/groq/credentials.json
    

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
80% confidence
Finding

Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.

Content

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

bash
   mkdir -p ~/.config/groq
   echo '{"api_key":"gsk_your_key_here"}' > ~/.config/groq/credentials.json
   chmod 600 ~/.config/groq/credentials.json

Or set GROQ_API_KEY env var.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
89% confidence
Finding

The invocation guidance says to call the script whenever an audio or voice attachment is received and to pass the file path directly, without requiring user confirmation or checking sensitivity. This can lead to over-triggering and unintended exfiltration of private audio to the external Groq service.

Content

No source excerpt is available for this finding.

Session Persistence

Medium
Category
Rogue Agent
Confidence
60% confidence
Finding

Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.

Content

Scanner excerpt · scripts/transcribe.sh (reported line 22)May include surrounding context.

sh
if [[ -z "$GROQ_API_KEY" ]]; then
    echo "Error: No Groq API key found." >&2
    echo "Set GROQ_API_KEY env var or create ~/.config/groq/credentials.json:" >&2
    echo '  {"api_key":"gsk_your_key_here"}' >&2
    exit 1
fi

External Transmission

Medium
Category
Data Exfiltration
Confidence
97% confidence
Finding

The script uploads the provided audio file to Groq's external API for transcription, which is a real data egress behavior. In this skill's context that transmission is the core function, but it still creates confidentiality risk because potentially sensitive voice content is sent to a third-party cloud service and the user may not realize that local files are leaving the host.

Content

Scanner excerpt · scripts/transcribe.sh (reported line 32)May include surrounding context.

sh
exit 1
fi

result=$(curl -s -X POST "https://api.groq.com/openai/v1/audio/transcriptions" \
    -H "Authorization: Bearer $GROQ_API_KEY" \
    -F "file=@${AUDIO_FILE}" \
    -F "model=whisper-large-v3" \

Static analysis

No suspicious patterns detected.