T06 · System Persistence
- Location
SKILL.md:39- Finding
Persistent Autonomous Execution Through a Recurring Cron Job
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This skill is an auto-updater, but it creates recurring unattended jobs that can update the core tool and every installed skill without fresh review.
Review this before installing. It is not just a reminder skill: it can create a persistent daily job that updates Clawdbot and every installed skill. Prefer dry-run or notification-only updates, pin or approve versions manually, avoid update-all if you only trust some publishers, and verify you know how to remove the cron job and where logs are written.
SKILL.md:39Persistent Autonomous Execution Through a Recurring Cron Job
SKILL.md:94Unpinned and Unattended Installation of Mutable Package and Skill Updates
references/agent-guide.md:48Automated State-Changing Migration Suppresses Failures
clawdhub update --all causes the agent environment to self-modify by pulling and installing updated skills from an external source. In an automated cron context, this is especially dangerous because it expands the attack surface to every installed skill and allows future upstream compromise, malicious updates, or breaking changes to be introduced without human review.
# Capture new version
CLAWDBOT_VERSION_AFTER=$(clawdbot --version 2>/dev/null || echo "unknown")
# Update skills
log "Updating skills via ClawdHub..."
SKILL_OUTPUT=$(clawdhub update --all 2>&1) || true
echo "$SKILL_OUTPUT" >> "$LOG_FILE"
The description does not clearly warn that the skill automatically updates software and writes persistent logs to disk, which weakens informed consent for actions that change the environment and retain operational data. Users may enable the skill expecting benign status checks while it actually performs package updates, creates cron jobs, and stores update history under a workspace path.
The invocation phrase is broad enough to match routine update-related requests and could cause the skill to initiate automated package and skill updates without the user clearly intending this specific high-impact action. In this context, unintended activation is risky because the documented behavior performs system changes, schedules cron jobs, and can trigger persistent update workflows.
The skill explicitly instructs persistent writes of detailed update state to a file in workspace memory, creating retained operational artifacts that may expose version data, timing, command details, and failure information to later sessions or other components with access to that directory. In an agent environment, this increases cross-session data persistence and may leak sensitive operational context beyond what is necessary for the update task.
**Phase 1: Preparation**
- Record start time
- Check current version
- Write to log file immediately
**Phase 2: Check for Updates**
- Check latest version (npm view)
Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
bun pm ls -g 2>/dev/null | grep clawdbot && echo "bun-global"
## Step 2: Create the Update Script (Optional)
For complex setups, create a helper script at `~/.clawdbot/scripts/auto-update.sh`:
The cron instructions schedule unattended updates for the core tool, run migrations via clawdbot doctor --yes, and update all skills without an explicit warning, review gate, or rollback guidance. This creates a real supply-chain and operational risk because future package or skill changes could alter agent behavior automatically and break workflows or introduce malicious code without user awareness at execution time.
The sample log format is written entirely in Chinese, which implies a default language choice for generated logs or reports. The document does not state that users can select their preferred language or that the locale is intentionally limited for a region-specific use case, creating a natural-language policy concern.
No suspicious patterns detected.