Description-Behavior Mismatch
- Category
- MCP Tool Poisoning
- Confidence
- 99% confidence
- Finding
代码没有调用声明中的 hotspot 命令,而是执行凭据清除操作。虽然使用了同一 CLI,但清除 API 密钥会改变认证配置,并非所声明新闻汇总功能的普通支持性实现细节,因此构成用途与行为不匹配。
- Content
Security audit
Security checks for vulnerabilities and agentic risk
ClawScan rates this skill suspicious because its news-summary purpose is paired with unverified remote installer commands and a reported action that clears the CLI API key; some script analysis was incomplete.
Treat this as a review warning and weigh whether the news feature is worth the installation risk. Before installing, seek assurance that installer and update scripts are authenticated before execution, that software changes require your approval, and that the API-key-clearing behavior is removed or explicitly justified. The scan was partial: 14 of 16 components were fully inspected, and two shell scripts had limited analysis, so the remaining behavior is not fully assessed.
代码没有调用声明中的 hotspot 命令,而是执行凭据清除操作。虽然使用了同一 CLI,但清除 API 密钥会改变认证配置,并非所声明新闻汇总功能的普通支持性实现细节,因此构成用途与行为不匹配。
Referenced artifact was not completely inspected
1. 执行 `sh scripts/run-cli.sh help`,在命令列表中查找 `hotspot`。
Referenced artifact was not completely inspected
2. 没有 `hotspot` 时执行 `sh scripts/run-cli.sh update --force`(普通 `update` 只比较版本号,同版本不会替换旧构建),再执行 `help` 复查一次;仍没有则返回「能力缺失结果」。
Referenced artifact was not completely inspected
3. 有 `hotspot` 时用 `sh scripts/run-cli.sh hotspot --help` 和 `sh scripts/run-cli.sh hotspot premium --help` 读取实际参数;参数与本文不一致时以实际 help 为准,并在回复中说明差异。
Referenced artifact was not completely inspected
sh scripts/run-cli.sh hotspot channels # 频道与 pool_tag_id
Referenced artifact was not completely inspected
sh scripts/run-cli.sh hotspot premium --channel 科技 --limit 20 --format json
Referenced artifact was not completely inspected
sh scripts/run-cli.sh hotspot premium 体育 --today --limit 10
Both installation commands feed mutable network content directly into an interpreter without authenticating the installer before execution. HTTPS and a plausible vendor CDN reduce some risks but do not protect against compromised hosting or publishing credentials; substituted code would run with the agent account's access.
保持同一运行账号、PATH、HOME、安装目录、shell 和凭证上下文;新建目录、解压或切换源码不代表环境失效。已有本会话的有效状态可复用,发生鉴权错误或环境变化后重新检查。
1. **检查状态**:执行上表对应平台的状态命令。包装脚本缺失、执行失败或 JSON 无法解析时先核实完整包和脚本解释器,不能直接判为 CLI 未安装。
2. **缺少 CLI**:仅状态脚本确认 `cliExists: false` 时安装。`command not found` 可能只是 PATH 未命中;脚本还会检查固定安装目录。macOS / Linux:`curl -fsSL https://mat1.gtimg.com/qqcdn/qqnews/cli/hub/tencent-news/setup.sh | sh`;Windows:`irm https://mat1.gtimg.com/qqcdn/qqnews/cli/hub/tencent-news/setup.ps1 | iex`。安装后在当前对话复查,无需让用户重开终端、重新提问;失败时提供 [安装指南](installation-guide.md),不循环重装。
3. **需要更新**:`update.needUpdate: true`、CLI 明确提示版本过旧或当前帮助不支持所需能力时,按 [更新指南](update-guide.md) 更新并重新读帮助。测试环境先核实 `run-cli version` 的下载渠道;若指向 `/hub/`,不要执行会切回正式构建的更新,使用已核实的测试构建及同渠道校验文件。不能仅凭安装脚本位于 `/test/` 或版本号相同就认定构建正确;来源不明时说明缺口,不猜下载地址。
4. **Key 缺失先核实**:`apiKey.status: missing` 不等于用户从未配置。macOS / Linux 可执行以下命令,只列出配置文件名,不读取或记录 Key 值:
The documented installation commands immediately execute scripts fetched from a mutable CDN location. The recorded checksum for a particular test binary does not authenticate these bootstrap scripts, so installer substitution could execute arbitrary code with the invoking account's privileges.
## 2. 安装与版本
- 分发给用户的安装命令(formal / hub 渠道):
- macOS / Linux:`curl -fsSL https://mat1.gtimg.com/qqcdn/qqnews/cli/hub/tencent-news/setup.sh | sh`
- Windows PowerShell:`irm https://mat1.gtimg.com/qqcdn/qqnews/cli/hub/tencent-news/setup.ps1 | iex`
- 版本核实:`sh scripts/run-cli.sh version` 读取 `current_version`、`build_date`、`need_update`。
- **支持 `hotspot` 的构建**:test 渠道 `v1.0.18`,`build_date: 2026-10-20T17:40:37`,linux-amd64 二进制 SHA-256 `e635820dcb63bb05b6867de13b2d6f740aa50573d831217c5e2b65dcc20f42c9`(与 `test/checksums.txt` 一致,文件 `Last-Modified: Tue, 20 Oct 2026 09:42:33 GMT`)。
The guide directs users to execute a remotely fetched script before verifying its authenticity. Its claim that the script performs verification does not authenticate the script itself, so a compromised installer could access credentials and modify startup files under the user's account.
打开终端,执行以下命令:
curl -fsSL https://mat1.gtimg.com/qqcdn/qqnews/cli/hub/tencent-news/setup.sh | sh
脚本会自动完成:识别系统和架构 → 下载 CLI → 验证 → 配置环境变量 → 检测 API Key 状态。
The pipe connects an external download directly to a shell, allowing fetched content to become executable code without a verification checkpoint. This is the same underlying unsafe bootstrap issue as the external-script finding, not evidence of a separate malicious command chain.
打开终端,执行以下命令:
curl -fsSL https://mat1.gtimg.com/qqcdn/qqnews/cli/hub/tencent-news/setup.sh | sh
脚本会自动完成:识别系统和架构 → 下载 CLI → 验证 → 配置环境变量 → 检测 API Key 状态。
The fallback fetches an unpinned script and immediately executes it, with an equivalent download-and-execute pattern on Windows. A compromised distribution endpoint could supply arbitrary code that inherits the user's filesystem and credential access.
macOS / Linux:
curl -fsSL https://mat1.gtimg.com/qqcdn/qqnews/cli/hub/tencent-news/setup.sh | sh
Windows:
The download-to-shell pipeline removes the opportunity to authenticate the installer before any of it executes. This overlaps the external-script vulnerability and is a supply-chain exposure rather than proof of intentionally abusive chaining.
macOS / Linux:
curl -fsSL https://mat1.gtimg.com/qqcdn/qqnews/cli/hub/tencent-news/setup.sh | sh
Windows:
Without declared permissions the skill's intent is opaque and cannot be validated.
The workflow directs a forced software update when a capability is missing, without first obtaining approval to replace the installed CLI. A news-summary request can consequently change shared executable state and disrupt other workflows; the supplied source does not establish that the updater itself is malicious.
A missing dependency automatically leads to executing a remotely downloaded installer, although the user's requested action is only news retrieval. This crosses from querying content into running code and changing the environment without informed approval, exposing the account to a compromised installer.
Failure recovery instructs a forced update without an approval step, allowing a read-oriented news workflow to replace installed software. The statement that operations do not modify user configuration also understates the broader workflow's installation and update effects.
The troubleshooting instructions recommend overriding macOS and Windows execution warnings without first verifying the publisher or artifact. This encourages users to bypass protections precisely when an untrusted or substituted download may be present.
Although this is a manual update guide, its fallback silently changes the trust model from invoking an installed updater to executing newly downloaded code. No pre-execution authentication or warning is provided, leaving users exposed if the installer distribution is compromised.
Line 51 requires every publication timestamp to be converted to Beijing time. This imposes a fixed timezone regardless of the user's locale, without offering a choice or explaining why that timezone is required.
The status operation adds executable permissions to the discovered CLI and then runs it, rather than reporting a non-executable installation. This can undo an intentional permission restriction and enables execution of an unverified file at a searched location, although exploitation requires influence over that file or location and does not inherently elevate privileges.