T08 · Insecure Dependencies
- Location
generate.sh:7- Finding
Execution of Unpinned Third-Party Packages and Skills
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:24-28;generate.sh:7-11
Vulnerability Type: Unpinned third-party dependency execution
Risk Level: MediumVulnerable Code
SKILL.md:24-28:bash ## Prerequisites This skill requires the **Remotion Best Practices** skill: ```bash npx skills add remotion-dev/skills -a claude-code -y -gtext `generate.sh:7-11`: ```bash cd "$PROJECT_DIR" || exit 1 echo "🎬 Rendering WhatsApp video..." npx remotion render WhatsAppDemo "out/${OUTPUT_NAME}.mp4" --concurrency=4Technical Analysis
The documented installation command invokes the
skillspackage throughnpxand installsremotion-dev/skillsglobally without specifying an immutable version or commit. The generation script similarly invokesremotionthroughnpxwithout an explicit version.When a package is unavailable locally,
npxcan retrieve and execute its current registry release. Consequently, the code executed at installation or rendering time may differ from the code that existed when this project was audited. The global and noninteractive flags (-gand-y) further increase exposure by installing the external skill into a shared environment without an explicit confirmation step.No evidence in the supplied files establishes that these dependencies are currently malicious. The vulnerability is the lack of dependency pinning and reproducible installation controls, which creates a supply-chain execution path if an upstream package, maintainer account, registry entry, or referenced skill repository is compromised.
Attack Path
- An attacker compromises the publishing account, registry package, repository, or another distribution point associated with
skills,remotion, orremotion-dev/skills. - The attacker publishes a modified release or changes the external skill source.
- A user follows the prerequisite instructions or executes
generate.sh.
...[truncated 846 chars]
- An attacker compromises the publishing account, registry package, repository, or another distribution point associated with
- Remediation
View remediation
Remediation Suggestions
- Declare
remotionand all required command-line packages as local project dependencies pinned to reviewed exact versions. - Commit and enforce a package-manager lockfile, and use a reproducible installation command such as
npm ci. - Invoke the locally installed executable rather than allowing
npxto retrieve an unspecified current release. - Pin
remotion-dev/skillsto a reviewed immutable commit or content digest rather than a mutable repository reference. - Avoid global installation where possible. Install the skill into a project-scoped, isolated directory.
- Remove
-yfor security-sensitive installation workflows or provide an explicit review and confirmation step. - Apply dependency integrity verification, automated vulnerability scanning, and controlled update review before accepting newer versions.
- Declare
