Back to skill

Security audit

Agent Loop Guard(失控循环护栏)

Security checks for vulnerabilities and agentic risk

Overview

This skill needs review because its promised file restrictions and automatic safeguards are not enforced by the supplied code.

Use sanitized traces within an independently enforced project sandbox. Before relying on this skill, require enforced path and symlink restrictions plus diagnostic redaction. Treat it as a trace analyzer: automatic stopping and token-budget protection are not implemented, and any external stopping mechanism needs a clearly defined scope.

Vulnerability Patterns
  • 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
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Vulnerability Patterns
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Output HandlingUnvalidated Output Injection, Cross-Context Output, Unbounded Output
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
Findings (3)

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The skill promises project-directory confinement and no symlink following, but the supplied trace reader opens the caller-provided path without enforcing either restriction. An out-of-project path or symlink can therefore cause unauthorized local reads, with trace-shaped file contents potentially appearing in diagnostic output; no network exfiltration is demonstrated.

Content

No source excerpt is available for this finding.

The workflow mandates a system-level circuit break without warning about the effects of interrupting active work.

Medium
Category
Output Handling
Confidence
86% confidence
Finding

The workflow instructs the agent to trigger a system-level circuit break automatically when a loop or stall is confirmed; the instruction is repeated at L121. Although circuit-breaking is disclosed, the skill does not warn that abruptly interrupting active operations may leave partial changes or inconsistent state, nor clarify which processes the interruption affects.

Content

No source excerpt is available for this finding.

The trace reader can access files outside the declared project-directory scope.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

Path(p).read_text() accepts absolute paths and parent-directory traversal and follows symlinks without checking a trusted project boundary. A caller controlling --trace can make the tool read files accessible to its process outside the authorized scope, and matching trace content can be exposed through diagnostics.

Content

No source excerpt is available for this finding.