T08 · Insecure Dependencies
- Location
SKILL.md:12- Finding
Unpinned Globally Installed Third-Party Executable
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:12-17
Vulnerability Type: Unsafe installation and execution of an unpinned third-party dependency
Risk Level: MediumVulnerable Code
bash npm install -g @dp-pcs/ogp ogp-install-skills ogp setup ogp agent-comms interview ogp config showTechnical Analysis
The Skill instructs users to globally install
@dp-pcs/ogpwithout specifying an exact version or integrity hash and then immediately execute commands supplied by that package. Consequently, the installed content is determined by the package version associated with the mutable npm registry tag at installation time rather than by a version reviewed alongside this Skill.A global npm installation also increases exposure beyond the project directory. Package lifecycle scripts may execute during installation, and the resulting command-line executables run with the permissions of the installing user. The instructions do not require provenance verification, integrity validation, dependency review, or lifecycle-script restrictions.
This finding does not establish that the current package is malicious. It identifies an unsafe supply-chain trust boundary that could become exploitable if the package, one of its dependencies, its publisher account, or the package distribution channel is compromised.
Attack Path
- An attacker compromises the package publisher, a transitive dependency, or the relevant package distribution path, or publishes a malicious future release under the trusted package name.
- The malicious release becomes the version resolved by the unpinned
npm install -g @dp-pcs/ogpcommand. - A user follows the Skill instructions and downloads the mutable package release.
- Malicious npm lifecycle logic may execute during installation, or attacker-controlled behavior executes when the user invokes
ogp-install-skills,ogp setup, or another installed command. - The payload o ...[truncated 882 chars]
- Remediation
View remediation
Remediation Suggestions
-
Pin the package to an explicitly reviewed version, for example:
bash npm install -g @dp-pcs/ogp@0.2.28The selected version should match the functionality required by the Skill and should be updated only through a deliberate review process.
-
Publish and verify the expected package integrity digest or signed provenance before installation. Document the expected npm registry to prevent unintended registry substitution.
-
Prefer a project-local or isolated installation over a global installation where supported. Running the package in a dedicated container or restricted user account can further reduce impact.
-
Review the package and its dependency tree before recommending a new release. Include checks for unexpected lifecycle scripts, newly introduced executables, dependency ownership changes, and known vulnerabilities.
-
Consider initially installing with lifecycle scripts disabled:
bash npm install --ignore-scripts @dp-pcs/ogp@<reviewed-version>If lifecycle scripts are required, document why they are necessary and review them before allowing execution.
-
Avoid running installation or setup commands with administrative privileges. State this requirement explicitly in the prerequisites.
-
Maintain a trusted update procedure that verifies release provenance, integrity, and behavioral changes before changing the pinned version.
-
