Back to skill

Security audit

clawec-shopee-shop-trend

Security checks for vulnerabilities and agentic risk

Overview

This skill is a disclosed, read-only Shopee trend lookup integration that sends the user's query and Clawec API key to Clawec as expected for its purpose.

Before installing, users should be comfortable sending Shopee shop IDs, date ranges, optional category IDs, and their Clawec API key to Clawec. Store the API key in the environment rather than hardcoding it, and run the helper script only for intended Clawec shop-trend queries.

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
93% confidence
Finding

The skill instructs use of shell commands and a local script, but it does not declare any tool scope or allowed-tools restrictions. That creates an authorization gap where an agent may execute shell unexpectedly or more broadly than intended, increasing the risk of unsafe command execution in environments that honor skill-declared capabilities.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
84% confidence
Finding

The skill explicitly transmits user-supplied business data and an API bearer token to an external third-party service. While that is expected for this integration, it is still a real data-transfer risk because shop identifiers, query parameters, and credentials leave the local trust boundary and could expose sensitive business intelligence if used without clear consent or minimization.

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/shop/trend" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $CLAWEC_API_KEY" \
  -d '{"site":"tw","shopId":12345678,"granularity":1,"startDate":"2025-05-27","endDate":"2026-05-27"}'

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The workflow and output guidance explicitly require Chinese output ('输出中文店铺趋势报告' and '默认中文报告') with no opt-in or alternative language option. This is a natural-language locale policy issue because it forces a specific language rather than allowing the user to choose.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

This shell script reads a sensitive API key from an environment variable and transmits request data to a remote HTTPS endpoint via curl. There is no confirmation prompt, user-facing log/output, or explanatory comment/docstring in the file warning that the script will contact an external service using supplied parameters and credentials.

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

sh
print(json.dumps(body, ensure_ascii=False))
' "$SITE" "$SHOP_ID" "$GRANULARITY" "$START_DATE" "$END_DATE" "$CAT_ID" "$PAGE_NO" "$PAGE_SIZE")

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

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
91% confidence
Finding

This markdown file presents all instructions and field descriptions exclusively in Chinese. Under the policy rule for natural-language constraints, forcing a single language without user opt-in can be a locale/language policy issue when no justification or alternative is provided.

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 validation messages are hard-coded in Chinese, which imposes a specific language on all users without any opt-in or alternative. This is a natural-language policy concern because the script does not offer locale selection or document that it is intentionally region-specific.

Content

No source excerpt is available for this finding.