T09 · Insecure Skill Coding Practices
- Location
lib/artifacts.js:37- Finding
Unvalidated Run Identifier Allows Artifact Path Traversal and Arbitrary File Overwrite
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill is a legitimate TikTok analysis helper, but its run ID can write artifacts outside the intended folder and it lacks clear boundaries for untrusted video/API text.
Review before installing. Use only trusted TikTok URLs, assume the URL and extracted content are sent to CreatOK, and do not use sensitive or private videos unless that is acceptable. The publisher should validate run_id values and add explicit prompt-injection boundaries before this is treated as low-risk.
lib/artifacts.js:37Unvalidated Run Identifier Allows Artifact Path Traversal and Arbitrary File Overwrite
SKILL.md:75Untrusted Video and Remote API Content Is Passed to the Agent Without Prompt-Injection Boundaries
The skill declares network use and an API key requirement, but it does not define an explicit permission or allowed-tools scope. That creates an authorization gap where the runtime or reviewer cannot clearly enforce what external access the skill is supposed to have, increasing the chance of over-broad execution or unintended data access. In a skill that processes user-supplied TikTok URLs through a remote API, missing tool scoping is a real security control weakness rather than just a documentation issue.
The skill sends user-provided TikTok URLs and derived content to an external API, but it does not clearly warn the user that their input and extracted transcript/vision data will leave the local environment. This undermines informed consent and can expose sensitive or private content, especially if users analyze non-public, proprietary, or regulated material under the assumption the processing is local.
This code persists multiple artifacts including video metadata, transcript text, scene data, and response content to local files. There is no confirmation prompt, logging/print statement, or inline comment/docstring in this file warning that user-provided or externally retrieved content will be stored on disk.
The handoff guidance uses broad natural-language triggers such as 'rewrite this for my product' or 'turn this into a video' without clear disambiguation boundaries. In a multi-skill environment, this can cause the wrong skill to activate or transfer context too aggressively, which may lead to unintended actions, confused behavior, or propagation of sensitive user context into another skill.
This code creates directories and writes JSON/text files under the skill's artifacts directory, which affects local user data on disk. There is no confirmation prompt, print/log statement, or inline documentation here disclosing that these writes will occur.
No suspicious patterns detected.