T09 · Insecure Skill Coding Practices
- Location
skill.js:207- Finding
Predictable screenshot files in a shared temporary directory
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill matches its stated goal of auto-posting to Xiaohongshu, but it can publish from a logged-in account without a final confirmation and exposes the user's main Chrome session through a fixed debugging port.
Install only if you are comfortable with the skill using your logged-in Chrome session to publish real Xiaohongshu posts automatically. Before use, narrow the trigger, add a final confirmation or draft mode, use an isolated browser profile instead of the primary Chrome debugging port, verify the exact media/text files, and remove or protect diagnostic screenshots.
skill.js:207Predictable screenshot files in a shared temporary directory
skill.js:9Authenticated primary browser exposed through a fixed Chrome DevTools Protocol port
The script automatically triggers the final '发布' action on a live social media platform using an already-authenticated Chrome session, with no confirmation prompt, dry-run mode, or human approval gate. Because publishing is irreversible or difficult to fully undo once content is distributed, accidental execution, misuse by another local process, or unexpected page matching could cause unintended public posts from the user's account.
The skill explicitly automates posting content to a live external social platform, but the description does not warn the user that invoking the trigger will cause a real publication action. This creates a meaningful risk of unintended posting, reputational harm, and accidental disclosure of content if the user does not understand that the action is not a dry run or draft-only workflow.
The script forces a Chinese title string and later depends on Chinese UI text such as '标题' and '发布', indicating a fixed locale assumption. There is no opt-in or documented justification for restricting operation to a Chinese-language environment.
The script reads local files from a fixed directory and uploads the video while also sending text content from a local file to the remote platform. Although this appears to be the skill's intended function, it still creates a data exfiltration risk because local content is transmitted off-device without an explicit disclosure, consent checkpoint, or validation that the selected files are the intended ones.
The manifest explicitly advertises automatic publishing to a social-media platform but provides no warning that the skill can perform irreversible, account-impacting actions. In this context, lack of disclosure and confirmation materially increases the risk of accidental posting, reputational harm, and misuse of an authenticated browser session.
The trigger phrase "发布笔记" is generic enough to match ordinary user requests that may not specifically intend Xiaohongshu publishing. In a skill that performs account-affecting actions, broad activation increases the chance of accidental invocation and unintended posting to a live social-media account.
The requirements mention browser cookies for YouTube downloads without any warning about handling sensitive authenticated session material. Cookie use can expose account tokens or extend trust from an already logged-in browser, making compromise or misuse more dangerous if the skill accesses, stores, or forwards those credentials insecurely.
All user-facing instructions, trigger phrases, and naming are presented only in Chinese, and the usage example requires the Chinese phrase “发小红书” to activate the skill. Under the policy, forcing a specific language without opt-in can be a natural-language policy violation unless the locale constraint is explicitly justified.