T08 · Insecure Dependencies
- Location
SKILL.md:49- Finding
Unpinned Third-Party Package Installation and Execution
- Content
View full analysis
- Remediation
View remediation
``` 2. Publish and retain a lockfile containing registry integrity metadata, and require installation with a lockfile-enforcing workflow such as `npm ci`. 3. Avoid download-and-execute behavior through an unpinned `npx` invocation. Install the verified dependency first and invoke its local binary: ```bash npm exec --no -- ods demo ``` The exact invocation should be validated against the selected npm version and package binary name. 4. Where package functionality permits, initially install with lifecycle scripts disabled: ```bash npm install --ignore-scripts openclaw-decentral-social@ ``` 5. Include or link to the exact audited source revision, dependency manifest, lockfile, checksums, and reproducible-build information so reviewers can verify that the installed artifact corresponds to the reviewed code. 6. Run demonstrations in a least-privileged, isolated environment without production credentials or sensitive files, and restrict outbound network access when networking is not required. ]]>
