T08 · Insecure Dependencies
- Location
SKILL.md:31- Finding
Unpinned Third-Party Package Download and Execution
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, line 31
Vulnerability Type:T08: Insecure Dependencies
Risk Level: MediumVulnerable Code Snippet:
bash npx @builtbyecho/agent-wormhole send --text "mission brief"Technical Analysis
The documented one-off command invokes an npm package without specifying an exact version or integrity constraint. Depending on the local npm environment and cache state,
npxmay retrieve the package currently published under@builtbyecho/agent-wormholeand execute its command-line entry point immediately.Because the package implementation and a dependency lockfile are not included in the audited project, the downloaded code and its transitive dependencies cannot be verified by this audit. The effective behavior of the command may change after review if the publisher releases a new version or if the publisher account, package, or dependency chain is compromised.
Attack Path
- An attacker compromises the npm publisher account, package release process, or a relevant dependency.
- The attacker publishes a malicious version under the referenced package name or introduces malicious code into its dependency chain.
- A user follows the documented unversioned
npxcommand. npxretrieves and executes the uncontrolled package version.- The malicious package runs with the invoking user's permissions and may access command input, environment variables, credentials available to the process, and files accessible to that user.
Impact Assessment
Successful exploitation could result in arbitrary code execution with the privileges of the user running
npx. The accessible scope may include local project files, the submitted mission brief, user-readable configuration and credential files, and environment-based secrets. It does not inherently grant administrative privileges unless the command is run from an already privileged account or a separate escalat ...[truncated 31 chars]- Remediation
View remediation
Remediation Suggestions
-
Pin the package to an audited exact version rather than relying on the current registry release:
bash npm exec --package=@builtbyecho/agent-wormhole@<exact-version> -- agent-wormhole send --text "mission brief" -
Verify the selected release's provenance, publisher identity, and integrity before recommending execution.
-
Maintain and review a lockfile where the package is installed as a project dependency, including its transitive dependency resolutions.
-
Prefer installing the reviewed version in a controlled project environment and invoking the locally installed binary.
-
Use an isolated, least-privileged environment for processing sensitive handoffs, and expose only the files and environment variables required for the operation.
-
Establish a dependency update process that requires security review before changing the pinned version.
-
