Back to skill

Security audit

Web Fixing

Security checks for vulnerabilities and agentic risk

Overview

This is a coherent front-end troubleshooting skill; its main caveat is optional unpinned npm and Playwright setup commands that users should approve and pin.

Install only if you are comfortable giving the agent normal project read/edit authority for front-end fixes. Before running the optional setup commands, pin package versions, prefer an existing lockfile or npm ci, and avoid --with-deps outside a disposable container or explicitly approved development machine.

Vulnerability Patterns
  • 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
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
Findings (1)

T08 · Insecure Dependencies

Warning
Location
SKILL.md:17
Finding

Unpinned Third-Party Package Installation and Execution

Content
View full analysis

Vulnerability Details

File Location: SKILL.md, line 17
Vulnerability Type: Unpinned third-party dependency execution
Risk Level: Medium

Complete Code Snippet:

markdown
- **Installable**: `npx playwright install --with-deps` (end-to-end testing), `npm i -D web-vitals` (performance monitoring)

Technical Analysis

The skill recommends invoking npx playwright and installing web-vitals without specifying reviewed package versions or requiring lockfile and integrity verification.

When the requested package is not already available locally, npx may retrieve and execute the package CLI from the configured npm registry. The npm i -D web-vitals command likewise resolves a registry version dynamically and modifies the target project's dependency manifest and installation tree. Package installation can execute package lifecycle scripts with the permissions of the invoking user.

The --with-deps option additionally installs browser-related system dependencies where supported. This broadens the operation beyond the target project's dependency directory and may invoke an operating-system package manager with elevated privileges.

Related illustrative commands occur in references/examples.md at lines 824-843 and 882-884, reinforcing the same unpinned installation pattern.

Attack Path

  1. An agent follows the optional environment setup instructions.
  2. The agent runs npx playwright install --with-deps or npm i -D web-vitals.
  3. npm resolves an unpinned package version through the configured package registry.
  4. If the resolved package, registry account, dependency chain, or registry configuration has been compromised, attacker-controlled package code or lifecycle scripts execute during installation.
  5. The payload obtains the permissions of the user running npm. If system dependencies are installed with elevated permissions, the affected scope may extend beyond the project directory.

...[truncated 691 chars]

Remediation
View remediation

Remediation Suggestions

  1. Pin every recommended package to a reviewed exact version, for example by installing an explicitly approved Playwright and web-vitals release.
  2. Commit a trusted lockfile and use npm ci for reproducible dependency installation.
  3. Avoid implicit package downloads through npx; install the pinned package first and invoke its local binary with npx --no-install or the package manager's equivalent.
  4. Verify package provenance and integrity before approval, including the publisher, registry source, dependency tree, and lockfile integrity hashes.
  5. Disable or restrict lifecycle scripts where they are unnecessary, such as with npm ci --ignore-scripts, after confirming that required package functionality does not depend on them.
  6. Separate playwright install from playwright install --with-deps. Clearly disclose that the latter may modify system packages and require explicit user approval.
  7. Perform installation in an isolated, least-privileged environment such as a disposable container or dedicated CI worker.
  8. Update the related commands in references/examples.md to follow the same pinned and reproducible installation process.
Vulnerability Patterns
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
Findings (20)

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 · references/examples.md (reported line 20)May include surrounding context.

可视化检查:

html
<!-- 发现问题结构 -->
<nav class="navbar">
  <div class="logo">Brand</div>
  <ul class="nav-items">

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 · references/workflows.md (reported line 138)May include surrounding context.

检查 HTML 结构:

html
<!-- 确认 DOM 结构 -->
<div class="container">
  <div class="item">内容</div>
</div>

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 · references/workflows.md (reported line 138)May include surrounding context.

检查 HTML 结构:

html
<!-- 确认 DOM 结构 -->
<div class="container">
  <div class="item">内容</div>
</div>

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The manifest description is written entirely in Chinese and gives no indication that the skill can operate in other languages or adapt to the user's preferred locale. Under the policy, forcing a specific language without user opt-in is a natural-language policy violation unless the constraint is justified and documented.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
70% confidence
Finding

npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
70% confidence
Finding

npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
70% confidence
Finding

npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
70% confidence
Finding

npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
70% confidence
Finding

npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
70% confidence
Finding

npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
70% confidence
Finding

npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
70% confidence
Finding

npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
70% confidence
Finding

npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

该 markdown 文件的标题和正文从开头即完全采用中文表述,没有提供用户可选择的语言/locale,也没有说明该文档仅面向特定中文地区或受合规要求限制。根据规则,强制单一语言而缺少用户选择或明确、合理的区域说明,属于自然语言层面的语言/locale 政策风险。

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

该工作流程文档从标题到说明均固定为中文表述,没有提供可选语言、用户偏好机制,或说明该技能为何必须限定中文。根据规则,强制特定语言而无用户选择属于自然语言层面的语言/区域政策问题。

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
91% confidence
Finding

This markdown file contains only Chinese-language instructions and examples, with no user-facing note that the skill supports multiple languages or is intentionally limited to Chinese users. Under the policy, forcing a specific language without user opt-in is a natural-language locale violation.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
91% confidence
Finding

The entire skill file is written in Chinese and does not indicate that the user can choose another language or locale. Under the stated policy, forcing a specific language without user opt-in is a natural-language policy violation unless the locale constraint is documented and justified.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
86% confidence
Finding

The entire skill file is written in Chinese and provides no indication that another language is available or that the language choice is optional. Under the stated policy, forcing a specific language without user opt-in is a natural-language policy violation unless the locale restriction is documented and justified.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
92% confidence
Finding

This markdown file is natural-language instructional content and all headings, descriptions, and examples are presented only in Chinese. Under the policy, forcing a specific language without user opt-in can be a locale/language policy violation unless the regional constraint is explicitly justified, which is not present here.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
91% confidence
Finding

该 Markdown 文档从标题到正文均以中文编写,没有说明这是面向特定中文用户群、地区合规场景,或提供语言/本地化选择。按规则,强制单一语言且无用户选择可能构成语言/locale 政策问题。

Content

No source excerpt is available for this finding.