Back to skill

Security audit

Zai Web Search

Security checks for vulnerabilities and agentic risk

Overview

This skill performs a straightforward Z.AI web search and its network use is aligned with that purpose.

Install this only if you intend to use Z.AI as an external search provider. Do not include passwords, tokens, personal data, confidential business information, or private repository content in search queries, because queries are sent to Z.AI.

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
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (5)

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

The skill does not warn users that queries are sent to an external API, creating a transparency and consent problem. This is risky because users may include confidential, personal, or proprietary information in search queries, not realizing the data leaves the local environment and is processed by a third party.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The trigger conditions are broad enough to activate on many ordinary requests for information, which increases the chance the skill is invoked without the user understanding that their prompt will be sent to a third-party provider. In this skill, broad matching is more dangerous because the action causes external network transmission to Z.AI, potentially exposing sensitive or unnecessary user data.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
88% confidence
Finding

The skill is designed to send data to an external endpoint, so the transmission itself is intentional, but it still represents a real data-exposure risk if user prompts are forwarded without minimization or consent. In context, this is more dangerous because the skill encourages broad use for general lookups and does not pair the endpoint with privacy warnings or restrictions on sensitive content.

Content

Scanner excerpt · SKILL.md (reported line 25)May include surrounding context.

md
- `jq` and `curl` installed

## Notes
- Endpoint: `https://api.z.ai/api/coding/paas/v4/web_search`
- Search engine: `search-prime` (zAI's enhanced search)

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% 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 · zai-search.sh (reported line 23)May include surrounding context.

sh
exit 1
fi

BASE_URL="https://api.z.ai/api/coding/paas/v4"

curl -s -X POST "${BASE_URL}/web_search" \
  -H "Authorization: Bearer ${API_KEY}" \

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 · zai-search.sh (reported line 25)May include surrounding context.

sh
BASE_URL="https://api.z.ai/api/coding/paas/v4"

curl -s -X POST "${BASE_URL}/web_search" \
  -H "Authorization: Bearer ${API_KEY}" \
  -H "Content-Type: application/json" \
  -d "$(jq -n --arg q "$QUERY" --argjson c "$COUNT" '{