T09 · Insecure Skill Coding Practices
- Location
SKILL.md:20- Finding
Shell Command Injection Through Unsafe Dynamic sed Substitution
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill does what it advertises, but it tells agents to render and send Gmail HTML emails using unsafe shell substitutions without clear confirmation or escaping controls.
Review before installing if you plan to send real email. Only use it with explicit user-approved recipients and content, preview the final HTML before sending, avoid untrusted template values, and prefer a renderer that escapes HTML and passes arguments safely instead of interpolating values into sed commands.
SKILL.md:20Shell Command Injection Through Unsafe Dynamic sed Substitution
templates/button.html:1Unescaped HTML and URL Placeholder Injection in Email Templates
Hi [NAME],
[MESSAGE]
Best regards,
[SIGNATURE]
The skill explicitly instructs the agent to send emails through gog gmail send, which causes external transmission of potentially user-provided content. The dangerous part is not code execution but the lack of an explicit warning, confirmation step, or boundary around sending data off-system, which can lead to unintended disclosure, spam, or social-engineering abuse if an agent follows the workflow automatically.
This HTML template contains fixed natural-language content such as "Eid Mubarak," "Taqabbal Allahu minna wa minkum," and "May Allah bless you," which imposes a specific religious/locale framing in the generated output. Under the policy rule for natural-language violations, forcing a specific language or cultural/religious expression without opt-in can be problematic when no user choice is indicated.
No suspicious patterns detected.