T06 · System Persistence
- Location
README.md:143- Finding
Recurring Heartbeats and Cron Jobs Establish Persistent Autonomous Execution
- Content
View full analysis
Vulnerability Details
File Location:
README.md:143-153,README.md:271-303;SKILL.md:17-20
Vulnerability Type: Scheduled cross-session autonomous execution
Risk Level: HighVulnerable Code
README.md:143-153:json5 { agents: { defaults: { heartbeat: { every: "15m", // More frequent = more work done target: "last", activeHours: { start: "06:00", end: "23:00" } } } } }README.md:271-303:bash openclaw cron add \ --name "Daily Progress Report" \ --cron "0 22 * * *" \ --tz "America/Vancouver" \ --session isolated \ --message "Generate daily progress report. Read tasks/QUEUE.md for completed tasks. Summarize: completed, in progress, blockers, tomorrow's plan."bash openclaw cron add \ --name "Morning Kickoff" \ --cron "0 7 * * *" \ --tz "America/Vancouver" \ --session main \ --system-event "Morning kickoff: Review task queue, pick top priorities, spawn team members for parallel work." \ --wake nowbash openclaw cron add \ --name "Overnight Work" \ --cron "0 3 * * *" \ --tz "America/Vancouver" \ --session isolated \ --message "Overnight work session. Pull tasks from queue that don't need human input. Do research, writing, or analysis. Log progress."Technical Analysis
The Skill instructs the operator to configure a heartbeat that executes every 15 minutes and to register multiple scheduled cron jobs. These triggers survive the interaction in which the Skill was installed and initiate future agent sessions without a new user request.
The overnight and morning jobs do more than generate passive notifications: they direct the agent to retrieve tasks, perform work, and potentially spawn additional team members. The effective behavior of each unattended run depends on the current queue contents and the tools available to the agent at ...[truncated 1646 chars]
- Remediation
View remediation
Remediation Suggestions
- Do not enable recurring heartbeats or cron jobs by default.
- Require explicit informed consent before creating each persistent trigger.
- Add a confirmation gate before every scheduled run performs tool-mediated work.
- Restrict scheduled sessions to an allowlisted set of task types and least-privilege tools.
- Prohibit scheduled tasks from changing credentials, permissions, persistence settings, or agent configuration.
- Apply strict limits for execution duration, token consumption, filesystem scope, network destinations, and spawned agents.
- Record the trigger, queue entry, task provenance, tools used, files changed, and external messages in an immutable audit log.
- Provide documented commands to list, pause, disable, and permanently remove all installed heartbeat and cron triggers.
- Expire recurring jobs automatically after a short period unless the operator explicitly renews them.
