Back to skill

Security audit

Bailian Web Search

Security checks for vulnerabilities and agentic risk

Overview

This skill is a straightforward Bailian web search wrapper that sends user search queries to Alibaba DashScope using the user's API key, with no hidden persistence or unrelated access observed.

Install only if you are comfortable sending your search queries to Alibaba DashScope and exposing a DashScope API key to this script's runtime environment. Avoid using sensitive secrets or private text as search queries, and consider enforcing the documented result-count maximum if cost or quota control matters.

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 (3)

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
95% confidence
Finding

The skill exposes shell execution capability through documented script invocations but does not declare any explicit tool scope or permission boundaries. This can let an agent environment grant broader-than-intended execution access, increasing the risk of command misuse, unsafe parameter handling, or unexpected shell-side effects when the skill is invoked.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
70% 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/mcp-websearch.sh (reported line 40)May include surrounding context.

sh
# Send POST request to streamable HTTP endpoint
  local response
  response=$(curl -s --connect-timeout 60 -X POST "$MCP_URL" \
    -H "Authorization: Bearer $DASHSCOPE_API_KEY" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \

External Transmission

Medium
Category
Data Exfiltration
Confidence
70% 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/mcp-websearch.sh (reported line 73)May include surrounding context.

sh
echo "Step 2: Sending initialized notification..."
# Send notifications/initialized (no response expected)
curl -s -o /dev/null -X POST "$MCP_URL" \
  -H "Authorization: Bearer $DASHSCOPE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{

Static analysis

No suspicious patterns detected.