T08 · Insecure Dependencies
- Location
SKILL.md:15- Finding
Unpinned Third-Party CLI Installation
- Content
View full analysis
- Remediation
View remediation
go install github.com/opendatalab/MinerU-Ecosystem/cli/mineru-open-api@ ``` 2. Prefer an immutable Go commit hash where practical, especially when reproducibility is required. 3. Publish expected checksums or signature-verification instructions for downloadable artifacts. 4. Document the exact package version that was security-reviewed and establish a controlled process for reviewing upgrades. 5. Avoid global npm installation where possible. Use a project-local dependency with a lockfile and integrity metadata, or run the tool inside a restricted container. 6. Disable or review npm lifecycle scripts when compatible with the package's installation requirements. 7. Run the CLI as an unprivileged user with access limited to required input and output paths. 8. Provide `MINERU_TOKEN` only to the process that requires it and avoid exposing unrelated credentials in the same execution environment. ]]>
