Back to skill

Security audit

Skill Skeleton Generator(技能骨架生成器)

Security checks for vulnerabilities and agentic risk

Overview

This template generator can overwrite existing agent instructions without warning and does not enforce its advertised directory and symlink safeguards.

Before use, choose a new, empty directory inside a restricted workspace, avoid symlinked destinations, and back up existing instruction files. Prefer a revision that enforces containment, rejects symlinks, and refuses overwrites by default. Do not rely on the advertised JSON or fail-closed behavior. Review covered every bundled file; filesystem operations were intercepted during verification, so host-specific permissions and actual symlink effects were not exercised.

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
  • 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
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (2)

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The declared project-dir-only boundary is not enforced by the supplied implementation: --out can select absolute paths or traverse into parent directories. This permits creation or overwriting of SKILL.md and AGENTS.md outside the project under the process's filesystem privileges, potentially damaging files or altering instructions consumed by other agents.

Content

No source excerpt is available for this finding.

The output directory is unrestricted despite the manifest's project-dir-only filesystem scope.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The script passes the unvalidated --out argument directly to directory creation and file writes, allowing absolute paths and parent-directory traversal despite the project-dir-only permission declaration. Opening the fixed output filenames in write mode also truncates existing files and follows symlinks, enabling out-of-scope modification within the process's filesystem privileges.

Content

No source excerpt is available for this finding.