Back to skill

Security audit

图片仿制 Image Replicate

Security checks for vulnerabilities and agentic risk

Overview

The skill is a disclosed cloud image-replication wrapper that sends selected prompts and media to dLazy, with ordinary install and credential risks users should understand.

Install this only if you are comfortable trusting the dLazy CLI and service. Do not pass confidential images, media, or prompts unless you intend to upload them to dLazy, and prefer npx or a contained environment if you do not want a persistent global CLI. Rotate or revoke the dLazy API key if it is no longer needed.

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:5
Finding
Unverified Third-Party CLI Installation and Execution<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md:5`, `SKILL.md:57-60`; mirrored in `SKILL-cn.md:5`, `SKILL-cn.md:57-60` **Vulnerability Type**: Third-party supply-chain exposure through npm installation and execution **Risk Level**: Medium ### Vulnerable Code ```json "install":"npm install -g @dlazy/cli@1.2.3", "installAlternative":"npx @dlazy/cli@1.2.3" ``` ```bash npx @dlazy/cli@1.2.3 <command> ``` ```text Or, if you prefer a global install, the skill's metadata.clawdbot.install field declares the exact pinned version (npm install -g @dlazy/cli@1.2.3). ``` ### Technical Analysis The skill delegates its implementation to the external npm package `@dlazy/cli@1.2.3`. The audited project contains only documentation and metadata; it does not include the CLI source, a package lockfile, a trusted integrity digest, signed provenance, or a vendored copy that would permit verification of the code ultimately executed. Pinning the dependency to version `1.2.3` reduces unexpected version drift, but it does not independently authenticate the registry artifact or protect against a compromised publisher account, registry compromise, malicious lifecycle scripts, or substitution in the package delivery chain. Both documented installation methods can execute third-party code: - `npm install -g` may run npm lifecycle scripts and installs the package globally for the current environment. - `npx` downloads or resolves the package and then executes its entry point. Package lifecycle scripts may also run during package installation. No evidence in the audited files establishes that the referenced package is malicious. The risk is that the effective executable payload is outside the reviewed project and is trusted without cryptographic verification beyond ordinary npm resolution. ### Attack Path 1. An attacker compromises the npm publisher account, package distribution channel, or artifact associated with `@dlazy/cli@1.2.3`. 2. The attacker introduces malic ...[truncated 1628 chars]
Remediation
<![CDATA[ ## Remediation Suggestions 1. Vendor the required executable implementation into the reviewed project or provide a reproducible build from a reviewed source revision. 2. Verify the npm artifact using a trusted integrity digest and fail closed if the downloaded artifact does not match. 3. Publish and verify signed package provenance, such as npm provenance backed by a protected release workflow. 4. Include a lockfile or equivalent manifest that records the complete dependency graph and integrity values. 5. Avoid global installation where possible. Prefer an isolated, project-local installation executed with a dedicated low-privilege account. 6. Disable npm lifecycle scripts during installation when the package does not require them, for example by using an appropriately tested `--ignore-scripts` workflow. 7. Run the CLI in a sandbox or container with: - Access only to explicitly selected input and output paths. - No access to unrelated credentials or home-directory files. - Network access restricted to the documented service endpoints. - No administrator or root privileges. 8. Review the exact source revision corresponding to version `1.2.3`, including lifecycle scripts and transitive dependencies, before allowing execution. 9. Add automated dependency scanning, provenance validation, and periodic review of the package ownership and release process. 10. Document the trust boundary explicitly so users understand that prompts, selected media, and credentials are processed by software outside the audited project. ]]>
Vulnerability Patterns
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • 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
Findings (6)

Ae1

High
Category
analysis-evasion
Content
[English](./SKILL.md) · [中文](./SKILL-cn.md)
Confidence
100% confidence
Finding
Referenced artifact was not completely inspected

Intent-Code Divergence

Medium
Confidence
97% confidence
Finding
The document claims the skill 'will not overreach network or filesystem access' even though it explicitly uploads local files, performs network calls, and can save outputs to local paths. This contradiction can cause users or agents to place undue trust in the skill's safety model and approve actions they would otherwise review more carefully.

Whitespace Padding

Medium
Category
Prompt Injection
Content
## 错误处理

| Code | 错误类型                         | 示例信息                                                                                                                 |
| ---- | -------------------------------- | ------------------------------------------------------------------------------------------------------------------------ |
| 401  | 未授权 (API Key缺失或无效)       | `ok: false, code: "unauthorized", message: "API key is missing or invalid"`                                                              |
| 501  | 缺少必填参数                     | `error: required option '--prompt <prompt>' not specified`                                                               |
Confidence
70% confidence
Finding
Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.

Natural-Language Policy Violations

Medium
Confidence
92% confidence
Finding
The agent instruction explicitly requires responses to users in Chinese for error handling flows, but the file does not offer a language choice or indicate that this skill is limited to Chinese-speaking users. This creates a language/locale policy issue because it mandates a specific language without user opt-in.

Whitespace Padding

Medium
Category
Prompt Injection
Content
## Error Handling

| Code | Error Type                         | Example Message                                                                                                          |
| ---- | ---------------------------------- | ------------------------------------------------------------------------------------------------------------------------ |
| 401  | Unauthorized (No API Key)          | `ok: false, code: "unauthorized", message: "API key is missing or invalid"`                                                              |
| 501  | Missing required parameter         | `error: required option '--prompt <prompt>' not specified`                                                              |
Confidence
70% confidence
Finding
Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.

Description-Behavior Mismatch

Low
Confidence
95% confidence
Finding
The top-level description presents the skill as an image replication tool but does not immediately disclose that prompts and local media may be transmitted to remote dLazy services. That omission can mislead users and agents about data handling, increasing the risk of unintentionally uploading sensitive local files or confidential prompts.

Static analysis

No suspicious patterns detected.