T08 · Insecure Dependencies
- Location
SKILL.md:51- Finding
Execution of an Unpinned Third-Party CLI Package
- Content
View full analysis
- Remediation
View remediation
``` ```bash npx --yes @membranehq/cli@ action list --intent=QUERY --connectionId=CONNECTION_ID --json ``` 2. Prefer a project-local dependency over a global installation. Commit a lockfile that records the complete resolved dependency graph and integrity values. 3. Use reproducible installation mechanisms such as `npm ci` with a reviewed lockfile rather than resolving dependencies dynamically. 4. Verify package provenance, registry source, signatures or attestations where available, and integrity hashes before execution. 5. Disable unnecessary npm lifecycle scripts during installation where compatible with the package: ```bash npm ci --ignore-scripts ``` 6. Execute the CLI using a least-privileged account or isolated environment with access only to the files and external-service permissions required for the task. 7. Establish a controlled update process in which new CLI versions are reviewed and tested before the pinned version is changed. ]]>
