Back to skill

Security audit

CSS样式引擎(免费版)

Security checks for vulnerabilities and agentic risk

Overview

This CSS helper is not clearly malicious, but it asks for command and file-writing authority that does not fit a mostly code-generation styling skill.

Review before installing. This appears to be a generic CSS-generation skill with no embedded malicious code, but it should not need broad command execution or file-writing access. Install only in a sandboxed agent environment, avoid granting exec/write unless you explicitly need them, and require confirmation before any file modification, API call, or shell command.

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

Excessive and Inconsistent Tool Permissions

Content
View full analysis

Vulnerability Details

File Location: SKILL.md, lines 5 and 14-17
Vulnerability Type: Excessive tool permissions and violation of least privilege
Risk Level: Medium

Vulnerable Configuration

yaml
allowed-tools: read exec
yaml
tools:
  - exec
  - read
  - write

Technical Analysis

The Skill is intended to generate CSS layouts, animations, responsive styles, and component styling. These text-generation functions do not inherently require arbitrary command execution or unrestricted filesystem access.

Nevertheless, the manifest requests exec, read, and write. The declarations are also inconsistent: write appears under tools but not under allowed-tools. Depending on how the hosting Agent interprets these fields, the Skill may receive broader capabilities than its advertised purpose requires, or permission enforcement may vary between platforms.

The presence of exec is particularly sensitive because it can permit system-command execution in the Agent's security context. Broad read and write capabilities may expose project files or permit unauthorized modification if attacker-controlled prompts, untrusted project content, or prompt injection influence tool calls.

No direct instruction in the audited file was found that intentionally executes malicious commands, accesses sensitive files, or exfiltrates data. The vulnerability is the unnecessary exposure of privileged tools and the resulting attack surface.

Attack Path

  1. A hosting Agent loads the Skill and grants the tools declared in its manifest.
  2. The Agent processes attacker-controlled input or untrusted content containing instructions to invoke a privileged tool.
  3. Because exec, read, or write is available despite not being necessary for CSS generation, the induced action may pass the Skill's capability boundary.
  4. The Agent may execute a system command, read an accessible local file, or modify ...[truncated 880 chars]
Remediation
View remediation

Remediation Suggestions

  1. Remove exec, read, and write from the manifest if the Skill only returns generated CSS and HTML as conversational output.
  2. If file output is an essential feature, grant only narrowly scoped write access to explicitly selected project files or a dedicated output directory.
  3. Avoid granting exec unless a documented workflow requires a specific command. If execution is unavoidable, enforce a fixed command allowlist, prohibit shell interpolation, and pass validated arguments without invoking a shell.
  4. Make allowed-tools and tools consistent, preferably using one authoritative permission declaration supported by the target platform.
  5. Require explicit user approval before reading or overwriting files, and reject paths outside the designated workspace.
  6. Apply sandboxing, minimal operating-system privileges, filesystem isolation, execution timeouts, and output-size limits at the Agent platform level.
  7. Remove generic claims of API integration, broad file processing, and system-command execution unless those capabilities are implemented and required by the CSS workflow.
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 (8)

Description-Behavior Mismatch

High
Category
Not specified by scanner
Confidence
96% confidence
Finding

The skill is presented as a CSS styling/layout generator, but the documentation later expands its scope to general automation features such as file processing, API integration, command execution, and information retrieval. This capability drift materially increases the attack surface because users and orchestrators may invoke a seemingly low-risk design skill that can in fact access files, call external services, and execute commands.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The description says to use the skill for broad situations like '需要设计创作、UI设计、海报制作、品牌视觉时使用' and for '独立开发者、企业团队和自动化工作流场景', which makes the invocation scope very expansive and not tightly bounded. It does include some exclusions, but the trigger context remains broad enough to collide with ordinary design-related requests rather than a narrowly defined skill invocation condition.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The description explicitly states '支持中文交互', and the core function summary also emphasizes Chinese interaction, but nowhere offers an opt-in or alternative language choice. This can violate language/locale policy when a skill effectively constrains interaction language without user selection or justification for a region-specific use case.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

Declaring exec for a CSS generation skill violates least privilege because CSS advice and code generation do not inherently require shell command execution. If the agent can execute commands under the guise of a styling task, prompt-triggered misuse or downstream chaining could lead to unintended system actions.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

Advertising file writing, command execution, and API integration without clear user-facing warnings obscures the real effects of invoking the skill. This weakens informed consent and makes it easier for a benign-looking design skill to perform impactful actions on the local system or external services unexpectedly.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

Claiming broad file read/parse/write capability exceeds what is justified for a CSS advisory skill and creates a mismatch between expected and actual authority. Such overbroad file access can expose sensitive local content or permit unintended file modification when users believe they are only requesting styling help.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

The documentation advertises API integration unrelated to CSS generation, suggesting the skill may transmit data to external services without a clear purpose tied to its stated function. This increases the risk of data exfiltration, hidden dependency on network access, and user misunderstanding about where their inputs may be sent.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Low
Category
Not specified by scanner
Confidence
72% confidence
Finding

Several capability sections say they return '执行结果' with operation status and output data, which implies executable processing rather than simple code generation. Later, the limitations section states the skill only outputs code and cannot preview rendering, creating an internal intent mismatch about whether the skill executes anything meaningful versus merely generates CSS snippets.

Content

No source excerpt is available for this finding.