xiaohongshu-inspiration

Warn

Audited by Socket on Sep 11, 2026

3 alerts found:

Anomalyx3
AnomalyLOW
scripts/fetch_explosive_articles.py

The code primarily implements a ranking-data client and report generator. It contains no evident malware, backdoor, credential exfiltration to an unrelated destination, command execution, persistence, or destructive behavior. It does expose the REDFOX_API_KEY to the intended hardcoded service and reads local shell profiles to locate that key. TLS verification is disabled, and unescaped API data can create HTML injection/XSS risks in generated files. These are significant security weaknesses requiring remediation, but the fragment does not demonstrate malicious intent.

Confidence: 98%Severity: 68%
AnomalyLOW
scripts/gen_xhs_html.py

The code appears to be a legitimate API client and HTML report generator, with no clear malware behavior. It intentionally reads a specifically named API key from the environment or shell configuration and sends it to the fixed Redfox service. The significant security issue is insufficient output encoding: attacker-controlled API or cache content can be inserted into HTML, JavaScript, and URL attributes, potentially causing XSS or unsafe navigation when the generated report is opened. Use context-appropriate HTML escaping, safe JSON embedding, DOM textContent/createElement APIs, and restrict URLs to approved HTTPS schemes and origins.

Confidence: 97%Severity: 62%
AnomalyLOW
scripts/xiaohongshu-similar-account.py

未发现明确的恶意载荷、后门、数据窃取扩展行为或系统破坏行为。主要安全问题是禁用 TLS 证书验证导致 API 密钥可能被中间人窃取,以及未转义外部 API 数据而生成 HTML 导致潜在存储型 XSS。应恢复默认 TLS 验证,对 HTML 文本和属性进行严格转义并校验 URL;同时确认使用者确实授权将 REDFOX_API_KEY 发送至 redfox.hk。代码还存在疑似不完整的 HTML 模板和未定义变量,可能导致运行失败。

Confidence: 98%Severity: 67%
Audit Metadata
Analyzed At
Sep 11, 2026, 04:52 AM
Package URL
pkg:socket/skills-sh/redfox-data%2Fredfox-community%2Fxiaohongshu-inspiration%2F@ab925e79a65ec57f0d1b1d84de096da25a3eae7cab0f1be02b176985e3ae8a78
Security Audit — socket — xiaohongshu-inspiration