T08 · Insecure Dependencies
- Location
SKILL.md:222- Finding
Unpinned Globally Executable npm Dependency
- Content
View full analysis
- Remediation
View remediation
``` 2. Install the dependency locally within the Skill or project instead of globally: ```bash npm ci ./node_modules/.bin/agent-browser --version ``` 3. Commit a lockfile and use `npm ci` so direct and transitive dependency versions are reproducible. 4. Verify package provenance, publisher identity, registry source, and integrity metadata before installation. 5. Disable lifecycle scripts during installation where compatible with the package: ```bash npm ci --ignore-scripts ``` 6. If `npx` remains documented, specify an exact version and prevent silent package resolution: ```bash npx --no-install agent-browser --version ``` Alternatively, where downloading is explicitly intended: ```bash npx agent-browser@ --version ``` 7. Run browser automation in a restricted environment with minimal filesystem access, no unnecessary credentials in environment variables, and constrained outbound network access. ]]>
