Back to skill

Security audit

Agent Autonomy Kit

Security checks for vulnerabilities and agentic risk

Overview

The skill is openly about autonomous agent work, but it promotes persistent scheduled execution and queue-driven actions without enough scoping or user approval controls.

Install only if you intentionally want unattended agent work. Before enabling heartbeats or cron jobs, restrict the session tools and writable paths, require approval for external posting and sensitive changes, keep the task queue human-reviewed, set budget and time limits, and document how to list and remove scheduled jobs.

Vulnerability Patterns
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • System PersistenceInstalls backdoors, hooks, services, or scheduled tasks that survive the run
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
Findings (2)

T06 · System Persistence

Error
Location
README.md:143
Finding

Recurring Heartbeats and Cron Jobs Establish Persistent Autonomous Execution

Content
View full analysis

Vulnerability Details

File Location: README.md:143-153, README.md:271-303; SKILL.md:17-20
Vulnerability Type: Scheduled cross-session autonomous execution
Risk Level: High

Vulnerable Code

README.md:143-153:

json5
{
  agents: {
    defaults: {
      heartbeat: {
        every: "15m",  // More frequent = more work done
        target: "last",
        activeHours: { start: "06:00", end: "23:00" }
      }
    }
  }
}

README.md:271-303:

bash
openclaw cron add \
  --name "Daily Progress Report" \
  --cron "0 22 * * *" \
  --tz "America/Vancouver" \
  --session isolated \
  --message "Generate daily progress report. Read tasks/QUEUE.md for completed tasks. Summarize: completed, in progress, blockers, tomorrow's plan."
bash
openclaw cron add \
  --name "Morning Kickoff" \
  --cron "0 7 * * *" \
  --tz "America/Vancouver" \
  --session main \
  --system-event "Morning kickoff: Review task queue, pick top priorities, spawn team members for parallel work." \
  --wake now
bash
openclaw cron add \
  --name "Overnight Work" \
  --cron "0 3 * * *" \
  --tz "America/Vancouver" \
  --session isolated \
  --message "Overnight work session. Pull tasks from queue that don't need human input. Do research, writing, or analysis. Log progress."

Technical Analysis

The Skill instructs the operator to configure a heartbeat that executes every 15 minutes and to register multiple scheduled cron jobs. These triggers survive the interaction in which the Skill was installed and initiate future agent sessions without a new user request.

The overnight and morning jobs do more than generate passive notifications: they direct the agent to retrieve tasks, perform work, and potentially spawn additional team members. The effective behavior of each unattended run depends on the current queue contents and the tools available to the agent at ...[truncated 1646 chars]

Remediation
View remediation

Remediation Suggestions

  • Do not enable recurring heartbeats or cron jobs by default.
  • Require explicit informed consent before creating each persistent trigger.
  • Add a confirmation gate before every scheduled run performs tool-mediated work.
  • Restrict scheduled sessions to an allowlisted set of task types and least-privilege tools.
  • Prohibit scheduled tasks from changing credentials, permissions, persistence settings, or agent configuration.
  • Apply strict limits for execution duration, token consumption, filesystem scope, network destinations, and spawned agents.
  • Record the trigger, queue entry, task provenance, tools used, files changed, and external messages in an immutable audit log.
  • Provide documented commands to list, pause, disable, and permanently remove all installed heartbeat and cron triggers.
  • Expire recurring jobs automatically after a short period unless the operator explicitly renews them.

T01 · Skill Instruction Hijacking

Error
Location
templates/HEARTBEAT.md:9
Finding

Untrusted Persistent Queue Entries Are Treated as Autonomous Work Instructions

Content
View full analysis

Vulnerability Details

File Location: templates/HEARTBEAT.md:9-19; related workflow in README.md:65-85
Vulnerability Type: Persistent queue-driven instruction redirection
Risk Level: High

Vulnerable Code

templates/HEARTBEAT.md:9-19:

markdown
## 2. Work Mode (use your time)

1. Read `tasks/QUEUE.md`
2. Pick highest-priority Ready task you can do
3. Do meaningful work on it
4. Update the queue (move to Done or note progress)
5. If time/tokens remain, pick another task

## 3. Before Finishing

- [ ] Log what you did to `memory/YYYY-MM-DD.md`

The associated queue rules in README.md:65-85 also state:

markdown
**Rules:**
- Any agent can pick up a "Ready" task
- Mark yourself when you start: `@agentname: task`
- Move to Done when complete
- Add new tasks as you discover them

Technical Analysis

The heartbeat template promotes entries from tasks/QUEUE.md into executable agent goals. It does not require the agent to authenticate the queue writer, validate task provenance, constrain entries to a safe schema, or obtain user approval before acting.

Because queue contents persist across sessions, any party or process with write access to the queue can influence later autonomous runs. A malicious entry can be phrased as an ordinary high-priority task while directing the agent to access sensitive files, communicate externally, alter configuration, or perform unrelated tool calls.

The instruction to add newly discovered tasks compounds this weakness by allowing task state to propagate into future heartbeat sessions. Although the template explicitly prioritizes human messages, it does not establish safety boundaries for queue-originated instructions.

Attack Path

  1. An attacker, compromised agent, integration, or other process obtains write access to tasks/QUEUE.md.
  2. It inserts a malicious instruction under the high-priority Ready section, disguising it as a ...[truncated 1296 chars]
Remediation
View remediation

Remediation Suggestions

  • Treat every queue entry as untrusted data rather than direct authorization to execute.
  • Require authenticated queue writers and retain immutable author, timestamp, and source metadata.
  • Replace free-form tasks with a constrained schema containing an approved task type, permitted resources, expected outputs, expiration time, and authorization identity.
  • Require explicit user approval before any queue task performs external communication, accesses sensitive files, changes configuration, invokes privileged tools, or creates further persistent work.
  • Reject entries that request credential access, permission changes, new scheduled tasks, disabling safeguards, arbitrary command execution, or transmission to unapproved destinations.
  • Use least-privilege scheduled sessions with workspace sandboxing and network destination allowlists.
  • Separate proposed follow-up tasks from approved Ready tasks; agent-generated entries should require human review before execution.
  • Cryptographically sign or otherwise integrity-protect approved queue entries where multiple processes can write to the workspace.
  • Log the exact queue entry, author, approval, selected tools, outputs, and resulting state changes for every autonomous run.
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (7)

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The README explicitly encourages autonomous, no-prompt operation that reads and updates project files, posts to team channels, and runs scheduled work sessions without requiring human confirmation or safety gates. In a skill whose purpose is increasing agent autonomy, the lack of clear guardrails around write actions, external communications, approval boundaries, and protected resources materially increases the risk of unauthorized changes, spam, data leakage, or destructive task execution.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The description 'Stop waiting for prompts. Keep working.' is broad activation language that encourages autonomous action without defining scope, approval boundaries, or stopping conditions. In a skill intended to change agent behavior, ambiguous wording can cause the agent to activate in situations the user did not explicitly authorize, increasing the risk of unintended actions.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The phrase 'Transform your agent from reactive to proactive' promotes proactive execution but does not explain required guardrails, user consent, or situations where the skill must not run. In this context, that omission is risky because the skill explicitly aims to alter agent autonomy, making accidental overreach more likely.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

Instructing users to 'Set up cron jobs for overnight work and daily reports' encourages unattended execution without any warning about monitoring, authorization, rate limits, cost exposure, or sensitive operations. Because the skill is specifically designed for continuous autonomous work, unattended scheduling materially increases the chance of uncontrolled actions or persistent misuse if the configuration is unsafe.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The template instructs the agent to autonomously read a task queue, select work, execute it, and then update repository state without any explicit gating on authorization, scope, or confirmation. In an ambiguous context, this can cause the agent to take unintended actions or continue operating beyond the user’s last explicit request, which is a real autonomy/scope-creep risk for agent workflows.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
84% confidence
Finding

All cron examples specify --tz "America/Vancouver", which imposes a specific locale setting in natural-language usage guidance. The README does not present this as an example to replace with the user's own timezone or offer a locale choice.

Content

No source excerpt is available for this finding.

Missing User Warnings

Low
Category
Not specified by scanner
Confidence
86% confidence
Finding

The instructions tell the agent to update queue and memory files and post team updates, but they do not warn that these actions modify repository or shared state. That omission can lead to silent writes, unexpected commits/changes, or disclosure into shared logs/channels without the user realizing the skill authorizes state changes.

Content

No source excerpt is available for this finding.