Back to skill

Security audit

HTML网页开发工具

Security checks for vulnerabilities and agentic risk

Overview

The skill appears to be a non-malicious HTML review helper, but it asks for command execution and file-writing power that is broader than its stated purpose explains.

Install only if you are comfortable granting the agent broad local command and file-write capability. For normal HTML review, prefer a version that is read-only or that removes exec, restricts any writes to an explicit output file or directory, and treats reviewed HTML or URLs as untrusted data that must not drive tool calls.

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

Excessive Command Execution and File-Write Permissions

Content
View full analysis

Vulnerability Details

File Location: SKILL.md, lines 32-36
Vulnerability Type: Violation of least privilege through unnecessary tool permissions
Risk Level: Medium

Vulnerable Configuration

yaml
tools:
  - read
  - exec
  - write

The Skill also explicitly advertises generic API integration and system-command execution at SKILL.md:441-443.

Technical Analysis

The declared functionality is reviewing HTML for accessibility, SEO, form, semantic, and performance issues. This primarily requires access to user-supplied HTML and, when the user provides a URL, a constrained network-fetch capability.

Generic exec and unrestricted write permissions exceed the minimum privileges necessary for that functionality. The Skill does not define a command allowlist, permitted output directory, user-confirmation boundary, URL policy, or restrictions preventing commands and writes from being influenced by untrusted HTML or remotely retrieved page content.

No directly malicious command or explicit instruction to exploit these capabilities was found. The issue is an unsafe privilege design that increases the impact of prompt injection, unsafe Agent interpretation, or future modifications to the Skill.

Attack Path

  1. A user asks the Skill to review attacker-controlled HTML or a page at an attacker-controlled URL.
  2. The Agent reads instructions embedded in that untrusted content.
  3. If the Agent incorrectly treats those instructions as actionable, the declared exec or write tool may be invoked.
  4. A command could execute in the Agent environment, or files could be created or modified outside the legitimate HTML-review workflow.
  5. The resulting access would be limited by the host platform's sandbox and operating-system account, but the Skill itself defines no narrower boundary.

This path is conditional on the hosting Agent allowing untrusted content to influence tool calls; the reviewed fil ...[truncated 591 chars]

Remediation
View remediation

Remediation Suggestions

  1. Remove exec because static HTML analysis does not require arbitrary system-command execution.
  2. Remove write unless the user explicitly requests an output file. If writing is supported, restrict it to a dedicated output directory and require confirmation before overwriting an existing file.
  3. Retain only the minimum read capability needed to process content explicitly supplied or selected by the user.
  4. For URL review, use a dedicated HTTP fetch tool rather than shell commands. Permit only HTTP and HTTPS, enforce TLS validation, limit redirects and response sizes, apply strict timeouts, and block loopback, private, link-local, and cloud metadata addresses.
  5. Treat retrieved HTML and page text as untrusted data. Explicitly prohibit following instructions contained within reviewed content.
  6. If command execution remains unavoidable, define an exact command and argument allowlist, reject user-controlled command fragments, run in a restricted sandbox, disable unnecessary network access, and expose no credentials or sensitive environment variables.
  7. Document the precise reason for every requested tool permission and deny all capabilities not required by the selected operation.
Vulnerability Patterns
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • 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
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (9)

Context-Inappropriate Capability

High
Category
Not specified by scanner
Confidence
98% confidence
Finding

Declaring exec for a skill whose stated purpose is detecting HTML mistakes grants a powerful primitive unrelated to the core task. If the agent or surrounding platform exposes that tool, an attacker could steer the skill into running shell commands, turning a content-review workflow into a system-execution path.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

High
Category
Not specified by scanner
Confidence
98% confidence
Finding

The security section tells users to avoid processing user-uploaded HTML because of XSS risk, but the skill's primary workflow explicitly asks users to submit HTML content for review. This contradiction signals weak threat modeling and may cause unsafe handling of untrusted markup, especially if the agent renders, previews, or forwards that HTML to other tools.

Content

No source excerpt is available for this finding.

Hidden Instructions

High
Category
Prompt Injection
Confidence
70% confidence
Finding

Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.

Content

Scanner excerpt · SKILL.md (reported line 134)May include surrounding context.

流程详解:无障碍审查

步骤 1:文档结构检查

html
<!-- 错误示例:全部用 div --<div class="header">
  <div class="nav">...</div>
</div>
<div class="main">

Hidden Instructions

High
Category
Prompt Injection
Confidence
70% confidence
Finding

Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.

Content

Scanner excerpt · SKILL.md (reported line 134)May include surrounding context.

流程详解:无障碍审查

步骤 1:文档结构检查

html
<!-- 错误示例:全部用 div --<div class="header">
  <div class="nav">...</div>
</div>
<div class="main">

Hidden Instructions

High
Category
Prompt Injection
Confidence
70% confidence
Finding

Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.

Content

Scanner excerpt · SKILL.md (reported line 172)May include surrounding context.

md
<!-- 分组表单字段 -->
  <fieldset>
    <legend>个人信息</legend>
    <!-- 文本输入 -->
    <div class="form-group">
      <label for="username">用户名 <span aria-hidden="true">*</span></label>
      <input

Description-Behavior Mismatch

High
Category
Not specified by scanner
Confidence
96% confidence
Finding

The skill is presented as an HTML review/auditing tool, but the documentation later expands its scope to generic file handling, API integration, command execution, and information retrieval. This capability mismatch can mislead operators into granting broader permissions than necessary, increasing the risk of unnecessary file, network, or system access under a benign-looking skill label.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
88% confidence
Finding

The skill advertises file writing, external API calls, and command execution without clear user-facing notice about system or data impact. In an agent setting, this reduces informed consent and can lead users to invoke a seemingly harmless HTML helper that actually has capabilities to modify files, contact external services, or execute commands.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

The skill claims external API integration despite being described as a local HTML review utility. Unnecessary network capability can expose supplied HTML, URLs, or derived metadata to third parties and broadens the attack surface for SSRF-like retrieval, data leakage, or unauthorized outbound communication.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
75% confidence
Finding

The skill metadata and large portions of the instructions are presented in Chinese, and example outputs/templates also default to Chinese locale content such as lang="zh-CN". There is no explicit statement that users may choose another language or locale, which can conflict with language-choice policy.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.