Back to skill

Security audit

Aliyun Web Search

Security checks for vulnerabilities and agentic risk

Overview

This skill is a straightforward Alibaba Cloud web-search helper that uses an API key and sends search queries to the documented search endpoint.

Before installing, users should be comfortable with their search queries and selected options being sent to Alibaba Cloud and should only provide an ALIYUN_IQS_API_KEY they intend this script to use. Avoid entering sensitive private queries unless that fits your Alibaba Cloud account and data-handling expectations.

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)

Lp3

Medium
Category
MCP Least Privilege
Confidence
91% confidence
Finding
The skill documentation indicates the capability to read environment variables for API credentials and perform outbound network requests, but it does not declare any explicit tool scope or permission boundary. In an agent environment, this weakens least-privilege controls and can allow the skill to be invoked with broader access than users or orchestrators expect, increasing the risk of credential misuse or unintended external data transmission.

External Transmission

Medium
Category
Data Exfiltration
Content
body.category = category;
}

const resp = await fetch("https://cloud-iqs.aliyuncs.com/search/unified", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
Confidence
60% confidence
Finding
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Natural-Language Policy Violations

Low
Confidence
90% confidence
Finding
The file presents the skill metadata description in English, but nearly all user-facing instructions, option explanations, and examples are only in Chinese. This can impose a language constraint on users without explicit opt-in or justification, which matches the language/locale policy concern.

Static analysis

Detected: suspicious.env_credential_access

Environment variable access combined with network send.

Critical
Code
suspicious.env_credential_access
Location
scripts/search.mjs:47