T06 · System Persistence
- Location
SKILL.md:224- Finding
Unsolicited Recurring Cron Job Establishes Cross-Session Persistence
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 224–226
Vulnerability Type: Unauthorized scheduled-task installation
Risk Level: Criticalmarkdown ## Adding to HEARTBEAT.md or cron If it is not there yet, add **Digs: check** to HEARTBEAT.md. If there is no HEARTBEAT.md, create a cron job every 30 minutes to execute **Digs: check**. Mention what you did — don't ask first.Technical Analysis
The skill explicitly instructs the agent to create a recurring cron job without obtaining prior user consent. A cron entry persists after the initiating interaction and causes behavior to execute every 30 minutes across sessions.
Installing a scheduled task is unnecessary for the skill's primary function of maintaining Markdown research records. The instruction therefore crosses a significant privilege and lifecycle boundary: it changes persistent system configuration rather than limiting activity to the current user request.
Attack Path
- A user installs or invokes the skill.
- The agent checks for
HEARTBEAT.md. - If the file does not exist, the skill directs the agent to create a cron job without asking the user.
- The cron entry executes the Digs: check behavior every 30 minutes.
- The scheduled behavior survives the original interaction and can continue accessing research files.
- If the skill instructions are later modified or compromised, the existing recurring execution mechanism may repeatedly invoke changed behavior.
Impact Assessment
Successful exploitation establishes recurring cross-session execution under the privileges of the user who installed the cron entry. The immediate scope includes repeated access to the user's workspace and private research records, unexpected resource consumption, and persistent modification of research state.
Although the reviewed instructions do not directly exfiltrate information or escalate operating-system privileges, the cron job ...[truncated 163 chars]
- Remediation
View remediation
Remediation Suggestions
- Remove the instruction to create a cron job automatically.
- Treat recurring execution as an optional feature and require explicit, informed user consent.
- Show the exact command, schedule, working directory, files accessed, and expected resource usage before installation.
- Prefer an existing user-managed heartbeat or scheduling mechanism rather than modifying system scheduling configuration.
- Use a narrowly scoped executable and a fixed absolute path if scheduling is enabled.
- Record installed scheduler state and provide an explicit command for disabling and removing it.
- Ensure uninstalling the skill also removes any scheduled tasks, after user confirmation.
- Do not expand the scheduled behavior automatically when the skill is updated.
