T06 · System Persistence
- Location
SKILL.md:39- Finding
Persistent Scheduled Tasks and Agent Instruction Modification
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 39-45
Vulnerability Type: Persistent scheduled execution and durable agent-state modification
Risk Level: HighVulnerable Code:
bash ## Install ```bash openclaw plugins install @icex-labs/openclaw-memory-engine bash ~/.openclaw/extensions/memory-engine/setup.sh openclaw gateway restartSetup handles: interactive core memory, legacy data migration, quality pass, maintenance crons, agent instruction patching. One command.
text ### Technical Analysis The documented setup procedure executes a package-provided shell script. The description explicitly states that this script creates maintenance cron jobs and patches agent instructions. Cron jobs survive the initial installation process and execute code in future sessions. Agent instruction patches also create durable state capable of changing subsequent agent behavior. The repository contains only `SKILL.md`; therefore, the exact scheduled commands, execution frequency, modified instruction files, and rollback behavior cannot be audited. Although persistence may support legitimate memory maintenance, silently combining scheduled execution and instruction modification into one setup command creates a high-impact trust boundary. Any malicious or compromised package release could use these mechanisms to retain execution or behavioral influence after installation. ### Attack Path 1. An attacker compromises the package publisher, package release process, or distributed setup script. 2. A user follows the documented installation procedure. 3. The user executes `setup.sh` under their account. 4. The script creates package-controlled cron jobs and modifies persistent agent instructions. 5. The installed jobs continue executing after the installation session ends. 6. Modified instructions continue influencing later agent sessions until manually identified and removed. ### Impact Assessmen ...[truncated 501 chars]- Remediation
View remediation
Remediation Suggestions
- Remove automatic cron creation and agent instruction patching from the default setup path.
- Require separate, explicit user consent for each persistent modification.
- Display the exact cron entries, commands, schedules, target instruction files, and proposed diffs before installation.
- Restrict scheduled tasks to a dedicated least-privileged account or sandbox.
- Provide documented commands that completely remove cron entries, instruction changes, stored data, and installed components.
- Make maintenance an opt-in operation that can be invoked manually instead of installing a persistent task.
- Include the setup implementation in the reviewed project so its behavior can be independently audited.
- Record all persistent changes in a machine-readable installation manifest to support verification and rollback.
