T09 · Insecure Skill Coding Practices
- Location
scripts/publish_xhs.js:48- Finding
Authentication Cookies Are Persisted in Plaintext Without Restrictive Permissions
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This skill is a disclosed Xiaohongshu publishing automation workflow, but it uses persistent account sessions, anti-detection browser settings, excessive browser permissions, and scheduled automation in ways users should review carefully.
Review before installing if you are comfortable with local browser automation using your Xiaohongshu account. Treat the .auth directory as a secret, do not commit or sync it, and prefer a dedicated low-privilege workspace/profile. The publisher should remove anti-detection flags, unnecessary clipboard permissions, and no-sandbox settings, and should store cookies with owner-only permissions or avoid raw cookie persistence.
scripts/publish_xhs.js:48Authentication Cookies Are Persisted in Plaintext Without Restrictive Permissions
scripts/render_slides.js:13Untrusted HTML Is Rendered With JavaScript Enabled in an Unsandboxed Browser
scripts/publish_xhs.js:81Publishing Browser Uses Excessive Persistent Permissions and Disables Security Isolation
A second description/behavior mismatch exists in the English-facing description: it presents a full content-production and publishing pipeline while the actual behavior appears narrower and different. Even when not directly exploitable as code execution, this is security-relevant because users may grant trust and permissions to a workflow that does not transparently describe its real data handling and automation behavior.
A second description/behavior mismatch exists in the English-facing description: it presents a full content-production and publishing pipeline while the actual behavior appears narrower and different. Even when not directly exploitable as code execution, this is security-relevant because users may grant trust and permissions to a workflow that does not transparently describe its real data handling and automation behavior.
The skill explicitly instructs use of anti-detection measures such as masking automation indicators, reusing persistent profiles, and mimicking human behavior to avoid platform risk controls. This is dangerous because it enables evasion of platform safeguards, facilitates unauthorized or policy-violating automation, and can help hide abuse at scale.
The skill lacks an explicit warning that it uses browser-automation techniques intended to reduce detection by platform controls. In this context, the omission is especially dangerous because the surrounding instructions normalize stealth automation for publishing, preventing informed consent and obscuring policy and account-abuse risks.
Referenced artifact was not completely inspected
- `SKILL.md`(本文件)
The activation phrases are broad enough to match ordinary requests about Xiaohongshu setup or posting automation, which can cause the skill to trigger when the user did not clearly intend to invoke this automation workflow. Because the skill performs account-linked browser automation and scheduling, accidental invocation increases the risk of unintended collection of account details or setup of sensitive publishing actions.
The README explicitly describes persistent login state, local profile storage, and browser automation, but does not prominently warn users that these artifacts may contain reusable authentication material and account-identifying data. In a skill that automates access to a social-media account, unclear handling of cookies/profile state increases the chance of credential exposure, session theft, or unsafe copying/syncing of sensitive files.
The skill describes actions that rely on environment access and local filesystem/browser state, yet it declares no explicit tool scope or allowed-tools boundary. That increases the chance of overbroad execution, unintended access to local resources, and makes it harder for reviewers and users to understand what capabilities the skill actually needs.
The manifest description includes a long list of trigger keywords such as “自媒体”, “日更”, “作品集”, and “账号运营”, which are broad phrases users may say in many contexts unrelated to this specific Xiaohongshu automation skill. Although the file later gives example intents, it does not clearly constrain activation boundaries or provide negative trigger examples for these keywords.
The description does not prominently warn that persistent cookies and browser profile data are stored locally for repeated automated use. This is dangerous because session artifacts are sensitive credentials; if mishandled, copied, or left on disk insecurely, they can enable account takeover or unauthorized posting.
The documentation claims the final publish action remains manual, but elsewhere it optimizes the automation to be hard to distinguish from a real human. That contradiction undermines the purported safety control and signals that the manual step may be more about evading detection than meaningfully preserving user oversight.
The script persists authenticated Xiaohongshu session cookies to a predictable file under the workspace and explicitly aims for 'permanent login'. If that workspace is shared, synced, or readable by another local user/process, an attacker could reuse the cookies to hijack the account session without needing credentials or MFA.
The HTML document declares lang="zh-CN", and the surrounding template text and slide copy are written exclusively in Chinese, indicating the skill is fixed to a specific language/locale. Under the policy, locale constraints should either offer user choice or be clearly documented as justified for a region-specific use case.
All user-facing instructions, trigger phrases, and workflow descriptions are presented only in Chinese, and the README does not state that the skill is intentionally region- or language-specific or provide an opt-in language choice. Under the policy, forcing a specific language without user opt-in can be a natural-language policy concern.
No suspicious patterns detected.