Back to skill

Security audit

Bocha Search (Momo优化版)

Security checks for vulnerabilities and agentic risk

Overview

This is a straightforward Bocha web-search skill that sends user searches to Bocha and stores a local API key as disclosed.

Install only if you are comfortable sending search terms to Bocha. Use a dedicated Bocha API key, avoid searching for secrets or sensitive private text, and protect the local config file that stores the key.

Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
Findings (3)

Missing User Warnings

Medium
Confidence
84% confidence
Finding
The script sends the user's raw search query to a third-party service at api.bocha.cn without any explicit notice at execution time about external data transmission. This can leak sensitive prompts, internal terms, or personal data if users assume the query is handled locally or by the platform's built-in search.

External Transmission

Medium
Category
Data Exfiltration
Content
~/.openclaw/skills/bocha-search/scripts/search.sh "关键词"
```

### 直接用 curl

```bash
curl -s "https://api.bocha.cn/v1/web-search" \
Confidence
87% confidence
Finding
The skill sends user-provided search queries and an API bearer token to an external third-party service, which creates a real data exfiltration boundary. Even though this is expected for a search skill, it is still security-relevant because sensitive queries or secrets accidentally included in searches may be transmitted outside the local environment.

External Transmission

Medium
Category
Data Exfiltration
Content
### 直接用 curl

```bash
curl -s "https://api.bocha.cn/v1/web-search" \
  -H "Authorization: Bearer $BOCHA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
Confidence
89% confidence
Finding
The hardcoded external endpoint confirms that the skill communicates with a third-party host, creating a trust dependency on api.bocha.cn for confidentiality and integrity of transmitted search data. In this context the behavior is intentional, but it remains a genuine security concern because all queries and credentials are sent off-box to a remote service.

Static analysis

No suspicious patterns detected.