T06 · System Persistence
- Location
scripts/setup.sh:47- Finding
Installer Creates a Persistent Hourly Cron Task
- Content
View full analysis
> /tmp/memory-heartbeat.log 2>&1" (crontab -l 2>/dev/null | grep -v "memory.sh heartbeat"; echo "$CRON_JOB") | crontab - echo "✅ System cron registered (hourly monitoring sentinel)" ``` ### Technical Analysis The installer modifies the current user's crontab and registers `memory.sh heartbeat` for execution every hour. This scheduled task survives the installation process and subsequent OpenClaw sessions. Periodic heartbeat monitoring is related to the Skill's declared functionality and is disclosed in `SKILL.md`. However, the quick-install procedure creates the persistent task automatically, without: - Requesting explicit confirmation. - Offering an installation option that excludes cron registration. - Verifying that the installed script is protected from modification by less-trusted processes. - Providing an uninstall procedure. - Preserving and identifying the entry through a unique, safely managed marker. The cron target is copied into `$OPENCLAW_WORKSPACE/scripts` or `$HOME/.openclaw/workspace/scripts`. If another process can modify that workspace file, the scheduled task becomes a reusable execution mechanism for the replacement code. The cron registration therefore exceeds the minimum privileges needed for manual memory storage and retrieval. It is only necessary for the optional hourly monitoring feature and should not be an unconditional side effect of installation. ### Attack Path 1. A user follows the documented quick-install instructions and runs `scripts/setup.sh`. 2. The installer copies `memory.sh` into the user's OpenClaw workspace. 3. The installer adds an hourly cron entry without requesting separate consent. 4. An attacker or co ...[truncated 718 chars]- Remediation
View remediation
