Back to skill

Security audit

综合生成工具-免费版

Security checks for vulnerabilities and agentic risk

Overview

The skill is mostly an image-generation CLI guide, but it asks for broad command authority and global mutable installation while describing much broader automation behavior than its stated purpose.

Install only if you are comfortable with a third-party dlazy CLI running under your user account and storing or reading a dlazy API key. Prefer a pinned local package version, avoid sudo/admin installation, and use this skill only for explicit image generation or image editing tasks, not general automation or file processing.

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

Unpinned Global Installation of a Third-Party CLI Package

Content
View full analysis

Vulnerability Details

File Location: SKILL.md:175 and repeated at SKILL.md:290
Vulnerability Type: Insecure third-party dependency installation
Risk Level: Medium

Vulnerable Code

bash
# Global installation
npm install -g @dlazy/cli@latest

The dependency table repeats the same installation instruction:

markdown
| @dlazy/cli | CLI tool | Required | `npm install -g @dlazy/cli@latest` |

Technical Analysis

The Skill instructs users or agents to globally install the mutable latest release of the third-party @dlazy/cli npm package. It does not pin an exact reviewed version or require verification against an expected integrity digest.

Because the latest npm distribution tag can be changed after this Skill has been audited, the code eventually installed and executed may differ from the code that existed during review. Installation may also execute npm lifecycle scripts under the invoking user's account. Global installation increases exposure by placing the executable in a shared user or system command path.

This finding does not establish that the current package is malicious. It identifies an unsafe dependency acquisition practice that creates a supply-chain attack opportunity.

Attack Path

  1. An attacker compromises the package publisher account, npm package, release process, or another relevant supply-chain component.
  2. The attacker publishes a malicious package version and assigns it to the latest distribution tag.
  3. A user or agent follows the Skill and executes npm install -g @dlazy/cli@latest.
  4. npm resolves the mutable tag to the compromised version.
  5. Malicious lifecycle scripts may execute during installation, or malicious package logic executes when the dlazy command is invoked.
  6. The payload operates with the permissions of the account that ran npm and may remain available through the globally installed executable.

Impact Assessment

Successful exploitation could allow arbitrary code ...[truncated 803 chars]

Remediation
View remediation

Remediation Suggestions

  1. Replace @latest with an exact, reviewed package version:

    bash
    npm install --global --ignore-scripts @dlazy/cli X.Y.Z
    
  2. Verify the selected release's provenance and integrity before recommending it. Record an expected package digest or lockfile integrity value in a trusted location.

  3. Prefer a project-local installation over a global installation so that the dependency is isolated and represented in a lockfile:

    bash
    npm install --save-exact --ignore-scripts @dlazy/cli@X.Y.Z
    
  4. Commit and enforce a lockfile, and use deterministic installation such as npm ci where applicable.

  5. Disable npm lifecycle scripts with --ignore-scripts if the package does not strictly require them. If scripts are required, review them before installation.

  6. Execute the CLI in a restricted container or sandbox with:

    • No elevated privileges.
    • Access only to explicitly selected input and output files.
    • Minimal environment variables.
    • Restricted outbound network access.
  7. Do not install the dependency using sudo or an administrator account.

  8. Update both occurrences in SKILL.md so the quick-start instructions and dependency table consistently reference the same pinned, reviewed version.

  9. Establish a controlled dependency-update process that reviews new versions before changing the pin.

Vulnerability Patterns
  • 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
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (6)

Vague Triggers

High
Category
Not specified by scanner
Confidence
95% confidence
Finding

The top-level description advertises use for AI model calls, intelligent conversation, agent orchestration, and LLM applications, which greatly exceeds the stated purpose of an image-generation tool. Because the skill also exposes exec/read/write capabilities, this overly broad invocation language can steer unrelated requests into a higher-privilege skill than necessary.

Content

No source excerpt is available for this finding.

Vague Triggers

High
Category
Not specified by scanner
Confidence
97% confidence
Finding

The trigger condition is so broad that it covers general AI model use, intelligent chat, agent orchestration, and LLM applications, far beyond image generation. In context, this is dangerous because it can cause the skill to be selected for many unrelated tasks while carrying exec/write access and external API behavior, expanding the attack surface and enabling inappropriate tool invocation.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
84% confidence
Finding

The description states '支持中文交互' and the file is written as if Chinese interaction is the expected operating language, but it does not clearly offer a language choice or explain that Chinese is optional. This can violate language/locale policy expectations when a skill implicitly constrains interaction language without explicit user opt-in.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The document claims built-in safety/compliance and a secure sandbox for command execution, but the manifest grants exec, read, and write tools without showing any technical enforcement. Misrepresenting unrestricted execution as sandboxed is dangerous because users or orchestration logic may trust the skill to safely run commands when it actually has broad filesystem and process capabilities.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The skill is presented as a lightweight image-generation tool, but later broadens itself into generic automation, file processing, information retrieval, and command execution. This scope inflation is dangerous because it can cause the agent to invoke a skill with exec/write permissions for unrelated requests, increasing the chance of unnecessary command execution or data handling beyond the user’s intent.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Low
Category
Not specified by scanner
Confidence
89% confidence
Finding

The '能力边界' section explicitly says the free version does not support '管道链接批量处理'. Yet the later example provides a Python loop for batch-generating concept images, presenting batch automation as a normal use case. This creates a semantic mismatch about whether batch-style automated workflows are in scope for the free tool.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.