Back to skill

Security audit

游戏AI

Security checks for vulnerabilities and agentic risk

Overview

This game AI guide is not clearly malicious, but it asks for broad command execution and file access without enough scoping or user-control detail.

Install only if you are comfortable with a game AI helper that may be selected for broad development tasks and can request command execution. Keep it in a sandboxed workspace, avoid administrator/root execution, do not provide secrets unless strictly necessary, and require explicit confirmation before any file write, dependency install, network action, or command run.

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:28
Finding

Overprivileged Command Execution and Administrator-Level Troubleshooting Guidance

Content
View full analysis

Vulnerability Details

File Location: SKILL.md:28-31 and SKILL.md:452-461
Vulnerability Type: Excessive tool permissions and unsafe privilege-escalation guidance
Risk Level: Medium

Vulnerable Configuration

yaml
tools:
- read
- exec
- glob
- grep

The skill also states that it supports file processing and system-command execution, and its troubleshooting table recommends running with administrator privileges when file permissions are insufficient.

Technical Analysis

The skill primarily provides Game AI design guidance and code-generation examples, but it requests the general-purpose exec tool alongside broad file-reading and discovery capabilities. No concrete executable workflow, command allowlist, permitted-directory boundary, argument-validation policy, or task-specific justification for elevated access is defined.

Although the document says commands are executed in a secure sandbox, this is only a documentation assertion; the package contains no implementation that enforces sandboxing. The generic recommendation at SKILL.md:461 to run as an administrator can cause an agent or user to bypass an intended filesystem permission boundary rather than diagnose and correct the underlying access requirement.

Untrusted file paths, repository content, or command arguments could therefore reach a broadly capable execution interface. If administrator or root privileges are subsequently granted, the impact of unsafe command construction, generated commands, or malicious project input would be significantly increased.

Attack Path

  1. An attacker supplies a project, path, filename, or command-related parameter containing malicious or unexpected content.
  2. The skill invokes its declared filesystem or exec capability while processing that input.
  3. The operation encounters a permissions error when accessing a protected resource.
  4. Following the troubleshooting guidance, the user or ag ...[truncated 988 chars]
Remediation
View remediation

Remediation Suggestions

  1. Remove the exec capability unless a documented Game AI workflow strictly requires local command execution.
  2. If execution is necessary, replace unrestricted shell access with narrowly scoped operations and an explicit command allowlist.
  3. Pass arguments as structured process parameters rather than constructing shell command strings.
  4. Reject shell metacharacters and validate all user-controlled paths, filenames, options, and environment values.
  5. Restrict filesystem access to a user-selected project workspace using canonical-path checks and deny path traversal or symbolic-link escapes.
  6. Remove the generic recommendation to run as administrator or root. Instead, identify the minimum required file or directory permission and instruct users to correct only that permission.
  7. Require explicit user confirmation before writes, dependency installation, destructive operations, or any action outside the project workspace.
  8. Enforce sandboxing at the agent-runtime level with a nonprivileged account, restricted environment variables, resource limits, disabled network access where unnecessary, and an isolated temporary directory.
  9. Document the exact commands, allowed arguments, accessible directories, and expected side effects for every executable workflow.
  10. Add tests verifying that malicious arguments, traversal paths, protected paths, and permission failures cannot trigger unrestricted or elevated execution.
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • 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
Findings (6)

Context-Inappropriate Capability

High
Category
Not specified by scanner
Confidence
97% confidence
Finding

Advertising command execution in a skill whose stated purpose is Game AI guidance introduces a powerful capability unrelated to the core use case. If invoked by an agent based on broad natural-language matching, this could enable execution of unsafe shell commands, environment probing, or destructive local actions under the guise of harmless AI-development assistance.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The skill is framed as a narrow Game AI guide, but the content later expands into generic operational capabilities such as file handling and command execution. This mismatch can mislead users and downstream agents into granting broader trust or permissions than the stated purpose justifies, increasing the chance of unintended privileged actions.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The activation text is overly broad, covering generic code generation, debugging, testing, and deployment scenarios rather than a narrowly scoped Game AI task. Broad triggering increases the likelihood that an agent will select this skill in unrelated contexts, exposing users to unnecessary file, command, or credential-adjacent capabilities.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

The description explicitly says '支持中文交互,无需复杂配置即开即用', which presents a language constraint/preferences without indicating that users may choose another language. For a general-purpose game-AI skill, forcing or defaulting to a specific language without opt-in can violate language/locale policy expectations.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The skill claims file processing and write-like capabilities beyond what a Game AI reference guide should need. That broader capability surface can be abused to modify project files, drop artifacts, or overwrite content when users expect read-only technical guidance.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The markdown advertises file handling, command execution, and possible use of credentials or network-dependent workflows, but does not provide a clear user-facing warning about the operational and security consequences. This weak disclosure can lead users or orchestrators to authorize sensitive actions without informed consent or appropriate safeguards.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.