T08 · Insecure Dependencies
- Location
SKILL.md:10- Finding
Unpinned Global Installation of a Third-Party npm Package
- Content
View full analysis
- Remediation
View remediation
``` 2. Document the expected package version and integrity hash. 3. Prefer a project-local installation with a committed lockfile instead of a global installation. 4. Install with lifecycle scripts disabled when compatible with the package: ```bash npm install --ignore-scripts m365-cli@ ``` 5. Verify the npm publisher, source repository tag, release provenance, and package contents before updating the pinned version. 6. Consider running the CLI in a restricted environment that exposes only the files and network destinations required for the requested Microsoft 365 operation. ]]>
