Back to skill

Security audit

zhihu-for-opencode

Security checks for vulnerabilities and agentic risk

Overview

The skill is mostly coherent for Zhihu search and account data, but it asks users to paste a full API secret into chat and stores it for future CLI use.

Install only if you are comfortable granting this skill access to your Zhihu Open Platform API quota and your account-scoped public-range data. Do not paste long-lived secrets into chat unless your host provides a secure secret-entry path; prefer an out-of-band secret store or revoke and rotate the Access Secret after testing.

Vulnerability Patterns
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
Findings (101)

Credential Access

High
Category
Privilege Escalation
Confidence
95% confidence
Finding

The skill explicitly instructs the user to send an Access Secret in the conversation, which exposes a credential to the model/runtime and any associated logs, transcripts, or downstream integrations. Even if the secret is not echoed back, collecting it through chat is a dangerous credential-handling pattern and can lead to account compromise if retained or leaked.

Content

Scanner excerpt · SKILL.md (reported line 33)May include surrounding context.

md
2. `update_check.status=unavailable`:只表示本次无法确认远端版本,不得声称已是最新版;本地 CLI 可用时继续用户任务。
3. `compatible=false`:当前 CLI 低于 Skill 最低要求,先请求用户授权升级,升级完成前不调用业务命令。
4. CLI 或 Skill 存在可选更新:先完成当前任务,再简短提醒用户;只有用户同意后才更新。
5. 用户已经明确要求“安装并初始化”,或提供了明确要求完成初始化的开放平台安装 prompt:视为同时授权安装 CLI、在线验证 Access Secret,并最小读取一条本人内容作为验收;后两项会调用开放平台接口,可能消耗接口额度,无需逐项重复询问。若用户只授权安装,不执行第 9 步。
6. 获得授权后,运行对应平台的 `scripts/setup.sh` 或 `scripts/setup.ps1`,保存 stdout JSON 中的绝对 `binary_path`,再运行一次 status。
7. `auth.configured=false`:引导用户打开 <https://developer.zhihu.com/profile>,登录并手动生成 Access Secret,然后等待用户在对话中发送。
8. 收到 Access Secret 后,不在回复中复述完整内容。启动以下命令,并通过进程标准输入传入 Secret:

Credential Access

High
Category
Privilege Escalation
Confidence
95% confidence
Finding

This step normalizes chat-based credential collection by telling the agent to wait for the user to send an Access Secret in conversation. That creates unnecessary exposure of an authentication secret to the agent context and persistent records, which is especially risky because the skill later uses the secret to access personal account data.

Content

Scanner excerpt · SKILL.md (reported line 35)May include surrounding context.

  1. CLI 或 Skill 存在可选更新:先完成当前任务,再简短提醒用户;只有用户同意后才更新。
  2. 用户已经明确要求“安装并初始化”,或提供了明确要求完成初始化的开放平台安装 prompt:视为同时授权安装 CLI、在线验证 Access Secret,并最小读取一条本人内容作为验收;后两项会调用开放平台接口,可能消耗接口额度,无需逐项重复询问。若用户只授权安装,不执行第 9 步。
  3. 获得授权后,运行对应平台的 scripts/setup.sh 或 scripts/setup.ps1,保存 stdout JSON 中的绝对 binary_path,再运行一次 status。
  4. auth.configured=false:引导用户打开 https://developer.zhihu.com/profile,登录并手动生成 Access Secret,然后等待用户在对话中发送。
  5. 收到 Access Secret 后,不在回复中复述完整内容。启动以下命令,并通过进程标准输入传入 Secret:
text

Credential Access

High
Category
Privilege Escalation
Confidence
87% confidence
Finding

Although passing the secret via stdin is safer than placing it on the command line, the dangerous part is that the secret first enters the chat/session per the preceding instructions. Combined with shell execution, this creates a full credential-ingestion workflow that can expose secrets to transcripts, agent memory, or compromised tooling before secure stdin handling even occurs.

Content

Scanner excerpt · SKILL.md (reported line 36)May include surrounding context.

  1. 用户已经明确要求“安装并初始化”,或提供了明确要求完成初始化的开放平台安装 prompt:视为同时授权安装 CLI、在线验证 Access Secret,并最小读取一条本人内容作为验收;后两项会调用开放平台接口,可能消耗接口额度,无需逐项重复询问。若用户只授权安装,不执行第 9 步。
  2. 获得授权后,运行对应平台的 scripts/setup.sh 或 scripts/setup.ps1,保存 stdout JSON 中的绝对 binary_path,再运行一次 status。
  3. auth.configured=false:引导用户打开 https://developer.zhihu.com/profile,登录并手动生成 Access Secret,然后等待用户在对话中发送。
  4. 收到 Access Secret 后,不在回复中复述完整内容。启动以下命令,并通过进程标准输入传入 Secret:
text
<binary_path> auth set --secret-stdin

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 53)May include surrounding context.

md
面凭据使用 Secret Service,headless 使用进程级 `ZHIHU_ACCESS_SECRET`。安装协议和故障处理见 [CLI 使用文档](references/cli.md)。

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 143)May include surrounding context.

md
面凭据使用 Secret Service,headless 使用进程级 `ZHIHU_ACCESS_SECRET`。安装协议和故障处理见 [CLI 使用文档](references/cli.md)。

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · SKILL.md (reported line 4)May include surrounding context.

md
# 知乎开放平台 CLI 使用文档

`zhihu-cli` 是知乎 Skill 的标准执行入口,统一封装公共内容、本人知乎 Context 和 Access Secret 管理。Agent 日常解决用户问题时优先使用 CLI;只有开发者需要自己集成服务时,才直接读取 HTTP API、OAuth 或 MCP 文档。

## 能力与命令

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · SKILL.md (reported line 64)May include surrounding context.

md
# 知乎开放平台 CLI 使用文档

`zhihu-cli` 是知乎 Skill 的标准执行入口,统一封装公共内容、本人知乎 Context 和 Access Secret 管理。Agent 日常解决用户问题时优先使用 CLI;只有开发者需要自己集成服务时,才直接读取 HTTP API、OAuth 或 MCP 文档。

## 能力与命令

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · SKILL.md (reported line 144)May include surrounding context.

md
# 知乎开放平台 CLI 使用文档

`zhihu-cli` 是知乎 Skill 的标准执行入口,统一封装公共内容、本人知乎 Context 和 Access Secret 管理。Agent 日常解决用户问题时优先使用 CLI;只有开发者需要自己集成服务时,才直接读取 HTTP API、OAuth 或 MCP 文档。

## 能力与命令

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · SKILL.md (reported line 154)May include surrounding context.

md
# 知乎开放平台 CLI 使用文档

`zhihu-cli` 是知乎 Skill 的标准执行入口,统一封装公共内容、本人知乎 Context 和 Access Secret 管理。Agent 日常解决用户问题时优先使用 CLI;只有开发者需要自己集成服务时,才直接读取 HTTP API、OAuth 或 MCP 文档。

## 能力与命令

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · SKILL.md (reported line 155)May include surrounding context.

md
# 知乎开放平台 CLI 使用文档

`zhihu-cli` 是知乎 Skill 的标准执行入口,统一封装公共内容、本人知乎 Context 和 Access Secret 管理。Agent 日常解决用户问题时优先使用 CLI;只有开发者需要自己集成服务时,才直接读取 HTTP API、OAuth 或 MCP 文档。

## 能力与命令

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · references/cli.md (reported line 3)May include surrounding context.

md
# 知乎开放平台 CLI 使用文档

`zhihu-cli` 是知乎 Skill 的标准执行入口,统一封装公共内容、本人知乎 Context 和 Access Secret 管理。Agent 日常解决用户问题时优先使用 CLI;只有开发者需要自己集成服务时,才直接读取 HTTP API、OAuth 或 MCP 文档。

## 能力与命令

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · references/cli.md (reported line 13)May include surrounding context.

md
# 知乎开放平台 CLI 使用文档

`zhihu-cli` 是知乎 Skill 的标准执行入口,统一封装公共内容、本人知乎 Context 和 Access Secret 管理。Agent 日常解决用户问题时优先使用 CLI;只有开发者需要自己集成服务时,才直接读取 HTTP API、OAuth 或 MCP 文档。

## 能力与命令

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · references/cli.md (reported line 46)May include surrounding context.

md
# 知乎开放平台 CLI 使用文档

`zhihu-cli` 是知乎 Skill 的标准执行入口,统一封装公共内容、本人知乎 Context 和 Access Secret 管理。Agent 日常解决用户问题时优先使用 CLI;只有开发者需要自己集成服务时,才直接读取 HTTP API、OAuth 或 MCP 文档。

## 能力与命令

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · references/cli.md (reported line 66)May include surrounding context.

md
# 知乎开放平台 CLI 使用文档

`zhihu-cli` 是知乎 Skill 的标准执行入口,统一封装公共内容、本人知乎 Context 和 Access Secret 管理。Agent 日常解决用户问题时优先使用 CLI;只有开发者需要自己集成服务时,才直接读取 HTTP API、OAuth 或 MCP 文档。

## 能力与命令

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · references/cli.md (reported line 83)May include surrounding context.

md
# 知乎开放平台 CLI 使用文档

`zhihu-cli` 是知乎 Skill 的标准执行入口,统一封装公共内容、本人知乎 Context 和 Access Secret 管理。Agent 日常解决用户问题时优先使用 CLI;只有开发者需要自己集成服务时,才直接读取 HTTP API、OAuth 或 MCP 文档。

## 能力与命令

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · references/cli.md (reported line 85)May include surrounding context.

md
# 知乎开放平台 CLI 使用文档

`zhihu-cli` 是知乎 Skill 的标准执行入口,统一封装公共内容、本人知乎 Context 和 Access Secret 管理。Agent 日常解决用户问题时优先使用 CLI;只有开发者需要自己集成服务时,才直接读取 HTTP API、OAuth 或 MCP 文档。

## 能力与命令

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · references/cli.md (reported line 91)May include surrounding context.

md
# 知乎开放平台 CLI 使用文档

`zhihu-cli` 是知乎 Skill 的标准执行入口,统一封装公共内容、本人知乎 Context 和 Access Secret 管理。Agent 日常解决用户问题时优先使用 CLI;只有开发者需要自己集成服务时,才直接读取 HTTP API、OAuth 或 MCP 文档。

## 能力与命令

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · references/cli.md (reported line 99)May include surrounding context.

md
# 知乎开放平台 CLI 使用文档

`zhihu-cli` 是知乎 Skill 的标准执行入口,统一封装公共内容、本人知乎 Context 和 Access Secret 管理。Agent 日常解决用户问题时优先使用 CLI;只有开发者需要自己集成服务时,才直接读取 HTTP API、OAuth 或 MCP 文档。

## 能力与命令

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · references/cli.md (reported line 111)May include surrounding context.

md
# 知乎开放平台 CLI 使用文档

`zhihu-cli` 是知乎 Skill 的标准执行入口,统一封装公共内容、本人知乎 Context 和 Access Secret 管理。Agent 日常解决用户问题时优先使用 CLI;只有开发者需要自己集成服务时,才直接读取 HTTP API、OAuth 或 MCP 文档。

## 能力与命令

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · references/cli.md (reported line 122)May include surrounding context.

md
# 知乎开放平台 CLI 使用文档

`zhihu-cli` 是知乎 Skill 的标准执行入口,统一封装公共内容、本人知乎 Context 和 Access Secret 管理。Agent 日常解决用户问题时优先使用 CLI;只有开发者需要自己集成服务时,才直接读取 HTTP API、OAuth 或 MCP 文档。

## 能力与命令

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · references/cli.md (reported line 123)May include surrounding context.

md
# 知乎开放平台 CLI 使用文档

`zhihu-cli` 是知乎 Skill 的标准执行入口,统一封装公共内容、本人知乎 Context 和 Access Secret 管理。Agent 日常解决用户问题时优先使用 CLI;只有开发者需要自己集成服务时,才直接读取 HTTP API、OAuth 或 MCP 文档。

## 能力与命令

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · references/cli.md (reported line 140)May include surrounding context.

md
# 知乎开放平台 CLI 使用文档

`zhihu-cli` 是知乎 Skill 的标准执行入口,统一封装公共内容、本人知乎 Context 和 Access Secret 管理。Agent 日常解决用户问题时优先使用 CLI;只有开发者需要自己集成服务时,才直接读取 HTTP API、OAuth 或 MCP 文档。

## 能力与命令

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · references/cli.md (reported line 144)May include surrounding context.

md
# 知乎开放平台 CLI 使用文档

`zhihu-cli` 是知乎 Skill 的标准执行入口,统一封装公共内容、本人知乎 Context 和 Access Secret 管理。Agent 日常解决用户问题时优先使用 CLI;只有开发者需要自己集成服务时,才直接读取 HTTP API、OAuth 或 MCP 文档。

## 能力与命令

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · references/cli.md (reported line 250)May include surrounding context.

md
# 知乎开放平台 CLI 使用文档

`zhihu-cli` 是知乎 Skill 的标准执行入口,统一封装公共内容、本人知乎 Context 和 Access Secret 管理。Agent 日常解决用户问题时优先使用 CLI;只有开发者需要自己集成服务时,才直接读取 HTTP API、OAuth 或 MCP 文档。

## 能力与命令

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · references/cli.md (reported line 276)May include surrounding context.

md
# 知乎开放平台 CLI 使用文档

`zhihu-cli` 是知乎 Skill 的标准执行入口,统一封装公共内容、本人知乎 Context 和 Access Secret 管理。Agent 日常解决用户问题时优先使用 CLI;只有开发者需要自己集成服务时,才直接读取 HTTP API、OAuth 或 MCP 文档。

## 能力与命令