T09 · Insecure Skill Coding Practices
- Location
send_wechat.py:91- Finding
User-Controlled Keystroke Sequence Injection
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This skill does what it says, but it can automatically send WeChat messages from a logged-in account with weak recipient and window verification.
Review carefully before installing. Use only for contacts and messages you are willing to verify manually, avoid batch sending, and do not run it with sensitive message text unless the recipient and WeChat window are visibly confirmed first. Prefer a version with exact recipient matching, preview/confirmation, escaped literal text input, and pinned dependencies.
send_wechat.py:91User-Controlled Keystroke Sequence Injection
send_wechat.py:13Unverified Process and Spoofable Window Targeting
send_wechat.py:94Message Sent to First Search Result Without Recipient Verification
SKILL.md:16Unpinned Third-Party Dependency Installation
Batch sending automates repeated message dispatch to multiple contacts without any interactive confirmation, recipient validation, rate limiting, or stop-on-error safety. In the context of a desktop UI automation tool for a personal messaging app, this materially increases the risk of spam, mass misdelivery, privacy breaches, and account sanctions if the wrong window or contact is targeted.
The documentation promotes automated WeChat sending, including multi-recipient messaging, but does not prominently warn about misdelivery, accidental bulk sends, account restrictions, or the need for explicit recipient confirmation before transmission. In a UI-automation context, small targeting errors can send unintended messages to the wrong contact or many contacts at once, creating privacy, social-engineering, and spam risk.
The docstring at L045 says this function will send one message to a single contact, but the implementation never accepts or sends the actual message text. At L070 it types a hardcoded 'test message' or an empty string and returns before pressing Enter, which contradicts the documented intent of sending a real message.
The script sends a WeChat message immediately after selecting the first search result, with no confirmation, recipient verification, or dry-run mode. Because it drives the UI by focus and keystroke injection, any search mismatch, focus loss, or operator mistake can cause irreversible delivery to the wrong recipient.