Back to skill

Security audit

主题样式师

Security checks for vulnerabilities and agentic risk

Overview

This styling skill is mostly about document and theme generation, but it includes under-scoped command, credential, network, and administrator guidance that users should review before installing.

Install only if you are comfortable with a broad Chinese-language styling helper that may read and write project files and optionally run CSS tooling. Do not run the agent as administrator for this skill, avoid automatic npm installs unless versions are pinned and reviewed, and do not provide API keys unless a specific styling feature clearly requires them and the secret is supplied through a safe environment-variable path.

Vulnerability Patterns
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
  • Insecure DependenciesIntroduces malicious components through unsafe dependency sources
  • 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
Findings (2)

T08 · Insecure Dependencies

Warning
Location
SKILL.md:266
Finding

Unpinned Third-Party Package Installation

Content
View full analysis

Vulnerability Details

File Location: SKILL.md, line 266
Vulnerability Type: Unpinned package installation from a third-party registry
Risk Level: Medium

Complete Evidence Snippet:

shell
npm install -D tailwindcss

Technical Analysis

The skill recommends installing Tailwind CSS without specifying an audited version or requiring a lockfile and integrity verification. Package resolution therefore depends on the registry state at execution time, meaning future installations may retrieve code different from the version reviewed during the audit.

npm installation can execute package lifecycle scripts with the permissions of the agent process. Although no malicious package or lifecycle script is present in this project, the instruction creates a supply-chain exposure if the upstream package, its transitive dependencies, the configured registry, or name resolution is compromised.

Attack Path

  1. An operator or agent follows the dependency-installation instruction.
  2. npm resolves the unpinned package and transitive dependency versions from the configured registry.
  3. A compromised registry response, upstream release, or transitive dependency supplies malicious package content.
  4. npm installs the content and may execute lifecycle scripts.
  5. The malicious code runs with the agent process's filesystem, network, and environment-variable access.

This path is conditional on compromise of the dependency supply chain or registry configuration; the audited file does not itself contain a malicious package.

Impact Assessment

Successful exploitation could provide code execution under the account running npm. The resulting scope may include modification of the project workspace, access to readable files and environment variables, network communication, and alteration of locally installed dependencies. If package installation is performed under an elevated account, the impact could extend to syste ...[truncated 17 chars]

Remediation
View remediation

Remediation Suggestions

  • Pin Tailwind CSS to a specifically reviewed version rather than resolving the latest available release.
  • Commit and enforce a package lockfile containing integrity hashes.
  • Prefer npm ci over unconstrained installation in automated environments.
  • Use --ignore-scripts when package lifecycle scripts are not required.
  • Configure an approved registry and prevent unexpected registry overrides through project or user npm configuration.
  • Audit direct and transitive dependencies before installation.
  • Execute package installation in an isolated, nonprivileged environment with restricted filesystem, environment-variable, and network access.

T05 · Unauthorized Access and Privilege Escalation

Warning
Location
SKILL.md:525
Finding

Recommendation to Run with Administrator Privileges

Content
View full analysis

Vulnerability Details

File Location: SKILL.md, line 525
Vulnerability Type: Unnecessary privilege elevation guidance
Risk Level: Medium

Complete Evidence Snippet:

text
Permission denied | The current user lacks read/write permission | Check file permissions and run as administrator

The snippet above is an English rendering of the complete table row at the cited location.

Technical Analysis

The troubleshooting guidance recommends running as an administrator when file permissions are insufficient. Theme generation and CSS processing do not ordinarily require administrative access. Elevating the entire process expands its authority instead of resolving the specific ownership, access-control, or output-directory problem.

This is especially risky when combined with command execution and third-party package installation. Any erroneous command, command injection introduced by a future implementation, compromised dependency, or malicious input processed by an external tool would inherit administrator privileges.

The file does not contain a concrete elevation command or automatically elevate privileges. Exploitation therefore requires an operator to follow the recommendation and subsequently execute affected tooling in the elevated context.

Attack Path

  1. Theme processing encounters a file permission error.
  2. The operator follows the troubleshooting instruction and restarts the agent, shell, or processing tool with administrator privileges.
  3. The elevated process invokes optional CSS tooling or installs a third-party dependency.
  4. A compromised dependency, unsafe tool invocation, or other attacker-controlled processing path executes within that process.
  5. The resulting code inherits administrator-level access and can affect resources beyond the project directory.

Impact Assessment

Successful exploitation could grant the executing payload administrator-equivalent privileges. Dep ...[truncated 414 chars]

Remediation
View remediation

Remediation Suggestions

  • Remove the recommendation to run the agent or tooling as an administrator.
  • Direct output to a project-local directory owned by the current user.
  • Diagnose the exact inaccessible path before changing permissions.
  • Correct ownership or narrowly scoped access-control entries instead of elevating the whole process.
  • Apply only the minimum permission required to the specific input or output file.
  • Run dependency installation and document-processing tools under a dedicated, nonprivileged account or sandbox.
  • If elevation is exceptionally unavoidable, elevate only a narrowly defined, audited operation rather than the complete agent session.
Vulnerability Patterns
  • 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
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (4)

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

The manifest description lists many generic design and formatting capabilities across slides, documents, reports, and HTML without specifying concrete invocation phrases or boundaries for when this skill should activate. This breadth increases the risk of unintended invocation for common requests about styling or beautification.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The skill metadata and instructions are written entirely in Chinese and the slug suffix 'cn' suggests a Chinese-localized variant, but there is no explicit user opt-in or documented locale restriction. This can violate language/locale policy when the skill is used in broader agent environments serving users with different language preferences.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
98% confidence
Finding

The documentation gives conflicting guidance on whether API keys are required, which can mislead the agent or user into enabling unnecessary credential handling or trusting that no secrets are involved when later steps ask for them. In a skill with exec, browser, read, and write permissions, ambiguity around credential use increases the chance of unsafe secret collection, storage, or transmission.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The later sections drift from a narrowly scoped styling skill into generic API, network, and command-execution guidance, including credential setup and interface calls that are not clearly tied to the declared function of the skill. This broad, template-like operational behavior can cause over-activation of sensitive capabilities and normalize unnecessary network/API actions under the guise of a design tool.

Content

No source excerpt is available for this finding.