Back to skill

Security audit

Skill Release Gate(技能发布三铁律闸门)

Security checks for vulnerabilities and agentic risk

Overview

This offline release checker needs review because it can approve content containing missed secrets and applies its file-boundary checks inconsistently.

Use a sandboxed copy of the intended release directory and keep reports private. Require independent checks before publication: PASS can omit credential files and miss encoded secrets. Fix file coverage, decoding, and direct-file symlink validation before relying on this as an automated release gate. Verification used source inspection and synthetic in-memory tests.

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 Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • 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 (6)

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

This finding identifies the same enforceable-scope mismatch: accepting an arbitrary --path does not restrict access to a trusted project root. A directly supplied file symlink also reaches the read operation without the boundary checks used during directory enumeration, enabling out-of-scope reads with the process's permissions.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

The project-directory-only declaration is not enforced by the bundled scanners: the caller controls the scan root, and explicitly supplied files bypass traversal-time symlink checks. This can cause reads outside the authorized project and expose matching information through scanner output; offline operation limits remote exfiltration but does not enforce filesystem isolation.

Content

No source excerpt is available for this finding.

Skill declares no tool scope ('permissions' or 'allowed-tools') but code capabilities were detected: file_read.

Medium
Category
MCP Least Privilege
Confidence
70% confidence
Finding

Without declared permissions the skill's intent is opaque and cannot be validated.

Content

No source excerpt is available for this finding.

The scan target is not restricted to the permitted project directory.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The scanner derives its boundary from the caller's --path rather than checking an independently authorized project directory. Its single-file branch additionally follows file symlinks without containment validation, and matching internal paths, hostnames, or names are printed verbatim, making unauthorized local disclosure possible despite the lack of network access.

Content

No source excerpt is available for this finding.

The documented fail-closed behavior for ambiguous UTF-16 decoding is not implemented.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

For NUL-containing input, the scanner accepts UTF-16 decoding candidates merely because their decoded strings contain no NUL characters, using replacement decoding rather than validating the encoding. If those candidates produce no matches, execution can return PASS instead of the documented fail-closed result, allowing ambiguous or malformed content to receive unwarranted release approval.

Content

No source excerpt is available for this finding.

The scan root is caller-controlled rather than restricted to the permitted project directory (L079–L101).

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The scanner treats the caller-selected path as its own authorization boundary, so its containment helper does not enforce the declared project-directory-only restriction. Explicit single-file inputs also bypass symlink checks, allowing reads of external files; output masking and offline execution reduce disclosure severity but do not prevent unauthorized access.

Content

No source excerpt is available for this finding.