Back to skill

Security audit

Google Search

Security checks for vulnerabilities and agentic risk

Overview

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.

Vulnerability Patterns
  • Insecure DependenciesIntroduces malicious components through unsafe dependency sources
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
Findings (2)

T08 · Insecure Dependencies

Warning
Location
SKILL.md:8
Finding

Unpinned Third-Party Dependencies Create a Supply-Chain Risk

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Note
Location
scripts/google_search.py:9
Finding

Hardcoded Shared Gateway Access Key Used as an Automatic Fallback

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (6)

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
84% confidence
Finding

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.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

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.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
88% confidence
Finding

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.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
87% confidence
Finding

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.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

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.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Low
Category
Not specified by scanner
Confidence
82% confidence
Finding

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.

Content

No source excerpt is available for this finding.