Back to skill

Security audit

街机

Security checks for vulnerabilities and agentic risk

Overview

This looks like a text-game skill, but it requests file-write and command-execution authority and describes unrelated automation abilities that users would not expect from a game.

Install only if you are comfortable with a game skill that may be granted broad file and shell authority. A safer version should remove write and exec permissions, remove unrelated automation/API/marketing language, and avoid any administrator-privilege guidance unless a tightly scoped non-game purpose is disclosed.

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

Error
Location
SKILL.md:17
Finding

Excessive Filesystem and Command-Execution Capabilities for a Conversational Game Skill

Content
View full analysis

Vulnerability Details

File Location: SKILL.md:17-20
Supporting Locations: SKILL.md:251-254, SKILL.md:286, SKILL.md:305-308
Vulnerability Type: Excessive tool permissions and unsafe privilege guidance
Risk Level: High

Vulnerable Code

yaml
tools:
  - read
  - write
  - exec

The Skill also advertises the corresponding sensitive capabilities:

markdown
- **File processing**: Supports reading, parsing, and writing multiple file formats
- **API integration**: Invokes external services through standardized interfaces and processes responses
- **Command execution**: Executes system commands in a security sandbox and collects results
- **Information retrieval**: Quickly searches and filters target data

Its troubleshooting guidance additionally recommends elevated execution when permissions are insufficient:

markdown
| Insufficient permissions | The current user lacks read/write permissions | Check file permissions and run as administrator |

Technical Analysis

The legitimate purpose described by this Skill is to conduct conversational ASCII games, render game boards, and adjudicate moves. These operations can be performed entirely through language-model reasoning and text generation. They do not require arbitrary filesystem reads, filesystem writes, shell command execution, external API access, or administrator privileges.

Declaring read, write, and exec therefore violates the principle of least privilege. The Skill does not define path restrictions, a command allowlist, argument validation, execution isolation requirements, or an explicit user-approval boundary. If the host agent grants the declared tools, untrusted instructions supplied during a game may be interpreted as requests to perform operations unrelated to gameplay.

The recommendation to run with administrator privileges compounds this exposure. It encourages users or operators to resolve ...[truncated 2063 chars]

Remediation
View remediation

Remediation Suggestions

  1. Remove read, write, and exec from the Skill manifest because conversational game operation does not require them.
  2. Remove the unrelated file-processing, API-integration, command-execution, and information-retrieval claims from SKILL.md.
  3. Delete the recommendation to run as administrator. Permission failures should be handled by denying the unnecessary operation rather than elevating the entire agent.
  4. If a future feature genuinely requires a tool, grant only that individual capability and document its exact purpose.
  5. Restrict any required file access to a dedicated application-owned directory using canonical-path validation and explicit file allowlists.
  6. Replace general shell execution with narrowly scoped, typed operations. If command execution is unavoidable, use a fixed executable allowlist, fixed argument schemas, timeouts, resource limits, and a non-privileged sandbox.
  7. Require explicit user confirmation before any operation that reads data, changes files, invokes an external service, or starts a process.
  8. Ensure the agent runs under a dedicated, non-administrator account with minimal filesystem and network permissions.
  9. Add tests verifying that game input cannot trigger tool calls and that attempts to request filesystem access, command execution, or privilege elevation are rejected.
Vulnerability Patterns
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • 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 (9)

Context-Inappropriate Capability

High
Category
Not specified by scanner
Confidence
99% confidence
Finding

Declaring exec for a text-game arcade is unnecessary and materially increases risk. A skill that appears harmless but includes command execution can be invoked in low-suspicion contexts while still having the ability to run system commands, making misuse or prompt-injection consequences much more severe.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
Not specified by scanner
Confidence
99% confidence
Finding

The documentation advertises file processing, API integration, command execution, and information retrieval, which are far beyond a text-game arcade’s stated purpose. In combination with declared powerful tools, this creates a misleading and overbroad capability surface that could enable unintended filesystem access, command execution, or external communication under a harmless-looking game label.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

The manifest describes a game arcade, but the description also claims unrelated marketing, lead generation, and productivity capabilities. This scope drift can cause the agent to invoke the skill in unrelated business contexts, expanding its authority and increasing the chance that its read/write/exec tools are used outside the user’s actual intent.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The core functionality statement says the skill provides productivity improvements rather than game-specific behavior. This contradiction weakens trust boundaries and may cause orchestration systems or users to treat the skill as suitable for broader automation tasks than intended.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

The invocation description relies on broad natural-language triggers without hard boundaries, increasing accidental activation. In this skill, that is more dangerous because the documented capability set includes sensitive operations that exceed what users would expect from a game skill.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The activation examples are broad enough to match common requests like drawing boards, mazes, or acting as a host, which can cause over-triggering. Over-broad invocation raises the chance that a skill with powerful tools is selected in contexts where the user did not intend file, API, or command-related behavior.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The markdown presents file writing, command execution, and API use as available behaviors but does not provide a prominent warning or consent model for system-impacting actions. Users may reasonably believe they are using only a game skill, making any side-effecting operation unexpected and unsafe.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The performance and troubleshooting sections normalize API use, file operations, authentication, and command execution as expected workflows, contradicting the declared game-only intent. This makes the skill more dangerous because it provides operational cover for non-game actions and could mislead reviewers or routing systems into approving excessive permissions.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
78% confidence
Finding

The display name, summary, and description are primarily in Chinese, but the document does not state that the skill is intentionally region-specific or offer users a language choice. Under the language/locale policy rule, forcing a specific language without opt-in can be a policy issue when no justification is provided.

Content

No source excerpt is available for this finding.