扫描报告
20 /100
bdpan-storage
百度网盘文件管理,支持上传、下载、转存、分享、搜索等操作
百度网盘存储工具,设计规范、安全约束完善,但存在执行远程二进制安装器的轻微越权行为。
可以安装
可安全使用。建议明确声明 scripts/install.sh 会下载并执行远程二进制安装器。当前安全机制(SHA256 校验、两步确认、Agent 环境限制 --yes)设计良好。
安全发现 4 项
| 严重性 | 安全发现 | 位置 |
|---|---|---|
| 低危 | 执行远程二进制安装器 | scripts/install.sh:130 |
| 低危 | 下载并解压远程更新包 | scripts/update.sh:64 |
| 提示 | Agent 环境检测限制自动化 | scripts/update.sh:189 |
| 提示 | 授权码安全传递 | scripts/login.sh:120 |
| 资源类型 | 声明权限 | 推断权限 | 状态 | 证据 |
|---|---|---|---|---|
| 命令执行 | WRITE | WRITE | ✓ 一致 | SKILL.md:1 allowed-tools: Bash |
| 文件系统 | READ | WRITE | ✓ 一致 | scripts/update.sh:159 unzip 解压覆盖 Skill 文件 |
| 网络访问 | NONE | READ | ✓ 一致 | scripts/install.sh:130 scripts/update.sh:64 下载远程资源 |
10 项发现
中危 外部 URL 外部 URL
https://pan.baidu.com/s/1xxxxx?pwd=abcd SKILL.md:99 中危 外部 URL 外部 URL
https://pan.baidu.com/s/1xxxxx SKILL.md:100 中危 外部 URL 外部 URL
https://pan.baidu.com/s/1 reference/bdpan-commands.md:128 中危 外部 URL 外部 URL
https://pan.baidu.com/s/1xxxxxxx reference/bdpan-commands.md:230 中危 外部 URL 外部 URL
https://openapi.baidu.com/oauth/2.0/authorize?... reference/examples.md:167 中危 外部 URL 外部 URL
https://openapi.baidu.com/oauth/...?device_code=xxxxx reference/troubleshooting.md:34 中危 外部 URL 外部 URL
https://openapi.baidu.com/oauth/2.0/authorize?response_type=device_code&client_id=...&device_code=xxxxx reference/troubleshooting.md:48 中危 外部 URL 外部 URL
https://issuecdn.baidupcs.com/issue/netdisk/ai-bdpan/installer/$ scripts/install.sh:9 中危 外部 URL 外部 URL
https://pan.baidu.com/act/v2/api/conf?conf_key=bd_skills scripts/update.sh:15 提示 邮箱 邮箱地址
[email protected] reference/examples.md:176 目录结构
10 文件 · 72.2 KB · 2710 行 Markdown 6f · 1709L
Shell 4f · 1001L
├─
▾
reference
│ ├─
authentication.md
Markdown
│ ├─
bdpan-commands.md
Markdown
│ ├─
examples.md
Markdown
│ ├─
notes.md
Markdown
│ └─
troubleshooting.md
Markdown
├─
▾
scripts
│ ├─
install.sh
Shell
│ ├─
login.sh
Shell
│ ├─
uninstall.sh
Shell
│ └─
update.sh
Shell
└─
SKILL.md
Markdown
依赖分析 1 项
| 包名 | 版本 | 来源 | 已知漏洞 | 备注 |
|---|---|---|---|---|
bdpan CLI | 3.7.3 | 百度 CDN (issuecdn.baidupcs.com) | 否 | 通过 SHA256 校验的安装器安装 |
安全亮点
✓ 安全约束文档详尽,覆盖登录、更新、路径限制等多维度
✓ 路径限制 /apps/bdpan/ 防止目录穿越
✓ 登录流程使用 stdin 传递授权码,防止泄露
✓ Agent 环境检测并限制 --yes 参数,强制用户确认
✓ SHA256 完整性校验覆盖安装器和更新包
✓ 两步确认机制(下载确认 + 应用确认)
✓ 硬编码 CDN URL 和校验值,防止供应链篡改
✓ 卸载脚本完整清理配置文件和授权信息