T09 · Insecure Skill Coding Practices
- Location
scripts/backup.js:207- Finding
Unencrypted Full-State Backup Can Expose Credentials, Configuration, and Workspace Data
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This is a real backup skill, but it can repeatedly copy and push highly sensitive OpenClaw state and workspace data without enough safeguards or warnings.
Install only if you intentionally want full-state OpenClaw backups. Use a private dedicated repository, narrow credentials, encryption before pushing, reviewed exclusions for secrets and workspace data, and a manually approved cron schedule; avoid Discord notifications if changed paths or restore text could reveal sensitive information.
scripts/backup.js:207Unencrypted Full-State Backup Can Expose Credentials, Configuration, and Workspace Data
Referenced artifact was not completely inspected
- Script: `scripts/backup.js` (cross-platform)
Referenced artifact was not completely inspected
- Script: `scripts/backup.js` (cross-platform)
Referenced artifact was not completely inspected
- Script: `scripts/backup.js` (cross-platform)
The skill instructs users to read environment variables and configure backup-related secrets/paths, but it declares no explicit tool scope or permissions boundary. In an agent ecosystem, missing scope makes the skill's capabilities less transparent and can enable unintended access to local state or secrets during execution.
The description uses broad trigger language like backup automation, snapshot/restore, and GitHub backup repos, which can cause the skill to activate in contexts the user did not intend. Because the skill performs filesystem backup and scheduling actions, accidental invocation can expose sensitive data or create persistent jobs without clear user intent.
The skill advertises full snapshots of ~/.openclaw and Discord notifications but does not warn that backups may contain sensitive local data, credentials, history, or workspace contents. Omitting this warning is dangerous because users may transmit summaries or store archives in external repositories/services without understanding the confidentiality risk.
The skill explicitly instructs creation of a recurring cron job in the gateway environment, establishing persistence. Persistent scheduled execution increases risk because a misconfigured or later-modified backup script can repeatedly access and exfiltrate local state or continue operating after the original user session ends.
node ~/.openclaw/workspace/tools/openclaw-backup.js
4) Create cron (OpenClaw cron runs in the gateway environment):
```bash
openclaw cron add --name "openclaw-backup-daily" \
--cron "0 5,10,15,20 * * *" --tz "America/Sao_Paulo" \
The configuration explicitly supports pushing backups to a remote Git repository and sending Discord notifications, which can transmit backup-related data off-host. In a backup skill, this is contextually plausible, but the file provides no warning, consent guidance, or data-minimization note, increasing the risk that users exfiltrate sensitive workspace contents or metadata without realizing it.
The file specifies America/Sao_Paulo as the default timezone, which imposes a locale-specific default in natural-language configuration guidance. No opt-in, alternative selection guidance, or region-specific justification is provided.
Dependencies lack version pinning, allowing potential malicious package updates. Consider pinning versions.
"version": "1.0.0",
"description": "Cross-platform OpenClaw backup script",
"dependencies": {
"minimatch": "^9.0.5",
"tar": "^6.2.1"
}
}
Dependency has known vulnerabilities (CVEs). Using packages with unpatched security flaws exposes the environment to known exploits.
Dependencies lack version pinning, allowing potential malicious package updates. Consider pinning versions.
"description": "Cross-platform OpenClaw backup script",
"dependencies": {
"minimatch": "^9.0.5",
"tar": "^6.2.1"
}
}
Dependency has known vulnerabilities (CVEs). Using packages with unpatched security flaws exposes the environment to known exploits.
Detected: suspicious.dangerous_exec