T08 · Insecure Dependencies
- Location
references/cli-common.md:10- Finding
Mutable npm CLI Package Is Downloaded and Executed
- Content
View full analysis
" npx @delilegal/deli-cli@latest cmds deli-ocr-file-parser@1.0.0 ``` Subsequent operations use the same mutable package reference: ```bash npx @delilegal/deli-cli@latest run_a1b2c3d4e5f6 parse-file --input "D:\case\contract-scan.pdf" --output-dir "D:\case\parsed" npx @delilegal/deli-cli@latest run_a1b2c3d4e5f6 image-ocr --input "D:\case\payment-receipt.png" --output-dir "D:\case\parsed" --lang "zh-cn+en" npx @delilegal/deli-cli@latest run_a1b2c3d4e5f6 pdf-to-markdown --input "D:\case\court-document-scan.pdf" --output-dir "D:\case\parsed" ``` The filenames above are English translations of the example filenames in the source documentation; the executable commands and package reference are unchanged. ### Technical Analysis The Skill requires `npx` to execute `@delilegal/deli-cli@latest`. The `latest` npm distribution tag is mutable and does not identify the exact package version that was reviewed. Depending on the local npm cache and configuration, `npx` can download the currently published package and execute its lifecycle or CLI code immediately. No exact version, package-lock integrity value, checksum, signature verification, or trusted artifact digest is required. Consequently, the effective executable payload may change after the Skill itself has passed review. This is an insecure supply-chain boundary. Compromise of the npm publisher account, registry resolution path, package dependencies, or a future package release could turn the mandatory prerequisite command into arbitrary local code execution. ### Attack Path 1. An attacker compromises the npm publisher account, package release process, registry path, or an inclu ...[truncated 1138 chars]- Remediation
View remediation
