Back to skill

Security audit

Baidu Netdisk Skills Free

Security checks for vulnerabilities and agentic risk

Overview

The skill mostly wraps Baidu Netdisk file commands, but it needs Review because parts of the documentation broaden when it activates and give unsafe execution guidance.

Install only if you are comfortable giving the agent bdpan-backed access to your Baidu Netdisk app folder and local upload/download paths. Keep activation limited to explicit Baidu Netdisk list/upload/download requests, do not run it as administrator, and treat the API key, generic Security-task trigger, and unsupported search/delete/backup claims as documentation defects that should be fixed before broad use.

Vulnerability Patterns
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
  • 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
Findings (2)

T09 · Insecure Skill Coding Practices

Error
Location
SKILL.md:90
Finding

Shell Argument Injection Through Unquoted User-Controlled Paths

Content
View full analysis
bdpan download ``` ### Technical Analysis The skill directs the agent to insert local and remote paths into shell commands, but it does not require argument-array execution, shell escaping, mandatory quoting, option termination, or strict character validation. Although the document prohibits certain remote-path traversal sequences such as `..` and `~`, those checks do not prevent shell metacharacters, command substitutions, control characters, or option-like filenames. Local paths receive even less validation. If an implementation constructs a shell command by directly replacing these placeholders with user-supplied values, a malicious path containing syntax such as command separators or command substitution can alter the intended command. A path beginning with `-` may also be interpreted as a command-line option unless the CLI supports and uses an option terminator. This issue is conditional on the agent or runtime executing a constructed shell string. It can be avoided only if the command is invoked using a process API that passes each path as an independent argument without a shell. ### Attack Path 1. An attacker requests an upload or download and supplies a crafted local or remote path. 2. The agent follows the documented template and interpolates the path into a shell command. 3. The runtime passes the resulting string to a shell. 4. The shell interprets metacharacters, substitutions, or additional tokens embedded in the path. 5. An unintended command or unintended `bdpan` option executes with the privileges of the agent process. ### Impact Assessment Successful exploitation can execute arbitrary ...[truncated 569 chars]
Remediation
View remediation

T05 · Unauthorized Access and Privilege Escalation

Error
Location
SKILL.md:424
Finding

Unsafe Recommendation to Run File Operations with Administrator Privileges

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Rogue AgentSelf-Modification, Session Persistence
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
Findings (7)

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The description states '支持中文交互' and the document consistently instructs Chinese-path presentation, but does not offer a language or locale choice to the user. This can violate language/locale policy when the skill is used in multilingual environments without explicit opt-in.

Content

No source excerpt is available for this finding.

Session Persistence

Medium
Category
Rogue Agent
Confidence
65% confidence
Finding

Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.

Content

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

text

步骤:`bdpan ls` 确认云端存在 → 用 `bdpan ls --json` 获取文件大小 → 确认 ≤50MB → 检查本地是否已存在 → 执行。Bash 工具 timeout 设为 300000(5 分钟).
> 超过 50MB 的大文件下载需使用 nohup 后台策略,该功能仅在付费版中提供.
## 路径规则

| 场景 | 格式 | 示例 |

Session Persistence

Medium
Category
Rogue Agent
Confidence
65% confidence
Finding

Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.

Content

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

text

步骤:`bdpan ls` 确认云端存在 → 用 `bdpan ls --json` 获取文件大小 → 确认 ≤50MB → 检查本地是否已存在 → 执行。Bash 工具 timeout 设为 300000(5 分钟).
> 超过 50MB 的大文件下载需使用 nohup 后台策略,该功能仅在付费版中提供.
## 路径规则

| 场景 | 格式 | 示例 |

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The manifest repeatedly states that this free edition only supports listing, upload, and small-file download, and explicitly says it does not support search, delete, rename, or memory backup. However, later documentation presents '搜索文件', '删除文件', '文件重命名', and '自动化备份功能' as supported use cases and quantified benefits, which directly contradicts the stated scope.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The skill’s purpose drifts from a scoped Baidu Netdisk wrapper into generic 'Security' and data-processing tasks, which can cause the agent to activate in unrelated contexts. That broadening increases the chance of unintended exec-enabled behavior being applied to requests outside the intended storage domain, weakening least-privilege and user-intent boundaries.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

A trigger that activates on broad 'Security-related tasks' can invoke a skill with exec capability for requests unrelated to Baidu Netdisk. This increases the risk of accidental command execution, scope confusion, and misuse of the toolchain in contexts where the user did not intend to operate cloud storage commands.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Low
Category
Not specified by scanner
Confidence
88% confidence
Finding

The core documentation says the skill works through the bdpan command-line tool, with login handled by predefined scripts, but the dependency and configuration sections say an LLM API is required and instruct users to export an API_KEY. This is a contradictory statement about how the skill operates and what credentials it needs.

Content

No source excerpt is available for this finding.