Back to skill

Security audit

Baidu Search

Security checks for vulnerabilities and agentic risk

Overview

This skill is a straightforward Baidu web-search helper that sends user search queries to Baidu using a required API key.

Install this only if you are comfortable using Baidu's external search API. Treat searches as third-party disclosures: do not include passwords, private customer data, internal project names, or other sensitive information in queries, and provide BAIDU_API_KEY only in an environment where this provider is approved.

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
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (4)

Lp3

Medium
Category
MCP Least Privilege
Confidence
90% confidence
Finding
The skill invokes a Python script and requires both an environment secret (BAIDU_API_KEY) and network access, but the manifest does not declare any explicit tool scope or permissions. This creates a transparency and governance gap: users or orchestrators may not realize the skill can transmit data externally and consume secrets, increasing the risk of unintended data exposure or policy bypass.

Missing User Warnings

Medium
Confidence
95% confidence
Finding
The skill description presents the capability as generic web search but does not warn that user queries are sent to Baidu's external service. In practice, operators may pass sensitive research terms, internal identifiers, or proprietary prompts, which would then be disclosed to a third party without clear notice or informed consent.

External Transmission

Medium
Category
Data Exfiltration
Content
}

    # 使用POST方法发送JSON数据
    response = requests.post(url, json=requestBody, headers=headers)
    response.raise_for_status()
    results = response.json()
    if "code" in results:
Confidence
80% confidence
Finding
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Missing User Warnings

Medium
Confidence
95% confidence
Finding
The script sends the user-provided query content in `requestBody` to Baidu's remote search endpoint via `requests.post`. While the code handles errors, it does not provide any confirmation prompt or user-facing disclosure that input data will be transmitted to an external service.

Static analysis

No suspicious patterns detected.