T06 · System Persistence
Warning
- Location
- SKILL.md:108
- Finding
- Recurring OpenClaw Task Creates Cross-Session System Persistence## Vulnerability Details **File Location**: `SKILL.md`, lines 108-119 **Vulnerability Type**: Scheduled agent task persistence **Risk Level**: Medium **Vulnerable Code**: ```bash openclaw cron add \ --name "Weekly Trend Report" \ --schedule "0 10 * * 1" \ --timezone "America/New_York" \ --task "Read skills/social-trend-report/SKILL.md and generate this week's trend report using config.json. Save to reports/ and announce in Discord." \ --model sonnet ``` ### Technical Analysis The documented setup installs a recurring OpenClaw task that survives the original skill session. Every week, the task loads the skill, reads workspace configuration, accesses external services, writes reports, and potentially publishes information to Discord. Although the behavior is documented and requires the user to execute the command, it establishes persistent automated execution without specifying a lifetime, restricted execution permissions, an approved Discord destination, or a removal procedure. This is a persistence risk because the scheduled agent continues operating after the initiating interaction has ended. ### Attack Path 1. A user follows the automation instructions and runs the supplied `openclaw cron add` command. 2. OpenClaw creates a recurring task that remains active across sessions. 3. On each schedule, the task reads `SKILL.md` and `config.json`. 4. The task performs network collection and writes generated reports. 5. If Discord announcement capabilities are configured, report information is transmitted to the configured channel. 6. Execution continues until the user independently discovers and removes the scheduled task. ### Impact Assessment The task executes with the privileges and tool access assigned to the OpenClaw environment. It may repeatedly consume API quotas, access workspace configuration, create files, make network requests, and publish report contents externally. The finding does not dem ...[truncated 115 chars]
- Remediation
- ## Remediation Suggestions - Do not install recurring tasks as part of default setup. - Require explicit, informed confirmation before creating the schedule. - Display the exact schedule, tools, files, network destinations, and Discord channel before installation. - Apply least-privilege restrictions to the scheduled agent and limit it to approved files and domains. - Require confirmation before publishing report contents to Discord. - Add an expiration date or maximum execution count. - Document a precise command for listing, disabling, and deleting the task. - Prefer a one-shot report-generation command unless persistent automation is explicitly requested.
