T09 · Insecure Skill Coding Practices
- Location
scripts/backup.js:945- Finding
Plaintext Backups of Credentials and Private OpenClaw Data Lack Enforced Access Controls
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This backup skill has a clear purpose, but it archives credentials and private OpenClaw data in plaintext without enforcing the owner-only protections it claims.
Review before installing. Use this only if you are comfortable creating backups that may contain API keys, tokens, private memory, device credentials, and custom skill source. Store backups in a private encrypted location, avoid shared or synced folders unless encrypted, and consider running category-specific backups instead of the default full backup when secrets are not needed.
scripts/backup.js:945Plaintext Backups of Credentials and Private OpenClaw Data Lack Enforced Access Controls
Referenced artifact was not completely inspected
- **主入口**: scripts/backup.js
Referenced artifact was not completely inspected
- **主入口**: scripts/backup.js
Referenced artifact was not completely inspected
- **主入口**: scripts/backup.js
Referenced artifact was not completely inspected
- **主入口**: scripts/backup.js
Referenced artifact was not completely inspected
- **主入口**: scripts/backup.js
Referenced artifact was not completely inspected
- **主入口**: scripts/backup.js
Referenced artifact was not completely inspected
- **主入口**: scripts/backup.js
Referenced artifact was not completely inspected
- **主入口**: scripts/backup.js
Referenced artifact was not completely inspected
- **主入口**: scripts/backup.js
Referenced artifact was not completely inspected
- **主入口**: scripts/backup.js
Referenced artifact was not completely inspected
- **主入口**: scripts/backup.js
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
~/.openclaw/ # OpenClaw 根目录
├── openclaw.json # 主配置文件
├── .env # 环境变量(敏感)
├── exec-approvals.json # 执行审批配置
├── gateway.cmd # Gateway 启动脚本
├── workspace/ # 工作空间
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
~/.openclaw/ # OpenClaw 根目录
├── openclaw.json # 主配置文件
├── .env # 环境变量(敏感)
├── exec-approvals.json # 执行审批配置
├── gateway.cmd # Gateway 启动脚本
├── workspace/ # 工作空间
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
~/.openclaw/ # OpenClaw 根目录
├── openclaw.json # 主配置文件
├── .env # 环境变量(敏感)
├── exec-approvals.json # 执行审批配置
├── gateway.cmd # Gateway 启动脚本
├── workspace/ # 工作空间
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
~/.openclaw/ # OpenClaw 根目录
├── openclaw.json # 主配置文件
├── .env # 环境变量(敏感)
├── exec-approvals.json # 执行审批配置
├── gateway.cmd # Gateway 启动脚本
├── workspace/ # 工作空间
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
~/.openclaw/ # OpenClaw 根目录
├── openclaw.json # 主配置文件
├── .env # 环境变量(敏感)
├── exec-approvals.json # 执行审批配置
├── gateway.cmd # Gateway 启动脚本
├── workspace/ # 工作空间
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
~/.openclaw/ # OpenClaw 根目录
├── openclaw.json # 主配置文件
├── .env # 环境变量(敏感)
├── exec-approvals.json # 执行审批配置
├── gateway.cmd # Gateway 启动脚本
├── workspace/ # 工作空间
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
~/.openclaw/ # OpenClaw 根目录
├── openclaw.json # 主配置文件
├── .env # 环境变量(敏感)
├── exec-approvals.json # 执行审批配置
├── gateway.cmd # Gateway 启动脚本
├── workspace/ # 工作空间
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
```
~/.openclaw/ # OpenClaw 根目录
├── openclaw.json # 主配置文件
├── .env # 环境变量(敏感)
├── exec-approvals.json # 执行审批配置
├── gateway.cmd # Gateway 启动脚本
├── workspace/ # 工作空间
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
```
~/.openclaw/ # OpenClaw 根目录
├── openclaw.json # 主配置文件
├── .env # 环境变量(敏感)
├── exec-approvals.json # 执行审批配置
├── gateway.cmd # Gateway 启动脚本
├── workspace/ # 工作空间
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
```
~/.openclaw/ # OpenClaw 根目录
├── openclaw.json # 主配置文件
├── .env # 环境变量(敏感)
├── exec-approvals.json # 执行审批配置
├── gateway.cmd # Gateway 启动脚本
├── workspace/ # 工作空间
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
```
~/.openclaw/ # OpenClaw 根目录
├── openclaw.json # 主配置文件
├── .env # 环境变量(敏感)
├── exec-approvals.json # 执行审批配置
├── gateway.cmd # Gateway 启动脚本
├── workspace/ # 工作空间
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).
{
"approved": ["npm install", "git status"],
"denied": ["rm -rf /"]
}
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).
{
"approved": ["npm install", "git status"],
"denied": ["rm -rf /"]
}
Unlike the earlier references, this line places .env inside the documented backup package structure, meaning the skill's intended output includes secrets in a portable archive. In the context of a backup skill, packaging credential files without prominent protection requirements materially increases the risk of credential theft if the archive is stored or transferred insecurely.
├── manifest.json # 备份元数据
├── system/ # 系统配置
│ ├── openclaw.json
│ ├── .env
│ ├── exec-approvals.json
│ └── gateway.cmd
├── workspace/ # 核心文件
No suspicious patterns detected.