T09 · Insecure Skill Coding Practices
- Location
scripts/generate.js:170- Finding
OS Command Injection Through Unvalidated TTS Configuration
- Content
View full analysis
/tmp/tts-command-output; #", "rate": "+15%" } } ``` The generated command would execute the injected `id` command before the TTS process completes or fails. ### Attack Path 1. An attacker supplies, modifies, ...[truncated 1220 chars]- Remediation
View remediation
50) { throw new Error('TTS rate is outside the permitted range'); } ``` 4. Validate the parsed specification against a strict JSON schema before using any field. 5. Treat LLM-generated configuration as untrusted input even when it is generated inside the workflow. 6. Add regression tests containing semicolons, quotes, command substitutions, redirections, and newline characters in all specification fields. ]]>
