Back to skill

Security audit

Phy Cwv Budget Guard

Security checks for vulnerabilities and agentic risk

Overview

The skill is a coherent Core Web Vitals audit helper, but it needs review because its documented commands can execute unpinned npm packages in developer or CI environments.

Install only if you are comfortable with a skill that runs local/CI performance tooling. Prefer pinning these packages in your project lockfile, running local binaries instead of ad hoc npx downloads, quoting and validating URLs, avoiding --no-sandbox unless isolated, and running CI audits without production secrets.

Vulnerability Patterns
  • Insecure DependenciesIntroduces malicious components through unsafe dependency sources
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • 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 (3)

T08 · Insecure Dependencies

Error
Location
SKILL.md:75
Finding

Unpinned Third-Party Packages Executed Through npx

Content
View full analysis
/dev/null 2>&1; then echo "✅ Lighthouse CLI available" else echo "Installing Lighthouse CLI..." npm install -D @lhci/cli # OR: use npx (auto-downloads, ~50MB, slower first run) fi ``` ```bash npx lighthouse $URL \ --output=json \ --output-path=./cwv-report.json \ --chrome-flags="--headless --no-sandbox --disable-gpu" \ --only-categories=performance \ --quiet npx @lhci/cli collect \ --url=$URL \ --numberOfRuns=3 \ --settings.onlyCategories=performance ``` ```bash npx @squoosh/cli --webp '{"quality":80}' public/hero-banner-v2.jpg ``` ```bash npx serve -s build -l 3000 & sleep 3 npx lighthouse http://localhost:3000 \ ``` ### Technical Analysis The skill instructs users and CI systems to execute several npm packages through `npx` without specifying reviewed versions or enforcing package integrity. Depending on local npm state, `npx` can retrieve a package from the configured registry and immediately execute its entry point. The `--yes` option suppresses the interactive installation confirmation. The affected packages include `lighthouse`, `@lhci/cli`, `@squoosh/cli`, and `serve`. The fallback `npm install -D @lhci/cli` is also unpinned. Consequently, the effective code executed by these instructions can change after the skill has been reviewed. This does not establish that any named package is malicious. The vulnerability is the unsafe dependency-resolution and execution pattern, which leaves the workflow exposed to compromised releases, registry compromise, malicious registry configuration, or other supply-chain attacks. ### Attack Path 1. An attacker compromises a referenced package re ...[truncated 1112 chars]
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Error
Location
SKILL.md:93
Finding

Shell Command Injection Through Unquoted URL Expansion

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
SKILL.md:93
Finding

Chrome Sandbox Disabled While Auditing Potentially Untrusted Pages

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (9)

Rp1

Medium
Category
MCP Rug Pull
Confidence
70% confidence
Finding

MCP server references in the skill manifest without version pinning are a rug-pull risk.

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.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The description advertises triggers such as "core web vitals", "performance budget", and especially "web vitals", which are generic phrases a user might say while discussing performance rather than intentionally invoking the skill. The file does not provide exclusion conditions or tighter context boundaries to distinguish casual discussion from activation.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

Phrases like "performance regression", "performance budget", and "Lighthouse score dropped" are broad enough to appear in ordinary engineering discussion. Because the section lists triggers but no non-trigger examples or scoped conditions, it leaves unclear when the skill should activate versus when it should only answer conversationally.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
95% confidence
Finding

The skill instructs users to run npx --yes lighthouse without a pinned version, which can fetch and execute whatever package version is current at runtime. This creates a supply-chain risk in CI or local environments, especially because --yes suppresses prompts and makes silent package execution easier.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
97% confidence
Finding

The command npx lighthouse $URL executes an unpinned package from the registry, allowing unexpected or malicious upstream changes to affect users immediately. Because this skill is designed for CI enforcement, compromise of the package or a harmful release could lead to code execution in automated environments.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
97% confidence
Finding

The skill uses npx @lhci/cli collect without version pinning, which exposes users to the same registry-based supply-chain risk as other unpinned npx invocations. In CI, this can result in arbitrary package code running with repository secrets, workspace access, or deployment credentials.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
96% confidence
Finding

The CI example runs npx serve -s build -l 3000 without pinning the package version, allowing arbitrary code from the latest published serve package version to execute during CI. Since CI often has elevated access to source code, artifacts, and secrets, the impact of a compromised package can be significant.

Content

No source excerpt is available for this finding.

Missing User Warnings

Low
Category
Not specified by scanner
Confidence
87% confidence
Finding

The description says the skill appends metric trends to a local history file, but it does not clearly warn users that running the skill will create or modify local files such as the report and history artifacts. For a markdown skill description, file-writing behavior that affects the workspace should be disclosed more explicitly.

Content

No source excerpt is available for this finding.