Back to skill

Security audit

zai-search

Security checks for vulnerabilities and agentic risk

Overview

This skill is a straightforward Z.AI-powered web search helper that sends user search queries to Z.AI and prints results.

Install only if you are comfortable sending search queries to Z.AI under your ZAI_API_KEY. Keep ZAI_BASE_URL unset unless you intentionally use a trusted compatible endpoint, since the script sends the bearer token to that URL.

Vulnerability Patterns
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep

Static analysis

Detected: suspicious.env_credential_access

Environment variable access combined with network send.

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