Back to skill

Security audit

clawec-amazon-asin-comment-query

Security checks for vulnerabilities and agentic risk

Overview

The skill is a disclosed Clawec API wrapper for Amazon review queries; it sends product identifiers and an API key to Clawec but shows no hidden persistence, privilege escalation, or unrelated behavior.

Install this only if you are comfortable sending Amazon product URLs or ASIN/region values to Clawec using your Clawec API key. Store the key in an environment variable or secrets manager, avoid querying private/internal URLs, and expect Chinese documentation/output by default.

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
87% confidence
Finding
The skill instructs use of shell commands (`curl`, `bash scripts/query.sh`) but does not declare any tool scope or permission boundaries. That creates an authorization mismatch where an agent may invoke shell capabilities without explicit least-privilege constraints, increasing the chance of unintended command execution or broader environment access.

External Transmission

Medium
Category
Data Exfiltration
Content
**按商品链接:**

```bash
curl -s -X POST "https://www.clawec.com/api/aigc/tool/amazon_asin_comment_query" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $CLAWEC_API_KEY" \
  -d '{"url":"https://www.amazon.com/dp/B0XXXXXXXX"}'
Confidence
90% confidence
Finding
The skill sends user-supplied product identifiers/URLs and an API credential to a third-party external service (`clawec.com`). External transmission is expected for this skill’s purpose, but it is still a real security/privacy boundary because user data and secrets leave the local environment and depend on the trustworthiness of the remote service.

Natural-Language Policy Violations

Medium
Confidence
95% confidence
Finding
The instruction "默认中文摘要" requires responses in Chinese by default, which is a language/locale constraint expressed in natural language. The file does not offer the user a language choice or make this an explicit opt-in behavior, so it matches the policy-violation category.

Natural-Language Policy Violations

Medium
Confidence
95% confidence
Finding
The usage and error text shown to users is written only in Chinese, which imposes a language choice on all users without opt-in. The file does not indicate that this is a region-specific or Chinese-only skill, so this appears to violate the language/locale policy.

External Transmission

Medium
Category
Data Exfiltration
Content
PAYLOAD=$(python3 -c 'import json,sys; print(json.dumps({"asin": sys.argv[1], "region": sys.argv[2]}))' "$ARG1" "$REGION")
fi

curl -s -X POST "https://www.clawec.com/api/aigc/tool/amazon_asin_comment_query" \
  -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.

Missing User Warnings

Medium
Confidence
92% confidence
Finding
The script performs an HTTP POST to an external service using either a user-provided URL or ASIN and includes a bearer token from an environment variable. There is no confirmation prompt, logging, comment, or docstring in this code informing the user that their input and credential-backed request will be transmitted off-system.

Natural-Language Policy Violations

Low
Confidence
93% confidence
Finding
This markdown file contains user-facing documentation only in Chinese, including the title and all field descriptions. Under the policy, forcing a specific language without user opt-in can be a natural-language policy violation unless the locale constraint is explicit and justified.

Static analysis

No suspicious patterns detected.