T06 · System Persistence
- Location
SKILL.md:79- Finding
Optional Cron Configuration Establishes Persistent Privileged Execution
- Content
View full analysis
> /var/log/skill-scan.log 2>&1 # Moltbook monitor every 30 min */30 * * * * bash /root/clawd/skills/security-skill-scanner/moltbook-monitor.sh >> /var/log/moltbook-monitor.log 2>&1 ``` ``` ### Technical Analysis The documentation instructs users to register two recurring cron jobs. These jobs survive the original skill invocation and execute files from `/root/clawd/skills/security-skill-scanner/` every day or every 30 minutes. Automated scheduling is consistent with the advertised daily reporting and continuous monitoring features, and the instructions mark it as optional. Nevertheless, persistence is not necessary for the skill's core on-demand scanning function. The use of `/root` and `/var/log` paths also encourages deployment in a privileged context rather than under a dedicated, least-privileged account. The referenced `skill-scanner.py` and `moltbook-monitor.sh` files are absent from the audited project. Their integrity, network activity, command execution, and data-handling behavior therefore cannot be verified. If these paths are writable or their contents are later replaced, cron will repeatedly execute the replacement with the privileges of the crontab owner. ### Attack Path 1. A user follows the documentation and adds the provided entries to a crontab. 2. The entries remain active across shell sessions and system restarts where cron is enabled. 3. A script is subsequently placed at, or replaces a file at, one of the referenced paths. 4. Cron executes that script at the configured interval without further user confirmation. 5. If the entries were added to root's crontab, the substituted code e ...[truncated 690 chars]- Remediation
View remediation
