Back to skill

Security audit

clawec-amazon-new-release

Security checks for vulnerabilities and agentic risk

Overview

This skill is a straightforward ClawEC API helper for Amazon new-release tracking, with disclosed external API use and no hidden persistence or destructive behavior.

Install only if you are comfortable using ClawEC and sending category queries to clawec.com with your CLAWEC_API_KEY. Keep the API key in an environment variable, do not hardcode it, and review ClawEC's account/API terms if the returned product data may affect business decisions.

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

Lp3

Medium
Category
MCP Least Privilege
Confidence
93% confidence
Finding
The skill instructs use of shell commands and scripts (`curl`, `bash scripts/track.sh`) but declares no tool scope or permissions boundary. That creates an authorization gap where an agent may invoke shell unnecessarily or more broadly than users expect, increasing the blast radius if the skill is misused or later modified.

External Transmission

Medium
Category
Data Exfiltration
Content
**不限类目(默认):**

```bash
curl -s -X POST "https://www.clawec.com/api/aigc/tool/amazon_new_release" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $CLAWEC_API_KEY" \
  -d '{"cat":""}'
Confidence
89% confidence
Finding
The skill directs the agent to send authenticated requests to an external third-party API using a bearer token, which is an external data transmission event. While this is the core purpose of the skill, it still carries security risk because user-supplied query parameters and potentially sensitive usage metadata are sent off-platform, and the secret is exposed to shell execution context.

Missing User Warnings

Medium
Confidence
89% confidence
Finding
This shell script reads a sensitive environment variable and performs an HTTP POST to a third-party endpoint with user-supplied data, but the file contains no comment, echo/log message, or confirmation explaining that network transmission will occur. For code files, outbound network calls and credential use should have some visible disclosure unless clearly communicated elsewhere; no such warning is present in this file.

External Transmission

Medium
Category
Data Exfiltration
Content
PAYLOAD=$(python3 -c 'import json,sys; print(json.dumps({"cat": sys.argv[1]}))' "$CAT")

curl -s -X POST "https://www.clawec.com/api/aigc/tool/amazon_new_release" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $API_KEY" \
  -d "$PAYLOAD"
Confidence
70% confidence
Finding
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Natural-Language Policy Violations

Low
Confidence
94% confidence
Finding
The markdown explicitly states '默认中文摘要', which sets a fixed language behavior. Under the policy criteria, forcing a specific language without user opt-in is a natural-language policy violation unless the skill offers a choice or clearly justifies the locale constraint.

Natural-Language Policy Violations

Low
Confidence
90% confidence
Finding
The entire document is written in Chinese and provides no indication that other languages are supported or that the language choice is user-selectable. Under the stated policy, forcing a specific language without user opt-in is a natural-language locale violation.

Natural-Language Policy Violations

Low
Confidence
97% confidence
Finding
The error message '请设置环境变量 CLAWEC_API_KEY' is presented only in Chinese, which imposes a specific language on users without offering a choice. This is a natural-language policy issue because locale/language is fixed rather than user-selectable or clearly justified as region-specific.

Static analysis

No suspicious patterns detected.