T08 · Insecure Dependencies
- Location
SKILL.md:8- Finding
Unpinned Third-Party Dependencies and Ambiguous npx Package Resolution
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill appears purpose-aligned for Gemini image generation, but it needs review because it uses an API key with unpinned gateway dependencies and documents extra image-analysis capabilities outside the main tool list.
Review before installing. Use a dedicated, revocable OneKey API key, avoid privileged/global installs where possible, pin dependency versions, and only send images or prompts you are comfortable routing through the OneKey/Gemini provider path.
SKILL.md:8Unpinned Third-Party Dependencies and Ambiguous npx Package Resolution
The skill exposes sensitive capabilities through environment variable access and file-reading behavior but does not declare any explicit tool scope such as permissions or allowed-tools. This weakens containment and reviewability because operators cannot easily determine or enforce what the skill is permitted to access, increasing the chance of unintended secret exposure or overbroad execution in agent runtimes.
The manifest presents the skill as a generic Gemini image-generation gateway, but the documented usage includes OCR and image item-listing functions not clearly declared in the manifest’s tool descriptions. This capability mismatch can mislead reviewers and users about the true data-processing scope, especially where images may contain sensitive text or personal information.
The documentation instructs users to run the skill through npx onekey without pinning a specific package version. This creates a supply-chain risk because a future compromised or incompatible package release could be fetched and executed implicitly at runtime.
This is a second instance of unpinned npx onekey execution guidance, carrying the same supply-chain exposure as the earlier example. Repeated unsafe examples increase the likelihood that users will adopt insecure installation and execution practices.
The skill allows writing generated images to user-specified relative or absolute paths but does not prominently warn about file-write behavior or path safety expectations. In agent environments, this can lead to accidental overwrites, writes to sensitive directories, or misuse when unsafe path input is passed through automation.