Description-Behavior Mismatch
- Category
- MCP Tool Poisoning
- Confidence
- 99% confidence
- Finding
声明用途是世界遗产信息咨询,而代码执行的是腾讯新闻 CLI 的凭据清除操作。这会修改无关工具的认证配置,不属于所声明功能的合理支持性实现,构成能力不匹配。
- Content
Security audit
Security checks for vulnerabilities and agentic risk
ClawScan marks this skill suspicious because its heritage-information purpose is paired with an unverified remote CLI installer and several unrelated CLI and credential operations; some script analysis was incomplete.
Consider avoiding installation until the unrelated CLI and credential-related operations are explained and the remote installer is independently verified. The scan is incomplete for two scripts, so this verdict does not establish that the artifact is safe or malicious.
声明用途是世界遗产信息咨询,而代码执行的是腾讯新闻 CLI 的凭据清除操作。这会修改无关工具的认证配置,不属于所声明功能的合理支持性实现,构成能力不匹配。
声明用途是世界遗产信息咨询,而代码执行的是远程脚本下载与执行操作,并非查询或解析遗产信息。该操作构成未声明且与用途不符的能力;无需推断远程脚本的具体行为即可判定存在不匹配。
声明描述的是世界遗产信息咨询,而代码执行的是远程脚本下载与运行,且路径表明其与腾讯新闻 CLI 安装有关。所提供内容没有体现该安装行为与遗产咨询功能的必要联系,因此构成未声明能力及资源用途不一致。无法仅凭此命令判断远程脚本是否存在其他行为或恶意功能。
The declared heritage-information purpose does not establish a need to inspect private shell startup files for an API-key variable. Although this command only reveals matching filenames—not credential values—and performs no exfiltration, its credential-location behavior accesses resources inconsistent with the declared purpose.
The supplied code performs local CLI and credential diagnostics, not heritage research or advice. Although a news tool could conceivably support recent heritage updates, this chunk contains no heritage-related retrieval or processing, and the description does not establish a dependency requiring installation inspection or API-key access. The script normally reports only key presence, not the key itself; there is no explicit credential exfiltration shown. Behavior inside the sourced cli-runtime.sh and the invoked CLI cannot be determined from this chunk.
声明描述的是世界遗产信息咨询,而所给代码执行的是 API 密钥获取,并非遗产资料或新闻查询。即便新闻服务可能用于获取最新动态,凭据获取仍是此代码中独立且未声明的行为。代码未显示密钥外传或其他后续用途,不应进一步推断。
The declared purpose covers World Heritage assistance, including relevant news, but the supplied command performs a generic CLI update operation without any visible heritage-related scope. Nothing in the chunk establishes that this is a supporting step for the declared service. The command's exact effects cannot be confirmed without the CLI implementation.
Referenced artifact was not completely inspected
| Windows | `powershell scripts/<name>.ps1` | `powershell scripts/cli-state.ps1 status` |
Referenced artifact was not completely inspected
| macOS / Linux | `sh scripts/run-cli.sh <command> [args]` |
Referenced artifact was not completely inspected
1. 每个会话首次查询前执行 `sh scripts/run-cli.sh help wiyun`,确认参数名、必填项与输出格式;确认后不再重复读帮助。
Referenced artifact was not completely inspected
sh scripts/run-cli.sh wiyun --query "<用户问题或改写后的检索问句>"
Both installation commands stream mutable remote content directly into an interpreter without authenticating the installer itself. HTTPS protects transport but does not prevent a compromised publisher or distribution endpoint from supplying code that executes with the agent's privileges.
保持同一运行账号、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 installation command executes an externally fetched script before verifying the script's integrity or authenticity. The statement that the installer verifies the CLI does not authenticate the installer itself, leaving a supply-chain path to execution 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 unverified network response directly to shell execution, removing an opportunity to inspect or authenticate the downloaded code. This is the same underlying remote-installer issue as the SC2 finding, not evidence of an additional malicious command chain.
打开终端,执行以下命令:
curl -fsSL https://mat1.gtimg.com/qqcdn/qqnews/cli/hub/tencent-news/setup.sh | sh
脚本会自动完成:识别系统和架构 → 下载 CLI → 验证 → 配置环境变量 → 检测 API Key 状态。
The command pipes a mutable remote response directly into a shell without verifying the script's integrity or authenticity beyond HTTPS. If the distribution endpoint or publishing infrastructure is compromised, an attacker could execute arbitrary commands with the invoking user's permissions, including reading credentials or modifying files; the installation context explains the operation but does not eliminate this supply-chain risk.
macOS / Linux:
curl -fsSL https://mat1.gtimg.com/qqcdn/qqnews/cli/hub/tencent-news/setup.sh | sh
Windows:
Tool calls are chained to bypass individual safety checks or escalate capabilities beyond what any single tool call would allow.
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 forwards the user's natural-language question to an external backend without requiring a user-facing disclosure or sanitization before transmission. Heritage questions are usually public information, but a question can still include personal travel details, confidential material, or accidentally pasted credentials.
A missing dependency triggers immediate execution of a remote installer without a separate approval step or explanation of local system changes. This expands an informational heritage request into code execution with the agent account's privileges, potentially affecting files and credentials accessible to that account.
The troubleshooting instructions recommend overriding macOS and Windows execution warnings without first establishing the downloaded binary's authenticity. Users could therefore bypass a meaningful protection for a tampered or malicious executable merely to enable an informational skill.
The fallback instructions immediately execute remote scripts on both supported platforms without explaining that they can change the system with the current user's permissions. Although this is a manual installation guide rather than an automatic execution instruction, it encourages users or agents to cross a code-execution trust boundary without review or integrity verification.
A nominal status check silently adds executable permissions to a discovered file and then invokes it, including candidates from configurable or legacy local paths. This can undo an intentionally non-executable state and enable execution of an unverified candidate, although exploitation requires control over or unsafe content at a selected path.