T06 · System Persistence
- Location
scripts/setup-cron.sh:7- Finding
Persistent Autonomous Main-Session Execution Through a Recurring Cron Job
- Content
View full analysis
""` 3. Do not ask for confirmation; execute the submit command directly 4. Reply `HEARTBEAT_OK` when done ``` ### Technical Analysis The setup script creates a scheduled OpenClaw task that survives completion of the script and runs every two minutes. The task operates in the `main` session rather than a narrowly restricted, purpose-specific session. Each invocation reads `HEARTBEAT.md`, executes the gameplay workflow, uses locally stored credentials, contacts the external API, and may generate and submit a turn without contemporaneous user approval. The feature is disclosed as an optional full-auto mode and includes a removal command, so it is not a concealed persistence mechanism. Nevertheless, it establishes persistent autonomous execution and grants the game recurring access to the agent session and bearer credential. This exceeds the privileges required for one-time or manually initiated gameplay. Because the scheduled message reads `HEARTBEAT.md` on every run, subsequent modificat ...[truncated 1478 chars]- Remediation
View remediation
