T06 · System Persistence
- Location
SKILL.md:23- Finding
Persistent Daily Execution Through an Automatically Installed Cron Job
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This skill openly sets up unattended daily updates, but that gives persistent authority to change the bot and all installed skills without review at each run.
Install only if you intentionally want Clawdbot to update itself and every installed skill automatically. Prefer a dry-run or notification-only schedule, pin or approve versions before installation, and confirm you know how to list and remove the `Daily Auto-Update` cron job.
SKILL.md:23Persistent Daily Execution Through an Automatically Installed Cron Job
SKILL.md:48Unpinned Automatic Updates Allow Supply-Chain Payload Installation
The script performs clawdhub update --all, which self-modifies the agent's installed capabilities by replacing or altering skills from an external source. This is dangerous because it expands the trusted computing base and enables supply-chain compromise or behavioral drift in future agent runs without manual 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"
This skill explicitly configures unattended daily updates for both the core bot and all installed skills, which can modify executing software without a fresh user approval at the time of change. Even if intended for convenience, automatic update behavior increases supply-chain and operational risk because a compromised registry, bad release, or incompatible update could be pulled and applied automatically.
The guide promotes unattended daily updates of the core bot and installed skills without requiring explicit user acknowledgment of the risks of automatic software changes. This is dangerous because it can introduce breaking changes, supply-chain compromise, or unintended behavior changes without human review, especially when skills are also updated automatically.
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 job is configured to execute update and migration actions automatically, including clawdbot doctor --yes and clawdhub update --all, with no user-facing warning or approval gate. This increases risk because it combines unattended package changes, migrations, and agent-delivered execution on a schedule, making accidental breakage or malicious upstream updates harder to detect before they take effect.
No suspicious patterns detected.