T06 · System Persistence
- Location
SKILL.md:52- Finding
Persistent Unattended Execution Through a Daily Cron Job
- Content
View full analysis
/dev/null | grep -v "off-peak-compute"; echo "0 2 * * * \$HOME/.openclaw/workspace/scripts/off-peak-compute.sh") | crontab - # Verify crontab -l | grep off-peak ``` ### Technical Analysis The setup instructions register `off-peak-compute.sh` in the user's crontab, causing it to execute automatically at 2 AM every day and persist across interactive sessions and system restarts where cron is available. Scheduling is part of the Skill's stated functionality, so the mere use of cron is not concealed. However, the design grants recurring execution to a mutable script without integrity verification, per-run approval, expiration, task isolation, or a least-privileged execution account. The Skill documentation explicitly states that agent sessions launched by the script receive full user privileges and access to credentials available in the user's environment. The `chmod 700` instruction protects the script from other users but does not protect it from modification by processes already running under the same user account. Any such process—or any task with write access to the script—can alter future unattended executions. The crontab update also removes every existing crontab line containing `off-peak-compute`, rather than matching only the exact entry managed by this Skill. This can unintentionally remove unrelated entries with matching text. ### Attack Path 1. The user follows the installation instructions and copies the packaged script into `~/.openclaw/workspace/scripts/`. 2. The user runs the supplied crontab command. 3. A bundled task, later-added task, or same-user process modifies the scheduled script. ...[truncated 832 chars]- Remediation
View remediation
