T08 · Insecure Dependencies
- Location
SKILL.md:84- Finding
Mutable Remote Packages and Skill Content Are Installed Without Version or Integrity Verification
- Content
View full analysis
~/.openclaw/skills/earnfi-x402/SKILL.md curl -s "https://app.earnfi.fun/skill.json" > ~/.openclaw/skills/earnfi-x402/package.json ``` ```text For automated discovery smoke tests you can use: npx -y @agentcash/discovery@latest discover "https://app.earnfi.fun" ``` ```bash npm install @x402/fetch @x402/core @x402/svm # Solana ``` ### Technical Analysis The installation instructions retrieve mutable Skill files from a remote server and overwrite local files without verifying a cryptographic signature, checksum, expected version, or content digest. The `curl -s` option also suppresses diagnostic output and does not make HTTP failures fatal. The command using `npx -y @agentcash/discovery@latest` is particularly sensitive because it automatically downloads and executes the package currently published under the `latest` tag. The effective package contents can change after this Skill has been reviewed. The `-y` option suppresses the normal installation confirmation. The x402 packages are also installed without exact versions. Dependency resolution can therefore change over time and may introduce compromised or incompatible transitive dependencies. Package installation can execute npm lifecycle scripts with the privileges of the user running the command. No evidence shows that the currently referenced packages or host are malicious. The vulnerability is the absence of controls preventing a future registry, publisher-account, DNS, TLS termination, or hosting compromise from changing the installed payload. ### Attack Path 1. An attacker compromises the EarnFi hosting environment, a referenced npm publisher account, or the package distribution chain. 2. The attacker replaces a hosted Skill file or publishe ...[truncated 1230 chars]- Remediation
View remediation
