Back to skill

Security audit

图像生成 Recraft V4

Security checks for vulnerabilities and agentic risk

Overview

The skill is a disclosed wrapper around a pinned dLazy CLI for cloud image generation, with expected credential storage and file upload behavior.

Before installing, review the linked dLazy CLI source/package if you rely on this in a sensitive environment, avoid running npm installs with elevated privileges, and use `DLAZY_API_KEY` or revoke/rotate the stored key if the machine is shared or later compromised.

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:54
Finding
Third-Party CLI Executed Without Artifact Integrity Verification## Vulnerability Details **File Location**: `SKILL.md:5,54-60`; `SKILL-cn.md:5,54-60` **Vulnerability Type**: T08: Insecure Dependencies **Risk Level**: Medium ### Evidence Both Skill documents declare installation and execution of a registry-delivered npm package: ```json "install":"npm install -g @dlazy/cli@1.2.3", "installAlternative":"npx @dlazy/cli@1.2.3" ``` The English document also instructs users to execute the package directly: ```markdown You can install on demand without persisting a global binary by running: ```bash npx @dlazy/cli@1.2.3 <command> ``` 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`). Review the GitHub source before installing. ``` The Chinese document contains equivalent installation instructions: ```markdown 如果你不希望在系统上长期保留一个全局 CLI,可以按需运行: ```bash npx @dlazy/cli@1.2.3 <command> ``` 如选择全局安装,技能的 `metadata.clawdbot.install` 字段已固定到 `npm install -g @dlazy/cli@1.2.3`。安装前建议先到 GitHub 仓库审阅源码。 ``` ### Technical Analysis The audited project contains only documentation and does not include the source code of `@dlazy/cli`, a lockfile, an integrity digest, a signed release manifest, or a vendored executable artifact. Consequently, the behavior of the executable dependency cannot be validated from the Skill package itself. Pinning the package to version `1.2.3` limits unexpected version upgrades, but it does not cryptographically establish that the downloaded artifact matches an independently reviewed artifact. Running the package through `npx` or installing it globally causes npm registry content to execute with the privileges of the invoking user. Depending on npm configuration and package contents, package lifecycle scripts may also execute during installation. No evidence was found that the named package is currently malicious. The vulnerability is the unsafe ...[truncated 1767 chars]
Remediation
## Remediation Suggestions 1. Vendor the reviewed CLI source or executable artifact with the Skill so the audited implementation is the implementation that runs. 2. Publish cryptographic SHA-256 or stronger digests for release artifacts and verify them before execution. 3. Use signed package provenance or release signatures and enforce signature verification in the installation process. 4. Commit an npm lockfile containing integrity metadata where an npm-based installation remains necessary. 5. Install with lifecycle scripts disabled where compatible, such as `npm install --ignore-scripts`, and explicitly run only reviewed entry points. 6. Prefer an isolated, least-privilege environment over global installation. Restrict filesystem access, environment variables, and outbound network destinations. 7. Do not expose unrelated secrets to the CLI process. Supply the dLazy credential only when required and use a narrowly scoped, revocable API key. 8. Pin both the version and verified artifact digest; version pinning alone is insufficient. 9. Continuously audit the exact published package artifact and its transitive dependencies rather than relying solely on the linked GitHub repository.
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • 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 (1)

Missing User Warnings

Low
Confidence
91% confidence
Finding
The skill explicitly recommends storing the dLazy API key in a local config file and says it is written automatically after login, but it does not prominently warn users about the security implications of credential persistence on disk. While local storage of API credentials is common, the missing warning can lead users to leave long-lived secrets on shared, backed-up, or insufficiently secured systems, increasing exposure if the host is compromised.

Static analysis

No suspicious patterns detected.