Back to skill

Security audit

say

Security checks for vulnerabilities and agentic risk

Overview

This macOS text-to-speech skill is coherent and purpose-aligned, but users should know its language-switch examples change a persistent system speech preference.

Before installing or using this skill, treat the Siri language-switch commands as persistent macOS preference changes. Prefer `say -v` for non-Siri voices when possible, and if using `defaults write`, note your current speech language first so you can restore it afterward.

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
  • Rogue AgentSelf-Modification, Session Persistence
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (5)

Session Persistence

Medium
Category
Rogue Agent
Confidence
89% confidence
Finding

The instruction to 'Switch languages via defaults write' introduces persistent state changes in the user's environment. In an agent skill context, persistent preference modification is security-relevant because it survives the current run and can unexpectedly influence later commands or user workflows.

Content

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

Siri Natural Voices (recommended)

Siri voices are the best macOS TTS voices but cannot be selected via -v. Instead, run say without -v — it uses the system default voice. Switch languages via defaults write:

bash
# Switch to German

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The skill explicitly instructs users to change com.apple.speech.voice.prefs SystemTTSLanguage via defaults write, which modifies a persistent, system-level speech preference rather than a per-command option. Because the documentation does not clearly warn that this change affects subsequent say usage and may alter macOS spoken-content behavior outside the immediate task, it can cause unintended persistent configuration changes.

Content

No source excerpt is available for this finding.

Session Persistence

Medium
Category
Rogue Agent
Confidence
91% confidence
Finding

The example defaults write com.apple.speech.voice.prefs SystemTTSLanguage -string "de" directly alters a stored macOS preference. Even though the goal is legitimate TTS configuration, the command creates lasting side effects that are not scoped to a single invocation and are not reverted in the example.

Content

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

bash
# Switch to German
defaults write com.apple.speech.voice.prefs SystemTTSLanguage -string "de"
say "Hallo, wie geht's?" -o output_de.aiff

# Switch to Chinese (Mandarin)

Session Persistence

Medium
Category
Rogue Agent
Confidence
91% confidence
Finding

The Mandarin example repeats the same persistent preference modification pattern, changing the system TTS language to cmn without cleanup. Recommending repeated global preference changes increases the chance that users or agents leave the machine in an altered state affecting accessibility and speech behavior later.

Content

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

say "Hallo, wie geht's?" -o output_de.aiff

Switch to Chinese (Mandarin)

defaults write com.apple.speech.voice.prefs SystemTTSLanguage -string "cmn" say "你好,世界" -o output_zh.aiff

text

Session Persistence

Medium
Category
Rogue Agent
Confidence
84% confidence
Finding

The note recommending batch generation by setting the language once and switching later normalizes repeated use of persistent defaults write changes. In skill documentation, this encourages workflows that intentionally leave session-spanning state behind, increasing operational and security risk in automated environments.

Content

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

md
- `say` adds natural pauses at punctuation — no manual sentence splitting needed
- AIFF is the native output format; convert with ffmpeg for WAV/MP3
- For batch generation: set language once, generate all clips, then switch — minimizes `defaults write` calls