T08 · Insecure Dependencies
- Location
SKILL.md:8- Finding
Unpinned Third-Party Dependencies Create a Supply-Chain Risk
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This Google-search skill appears purpose-aligned, but it deserves Review because installation uses unpinned third-party packages and the script can fall back to a shared built-in gateway key.
Review before installing. Use an isolated environment, avoid the global npm install where possible, pin and review dependencies, and provide your own DEEPNLP_ONEKEY_ROUTER_ACCESS key instead of relying on the demo fallback. Treat search queries and JSON payload files as data sent to an external gateway/search service, so avoid sensitive content.
SKILL.md:8Unpinned Third-Party Dependencies Create a Supply-Chain Risk
scripts/google_search.py:9Hardcoded Shared Gateway Access Key Used as an Automatic Fallback
The skill declares environment-variable use and references local scripts, but it does not define an explicit permission or allowed-tools scope. That ambiguity can cause an agent platform to grant broader capabilities than intended or make operators unaware that the skill may read secrets from the environment and access local files. In this context, the risk is elevated because the skill handles an API key and instructs users to run scripts/CLI commands.
The documentation states that if no key is provided, the scripts fall back to a built-in demo key BETA_TEST_KEY_MARCH_2026. Embedding or advertising a shared fallback credential encourages insecure use, undermines accountability, and can expose users to quota abuse, service disruption, or accidental reliance on a public credential. In an agent skill that accesses third-party APIs, this is a real security weakness rather than a harmless example.
Using npx onekey without pinning an exact package version allows whatever version is currently resolved from the registry to be executed. If the upstream package is compromised, updated maliciously, or changes behavior unexpectedly, users may run unreviewed code during skill execution. The skill context makes this more dangerous because the command may run in environments containing API credentials.
The skill accesses a router credential implicitly with no user-facing disclosure, so operators may not realize execution consumes privileged gateway credentials. In multi-tenant or untrusted skill environments, this can lead to unintended use of shared secrets and reduce auditability around credentialed outbound actions.
The skill sends the user-provided payload to an external router service without any explicit warning, confirmation, or data minimization. This creates a privacy and governance risk because callers may pass sensitive data assuming the tool is local, while the wrapper transparently transmits it off-host to a third-party gateway.
The manifest describes a google-search skill, where invoking a remote search API is expected. However, this wrapper also pulls access credentials from the process environment to authenticate to the OneKey router, a capability not justified by the stated purpose in the manifest and not disclosed there.