T09 · Insecure Skill Coding Practices
- Location
src/utils/request.js:76- Finding
API Credential Exposed in URL Query Strings
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill mostly does what it claims, but it should be reviewed because it sends credentials in URL query strings and automatically saves collected data to local logs.
Install only if you are comfortable sending Xiaohongshu keywords or URLs and your GUAIKEI API token to guaikei.com. Use a dedicated, revocable token, avoid submitting sensitive links, and regularly review or delete the generated logs/ files because they may contain collected comments, profile data, and token-bearing Xiaohongshu URLs.
src/utils/request.js:76API Credential Exposed in URL Query Strings
src/utils/log.js:5Automatic Plaintext Persistence of Retrieved Data and Token-Bearing URLs
声明描述的是一个面向小红书的数据采集技能,核心能力应包括访问小红书资源、抓取内容并整理成结构化数据。但提供的代码片段仅实现了通用 CLI 参数解析和帮助文本生成,属于辅助基础设施代码,与抓取小红书数据的主要功能明显不一致。按照评估标准,虽然参数解析可作为支持性实现细节存在,但当前代码片段本身没有体现任何与声明核心能力相关的行为,因此应判定为描述与行为不匹配。
Referenced artifact was not completely inspected
- "分析这条小红书笔记评论区的主要观点和负面反馈: node src/xiaohongshu/detail-cli.js --url 'https://www.xiaohongshu.com/explore/xxx?xsec_token=yyy' --limit 100"
Referenced artifact was not completely inspected
- "分析这条小红书笔记评论区的主要观点和负面反馈: node src/xiaohongshu/detail-cli.js --url 'https://www.xiaohongshu.com/explore/xxx?xsec_token=yyy' --limit 100"
Referenced artifact was not completely inspected
- "分析这条小红书笔记评论区的主要观点和负面反馈: node src/xiaohongshu/detail-cli.js --url 'https://www.xiaohongshu.com/explore/xxx?xsec_token=yyy' --limit 100"
Referenced artifact was not completely inspected
- "分析这条小红书笔记评论区的主要观点和负面反馈: node src/xiaohongshu/detail-cli.js --url 'https://www.xiaohongshu.com/explore/xxx?xsec_token=yyy' --limit 100"
Referenced artifact was not completely inspected
- "分析这条小红书笔记评论区的主要观点和负面反馈: node src/xiaohongshu/detail-cli.js --url 'https://www.xiaohongshu.com/explore/xxx?xsec_token=yyy' --limit 100"
Referenced artifact was not completely inspected
- "分析这条小红书笔记评论区的主要观点和负面反馈: node src/xiaohongshu/detail-cli.js --url 'https://www.xiaohongshu.com/explore/xxx?xsec_token=yyy' --limit 100"
Referenced artifact was not completely inspected
- "看这个小红书博主最近 20 条作品都在发什么: node src/xiaohongshu/post-cli.js --url 'https://www.xiaohongshu.com/user/profile/xxx?xsec_token=yyy' --limit 20"
Referenced artifact was not completely inspected
- "看这个小红书博主最近 20 条作品都在发什么: node src/xiaohongshu/post-cli.js --url 'https://www.xiaohongshu.com/user/profile/xxx?xsec_token=yyy' --limit 20"
Referenced artifact was not completely inspected
- "看这个小红书博主最近 20 条作品都在发什么: node src/xiaohongshu/post-cli.js --url 'https://www.xiaohongshu.com/user/profile/xxx?xsec_token=yyy' --limit 20"
Referenced artifact was not completely inspected
- "看这个小红书博主最近 20 条作品都在发什么: node src/xiaohongshu/post-cli.js --url 'https://www.xiaohongshu.com/user/profile/xxx?xsec_token=yyy' --limit 20"
Referenced artifact was not completely inspected
- "看这个小红书博主最近 20 条作品都在发什么: node src/xiaohongshu/post-cli.js --url 'https://www.xiaohongshu.com/user/profile/xxx?xsec_token=yyy' --limit 20"
Referenced artifact was not completely inspected
- "只拉这条笔记的评论做观点归纳: node src/xiaohongshu/comment-cli.js --url 'https://www.xiaohongshu.com/explore/xxx?xsec_token=yyy' --limit 100"
Referenced artifact was not completely inspected
- "只拉这条笔记的评论做观点归纳: node src/xiaohongshu/comment-cli.js --url 'https://www.xiaohongshu.com/explore/xxx?xsec_token=yyy' --limit 100"
Referenced artifact was not completely inspected
- "只拉这条笔记的评论做观点归纳: node src/xiaohongshu/comment-cli.js --url 'https://www.xiaohongshu.com/explore/xxx?xsec_token=yyy' --limit 100"
Referenced artifact was not completely inspected
- "只拉这条笔记的评论做观点归纳: node src/xiaohongshu/comment-cli.js --url 'https://www.xiaohongshu.com/explore/xxx?xsec_token=yyy' --limit 100"
Referenced artifact was not completely inspected
- "只拉这条笔记的评论做观点归纳: node src/xiaohongshu/comment-cli.js --url 'https://www.xiaohongshu.com/explore/xxx?xsec_token=yyy' --limit 100"
Referenced artifact was not completely inspected
- "只拉这条笔记的评论做观点归纳: node src/xiaohongshu/comment-cli.js --url 'https://www.xiaohongshu.com/explore/xxx?xsec_token=yyy' --limit 100"
The skill declares access to an environment secret (GUAIKEI_API_TOKEN) but does not define any explicit tool scope such as allowed tools or permissions boundaries. In an agent setting, missing scope constraints increases the chance the skill can be invoked in broader contexts than intended and may expose or misuse the token through downstream command execution or logging.
The skill explicitly states it should be used even when the user did not say '采集' or '抓取', as long as the task involves getting Xiaohongshu content. That broad trigger logic can cause over-collection and unnecessary third-party data transfer without sufficiently explicit user intent, which is risky for privacy, consent, and least-surprise expectations in agent workflows.
L42 明确写到“新增小红书笔记详情与评论情绪分析功能”,这超出了 manifest 中“关键词搜索、笔记详情、笔记评论、博主作品抓取为结构化数据”的采集型定位。情绪分析属于对已获取数据的分析处理能力,而不是单纯把小红书内容取回,因此与当前技能对外宣称的用途存在语义范围不一致。
This markdown file instructs users to retrieve public note details, comments, and creator content for analysis, which can affect privacy expectations and involve processing third-party user data. While it explains inputs and usage, it does not include a clear warning or disclosure about handling public social-media data responsibly or the privacy implications of collecting comments at scale.
The function sends a user-supplied note URL and an API token to a remote API via postJson, which is a privacy- and credential-relevant operation. While the JSDoc describes parameters, it does not warn the user that their data and token will be transmitted off-process, and there is no confirmation or user-facing disclosure in the code.
This function performs a network call with the API token, URL, and limit to retrieve comment task data from a remote endpoint. The code lacks any explicit warning, confirmation, or user-visible notice that these values are being sent to an external service.
This code emits hard-coded Chinese user-facing error messages and success text, which imposes a specific language on users. The file provides no indication that Chinese is optional, user-selected, or justified by a documented region-specific constraint, so it conflicts with the language/locale policy criteria.