Back to skill

Security audit

Bocha Web Search

Security checks for vulnerabilities and agentic risk

Overview

This skill is a disclosed Bocha search API wrapper that sends user-provided queries or rerank documents to Bocha and does not show hidden persistence, destructive behavior, or unrelated data access.

Install this only if you intend to use Bocha as a third-party search and reranking provider. Search terms, raw JSON fields, and reranker documents may be sent to Bocha, so avoid including private or sensitive content unless that is acceptable for your use case. Prefer an environment variable for the API key and confirm tool choice for generic web-search requests.

Vulnerability Patterns
  • 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
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • 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 (9)

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
86% confidence
Finding

The skill documents executable scripts that use environment variables and make outbound network requests, but it does not declare any explicit tool scope such as permissions or allowed-tools. This creates a trust and governance gap: an agent may invoke capabilities broader than users or platform policy expect, especially when API keys and live web access are involved.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The trigger description includes broad phrases like '联网搜索', 'AI 搜索', and '事实核查/行业研报检索', which can match many ordinary user requests. Overbroad activation increases the chance the skill is selected unintentionally, causing unexpected network access, data sharing with a third-party API, or use of this skill when a narrower/local option would be safer.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
78% confidence
Finding

The description states the skill is suited for “中文互联网检索”, which signals a language/locale constraint, but there is no explicit opt-in, user choice, or justification that this skill is intentionally region-specific. Under the policy, language or locale constraints should be optional or clearly documented as necessary.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · scripts/bocha.mjs (reported line 65)May include surrounding context.

js
function endpointByMode(mode) {
  switch (mode) {
    case 'web': return 'https://api.bochaai.com/v1/web-search';
    case 'ai': return 'https://api.bochaai.com/v1/ai-search';
    case 'agent': return 'https://api.bochaai.com/v1/agent-search';
    case 'rerank': return 'https://api.bochaai.com/v1/semantic-reranker';

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · scripts/bocha.mjs (reported line 66)May include surrounding context.

js
function endpointByMode(mode) {
  switch (mode) {
    case 'web': return 'https://api.bochaai.com/v1/web-search';
    case 'ai': return 'https://api.bochaai.com/v1/ai-search';
    case 'agent': return 'https://api.bochaai.com/v1/agent-search';
    case 'rerank': return 'https://api.bochaai.com/v1/semantic-reranker';

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · scripts/bocha.mjs (reported line 67)May include surrounding context.

js
function endpointByMode(mode) {
  switch (mode) {
    case 'web': return 'https://api.bochaai.com/v1/web-search';
    case 'ai': return 'https://api.bochaai.com/v1/ai-search';
    case 'agent': return 'https://api.bochaai.com/v1/agent-search';
    case 'rerank': return 'https://api.bochaai.com/v1/semantic-reranker';

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · scripts/bocha.mjs (reported line 68)May include surrounding context.

js
function endpointByMode(mode) {
  switch (mode) {
    case 'web': return 'https://api.bochaai.com/v1/web-search';
    case 'ai': return 'https://api.bochaai.com/v1/ai-search';
    case 'agent': return 'https://api.bochaai.com/v1/agent-search';
    case 'rerank': return 'https://api.bochaai.com/v1/semantic-reranker';

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The script emits its usage and validation messages only in Chinese (用法, 查询词, 结果条数必须是整数). This imposes a specific language on all users without offering a locale choice or documenting a justified region-specific constraint, which matches the language/locale policy violation criteria.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
95% confidence
Finding

This code presents the primary user-facing usage message only in Chinese, which is a natural-language locale constraint. The file does not indicate that the tool is region-specific or provide any opt-in or alternative language option, so it appears to enforce a specific language by default.

Content

No source excerpt is available for this finding.

Static analysis

Detected: suspicious.dangerous_exec, suspicious.env_credential_access

Shell command execution detected (child_process).

Critical
Code
suspicious.dangerous_exec
Location
scripts/search.mjs:18

Environment variable access combined with network send.

Critical
Code
suspicious.env_credential_access
Location
scripts/bocha.mjs:51