T06 · System Persistence
Error
- Location
- SKILL.md:149
- Finding
- Persistent Autonomous Execution Through Recurring Cron Jobs## Vulnerability Details **File Location**: `SKILL.md`, lines 149–158 **Vulnerability Type**: Recurring scheduled-task persistence **Risk Level**: High **Vulnerable Code:** ```bash # Create cron job for daily maintenance 0 8 * * * openclaw run --task "daily-maintenance" 0 20 * * * openclaw run --task "evening-review" # Weekly optimization 0 9 * * 1 openclaw run --task "weekly-optimization" ``` ### Technical Analysis The skill directs users or agents to install recurring cron jobs that execute OpenClaw tasks after the original interaction has ended. This establishes cross-session persistence. The behavior and permitted operations of `daily-maintenance`, `evening-review`, and `weekly-optimization` are not defined or constrained in the audited package. The instructions do not require explicit approval for each execution, a dedicated least-privileged account, restricted writable paths, execution timeouts, or an expiration date. Consequently, these persistent jobs could repeatedly execute later-defined or modified task behavior with the permissions available to the OpenClaw process. ### Attack Path 1. The skill is loaded to configure proactive automation. 2. A user or agent follows the supplied cron setup instructions. 3. Persistent cron entries are installed for the OpenClaw process. 4. The scheduler invokes the underspecified tasks twice daily and once weekly. 5. If task definitions are subsequently modified, compromised, or resolved from an untrusted source, cron continues executing the changed behavior without contemporaneous user review. 6. The jobs retain the filesystem and service access of the account running OpenClaw. ### Impact Assessment Successful exploitation could provide repeated cross-session execution with the privileges of the OpenClaw account. Depending on that account's permissions and the eventual task definitions, the execution could read or modify workspace files, alter agent state, process ...[truncated 234 chars]
- Remediation
- ## Remediation Suggestions - Do not install recurring jobs by default. - Require informed user approval for every exact command, schedule, task definition, and permission scope. - Fully define and review each task before scheduling it. - Run scheduled jobs under a dedicated least-privileged account with narrowly restricted filesystem and network access. - Use absolute executable paths, a minimal environment, execution timeouts, locking, and integrity-checked task definitions. - Prefer user-triggered jobs or schedules that automatically expire. - Display installed jobs clearly and provide tested commands for disabling and removing them. - Require renewed authorization before a scheduled task definition can change.
