Back to skill

Security audit

网盘通

Security checks for vulnerabilities and agentic risk

Overview

ClawScan rates this skill suspicious with medium confidence because it reports an unauthenticated download control API, automatic clipboard-triggered downloads, persistent services, and capabilities beyond the stated downloader purpose; some files and checks were only partially inspected.

The verdict is suspicious, not a claim that the author is malicious. Consider the reported unauthenticated controls, automatic clipboard monitoring, background services, and incomplete inspection before installing; the scans do not establish unrestricted file overwrite, response-body exfiltration, or confirmed malicious intent.

Vulnerability Patterns
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • 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
Findings (3)

T09 · Insecure Skill Coding Practices

Error
Location
scripts/pan.py:3590
Finding

Unauthenticated HTTP API exposes download execution, filesystem writes, and task control

Content
View full analysis

Impact

Attackers can download their content into attacker-selected directories writable by the service account, consume disk and bandwidth, initiate HTTP requests from the service host, and pause, cancel, remove records for, or retry existing tasks. This is not a claim of unrestricted file overwrite or confirmed code execution.

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/feishu_bot.py:49
Finding

Public Feishu callback accepts forged events and forwards unauthorized downloads

Content
View full analysis

Impact

An attacker can enqueue downloads without Feishu credentials or the owner's approval, consume storage and bandwidth, and cause HTTP requests to destinations reachable from the download host, including internal HTTP services. Response-body exfiltration is not established.

T09 · Insecure Skill Coding Practices

Warning
Location
extensions/chrome/content.js:12
Finding

Page-controlled selection events cross the extension bridge into local download execution

Content
View full analysis

Impact

A visited page can initiate unwanted local downloads and network requests, using saved extension defaults for destination and engine, and consume bandwidth or storage. The selection branch lacks the copy branch's short deduplication check, permitting repeated submissions.

Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Taint TrackingDirect Taint Flow, Variable-Mediated Taint Flow, Credential Exfiltration Chain
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (172)

Tainted flow: 'value' from sys.stdin.read (line 976, user input) → subprocess.run (code execution)

Critical
Category
Data Flow
Confidence
90% confidence
Finding

External input (network, user) flows to a code execution sink. This enables remote code execution or command injection.

Content

Scanner excerpt · scripts/pan.py (reported line 814)May include surrounding context.

python
def _macos_keychain_store(name, value):
    if not (SECURITY_BIN and Path(SECURITY_BIN).exists()):
        raise RuntimeError("macOS security 命令不可用,拒绝保存明文;请在正常终端执行")
    proc = subprocess.run(
        [SECURITY_BIN, "add-generic-password", "-U", "-a", name, "-s", KEYCHAIN_SERVICE, "-w"],
        input=value + "\n" + value + "\n", text=True, capture_output=True,
    )

Tainted flow: 'value' from sys.stdin.read (line 980, user input) → subprocess.run (code execution)

Critical
Category
Data Flow
Confidence
90% confidence
Finding

External input (network, user) flows to a code execution sink. This enables remote code execution or command injection.

Content

Scanner excerpt · scripts/pan.py (reported line 943)May include surrounding context.

python
def _secret_tool_store(name, value):
    proc = subprocess.run(
        ["secret-tool", "store", "--label", APP + " " + name, "service", APP, "account", name],
        input=value, text=True, capture_output=True,
    )

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The main download functionality aligns with the description, but material differences remain. run_transfer_sync builds rclone copy or sync commands for arbitrary configured sources and destinations; sync explicitly supports destination deletion with opt-in flags. This exceeds downloading into private storage. cmd_notify_send posts messages to external webhooks, and build_remote_deploy_plan can launch a persistent Web service through nohup—neither capability is declared. Account handling also contradicts the stated detector-based policy: detect_account_tier accepts recorded account_tier values, and build_plan honors explicit VIP settings without verification. Finally, the AList branch reports missing prerequisites unless a mounted path is supplied, so recognizing a provider's domain does not deliver the claimed share-link-only workflow. These findings concern explicit optional capabilities and functional discrepancies, not evidence of covert execution or malicious intent.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

下载接口调用本身符合声明用途,但默认持续读取全局剪贴板并自动提交其中的链接,是实质性的额外数据访问和触发机制,并非普通下载实现细节。用户复制的无关网页地址或含敏感参数的链接也可能被提交。代码显示的提交目标仅为本机服务,没有证据表明它直接向外部服务器泄露剪贴板数据;但这不消除未披露剪贴板监控和自动提交行为所构成的不一致。

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

本地服务和 Web 界面可视为下载功能的辅助实现,不构成独立的不匹配。但描述仅称用户提供下载地址,没有披露技能会主动访问并持续监听全局剪贴板。脚本明确无条件启动 clipboard_monitor.py 的一次性任务和周期性任务,因此引入了超出所声明输入方式的数据访问能力。所给代码未显示剪贴板内容被发送到外部,也不足以确定监听器会处理哪些具体内容。

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
95% confidence
Finding

The local service and browser interface reasonably support the declared download workflow. However, continuously monitoring the clipboard introduces an additional input source beyond links explicitly supplied by the user. That capability is explicitly identified in the command names and comments but absent from the description. The underlying scripts are not provided, so the snippet does not establish what clipboard content is collected, how it is filtered, or whether it is transmitted externally.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
93% confidence
Finding

URL extraction and internal messaging could support the declared downloader, but this script adds automatic browser-event triggers not disclosed in the description. In particular, selecting text beginning with an HTTP(S) URL sends it to the background worker even when the user has not requested a download. The code does not establish external exfiltration, login-state access, or actual downloading; the mismatch is the undisclosed monitoring and forwarding behavior, not the absence of the full download engine in this chunk.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
91% confidence
Finding

Downloading to local or private storage is consistent with the description, as are supporting features such as credentials, scheduling, remote deployment, and notifications. However, transferring between cloud locations and synchronizing directories with deletion are distinct data-management capabilities not disclosed by the declared download-focused purpose. The deletion-enabled synchronization example is especially material because it can remove destination content rather than merely download files. Implementation details are unavailable, so this assessment concerns the capabilities explicitly exposed by the supplied commands.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
88% confidence
Finding

The main download functionality and its supporting credential, remote-access, and task-management features align with the description. However, general cross-cloud copying, synchronization that can delete destination files, and external messaging are additional capabilities not disclosed by the declared download-focused purpose. These commands are wired to handlers, although their implementations are outside this chunk, so their precise runtime behavior cannot be verified here. The web interface also permits starting and modifying tasks despite being labeled read-only in its help and startup message; that is an internal documentation inconsistency rather than the primary basis for this assessment.

Content

No source excerpt is available for this finding.

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
典型用法:任何 agent 拿到用户提供的网盘地址后调用 `scripts/pan.py get "<链接>"`;需要登录时只给出本机授权步骤,账号密码由用户在本机系统凭据库保存,不进入聊天、不进配置文件、不写日志。

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
3. 不允许用户把账号密码、Cookie、Token 发到 agent 聊天里。需要输入时执行 `python3 scripts/pan.py secret set <凭据名>`,在用户自己的本机终端不显式输入;Windows 使用 `scripts\pan.ps1` 或 `scripts\pan.cmd`。

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
1. `python3 scripts/pan.py doctor` —— 检查 Python、curl、系统凭据库、共享引擎和默认目录。

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
2. 首次使用:`python3 scripts/pan.py setup`(一键安装向导,自动创建 600 权限配置并列出缺失依赖安装命令;可加 `--apply` 实际调用包管理器);或仅 `python3 scripts/pan.py init`。Windows 用 `scripts\\pan.ps1 setup

Incomplete referenced artifact analysis

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
3. 凭据:在本机终端执行 `python3 scripts/pan.py secret set engine.webdav`(或 `engine.alist`、`drive.<盘名>`),密码不会出现在命令行。

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
4. 查看登录/授权步骤:`python3 scripts/pan.py login <盘名> [--open]`(`--open` 用默认程序打开授权教程)。OAuth、扫码、Cookie 等按各平台官方要求完成。

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
5. 先预演:`python3 scripts/pan.py get "<链接>" --pwd <提取码> --dry-run --json`。

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
python3 scripts/pan.py doctor

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
python3 scripts/pan.py detect "https://pan.quark.cn/s/xxxx"

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
python3 scripts/pan.py test "<链接>" # 先测能不能下载:识别/依赖/目录/提取码,不真正下载

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
python3 scripts/pan.py secret set engine.webdav

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
printf '%s\n' "$WEBDAV_PASSWORD" | python3 scripts/pan.py secret set engine.webdav --stdin

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
python3 scripts/pan.py secret list

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
python3 scripts/pan.py secret check engine.webdav --json

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
python3 scripts/pan.py secret migrate

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
python3 scripts/pan.py set --webdav-url "https://dav.jianguoyun.com/dav" --webdav-user "账号"