T08 · Insecure Dependencies
- Location
SKILL.md:589- Finding
Unpinned Package Download and Execution Through npx
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 589-592
Vulnerability Type: Supply-chain exposure through unpinned third-party package execution
Risk Level: Mediumbash export DEEPNLP_ONEKEY_ROUTER_ACCESS=your_access_key npx onekey agent craftsman-agent/craftsman-agent image_generator '{"prompt":"Introduction to Difference between MCPs,Skills and Agents CLIs","images":[],"card_count":1,"template_id":"icon-designer","api_id":"image_generator","asset_size":[{"width":1080,"height":1080,"ratio":"1:1"}],"mode":"basic","session_id":"31d57eb9-9a37-4808-9c5b-1bfbb2abf5fb","session_name":"AI Poster of MCPs/CLIs/Agents","tag_list":"","model":"default","styles":["Editorial grid layout with corporate dark deep monochromatic tones"],"design_config":{"template_id":"icon-designer","card_count":1,"card_count_source":"default","channel_profile":"generic","audience_profile":"general","age_band":"auto","profile_version":"1.0.0","geometry_source":"profile","resolved_profiles":[{"type":"channel","id":"generic","version":"1.0.0"},{"type":"audience","id":"general","version":"1.0.0"}],"language":"auto","mode":"standard","text_model":"default","image_model":"default","styles":["Editorial grid layout with corporate dark deep monochromatic tones"],"constraints":["Limit target output build to 6 high-density pages max for physical double folding print"],"brief_inputs":[{"id":"binp-1","type":"prompt","content":"Introduction to Difference between MCPs,Skills and Agents CLIs"},{"id":"binp-2","type":"style","content":"Editorial grid layout with corporate dark deep monochromatic tones"},{"id":"binp-3","type":"constraint","content":"Limit target output build to 6 high-density pages max for physical double folding print"},{"id":"binp-1786857754660","type":"prompt","content":"Custom newly configured prompt parameter specifications instructions layout metric..."}],"text_styles":{"brand":{"color":"#8b5cf6","font":"Playfair Display","font_size":"20px","font_weight ...[truncated 3963 chars]- Remediation
View remediation
Remediation Suggestions
- Pin the CLI to an explicitly reviewed version, for example
npx --no-install onekeyafter controlled installation or an exact-version invocation such asnpx onekey@X.Y.Z. - Declare the dependency in a package manifest and commit a lockfile containing resolved versions and integrity hashes.
- Install dependencies in a controlled build step using a locked installation command such as
npm ci. - Review the selected package, its transitive dependency tree, publisher provenance, and lifecycle scripts before use.
- Disable package lifecycle scripts where they are unnecessary, such as by using
npm ci --ignore-scripts, while confirming that this does not break required behavior. - Prefer a verified local binary and use
npx --no-installto prevent opportunistic network retrieval during Skill execution. - Expose the gateway key only to the verified process that requires it. Use a short-lived, least-privilege credential with quota and scope restrictions.
- Run the CLI in a restricted environment or container with minimal filesystem access, limited outbound networking, and no unrelated secrets in the environment.
- Add dependency vulnerability and provenance checks to release procedures and rotate the gateway key promptly if package compromise is suspected.
- Pin the CLI to an explicitly reviewed version, for example
