T09 · Insecure Skill Coding Practices
- Location
SKILL.md:34- Finding
Command and AppleScript Injection Through Unsanitized Placeholder Substitution
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This skill is meant to send WeChat messages, but it can send immediately to an unverified recipient and builds unsafe automation commands from user-provided text.
Install only if you are comfortable with an agent controlling the WeChat Mac UI and sending messages through your logged-in account. Before use, the skill should add a visible confirmation step showing the resolved contact and exact message, require exact recipient verification, avoid partial-name top-result selection, and pass message/contact text as data rather than interpolating it into shell or AppleScript source.
SKILL.md:34Command and AppleScript Injection Through Unsanitized Placeholder Substitution
SKILL.md:40Messages Can Be Sent to an Unverified or Incorrect Recipient
The skill automates WeChat by selecting the top search result, typing message content, and pressing Enter to send immediately, but it does not clearly warn that it will transmit a real message without human review. This is especially dangerous because the workflow relies on fragile coordinates and implicit focus assumptions, so mis-selection of the contact or mistyped content can directly cause unintended outbound communication.
The trigger phrases are broad, everyday expressions such as '发微信' and '给 XXX 发微信', which can plausibly appear in normal conversation and cause unintended activation. Because this skill performs direct UI automation to send a real message without an explicit confirmation step, accidental triggering can lead to messages being sent to the wrong person or at the wrong time.
No suspicious patterns detected.