xhs-skill-pusher
This is a Xiaohongshu content publishing skill that stores cookies locally and uses xhs-kit for automation. While not overtly malicious, it has significant doc-to-code mismatch on shell execution and undeclared behavior.
Why this conclusion was reached
1/4 dimensions flagged3 undeclared or violating capabilities were inferred.
1 lower-risk artifacts were extracted and still need context.
There is no explicit malicious chain in the report.
4 dependency or supply-chain issues need attention.
What drove the risk score up
SKILL.md declares NONE for all resources but bin/xhs-pusher.mjs uses execSync for shell commands
pip install xhs-kit without version pin; could pull malicious updates
package.json uses ^ ranges (e.g., commander@^11.1.0) without hash verification
init command references ~/.openclaw/workspace/ for script copying without declaration
Most important evidence
Shell execution not declared in SKILL.md
SKILL.md declares all resources as NONE, but bin/xhs-pusher.mjs uses execSync() to execute shell commands (lines 24, 55, 69, 78, 90, 103, 115). Bash scripts also use subprocess.
bin/xhs-pusher.mjs:24 xhs-kit installed without version pinning
SKILL.md and scripts use 'pip install xhs-kit' without version constraints. An attacker compromising the PyPI package could push malicious updates.
SKILL.md:50 ~/.openclaw/workspace reference without disclosure
The init command references copying scripts from ~/.openclaw/workspace/ but this cross-skill integration is not documented. Could access or execute code from the parent workspace.
bin/xhs-pusher.mjs:162 NPM dependencies use unpinned version ranges
package.json uses caret ranges (^11.1.0, ^5.3.0) for all dependencies. No integrity hashes in package-lock.json.
package.json:18 Cookie storage without encryption or secure handling
Authentication cookies are saved as plaintext JSON files in xhs_cookies/. No mention of encryption-at-rest or secure deletion.
scripts/xhs_save_cookie.sh:88 Declared capability vs actual capability
bin/xhs-pusher.mjs:24 execSync scripts/xhs_save_cookie.sh:90 mkdir + file write xhs-kit makes API calls to xiaohongshu.com xhs-kit may read env vars for auth Suspicious artifacts and egress
Dependencies and supply chain
| Package | Version | Source | Known vuln | Notes |
|---|---|---|---|---|
| xhs-kit | * | pip | No | Not pinned - could be replaced with malicious version |
| playwright | * | pip | No | Not pinned |
| commander | ^11.1.0 | npm | No | Caret range without lock file hash |
| chalk | ^5.3.0 | npm | No | Caret range without lock file hash |
File composition
bin/xhs-pusher.mjs SKILL.md scripts/xhs_save_cookie.sh PUSH_GUIDE.md package.json