T06 · System Persistence
- Location
scripts/setup.sh:103- Finding
Automatic Installation of a Persistent Scheduled Patrol
- Content
View full analysis
/dev/null | grep -c '"name":\s*"ai-mother-patrol"' || echo "0") if [ "$EXISTING_CRON" -ge "1" ]; then echo "✅ Scheduled patrol already configured" else # Create cron job (every 30 minutes) if openclaw cron add \ --name "ai-mother-patrol" \ --every "30m" \ --message "$CRON_MSG" \ --channel "feishu" \ --to "user:$OPEN_ID" \ --session "isolated" \ --timeout-seconds 120 \ --announce \ 2>/dev/null; then echo "✅ Scheduled patrol configured (every 30 minutes)" ``` ### Technical Analysis The setup wizard automatically registers a recurring OpenClaw cron task after collecting the Feishu Open ID. There is no separate opt-in prompt immediately before creating this persistent job. The scheduled instruction launches an isolated agent session every 30 minutes, directs it to execute the patrol script, and configures a Feishu delivery target. This persists beyond the original setup process and continues to consume local and external resources across sessions. Although recurring monitoring is documented as a feature, automatic installation without a dedicated persistence confirmation violates least-surprise and gives the Skill ongoing execution capability. ### Attack Path 1. A user launches `scripts/setup.sh`. 2. The user provides a valid Feishu Open ID. 3. Setup sends a test notification. 4. Without requesting separate ...[truncated 593 chars]- Remediation
View remediation
