T08 · Insecure Dependencies
- Location
SKILL.md:195- Finding
Unpinned Global Installation of a Third-Party npm Package
- Content
View full analysis
- Remediation
View remediation
``` 2. Verify the package name, publisher, registry origin, release provenance, and expected integrity before installation. 3. Prefer a project-local dependency with a committed lockfile over global installation. 4. Use npm lockfile integrity metadata and automated dependency monitoring to detect unexpected package changes. 5. Disable lifecycle scripts during installation when they are not required: ```bash npm install --ignore-scripts agent-browser@ ``` If installation scripts are required, review them before enabling them. 6. Run browser and system-dependency installation inside a sandboxed container or disposable environment with minimal filesystem and network access. 7. Do not run npm installation as `root` or through `sudo`. Separate any required operating-system dependency installation into a reviewed, explicitly versioned administrative procedure. 8. Pin and verify downloaded browser artifacts where supported, including expected versions and checksums. ]]>
