Back to skill

Security audit

clawec-shopee-category-trend

Security checks for vulnerabilities and agentic risk

Overview

This skill is a disclosed ClawEC API helper for querying Shopee category trend data, with expected external API use and no hidden persistence or unrelated access.

Install only if you are comfortable sending Shopee category trend query parameters to clawec.com using your CLAWEC_API_KEY. Keep that API key in environment storage, do not hardcode it, and avoid entering sensitive business data beyond what the query requires.

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
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (6)

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
94% confidence
Finding

The skill instructs use of shell commands and a local script, but it declares no explicit tool scope or permissions boundary. In an agent environment, this can lead to over-broad execution capability, making it easier for the skill to invoke shell unexpectedly or in contexts where such access should have been denied.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
88% confidence
Finding

The skill sends user-supplied query parameters and an API bearer token to an external third-party service. External transmission is expected for this skill's purpose, but it still creates a real data egress boundary where sensitive inputs, usage metadata, or credentials could be exposed if users are not informed or if the destination is not tightly constrained.

Content

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

单站点 + 自然月:

bash
curl -s -X POST "https://www.clawec.com/api/aigc/ec/shopee/data/category/trend" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $CLAWEC_API_KEY" \
  -d '{"sites":["tw"],"catId":100630,"granularity":1,"startDate":"2026-01-01","endDate":"2026-06-26"}'

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 33)May include surrounding context.

sh
print(json.dumps(body, ensure_ascii=False))
' "$SITES" "$CAT_ID" "$GRANULARITY" "$START_DATE" "$END_DATE" "$PRODUCT_TYPE" "$LOCATION")

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

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

This code performs a network POST request and includes an Authorization header derived from a sensitive environment variable. The file contains no comment, echo/print output, or confirmation indicating that user-supplied query parameters and credentials will be transmitted to an external service.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
92% confidence
Finding

The markdown states '默认中文报告', which imposes a specific language choice as the default behavior. Under the policy, language constraints should either offer user choice or be explicitly justified as region-specific; this file does not provide such an opt-in mechanism at the output instruction point.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
95% confidence
Finding

The script's user-facing usage and environment-variable error messages are written only in Chinese, which imposes a specific language on all users. There is no opt-in, fallback, or documented locale constraint justifying the restriction.

Content

No source excerpt is available for this finding.