Back to skill

Security audit

clawec-shopee-word-ranking

Security checks for vulnerabilities and agentic risk

Overview

This skill is a straightforward Clawec API helper for Shopee keyword rankings; it sends query parameters and an API key to the disclosed Clawec endpoint, with no hidden persistence or unrelated behavior found.

Install only if you intend to use Clawec for Shopee keyword research. Store CLAWEC_API_KEY as an environment variable, avoid pasting unrelated sensitive data into queries, and remember that ranking parameters and your API credential are sent to Clawec when the skill runs.

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

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
91% confidence
Finding

The skill includes executable shell usage examples and script invocation guidance but does not declare any tool scope restrictions such as allowed tools or permissions. In an agent environment, that mismatch can lead to overly broad execution capability, making accidental or unauthorized shell use more likely than intended by the skill’s narrowly scoped purpose.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
88% confidence
Finding

The skill instructs the agent to send data and an authorization bearer token to an external third-party API endpoint. External transmission is expected for this integration, but it still creates real risk because user-supplied query data and secrets may be exposed to a remote service, and the skill does not document consent boundaries, data minimization, or domain/tool restrictions.

Content

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

调用

bash
curl -s -X POST "https://www.clawec.com/api/aigc/ec/shopee/data/word/ranking" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $CLAWEC_API_KEY" \
  -d '{"site":"tw","categoryId":100630,"sortField":1,"period":3,"borderType":0,"pageNo":1,"pageSize":10}'

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The document explicitly states '默认中文报告', which imposes a language preference in the skill's output behavior. Under the policy, language constraints should offer user choice or be clearly justified as region-specific; this file does not provide such opt-in or justification.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
87% confidence
Finding

This markdown file contains user-facing natural-language documentation exclusively in Chinese, including headings, field descriptions, and parsing guidance. Under the policy, forcing a specific language without user opt-in or clear justification is a natural-language policy violation.

Content

No source excerpt is available for this finding.

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 · scripts/query.sh (reported line 30)May include surrounding context.

sh
print(json.dumps(body, ensure_ascii=False))
' "$SITE" "$CATEGORY_ID" "$SORT_FIELD" "$PERIOD" "$BORDER_TYPE" "$PAGE_NO" "$PAGE_SIZE" "$DATE")

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

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

This shell script sends user-supplied parameters to an external HTTPS endpoint and includes a bearer token from an environment variable in the request. Although the code is straightforward, there is no visible confirmation prompt, logging, or explanatory comment/docstring warning the user that data will be transmitted off-system using their API credential.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
95% confidence
Finding

The usage and environment-variable error messages are written only in Chinese, which imposes a specific language on all users. There is no opt-in, alternative locale, or documentation indicating that this skill is intentionally limited to Chinese-speaking users.

Content

No source excerpt is available for this finding.