Back to skill

Security audit

clawec-google-trend

Security checks for vulnerabilities and agentic risk

Overview

This skill is a straightforward Google Trends lookup helper that sends user-provided keywords and an API key to Clawec's documented API.

Install only if you are comfortable sending search keywords and your Clawec API token to clawec.com. Avoid querying sensitive, proprietary, or personal terms unless your organization permits that data sharing.

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

Tp4

High
Category
MCP Tool Poisoning
Confidence
92% confidence
Finding

代码的核心行为与声明总体一致:它确实调用 Clawec API 的 Google Trends 接口,并支持通过 region 参数按地区筛选。但声明中特别提到“支持多词对比”,而脚本只构造了包含单个 keyword 的请求体,没有多关键词数组、比较参数或多次请求逻辑,因此该能力与实际实现不符。除此之外,未发现额外未声明的敏感能力或资源访问。

Content

No source excerpt is available for this finding.

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
91% confidence
Finding

The skill documents shell-based execution examples and references a local script, but it does not declare any tool scope or allowed-tools restrictions. In an agent environment, this can lead to over-broad execution capability, making it easier for the skill to invoke shell unexpectedly or beyond reviewer expectations.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
89% confidence
Finding

The skill sends user-supplied keywords and an API key to an external third-party service. External transmission is expected for this skill’s purpose, but it still creates data exposure risk if users provide sensitive terms, and the skill does not prominently require user awareness/consent or data minimization before transmission.

Content

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

单词 + 美国:

bash
curl -s -X POST "https://www.clawec.com/api/aigc/ec/google_trend" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $CLAWEC_API_KEY" \
  -d '{"keyword":"wireless earbuds","region":"US"}'

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The instructions say the skill should '给出中文解读' and provide a '默认中文摘要', which imposes a specific language on outputs. This is a natural-language policy issue because the file does not offer the user a language choice or indicate opt-in for Chinese output.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
91% confidence
Finding

This script performs an external network POST to a third-party API and includes an Authorization bearer token plus user-controlled content in the request body. In the context of an agent skill, external transmission is expected for functionality, but it still creates a real confidentiality and supply-chain risk because sensitive queries may leave the local environment and depend on the security of an external service.

Content

Scanner excerpt · scripts/query.sh (reported line 16)May include surrounding context.

sh
print(json.dumps(body))
' "$KEYWORD" "$REGION")

curl -s -X POST "https://www.clawec.com/api/aigc/ec/google_trend" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $API_KEY" \
  -d "$PAYLOAD"

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The script transmits both user-supplied query data and a bearer API credential to an external third-party endpoint without any inline disclosure, consent prompt, or trust boundary explanation. In an agent/skill context, this is security-relevant because users may not realize their inputs are being sent off-platform and operators may unintentionally expose sensitive search terms to a remote service.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
90% confidence
Finding

This markdown file presents all user-facing schema documentation in Chinese and does not indicate that users may choose another language. Under the policy for natural-language violations, forcing a specific language without user opt-in can be a locale/language policy issue.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
91% confidence
Finding

The usage and environment-variable error strings are presented only in Chinese, which imposes a specific language on users without opt-in or justification. This can violate language/locale policy where skills should not force a language unexpectedly.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.