T09 · Insecure Skill Coding Practices
- Location
SKILL.md:66- Finding
Shell Command Injection Through User-Controlled JSON Prompt
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill mostly matches its video-generation purpose, but its documented command pattern can turn user prompt text into shell syntax if followed literally.
Review this skill before installing. It should only be used in an environment where WERYAI_API_KEY is intentionally available, and agents should invoke the Node script with structured arguments, stdin, or another non-shell mechanism rather than interpolating JSON into a quoted shell command.
SKILL.md:66Shell Command Injection Through User-Controlled JSON Prompt
Referenced artifact was not completely inspected
**Dependencies**: `scripts/video_gen.js` in this directory + `WERYAI_API_KEY` + Node.js 18+. No dependency on other Cursor skills.
Referenced artifact was not completely inspected
**Dependencies**: `scripts/video_gen.js` in this directory + `WERYAI_API_KEY` + Node.js 18+. No dependency on other Cursor skills.
Referenced artifact was not completely inspected
**Dependencies**: `scripts/video_gen.js` in this directory + `WERYAI_API_KEY` + Node.js 18+. No dependency on other Cursor skills.
Referenced artifact was not completely inspected
**Dependencies**: `scripts/video_gen.js` in this directory + `WERYAI_API_KEY` + Node.js 18+. No dependency on other Cursor skills.
Referenced artifact was not completely inspected
**Dependencies**: `scripts/video_gen.js` in this directory + `WERYAI_API_KEY` + Node.js 18+. No dependency on other Cursor skills.
Referenced artifact was not completely inspected
- Does not hard-code absolute paths in the skill doc; `{baseDir}` means the skill package root (same level as `SKILL.md`).
The skill invokes a Node script that requires both network access and an environment secret (WERYAI_API_KEY), but the manifest does not declare an explicit tool scope such as permissions or allowed-tools. That weakens least-privilege controls and can cause an installer or runtime to grant broader capabilities than users realize, increasing the risk of unintended secret exposure or unauthorized external requests if the script is modified or behaves unexpectedly.
The implicit trigger test uses a broad natural-language prompt that can match many generic sand-video or ASMR requests without clearly constraining when the skill should activate. This increases the chance of over-triggering the skill in unrelated contexts, causing incorrect tool routing and making evaluation results unreliable.
The natural-language header comments, command documentation, and environment-variable guidance are written entirely in Chinese, which imposes a language requirement on users of the skill. The file does not provide an opt-in choice, alternate locale, or documented region-specific justification for this language constraint.
No suspicious patterns detected.