oathe / scan / reports / caution
Is chocomintx/xiaohongshutools safe?
Use with caution. chocomintx/xiaohongshutools is not clearly unsafe, but the audit flagged risks to review before you install it. Oathe's behavioral security audit gave the xiaohongshutools skill by chocomintx a trust score of 76/100 with 9 findings (2 high).
https://github.com/openclaw/skills/tree/main/skills/chocomintx/xiaohongshutools
Is chocomintx/xiaohongshutools safe to install?
This skill is a reverse-engineered XiaoHongShu (Little Red Book) API client that bypasses the platform's anti-bot protections to enable automated scraping and social manipulation (following, liking, commenting, view inflation). No malicious code, data exfiltration, or prompt injection was detected — the skill does what it claims. However, its ToS-violating nature, sensitive credential handling, and social manipulation capabilities pose significant ethical and legal risks to users.
What security issues were found in chocomintx/xiaohongshutools?
Category Scores
Findings (9)
HIGH ToS-violating automation toolkit with social manipulation capabilities -60 ▶
This skill is a complete reverse-engineered API client for XiaoHongShu that bypasses all anti-bot protections. It includes functions for automated following, liking, commenting, and view count inflation (add_note_readnum). When injected into an LLM agent's context, the agent could autonomously perform mass social manipulation without the user fully understanding the implications.
Evidence: APIs: follow_user(), like_note(), create_comment(), reply_comment(), add_note_readnum() — all bypass XHS anti-bot encryption via reverse-engineered x-s, x-s-common, websectiga signatures
HIGH Substantial reverse-engineered cryptographic codebase -25 ▶
The skill contains ~28 Python files implementing reverse-engineered versions of XiaoHongShu's proprietary encryption algorithms including DES (for GID generation), ARC4/RC4 (for fingerprint encryption), custom Base64 encoding, and multi-layered signature generation. While no malicious patterns were found, the complexity makes full audit difficult and the code quality (e.g., directory named 'fuck_reverse_crypto') suggests informal development practices.
Evidence: Files: encrypt/cookie/websectiga.py, encrypt/cookie/gid_webprofile_data.py (DES), encrypt/header/X_S_Common.py (ARC4), encrypt/xhs_diy_encode.py (custom Base64), units/fuck_reverse_crypto/*.py
MEDIUM Sensitive credential handling in authentication flow -20 ▶
The skill asks users to provide web_session cookies (XHS authentication tokens) and includes a send_code function that accepts phone numbers for SMS verification. When used through an LLM agent, there is risk that the agent may handle these credentials carelessly (e.g., logging them, including them in responses to the user, or persisting them in conversation context).
Evidence: create_xhs_session(web_session='030037afxxxxxxxxxxxxxxxxxxxaeb59d5b4'), auth.send_code(phone='...', zone='86')
MEDIUM View count inflation function (add_note_readnum) -15 ▶
The note.add_note_readnum() function artificially inflates note view counts by simulating enter/exit metrics with randomized stay times. This is explicitly designed to manipulate platform metrics and could be used at scale through agent automation.
Evidence: note.py: add_note_readnum() calls enter_metrics_report + exit_metrics_report with random stay_seconds between 3-15s, randomly skipping exit report 50% of time to appear organic
MEDIUM Third-party dependency installation -10 ▶
The skill requires pip install of aiohttp, loguru, pycryptodome, and getuseragent. While these are legitimate PyPI packages, the getuseragent package is used specifically for user-agent spoofing to evade bot detection, reinforcing the ToS-circumvention nature of this tool.
Evidence: SKILL.md: 'pip install aiohttp loguru pycryptodome getuseragent'; xhs_session.py: ua = UserAgent('chrome+edge+firefox'); initial_headers['User-Agent'] = ua.Random()
LOW Hardcoded author-specific path in example code -3 ▶
The SKILL.md contains a hardcoded Windows path specific to the skill author's machine. While not a security threat, it indicates the skill was not properly generalized for distribution and could cause confusion if an LLM agent tries to use it literally.
Evidence: sys.path.insert(0, r'C:\\Users\\Chocomint\\.openclaw\\workspace\\xiaohongshu\\scripts')
LOW User-configurable proxy could redirect traffic -5 ▶
The proxy parameter accepts arbitrary HTTP and SOCKS5 proxy URLs. While this is user-configurable and not auto-set, a social engineering attack could trick users into routing XHS traffic through a malicious proxy to intercept credentials.
Evidence: create_xhs_session(proxy='http://127.0.0.1:7890') — supports HTTP and SOCKS5 via aiohttp_socks
INFO Clean installation with no suspicious activity -5 ▶
The git clone and dependency installation produced only expected network connections (GitHub, Ubuntu mirrors, PyPI) and no filesystem changes outside standard paths. No connections to XiaoHongShu servers during installation.
Evidence: Unique destination IPs: 140.82.112.4 (GitHub), 185.125.190.17 (Ubuntu), 104.16.3.34 (Cloudflare/PyPI), 3.209.150.151 (AWS/PyPI)
INFO All honeypot files intact 0 ▶
No canary files were accessed or modified during installation or inspection, indicating no credential harvesting behavior.
Evidence: Monitoring report: 'All canary files intact (no exfiltration detected via honeypots)'
Should I install chocomintx/xiaohongshutools?
Oathe's verdict for chocomintx/xiaohongshutools is CAUTION with a trust score of 76/100. Recommendation: Install with caution.