T06 · System Persistence
Error
- Location
- SKILL.md:31
- Finding
- Persistent Daily Update Task Executes Across Sessions<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md:31-39` **Vulnerability Type**: Persistent scheduled task **Risk Level**: High ### Vulnerable Code ```bash clawdbot cron add \ --name "Daily Auto-Update" \ --cron "0 4 * * *" \ --tz "America/Los_Angeles" \ --session isolated \ --wake now \ --deliver \ --message "Run daily auto-updates: check for Clawdbot updates and update all skills. Report what was updated." ``` ### Technical Analysis The Skill instructs the Agent to create a daily scheduled task that survives the setup session. The task wakes an isolated Agent session and requests updates to Clawdbot and every installed Skill. This creates persistent system behavior rather than performing a one-time, user-approved operation. Because the scheduled message initiates software modification automatically, future changes can be installed without contemporaneous review or confirmation. ### Attack Path 1. A user asks the Agent to configure automatic updates. 2. The Agent executes the documented `clawdbot cron add` command. 3. A persistent daily cron entry is registered. 4. At the configured time, the task wakes a new isolated session. 5. The session performs core and Skill update operations without additional user confirmation. 6. The task continues executing across future sessions until explicitly removed. ### Impact Assessment The task obtains the permissions available to the Clawdbot Gateway or cron execution account. Depending on the installation, this can include write access to the Clawdbot installation, installed Skills, configuration, scripts, and globally installed packages. The persistence affects all future scheduled runs and creates a recurring execution path through which compromised upstream updates could modify the Agent environment. No direct privilege escalation beyond the scheduler account is demonstrated. ]]>
- Remediation
- <![CDATA[ ## Remediation Suggestions - Require explicit, informed user confirmation immediately before creating any recurring task. - Default to a notification-only or `--dry-run` workflow rather than unattended installation. - Display the exact schedule, commands, execution identity, and affected directories before registration. - Require separate approval before each core or Skill update is applied. - Limit the scheduled task to checking for available updates and delivering a report. - Run the task with a dedicated least-privilege account that cannot modify unrelated system files. - Document and verify removal using: ```bash clawdbot cron remove "Daily Auto-Update" clawdbot cron list ``` - Maintain an audit log of task creation, modification, execution, and removal. ]]>
