T09 · Insecure Skill Coding Practices
- Location
SKILL.md:112- Finding
Shell Command Injection Through Unsanitized Filenames and Book Metadata
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This book cataloging skill is coherent overall, but needs review because it tells the agent to run shell commands on user-derived files and paths.
Review this skill before installing. It appears intended to catalog books, not to steal data or damage files, but you should only use it where shell commands are acceptable, fix-md.sh is trusted, and generated filenames or inbound media names cannot inject shell syntax. Confirm any vault push destination before approving export.
SKILL.md:112Shell Command Injection Through Unsanitized Filenames and Book Metadata
The skill instructs the agent to execute a shell script after writing the file, even though shell execution is not inherently necessary to identify and catalog a book. Invoking arbitrary local scripts increases the attack surface substantially because the script may perform unexpected filesystem, network, or command actions beyond markdown formatting.
The trigger phrases are broad enough to match ordinary language such as 'log book' or 'add to library,' which can cause the skill to activate unexpectedly. Because the skill performs multi-step actions including file operations and web access, accidental invocation makes the overbroad triggering more dangerous in context.
The workflow includes web searches, duplicate checks, file creation, photo copying, and later external vault push behavior without a clear up-front user warning before these actions occur. Even if some actions are functionally related to cataloging, performing them without prominent consent can surprise users and lead to unintended data modification or disclosure.
The skill’s stated purpose is cataloging books, but it also specifies pushing resulting data into an external vault location. That expands the trust boundary from local note creation to external data transfer, which can expose user data or workspace contents beyond what a user reasonably expects from a cataloging skill.
No suspicious patterns detected.