T08 · Insecure Dependencies
Warning
- Location
- SKILL.md:34
- Finding
- Execution of an Unverified Third-Party Radar Package via npx## Vulnerability Details **File Location**: `SKILL.md`, line 34 **Vulnerability Type**: `T08: Insecure Dependencies` **Risk Level**: Medium **Complete Code Snippet**: ```bash npx @hypelens/hypelens-radar@0.1.5 ``` ### Technical Analysis The skill instructs users or agents to execute a third-party npm package directly through `npx`. An exact version is pinned, which reduces unintended version drift, but the project does not provide a lockfile, package integrity hash, signature verification, vendored source, or evidence that the referenced package was independently reviewed. Depending on the npm and `npx` configuration, the command can download the package from the configured registry and execute package-controlled code. Pinning the version does not protect against a compromised publisher account, malicious package release, registry compromise, local cache poisoning, or use of an untrusted registry mirror. The audited project contains only `SKILL.md`; no evidence was found that the referenced package is currently malicious. The risk arises from directing execution across an unverified supply-chain trust boundary. ### Attack Path 1. An attacker compromises the package publisher, registry entry, configured npm registry, or package delivery path. 2. Malicious content is introduced into or served in place of `@hypelens/hypelens-radar@0.1.5`. 3. A user or agent follows the skill instructions and executes the documented `npx` command. 4. `npx` retrieves or resolves the attacker-controlled package and runs its package binary or applicable installation behavior. 5. The malicious code operates with the permissions and environmental access of the invoking process. ### Impact Assessment Successful exploitation could execute arbitrary code with the privileges of the user running `npx`. Accessible scope may include readable files, environment variables, local credentials, network resources, and writable files available to that ac ...[truncated 200 chars]
- Remediation
- ## Remediation Suggestions - Vendor and review the executable implementation rather than downloading code at invocation time. - Publish and verify cryptographic integrity information for the exact package artifact. - Use a controlled package registry and a lockfile with verified integrity hashes where the installation workflow supports them. - Verify package publisher ownership, provenance attestations, and release signatures before execution. - Disable or restrict npm lifecycle scripts where operationally possible. - Run the package in a sandbox or container with a minimal environment, read-only filesystem access, restricted network destinations, and no unrelated credentials. - Execute it under a dedicated low-privilege account and avoid exposing wallet secrets, API tokens, SSH credentials, or cloud credentials to the process. - Document the expected package checksum and provide a reproducible verification procedure.
