T08 · Insecure Dependencies
- Location
SKILL.md:17- Finding
Unpinned Third-Party Executable npm Dependency
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 17–20
Vulnerability Type: Unpinned executable dependency and supply-chain exposure
Risk Level: Mediumyaml install: - kind: node package: ai-media-generator bins: [ai-media]Technical Analysis
The skill instructs the runtime to install the third-party
ai-media-generatornpm package without specifying an exact version or integrity hash. The installed package supplies the executableai-mediacommand used throughout the skill.Because neither the dependency source nor a reviewed package version is included in the project, its effective executable behavior cannot be verified from the audited artifact. Package resolution can select a future release whose code differs from the version available when the skill was reviewed. npm installation may also execute package lifecycle scripts.
This creates a supply-chain trust boundary: compromise of the publisher account, package registry entry, release process, or a future package version could introduce arbitrary code without requiring changes to this repository.
Attack Path
- An attacker compromises the npm publisher account, package release process, or another component capable of publishing a modified
ai-media-generatorrelease. - The attacker publishes a malicious version under the expected package name.
- A user or agent installs the skill dependency without an exact version or verified integrity value.
- The package manager resolves and installs the attacker-controlled release.
- Malicious code executes through an npm lifecycle script or when the installed
ai-mediabinary is invoked. - The code accesses resources available to the installing process, potentially including the required
AI_MEDIA_API_KEY, prompts, referenced media, filesystem data, and network connectivity.
Impact Assessment
Successful exploitation could result in arbitrary code execution wi ...[truncated 605 chars]
- An attacker compromises the npm publisher account, package release process, or another component capable of publishing a modified
- Remediation
View remediation
Remediation Suggestions
- Pin
ai-media-generatorto an exact, reviewed version rather than allowing mutable package resolution. - Record and verify the package integrity hash through a lockfile or equivalent cryptographic verification mechanism.
- Include a canonical source repository and package provenance information so reviewers can correlate the installed artifact with reviewed source code.
- Audit npm lifecycle scripts and the
ai-mediaexecutable before approving a version. - Prefer installation modes that disable lifecycle scripts when they are not required.
- Run the CLI with least privilege in a sandbox or restricted environment, exposing only the API credentials, filesystem locations, and network destinations necessary for video generation.
- Establish a controlled dependency-update process that requires security review before changing the pinned version or integrity value.
- Pin
