T08 · Insecure Dependencies
- Location
SKILL.md:35- Finding
Unpinned Third-Party Package Execution Through npx
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 35-37
Vulnerability Type:T08: Insecure Dependencies
Risk Level: Highbash npx @claws-shield/cli intel "capybara codename" npx @claws-shield/cli intel "tengu feature flags" npx @claws-shield/cli intel "unreleased tools"Technical Analysis
The documented commands instruct users to execute
@claws-shield/clithroughnpxwithout specifying an exact package version. Depending on the local environment and npm cache,npxmay resolve and download the current package release from the configured npm registry before executing it.The project does not include a package manifest, lockfile, integrity metadata, vendored implementation, or other mechanism that binds these commands to the package version reviewed when the Skill was published. Consequently, the code executed by users can change independently of the audited Skill. Package lifecycle scripts and the CLI entry point may run code with the invoking user's operating-system permissions.
The local wrapper in
scripts/query-intel.mjsalso imports@claws-shield/inteland@claws-shield/core, but the source and pinned versions of those dependencies are not included in the supplied project. Their behavior therefore could not be verified during this audit.Attack Path
- An attacker compromises the npm account, publication pipeline, or source used to publish
@claws-shield/cli, or otherwise causes a malicious release to be resolved through the user's configured registry. - The attacker publishes a modified package version containing malicious lifecycle or CLI code.
- A user follows one of the documented unversioned
npxcommands. npxresolves the mutable package release and, when it is not already available locally, downloads it from the registry.- npm lifecycle code or the package CLI executes under the user's account.
- The malicious package can access resources available t ...[truncated 909 chars]
- An attacker compromises the npm account, publication pipeline, or source used to publish
- Remediation
View remediation
Remediation Suggestions
- Replace unversioned package execution with an audited, exact package version, such as
@claws-shield/cli@x.y.z. - Add a
package.jsonand committed lockfile containing integrity hashes for all direct and transitive dependencies. - Install dependencies through a reproducible process such as
npm ci, rather than resolving mutable versions during each invocation. - Review all direct and transitive dependency sources before pinning them, including
@claws-shield/cli,@claws-shield/intel, and@claws-shield/core. - Disable dependency lifecycle scripts where they are unnecessary, for example by using
npm ci --ignore-scripts, and explicitly document any scripts that must remain enabled. - Prefer bundling or vendoring the minimal query implementation and required static data so that all executable behavior is present in the auditable Skill package.
- Verify published package provenance and integrity in CI, and require review before updating dependency versions or lockfile entries.
- Execute the query component with least privilege, without unnecessary secrets in its environment and with filesystem and network access restricted where practical.
- Replace unversioned package execution with an audited, exact package version, such as
