Back to skill

Security audit

shadcn UI工具-免费版

Security checks for vulnerabilities and agentic risk

Overview

This shadcn/ui helper is mostly purpose-aligned, but it repeatedly encourages unpinned package execution and broad project-modifying automation that users should review before installing.

Install only if you are comfortable with an agent running package-manager commands and editing the current project. Prefer pinning exact versions of create-next-app and shadcn, running commands in a clean workspace or container, and reviewing generated or modified files before committing or deploying.

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

Unpinned Third-Party Packages Executed Through npx

Content
View full analysis
Remediation
View remediation
add button input form label card npx --yes create-next-app@ my-app --typescript --tailwind --eslint ``` 2. Verify the selected versions against official release records and security advisories before documenting them. 3. Prefer installing dependencies into a controlled project manifest and committing the generated lockfile. Use `npm ci` in automated environments so dependency resolution matches the reviewed lockfile. 4. Enforce a trusted npm registry through project or environment configuration, and use integrity verification where supported. 5. Disable unnecessary package lifecycle scripts during installation when operationally feasible, then explicitly run only reviewed setup steps. 6. Execute package-generation tools in a restricted workspace or container with: - No production credentials. - Minimal filesystem access. - No elevated privileges. - Restricted network access where practical. 7. Review all files created or modified by shadcn/ui and project-generation commands before committing, building, or deploying them. 8. Add an update process that deliberately reviews, tests, and repins newer releases instead of resolving the latest release automatically at execution time. ]]>
Vulnerability Patterns
  • 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
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (21)

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
84% confidence
Finding

The skill name, summary, and the entire user-facing documentation are presented only in Chinese, with no indication that users may choose another language. This can violate language or locale policy when the skill is intended for general agent platforms and does not document a region-specific constraint.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The skill advertises command execution and file-modifying behavior but does not provide a clear upfront warning that running it may install packages, alter project files, and generate code. In an agent setting, that omission can cause users to approve or trigger the skill without understanding the extent of side effects.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
97% confidence
Finding

The skill instructs use of npx shadcn@latest add ..., which fetches and executes the latest remote package at runtime rather than a pinned, reviewed version. If the upstream package is compromised or behavior changes unexpectedly, users may execute untrusted code on their workstation during normal skill use.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
97% confidence
Finding

This command again uses npx shadcn@latest, causing runtime retrieval and execution of an unpinned package. In a skill that exposes exec capability, normalizing unpinned package execution increases supply-chain risk and makes behavior non-reproducible.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
97% confidence
Finding

The referenced npx shadcn@latest command executes whatever the registry serves at invocation time. That creates a supply-chain execution path that could be abused through package compromise, typo-squatting, or unexpected upstream changes.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The trigger condition says the skill should be used for broad categories like code generation, programming assistance, debugging, testing, and deployment. Such wide matching can cause the agent to invoke a command-executing, file-writing skill for many ordinary requests, increasing the chance of unintended execution and project modification without strong relevance checks.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
95% confidence
Finding

npx create-next-app@latest similarly pulls and executes the most recent package version without pinning. Even though this is a common developer workflow, embedding it in an executable skill encourages running unreviewed code and reduces reproducibility.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
97% confidence
Finding

This line invokes npx shadcn@latest init, which executes a remotely resolved package version at runtime. Because the skill also advertises file writing and command execution, a compromised upstream could make broad local project changes.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
97% confidence
Finding

The skill recommends another unpinned npx shadcn@latest add ... invocation. This is dangerous because it combines remote code execution with direct modification of the user's codebase, amplifying the effect of any upstream compromise.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
97% confidence
Finding

This component install example uses npx shadcn@latest, again creating an unpinned code execution path. Repeating the pattern throughout the skill increases the likelihood that users or agents will treat unsafe invocation as standard practice.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
97% confidence
Finding

Another unpinned npx shadcn@latest example exposes users to supply-chain compromise and non-deterministic behavior. In context, this is not malicious content, but it is an unsafe operational pattern.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
97% confidence
Finding

The skill continues to instruct execution of an unpinned remote CLI via npx. If exploited, an attacker controlling the delivered package could run arbitrary code with the user's permissions and alter repository contents.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
97% confidence
Finding

This command snippet repeats the same unsafe unpinned package execution pattern. The danger is elevated by the skill’s exec and write tool declarations, which imply automation may run these instructions directly.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
97% confidence
Finding

Using npx shadcn@latest for dialog installation again exposes users to runtime execution of unreviewed upstream code. The risk is contextual rather than intentionally malicious, but still real in agent-mediated workflows.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
97% confidence
Finding

This dropdown-menu installation command uses an unpinned latest package, preserving the same supply-chain risk. Repetition throughout the document suggests negligent secure-by-default documentation rather than deliberate abuse.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
97% confidence
Finding

The toast component command still relies on npx shadcn@latest, which may execute changed or malicious code fetched at runtime. In an agent skill, such commands can be executed with little friction, increasing exposure.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
97% confidence
Finding

This tabs install example repeats the unpinned remote execution pattern. The main risk is arbitrary code execution or project tampering if the upstream package or its dependency chain is compromised.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
97% confidence
Finding

The select component command again normalizes npx shadcn@latest, which is unsafe because it executes code that is not fixed to a reviewed release. This is a recurring supply-chain hygiene issue across the skill.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
97% confidence
Finding

This final npx shadcn@latest occurrence carries the same risk profile: unpinned remote code execution during normal use. The surrounding context of developer tooling and project file generation makes compromise potentially impactful to source code integrity.

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.