byted-tos-openclaw-backup
Audited by Socket on Sep 21, 2026
2 alerts found:
Anomalyx2The code appears to be a legitimate backup restoration script and contains no clear malware, exfiltration, persistence, or sabotage behavior. However, sourcing .config executes arbitrary shell commands, and unvalidated BACKUP_DATE enables path traversal or unintended backup-directory selection. Because restored files can overwrite privileged OpenClaw configuration and skill files, the script should validate the date strictly, canonicalize and constrain the backup path beneath the mount root, and use a non-executable configuration format or tightly restrict its permissions.
The script is intended to list local backups and contains no evident malicious behavior in its backup enumeration logic. However, `source "$CONFIG_FILE"` is an arbitrary code execution sink: compromise or unauthorized modification of the adjacent `.config` file would result in command execution with the script's privileges. The configuration should be trusted and protected, or parsed as data instead of sourced.