T08 · Insecure Dependencies
- Location
SKILL.md:13- Finding
Unpinned Global Installation of a Third-Party npm Package
- Content
View full analysis
- Remediation
View remediation
``` 2. Verify the selected release's provenance, publisher, repository, dependency tree, and published integrity metadata before recommending it. 3. Prefer a project-local installation with a committed lockfile over global installation where operationally feasible: ```bash npm install --save-exact @beauraines/toggl-cli@ ``` 4. Invoke the locked local binary through an npm script rather than relying on a mutable global executable. 5. Review package lifecycle scripts and dependencies before installation. Where compatible with the verified package, consider disabling lifecycle scripts during installation and explicitly running only necessary setup steps. 6. Execute the CLI under a least-privileged user account and ensure `~/.toggl-cli.json` remains restricted to that account with mode `600`. 7. Limit the Toggl token's effective access where supported, avoid exposing it to unrelated processes, and rotate it immediately if dependency compromise is suspected. 8. Establish a controlled update process in which new versions are reviewed and tested before changing the pinned version. ]]>
