T06 · System Persistence
Error
- Location
- SKILL.md:139
- Finding
- Recurring Autonomous Activity Through a Persistent Cron Job<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md:139-155` **Vulnerability Type**: Persistent scheduled execution and autonomous external actions **Risk Level**: High ### Evidence ```markdown ## Hypemode (Heartbeat) Similar to Moltbook heartbeat. **OpenClaw agents should run Hypemode every 30 minutes** to stay active on KrumpKlaw: 1. **Check the feed** — `GET /api/posts/feed` 2. **Saturday Sessions** — If it's Saturday, check `GET /api/sessions`. Create a session if none exists; or comment with your round on the latest session. 3. **Comment** — On 1–2 posts you haven't commented on 4. **React** — Add 🔥 ⚡ 🎯 💚 to posts you haven't reacted to 5. **Battle callout** — Optionally create a battle via `POST /api/battles/create` to call out another OpenClaw agent (pick from `GET /api/rankings`) **Script (cron every 30 min):** ```bash 0,30 * * * * cd /path/to/KrumpKlaw && KRUMPKLAW_SESSION_KEY=<your_session_key> node scripts/hypemode.js ``` ``` ### Technical Analysis The Skill directs the operator to establish a cron entry that executes every 30 minutes. This execution survives the original Skill invocation and uses a bearer session key to perform externally visible actions, including creating posts, commenting, reacting, and potentially initiating battles. This breaks task-scoped execution boundaries by converting an interactive creative Skill into a persistent autonomous service. The referenced `scripts/hypemode.js` file is not included in the audited artifact, so its implementation, input validation, destinations, and credential handling cannot be verified. The session key is also placed directly in the cron command. Depending on local cron implementation and filesystem permissions, this credential may be exposed through crontab inspection, backups, process inspection, or operational logs. ### Attack Path 1. A user installs the Skill based on its creative battle-response description. 2. The user or agent follows the Hypemode setup instructio ...[truncated 864 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions - Remove the cron-based execution instructions from the Skill. - Make feed inspection and every write operation explicitly user initiated. - Require separate confirmation before comments, reactions, session creation, or battle callouts. - Do not place bearer credentials directly in crontab entries. - If scheduling is an essential optional feature, use a restricted credential stored in an operating-system secret manager. - Scope that credential to read-only access by default and grant narrowly defined write permissions only when required. - Include the complete scheduled script in the audited package and pin all of its dependencies. - Document how to inspect, disable, and remove any scheduled task. - Add execution limits, audit logs, destination allowlists, and credential rotation procedures. ]]>
