Back to skill

Security audit

Zouroboros Autoloop

Security checks for vulnerabilities and agentic risk

Overview

This skill has a coherent optimization purpose, but it gives agents broad unsandboxed power to run shell commands, edit files, rewrite git history, and manage background processes with weak containment.

Install only in an isolated, disposable repository or container, and only with program.md files and executor commands you fully trust. Avoid sensitive repos or environments with valuable tokens, review setup/run/metric commands before use, and treat the MCP server as capable of starting local background work and terminating processes.

Vulnerability Patterns
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • 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
Findings (4)

T09 · Insecure Skill Coding Practices

Error
Location
src/autoloop.ts:190
Finding

Shell Command Injection Through Unsanitized Program Configuration

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Error
Location
src/mcp-server.ts:110
Finding

Arbitrary Shell Execution Through the MCP Executor Argument

Content
View full analysis
Remediation
View remediation

T05 · Unauthorized Access and Privilege Escalation

Error
Location
src/autoloop.ts:249
Finding

Unrestricted Path Resolution Allows Access Outside Approved Project Directories

Content
View full analysis
Remediation
View remediation

T05 · Unauthorized Access and Privilege Escalation

Error
Location
src/mcp-server.ts:181
Finding

Arbitrary Process Termination Through Untrusted Lock-File PID

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Tool MisuseTool Parameter Abuse, Chaining Abuse, Unsafe Defaults
Findings (37)

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · dist/autoloop.js (reported line 18)May include surrounding context.

js
try {
    const stdout = execSync(cmd, {
      cwd: opts?.cwd,
      env: { ...process.env, ...opts?.env },
      timeout: opts?.timeout,
      encoding: "utf-8",
      stdio: ["pipe", "pipe", "pipe"],

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
90% confidence
Finding

git reset --hard is a destructive operation that can be abused or accidentally triggered to wipe local modifications and revert repository state. In this skill, it is part of the normal loop behavior, so the concern is not attacker-controlled arguments but unsafe automation that can damage user data when used on the wrong repo or alongside uncommitted work.

Content

Scanner excerpt · dist/autoloop.js (reported line 104)May include surrounding context.

js
return sh("git rev-parse --short HEAD", { cwd }).stdout.trim();
}
function gitResetLast(cwd) {
  sh("git reset --hard HEAD~1", { cwd });
}
function gitCommit(file, message, cwd) {
  sh(`git add ${file}`, { cwd });

Context-Inappropriate Capability

High
Category
Not specified by scanner
Confidence
97% confidence
Finding

The stop operation reads a PID from .autoloop.lock, calls process.kill() on that PID, and then deletes the lock file. If an attacker can create or modify the lock file, or trick the tool into operating on an arbitrary directory, they can cause termination of unrelated local processes, resulting in denial of service or disruption of other workloads.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

High
Category
Not specified by scanner
Confidence
98% confidence
Finding

The tool schema explicitly exposes an executor string that is passed through to the autoloop process as a command-line argument, enabling users or upstream agents to supply arbitrary shell commands for proposal generation. In the context of an MCP server, this is dangerous because tool callers may be less trusted than the local host, and the skill is intentionally providing a path to local command execution without validation or restriction.

Content

No source excerpt is available for this finding.

Known Vulnerable Dependency: fast-uri==3.1.0 — 7 advisory(ies): CVE-2026-13676 (fast-uri vulnerable to host confusion via failed IDN canonicalization); CVE-2026-18446 (fast-uri vulnerable to host confusion via backslash authority introducer); CVE-2026-75975 (fast-uri vulnerable to server-side request forgery via malformed IPv6 normalizat) +4 more

High
Category
Supply Chain
Confidence
81% confidence
Finding

fast-uri 3.1.0 has multiple advisories covering URI parsing confusion and SSRF-relevant edge cases. As a transitive dependency of ajv used by the MCP SDK, this becomes more concerning in a skill that may process untrusted schemas, URLs, or remote endpoints during autonomous loops, because parser discrepancies can undermine allowlists and network boundary assumptions.

Content

No source excerpt is available for this finding.

Known Vulnerable Dependency: hono==4.12.12 — 16 advisory(ies): CVE-2026-47676 (Hono: app.mount() strips mount prefix using undecoded path, causing incorrect ro); CVE-2026-47675 (Hono: Cookie helper does not sanitize sameSite and priority, allowing Set-Cookie); CVE-2026-56761 (hono Improperly Handles JSX Attribute Names Allows HTML Injection in hono/jsx SS) +13 more

High
Category
Supply Chain
Confidence
87% confidence
Finding

hono 4.12.12 is flagged with numerous advisories, including routing, cookie, and injection-related issues. Since @modelcontextprotocol/sdk depends on Hono and this skill exposes an MCP server binary, the web/server context makes these issues more relevant than in a purely local library, even though the lockfile alone cannot prove each vulnerable feature is exercised.

Content

No source excerpt is available for this finding.

Known Vulnerable Dependency: ip-address==10.1.0 — 2 advisory(ies): CVE-2026-69192 (ip-address: Address4 decodes leading-zero octets as decimal while resolvers deco); CVE-2026-42338 (ip-address has XSS in Address6 HTML-emitting methods)

High
Category
Supply Chain
Confidence
80% confidence
Finding

ip-address 10.1.0 carries advisories for address parsing ambiguity and XSS in HTML-emitting methods. Here it is a transitive dependency of express-rate-limit; the parsing ambiguity is the more relevant risk because IP normalization mistakes can affect rate limiting or trust decisions if the skill is network-exposed, while the XSS issue is less likely unless HTML output methods are used.

Content

No source excerpt is available for this finding.

Credential Access

High
Category
Privilege Escalation
Confidence
89% confidence
Finding

The shell helper passes the full process.env into every spawned command, so any setup script, experiment command, metric extractor, or executor can read API keys, tokens, and other secrets from the environment. In this skill's context, that risk is amplified because these commands are partially controlled by program.md and by an external model executor, making credential exposure a realistic consequence of normal use.

Content

Scanner excerpt · src/autoloop.ts (reported line 76)May include surrounding context.

ts
try {
    const stdout = execSync(cmd, {
      cwd: opts?.cwd,
      env: { ...process.env, ...opts?.env },
      timeout: opts?.timeout,
      encoding: "utf-8",
      stdio: ["pipe", "pipe", "pipe"],

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
95% confidence
Finding

git reset --hard HEAD~1 is a destructive state-changing command that irreversibly drops the most recent commit and resets the working tree. In an autonomous agent loop, especially one driven by model output and experiment results, this can be abused or triggered unexpectedly to destroy user work, and it compounds the risk from automatic branch switching and file modification.

Content

Scanner excerpt · src/autoloop.ts (reported line 187)May include surrounding context.

ts
}

function gitResetLast(cwd?: string): void {
  sh("git reset --hard HEAD~1", { cwd });
}

function gitCommit(file: string, message: string, cwd?: string): string {

Context-Inappropriate Capability

High
Category
Not specified by scanner
Confidence
95% confidence
Finding

The tool schema explicitly exposes an executor string that is later passed through to the autoloop process, enabling callers to choose arbitrary local commands to run as part of the optimization loop. In an MCP server context, this meaningfully expands the skill from 'optimization loop' into general subprocess execution, which can be abused for arbitrary code execution, data exfiltration, or persistence on the host.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The README explicitly describes autonomous file edits, git branch creation, commits/reverts, experiment execution, and writing result files, but it does not clearly warn users that running the tool will modify their repository and execute commands locally. In a code-agent context, that omission is security-relevant because users may treat the tool as advisory when it is actually state-changing and can affect source code, history, and local artifacts.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The README instructs users to supply an executor command and gives examples of external CLI tools, but it does not prominently warn that the program will invoke arbitrary subprocesses on the user's machine. Because the executor is command-based and the tool is autonomous, misuse or misunderstanding could lead to unreviewed command execution, exposure of local data to external model CLIs, or execution in sensitive environments.

Content

No source excerpt is available for this finding.

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
88% confidence
Finding

The skill advertises and depends on code-execution-adjacent capabilities (node, git, shell-based executors, and environment access) but does not declare any explicit tool scope or permission boundary. In an autonomous optimization loop that edits files, runs commands, and commits changes, missing scope declarations increase the chance that a host agent grants broader execution or environment access than the user expects.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
89% confidence
Finding

The description uses broad activation language like 'Best for any task with a numeric metric' and presents a generic autonomous loop without clear limits on repository type, command safety, or execution boundaries. That ambiguity can cause an agent or user to apply the skill to sensitive projects or unsafe workflows where autonomous editing, experimentation, and command execution materially increase risk.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The markdown describes a tool that creates git branches, proposes code changes, runs setup and experiment shell commands, measures results, and commits or reverts autonomously, but it does not prominently warn users about those side effects. Because program.md can contain commands such as npm install and arbitrary run/extract steps, a user may trigger code execution and repository mutation without understanding the security implications.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The tool performs git reset --hard HEAD~1 automatically to discard failed or worse experiments with no user confirmation or safety interlock. In an autonomous loop that edits files and commits repeatedly, this can destroy uncommitted work or unexpectedly rewrite the working tree, making accidental data loss likely if run in the wrong repository or with concurrent changes.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
98% confidence
Finding

runExperiment executes config.runCommand, and later metric extraction executes config.metric.extract, both sourced from a parsed program.md file and passed to bash -c. That means anyone controlling the program spec can run arbitrary shell commands on the host, which is especially dangerous because this skill is explicitly autonomous and repeatedly executes these commands during optimization.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

The executor CLI value is interpolated directly into a shell command (${executor} < "${promptFile}") and executed, enabling arbitrary command execution if the parameter is malicious or mistakenly unsafe. Because this tool is designed to call external agent CLIs, the skill context increases risk: users are likely to provide dynamic commands, and the shell wrapper allows chaining, redirection, and command substitution.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The server launches a detached background subprocess with detached: true, stdio: "ignore", and unref() without any interactive confirmation, making it easy for an MCP client or agent workflow to start persistent local activity silently. In an agent-tooling context, that increases risk because a model can trigger long-running execution on the user's machine with limited visibility or immediate control.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

The stop action can terminate a process and remove its lock file immediately, without any confirmation or display of the PID or target details. That creates a safety hazard in agent-driven environments because an automated caller can disrupt active work or kill the wrong process with minimal friction.

Content

No source excerpt is available for this finding.

Session Persistence

Medium
Category
Rogue Agent
Confidence
75% confidence
Finding

Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.

Content

Scanner excerpt · dist/mcp-server.js (reported line 177)May include surrounding context.

js
return `Error: ${err.message}`;
  }
}
function toolAutoloopList(args) {
  const loops = listRecentLoops(args.limit || 10);
  if (loops.length === 0) return "No recent loops found.";
  let output = `Recent autoloop runs (${loops.length}):

Session Persistence

Medium
Category
Rogue Agent
Confidence
75% confidence
Finding

Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.

Content

Scanner excerpt · dist/mcp-server.js (reported line 219)May include surrounding context.

js
return `Error: ${err.message}`;
  }
}
function toolAutoloopList(args) {
  const loops = listRecentLoops(args.limit || 10);
  if (loops.length === 0) return "No recent loops found.";
  let output = `Recent autoloop runs (${loops.length}):

Session Persistence

Medium
Category
Rogue Agent
Confidence
75% confidence
Finding

Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.

Content

Scanner excerpt · src/mcp-server.ts (reported line 196)May include surrounding context.

ts
return `Error: ${err.message}`;
  }
}
function toolAutoloopList(args) {
  const loops = listRecentLoops(args.limit || 10);
  if (loops.length === 0) return "No recent loops found.";
  let output = `Recent autoloop runs (${loops.length}):

Session Persistence

Medium
Category
Rogue Agent
Confidence
75% confidence
Finding

Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.

Content

Scanner excerpt · src/mcp-server.ts (reported line 233)May include surrounding context.

ts
return `Error: ${err.message}`;
  }
}
function toolAutoloopList(args) {
  const loops = listRecentLoops(args.limit || 10);
  if (loops.length === 0) return "No recent loops found.";
  let output = `Recent autoloop runs (${loops.length}):

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

This code executes config.runCommand, config.metric.extract, config.setup, and the user-supplied executor through bash -c/shell redirection, with values sourced from program.md or CLI input. That gives the program spec and executor full arbitrary command execution on the host, which is highly dangerous in an autonomous loop because the content being optimized is treated as instructions and runs repeatedly with inherited environment variables.

Content

No source excerpt is available for this finding.