Back to skill

Security audit

Unified Web Search

Security checks for vulnerabilities and agentic risk

Overview

This skill provides a bounded search helper with disclosed Tavily network search and local memory/skills search that are both gated by explicit flags.

Install only if you are comfortable with a search tool that can send explicitly approved queries to Tavily and can read workspace memory/ and skills/ when explicitly enabled. Avoid using --allow-network for confidential or proprietary queries, and treat returned web results as evidence to verify rather than final truth.

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
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (4)

Tp4

High
Category
MCP Tool Poisoning
Confidence
94% confidence
Finding

The skill description overstates its capabilities by implying stronger provenance guarantees and broader source support than are actually implemented. Security-sensitive workflows may trust the output as evidence-grade or assume certain search backends are active, leading to incorrect decisions, misplaced trust, or failure to apply additional verification where needed.

Content

No source excerpt is available for this finding.

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
91% confidence
Finding

The skill advertises network and environment-dependent behavior but does not declare an explicit tool scope such as permissions or allowed-tools. That creates a policy and review gap: a caller may invoke the skill without clear visibility into its access requirements, increasing the chance of unintended network use or secret exposure through environment-backed integrations.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
90% confidence
Finding

The hardcoded Tavily endpoint indicates intentional outbound data transfer to a third-party service. In this skill's context, that is expected functionality, but it still creates a real privacy and exfiltration risk because search terms may contain proprietary or sensitive information, and the only safeguard is a narrow keyword check plus a runtime flag.

Content

Scanner excerpt · index.js (reported line 44)May include surrounding context.

js
if (!ALLOW_NETWORK) return { items: [], warning: 'Network search disabled; pass --allow-network after confirming the query may be sent to Tavily' };
  if (/\b(password|passwd|secret|token|api[_ -]?key|private key|credential)\b/i.test(query)) return { items: [], warning: 'Network search blocked for a potentially sensitive query' };
  if (!process.env.TAVILY_API_KEY) return { items: [], warning: 'TAVILY_API_KEY is not set' };
  const response = await fetch('https://api.tavily.com/search', {
    method: 'POST', headers: {'content-type': 'application/json'},
    body: JSON.stringify({ api_key: process.env.TAVILY_API_KEY, query, max_results: limit, search_depth: 'basic', include_answer: false }),
    signal: AbortSignal.timeout(20_000)

External Transmission

Medium
Category
Data Exfiltration
Confidence
90% confidence
Finding

The hardcoded Tavily endpoint indicates intentional outbound data transfer to a third-party service. In this skill's context, that is expected functionality, but it still creates a real privacy and exfiltration risk because search terms may contain proprietary or sensitive information, and the only safeguard is a narrow keyword check plus a runtime flag.

Content

Scanner excerpt · index.js (reported line 44)May include surrounding context.

js
if (!ALLOW_NETWORK) return { items: [], warning: 'Network search disabled; pass --allow-network after confirming the query may be sent to Tavily' };
  if (/\b(password|passwd|secret|token|api[_ -]?key|private key|credential)\b/i.test(query)) return { items: [], warning: 'Network search blocked for a potentially sensitive query' };
  if (!process.env.TAVILY_API_KEY) return { items: [], warning: 'TAVILY_API_KEY is not set' };
  const response = await fetch('https://api.tavily.com/search', {
    method: 'POST', headers: {'content-type': 'application/json'},
    body: JSON.stringify({ api_key: process.env.TAVILY_API_KEY, query, max_results: limit, search_depth: 'basic', include_answer: false }),
    signal: AbortSignal.timeout(20_000)

Static analysis

Detected: suspicious.env_credential_access

Environment variable access combined with network send.

Critical
Code
suspicious.env_credential_access
Location
index.js:43