Back to skill

Security audit

游戏

Security checks for vulnerabilities and agentic risk

Overview

This skill does not show malicious behavior, but it asks for broad file and command authority that is not tightly scoped to game asset generation.

Review before installing. Use this only in an environment where file writes and command execution are sandboxed or require explicit approval, and avoid giving it access to unrelated projects, credentials, or sensitive files until the publisher narrows the permissions and documents exact allowed operations.

Vulnerability Patterns
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
  • 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
Findings (1)

T05 · Unauthorized Access and Privilege Escalation

Warning
Location
SKILL.md:16
Finding

Excessive System Tool Permissions for a Prompt-Based Asset Generation Skill

Content
View full analysis

Vulnerability Details

File Location: SKILL.md:16-19 and SKILL.md:251-254
Vulnerability Type: Excessive tool permissions and violation of least privilege
Risk Level: Medium

The Skill declares local file-reading, file-writing, and command-execution capabilities even though its documented purpose is AI-assisted game asset and game-concept generation.

yaml
tools:
- read
- exec
- write

The document also advertises command execution:

markdown
- **Command execution**: Execute system commands in a secure sandbox and collect results

Technical Analysis

The declared exec capability grants the Agent access to a system command-execution channel, while read and write may permit access to local files. The documented workflow does not define any concrete local command, executable implementation, or asset-processing operation that requires unrestricted command execution or filesystem access.

This violates the principle of least privilege. The claim that commands execute in a secure sandbox is descriptive only: the Skill does not specify or enforce sandbox boundaries, an allowed-command list, path restrictions, argument validation, environment-variable filtering, or user confirmation.

If the hosting Agent treats the tool declaration as authorization, adversarial content supplied through an asset-generation request could attempt to induce tool calls unrelated to the Skill's legitimate purpose. Exploitation ultimately depends on the host Agent's permission model and enforcement controls.

Attack Path

  1. A user or external workflow loads the Skill in an Agent that honors its declared tools.
  2. The attacker provides an adversarial game-asset prompt containing instructions designed to trigger local file access or command execution.
  3. The Agent interprets the embedded instructions as part of the Skill workflow and invokes read, write, or exec.
  4. Without e ...[truncated 1100 chars]
Remediation
View remediation

Remediation Suggestions

  1. Remove exec because the documented prompt-based asset-generation workflow does not demonstrate a legitimate need for operating-system command execution.
  2. Remove unrestricted read access unless the Skill must consume local source assets. If reading is required, restrict it to explicitly selected files under a dedicated project directory.
  3. Retain write only if generated assets must be saved locally, and restrict output to a dedicated directory using canonical-path validation.
  4. If command execution is operationally necessary, enforce all of the following outside the Markdown instructions:
    • A fixed allowlist of executable names and operations.
    • Fixed or strictly validated arguments without shell interpolation.
    • Execution without a shell where possible.
    • A sandbox with minimal filesystem and network access.
    • A low-privilege operating-system account.
    • Environment-variable filtering to prevent credential exposure.
    • Resource limits and execution timeouts.
    • Explicit user confirmation before every command.
    • Audit logging of commands, arguments, accessed paths, and results.
  5. Treat all user-provided prompts and asset metadata as untrusted data and prohibit them from controlling command names, command arguments, or filesystem paths.
  6. Replace the general statement about secure sandbox execution with precise, enforceable permission boundaries and document the exact operations the Skill requires.
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • 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
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (6)

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The skill is presented as a game asset generation tool, but its metadata and documentation also advertise broad code generation, debugging, deployment, file processing, API integration, and command execution capabilities. This scope expansion can mislead users and policy layers into granting higher-risk permissions than are necessary for the stated purpose, increasing the chance of unsafe execution or data handling.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The skill advertises write access, external API use, and command execution without a prominent upfront warning about system modification, file changes, or outbound data transfer. Users may invoke it expecting content generation only, while the available capabilities enable meaningful side effects on the local environment and user data.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

System command execution is a high-risk capability and is not justified by the stated function of generating game art and sprites. In this context, broad exec access could be abused to run arbitrary local commands, alter the host environment, or access sensitive data, especially because no enforceable restrictions are defined in the file.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
83% confidence
Finding

The manifest-facing fields and description alternate between Chinese and English, which effectively imposes mixed-language output/instructions without stating user language preference handling. There is no indication that the skill offers language selection or that the bilingual constraint is required for a specific justified locale context.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Low
Category
Not specified by scanner
Confidence
84% confidence
Finding

The document claims command execution is limited by a whitelist or sandbox, but it provides no concrete implementation details and elsewhere exposes broad exec capability. This creates a false sense of safety that may cause users or integrators to trust the skill more than warranted, while actual controls may be absent or unenforced.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Low
Category
Not specified by scanner
Confidence
88% confidence
Finding

Generic file processing and external API integration are broader than what is needed for a narrowly scoped game-asset generation skill. These capabilities can expose local files or transmit user data to third parties if the skill is invoked in a permissive environment, and the documentation does not clearly define limits on what may be read, written, or sent.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.