Back to skill

Security audit

Baidu Netdisk Skills

Security checks across malware telemetry and agentic risk

Overview

The skill matches Baidu Netdisk automation, but it gives the agent broad cloud file control, public sharing, detached downloads, and agent-memory backup/restore with incomplete safeguards.

Install only if you want an agent to operate your Baidu Netdisk account and you are comfortable with it managing files under /apps/bdpan/. Treat memory backup/restore as sensitive: avoid it if agent memory may contain secrets, inspect restore sources before use, and require explicit confirmation for sharing, moves, uploads, deletes, overwrites, and restores. For large downloads, monitor any background PIDs and clean up jobs yourself if the session ends.

SkillSpector

By NVIDIA
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Tool MisuseTool Parameter Abuse, Chaining Abuse, Unsafe Defaults
  • Rogue AgentSelf-Modification, Session Persistence
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (9)

Ssd 3

Medium
Confidence
95% confidence
Finding
The skill normalizes backup and restore of agent memory files, including workspace memory documents and manifests, to cloud storage. Those files can contain secrets, sensitive prompts, personal data, operational history, or other high-value context, so routine cloud synchronization materially increases confidentiality and integrity risk if the cloud account, share settings, or restore source is compromised.

Ssd 3

Medium
Confidence
96% confidence
Finding
The example explicitly instructs backing up agent memory to the cloud and restoring it on another device, which encourages cross-device propagation of sensitive state. That increases the blast radius of any compromise and creates an integrity risk because a tampered backup could overwrite current agent memory and influence future agent behavior.

Session Persistence

Medium
Category
Rogue Agent
Content
/apps/bdpan/ 目录范围内。支持完整的文件生命周期管理与 Agent 记忆备份恢复能力.
  核心能力:
  - 文件操作:上传、下载、转存、分享、搜索、移动、复制、重命名、创建文件夹、删除
  - 大文件下载策略:根据文件大小自动选择直接下载或 nohup 后台下载,避免 Bash 超时
  - 分享链接处理:支持从分享链接(含提取码)转存或下载到本地
  - 记忆备份与恢复:支持 4 种 Claw 产品(kimiclaw/maxclaw/qc...
tags:
Confidence
82% confidence
Finding
nohup

Session Persistence

Medium
Category
Rogue Agent
Content
bdpan ls --json ./downloaded/
# ...
# 4. 根据大小选择下载策略(假设视频 > 50MB,使用后台下载)
nohup bdpan download ./downloaded/video.mp4 ./local-video.mp4 > /tmp/bdpan-dl-$$.log 2>&1 & echo $!
# ...
# 5. 轮询进度并报告用户
kill -0 <PID> 2>/dev/null && echo "running" || echo "done"; tail -5 /tmp/bdpan-dl-<PID>.log
Confidence
90% confidence
Finding
nohup

Session Persistence

Medium
Category
Rogue Agent
Content
| 上传远端路径以 `/` 结尾 | 单文件上传远端路径格式错误 | 提示远端路径须为文件名而非目录,修正后 |
| 远端文件不存在 | `bdpan ls` 返回空,下载/移动目标缺失 | 用 `bdpan search <文件名>` 搜索确认,或检查路径拼写 |
| 分享链接格式无效 | 链接非 `pan.baidu.com/s/` 格式或已失效 | 提示用户检查链接格式,确认是否需要提取码(`-p` 参数) |
| 大文件下载超时 | 未按大小策略执行,Bash 超时中断 | 改用 nohup 后台下载,轮询进度,设 timeout 为 300000 |
| 同名文件已存在 | 上传/下载目标路径已有同名文件 | 列出现有文件,询问覆盖还是重命名,确认后执行 |
| 记忆备份环境不支持 | 当前非 kimiclaw/maxclaw/qclaw/skill-platform | 报错说明不支持当前环境,不执行备份/恢复操作 |
| 分享接口报付费错误 | 百度网盘开放平台服务未购买 | 提示分享为付费接口,需在开放平台购买服务后使用 |
Confidence
88% confidence
Finding
nohup

Session Persistence

Medium
Category
Rogue Agent
Content
| 直接调用 bdpan login 被拦截 | Agent 误用裸 `bdpan login` 命令 | 禁止该调用,必须通过 `(请参考skill目录中的脚本文件)` 执行登录 |
## 问答汇总
### Q1:大文件下载总是超时怎么办?
A:先用 `bdpan ls --json <远端路径>` 获取文件 `size` 字段。超过 50MB 的文件必须使用 `nohup bdpan download ... > /tmp/bdpan-dl-$$.log 2>&1 &` 后台下载,Agent 轮询 `kill -0 <PID>` 与日志判断进度。Bash 工具 timeout 设为 300000(5 分钟)仅适用于 ≤50MB 的小文件.
### Q2:从分享链接下载和转存有什么区别?
A:`bdpan download "https://pan.baidu.com/s/未指定?pwd=yyy" ./local/` 会先转存到网盘再下载到本地;`bdpan transfer "https://pan.baidu.com/s/未指定" -p yyy` 只转存到网盘不下载本地。若只需保存到网盘用 transfer,需本地文件用 download.
### Q3:分享链接的有效期怎么选?
Confidence
88% confidence
Finding
nohup

Session Persistence

Medium
Category
Rogue Agent
Content
- 分享功能为百度网盘开放平台付费接口,需购买服务.
- 记忆备份/恢复仅支持 4 种 Claw 产品环境.
- 登录必须通过 `(请参考skill目录中的脚本文件)`,禁止直接调用 `bdpan login`.
- 大文件下载受 Bash 超时限制,需使用 nohup 后台策略.
- 禁止读取或输出 `~/.config/bdpan/config.json` 等敏感凭据配置.
## 触发条件
- 用户明确提及百度网盘/bdpan/baidu drive 等关键词且有文件操作意图时激活.
Confidence
84% confidence
Finding
nohup

Tool Parameter Abuse

High
Category
Tool Misuse
Content
## 确认规则
| 风险等级 | 操作 | 策略 |
|:---:|:---:|:---:|
| **高(必须确认)** | `rm` 删除、上传/下载目标已存在同名文件 | 列出影响范围,等待用户确认 |
| **中(路径模糊时确认)** | upload、download、mv、rename、cp | 路径明确直接执行,不明确则确认 |
| **低(直接执行)** | ls、search、whoami、mkdir、share | 无需确认 |
**额外规则:**
Confidence
91% confidence
Finding
rm` 删除、上传/

Tool Parameter Abuse

High
Category
Tool Misuse
Content
### Q4:记忆恢复会覆盖现有记忆吗?能撤销吗?
A:会覆盖。恢复前会列出所有将被覆盖的文件清单,默认需用户输入 `y` 确认。同时自动将当前本地记忆备份到 `<workspace>/.backup-before-restore/<timestamp>/`,若恢复有误可从该 safety net 目录手动找回。非交互环境必须加 `--yes` 才执行.
### Q5:哪些操作需要用户确认?
A:高风险操作(`rm` 删除、同名文件覆盖)必须确认;中风险操作(upload/download/mv/rename/cp)路径明确时直接执行,路径模糊时确认;低风险操作(ls/search/whoami/mkdir/share)无需确认。写操作即使上下文延续也必须重新确认.
### Q6:为什么不能访问 /apps/bdpan/ 以外的路径?
A:安全限制。所有操作限定在 `/apps/bdpan/` 范围内,禁止路径穿越(`..`、`~`)和越界绝对路径。这是为了防止误操作系统其他目录。展示给用户时路径映射为中文名(`我的应用数据/bdpan/...`).
### Q7:用户发了 32 位十六进制字符串是什么?
Confidence
92% confidence
Finding
rm` 删除、同名文件覆盖)必须确认;中风险操作(upload/download/mv/rename/cp)路径明确时直接执行,路径模糊时确认;低风险操作(ls/

VirusTotal

VirusTotal findings are pending for this skill version.

View on VirusTotal

Static analysis

No suspicious patterns detected.