Back to skill

Security audit

clawec-amazon-asin-query

Security checks for vulnerabilities and agentic risk

Overview

This skill is a disclosed Amazon ASIN lookup helper that sends the provided product identifier to Clawec's API using a user-provided API key.

Before installing, users should understand that product URLs or ASINs and the selected region will be sent to Clawec, authenticated with their CLAWEC_API_KEY. Do not use sensitive account-specific URLs unless you are comfortable sending them to that service.

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)

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
87% confidence
Finding

The skill includes executable shell usage examples and references a local script, but it does not declare any tool scope or allowed-tools constraints. That omission can cause an agent runtime to permit broader-than-necessary execution behavior, increasing the chance of unintended command execution or misuse of shell capabilities.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
89% confidence
Finding

The skill instructs the agent to send user-supplied product URLs or ASINs plus an API credential to a third-party external service. Any external transmission introduces confidentiality and trust risks, especially if users provide sensitive URLs, account-linked identifiers, or if the agent sends data without explicit user awareness/consent.

Content

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

按商品链接:

bash
curl -s -X POST "https://www.clawec.com/api/aigc/tool/amazon_asin_query" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $CLAWEC_API_KEY" \
  -d '{"url":"https://www.amazon.com/dp/B0XXXXXXXX"}'

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

The markdown instructs the skill to produce a '默认中文摘要' (default Chinese summary), which imposes a language preference without indicating user choice or opt-in. Under the policy, forcing a specific language is a natural-language locale violation unless the skill offers a language choice or clearly justifies the constraint.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
83% confidence
Finding

Line L38 instructs that unknown field names should be presented to users using Chinese labels. This imposes a specific language for user-facing output, and the file does not mention any user language preference, opt-in, or justified locale restriction.

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

sh
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_query" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $API_KEY" \
  -d "$PAYLOAD"

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

This shell script performs an HTTP POST to an external API using user-supplied URL/ASIN data and an Authorization bearer token from an environment variable. The file contains no comment, log message, or confirmation indicating that data will be transmitted off-system, so users may not realize their input and credentials are being used in a network call.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
98% confidence
Finding

The usage and environment-variable error messages are hardcoded in Chinese, which imposes a specific language on users regardless of their locale. There is no opt-in, fallback, or documentation indicating that the skill is intended only for Chinese-speaking users or a China-specific environment.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.