T06 · System Persistence
- Location
SKILL.md:56- Finding
Persistent Nightly Conversation-Extraction Task
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:56-64
Vulnerability Type: Persistent scheduled task
Risk Level: MediumVulnerable Code
bash ### Nightly Extraction Cron ```bash openclaw cron add \ --name "nightly-extraction" \ --cron "0 23 * * *" \ --tz "[YOUR_TIMEZONE]" \ --session isolated \ --message "Review today's conversations. Extract durable facts (relationships, decisions, status changes, milestones). Skip small talk. Update memory/YYYY-MM-DD.md with timeline. Update MEMORY.md with new patterns or preferences." \ --announcetext ### Technical Analysis The Skill directs the Agent to install an OpenClaw scheduled task that remains active after the initial setup operation. At 11:00 p.m. each day, the task launches an isolated Agent session, reviews conversation information, and modifies persistent memory files. This creates cross-session persistence through a scheduled task. Although the behavior is documented as part of the Skill's intended functionality, the instructions do not provide a retention limit, a consent-renewal mechanism, a command to disable or remove the task, or a requirement to confirm individual writes. The isolated session does not eliminate the persistence risk because it is still instructed to access conversation information and update files automatically. ### Attack Path 1. A user installs the Skill and asks the Agent to set up the memory system. 2. The Agent executes the documented `openclaw cron add` command using its existing permissions. 3. OpenClaw registers `nightly-extraction` as a recurring scheduled task. 4. At 11:00 p.m. each day, the task starts an unattended Agent session. 5. The session reviews available conversations and writes extracted information into `memory/YYYY-MM-DD.md` and `MEMORY.md`. 6. The processing and persistent file modifications continue across sessions until the task is explicitly removed. ### Impact Assess ...[truncated 620 chars]- Remediation
View remediation
Remediation Suggestions
- Make conversation extraction manual by default and require explicit informed consent before creating any recurring task.
- Display the exact schedule, information sources, destination files, and retention behavior before installation.
- Require confirmation before promoting extracted information into long-term memory.
- Apply data minimization and configurable retention limits to daily notes and long-term memory.
- Restrict the scheduled session to the minimum required files and conversation scope.
- Provide documented commands to inspect, pause, and permanently remove the scheduled task.
- Add an installation receipt that identifies the task name and records the user's consent.
- Prefer a staged workflow in which proposed memory changes are presented for approval rather than written automatically.
