T06 · System Persistence
- Location
SKILL.md:31- Finding
Persistent Daily Update Task Executes Across Sessions
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill is clearly an auto-updater, but it creates a recurring task that can automatically change Clawdbot and every installed skill without per-update review.
Install only if you are comfortable with Clawdbot automatically updating itself and every installed skill on a schedule. Prefer a check-only or dry-run workflow, review updates before applying them, and make sure you know how to remove the cron job if behavior changes unexpectedly.
SKILL.md:31Persistent Daily Update Task Executes Across Sessions
references/agent-guide.md:39Unattended Retrieval and Installation of Mutable Remote Software
references/agent-guide.md:49Update and Migration Failures Are Suppressed
The skill instructs the agent to run clawdhub update --all, which self-modifies the agent's installed capabilities by replacing or changing skill code from an external source. This is a high-risk pattern because it can silently expand or alter future agent behavior, and when combined with automation it creates a persistent supply-chain execution path for unreviewed code.
# 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 emphasizes convenience but does not prominently warn that the skill will automatically modify installed software and skills on a recurring schedule. This reduces informed consent and can lead users to enable unattended updates without understanding the persistence, change scope, or risks from updating third-party components automatically.
The setup phrase is broad and action-oriented, allowing a casual or ambiguous user request to trigger creation of a persistent cron job that performs privileged software modifications. Because the skill installs unattended updates for both the main tool and all skills, an overly permissive trigger increases the chance of unintended activation and surprise execution.
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 instructions include clawdbot doctor --yes in an automated workflow, explicitly suppressing interactive confirmation for a command that may perform migrations or other state-changing repairs. Running this non-interactively in a scheduled update increases the risk of unintended data, configuration, or environment modifications that the user never reviewed.
The guide sets up unattended recurring updates for the core bot and all installed skills, which causes ongoing code changes from external sources without an explicit user-facing warning about supply-chain risk, compatibility breakage, or broader system impact. In this context, the danger is amplified because the cron job is configured to run automatically and deliver results after the fact, so new code may be installed before the user can review or approve it.