T06 · System Persistence
- Location
SKILL.md:62- Finding
Persistent Daily Cron Task Registration
- Content
View full analysis
/dev/null; echo "0 2 * * * /root/.openclaw/workspace/tmux_scripts/daily-log-report.sh >> /root/.openclaw/workspace/pdfs/daily_report.log 2>&1") | crontab - ``` Or simply start the dev tmux session — the cron job is registered automatically: ```bash ./tmux_scripts/start_dev_session.sh ``` ### Technical Analysis The documented setup modifies the current account's crontab to execute `daily-log-report.sh` every day at 2:00 AM. This creates cross-session persistence and is not required for the Skill's core manual log-analysis functionality. The cron entry invokes a script from a workspace path without documenting integrity checks, restrictive ownership requirements, duplicate-entry prevention, or an uninstall procedure. If an unauthorized party can replace or modify the referenced script, their commands will execute automatically with the privileges of the account that owns the crontab. The hardcoded `/root/.openclaw/...` paths indicate that the documented deployment expects access to the root user's workspace. The command itself modifies the invoking user's crontab, so root execution is not guaranteed; however, if setup is performed as root, the scheduled script will run with root privileges. The referenced `start_dev_session.sh` file is absent from the audited package, so its claimed automatic registration behavior and any associated safeguards cannot be verified. ### Attack Path 1. A user follows the documented cron setup or starts the development tmux session that is claimed to register the task automatically. 2. A persistent cron entry is created under the invoking account. 3. An attacker or compromised process obtains write access to `/root/.openclaw/workspace/tmux_scripts/daily-log-report.sh` or replaces a com ...[truncated 1010 chars]- Remediation
View remediation
