Back to skill

Security audit

baidupcs-go - 百度网盘命令行工具

Security checks for vulnerabilities and agentic risk

Overview

This Baidu Netdisk skill is mostly purpose-aligned, but it relies on an unverified third-party executable path and exposes sensitive login and destructive file-management commands with limited safeguards.

Review this before installing. Use only a BaiduPCS-Go executable from a source you trust, preferably with independently verified hashes or by building from source. Treat BDUSS, STOKEN, and full cookies like passwords, avoid placing them in shell history or logs, and require explicit confirmation before delete, purge, overwrite, unshare, or broad wildcard operations.

Vulnerability Patterns
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • 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
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Findings (1)

T03 · Remote Payload Retrieval and Execution

Error
Location
BaiduPCS-Go.md:327
Finding

Unverified Remote Executable Distribution

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Tool MisuseTool Parameter Abuse, Chaining Abuse, Unsafe Defaults
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (12)

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
89% confidence
Finding

The documented --nocheck option disables post-download integrity verification, which can cause users or downstream automation to trust corrupted, incomplete, or tampered files. In a cloud-download client, normalizing integrity-bypass flags without strong warnings reduces defense against transfer errors and malicious content substitution.

Content

Scanner excerpt · BaiduPCS-Go.md (reported line 621)May include surrounding context.

-p value 指定下载线程数 (default: 0) -l value 指定同时进行下载文件的数量 (default: 0) --retry value 下载失败最大重试次数 (default: 3) --nocheck 下载文件完成后不校验文件

text

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
85% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

Scanner excerpt · BaiduPCS-Go.md (reported line 761)May include surrounding context.

text
# 删除 /我的资源/1.mp4
BaiduPCS-Go rm /我的资源/1.mp4

# 删除 /我的资源/1.mp4 和 /我的资源/2.mp4
BaiduPCS-Go rm /我的资源/1.mp4 /我的资源/2.mp4

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
85% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

Scanner excerpt · BaiduPCS-Go.md (reported line 764)May include surrounding context.

text
# 删除 /我的资源/1.mp4
BaiduPCS-Go rm /我的资源/1.mp4

# 删除 /我的资源/1.mp4 和 /我的资源/2.mp4
BaiduPCS-Go rm /我的资源/1.mp4 /我的资源/2.mp4

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
85% confidence
Finding

The example uses a wildcard deletion pattern that can remove all contents of a directory, creating a substantially higher risk of accidental mass deletion, especially in an interactive shell-like environment. Although not inherently malicious, documenting bulk-destructive syntax without a prominent consolidated safety warning increases the chance of operator error and data loss.

Content

Scanner excerpt · BaiduPCS-Go.md (reported line 767)May include surrounding context.

md
BaiduPCS-Go rm /我的资源/1.mp4 /我的资源/2.mp4

# 删除 /我的资源 内的所有文件和目录, 但不删除该目录
BaiduPCS-Go rm /我的资源/*

# 删除 /我的资源 整个目录 !!
BaiduPCS-Go rm /我的资源

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
87% confidence
Finding

The example documents deletion of an entire directory, explicitly emphasized with exclamation marks, which can cause large-scale data loss if copied blindly. In a shell-like client handling user cloud storage, such commands are high-risk and should be surrounded by stronger safety guidance because path mistakes can destroy significant amounts of data.

Content

Scanner excerpt · BaiduPCS-Go.md (reported line 770)May include surrounding context.

BaiduPCS-Go rm /我的资源/*

删除 /我的资源 整个目录 !!

BaiduPCS-Go rm /我的资源

text

## 拷贝文件/目录

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The documentation instructs users to obtain and pass highly sensitive Baidu session credentials (BDUSS, STOKEN, full Cookies) directly on the command line, including a full cookie example. Command-line arguments are commonly exposed via shell history, process listings, logs, screenshots, and copied transcripts, so this materially increases the risk of account takeover if reused or leaked.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
85% confidence
Finding

The file documents offlinedl delete -all and notes that the program will not perform a second confirmation, and similarly documents recycle-bin purge operations elsewhere. Although '谨慎操作' is present inline, the skill description lacks a stronger user-facing warning section highlighting that these commands can bulk-delete task records or recycle-bin contents without confirmation.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
89% confidence
Finding

The skill explicitly advertises destructive operations such as deleting files, moving content, canceling shares, and permanently deleting recycle-bin items, but it does not warn users about irreversible actions, confirmation requirements, or recovery limitations. In an agent skill context, this omission increases the chance of unsafe automation or accidental execution that could cause data loss or unintended exposure changes.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

The login command explicitly accepts sensitive authentication material such as BDUSS, STOKEN, and cookies directly on the command line. Supplying secrets via CLI arguments is dangerous because they can be exposed through shell history, process listings, logs, or telemetry, and the command description provides no warning or safer alternative.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
85% confidence
Finding

The delete command enables removal of one or more files or directories but includes no warning, confirmation behavior, or indication of reversibility. In an agent skill context, this increases the chance of accidental or unauthorized destructive actions, especially if invoked programmatically or with broad path arguments.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
88% confidence
Finding

All headings, instructions, prompts, and examples are presented in Chinese, and the documented interaction flow presumes Chinese-speaking users. Under the stated policy, forcing a specific language without user opt-in or an explicit justified locale scope is a natural-language policy concern.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
87% confidence
Finding

The natural-language description "百度网盘命令行客户端技能" forces a specific language presentation in the manifest without offering an alternative language or documenting that the skill is intended only for a Chinese-language audience. Under the policy for natural-language violations, this can be considered a language/locale constraint lacking user opt-in or explicit justification.

Content

No source excerpt is available for this finding.