Back to skill

Security audit

HashCats Amazon Intelligence

Security checks for vulnerabilities and agentic risk

Overview

This is a coherent Amazon product API skill, but it should be reviewed because it tells agents to automatically spend USDC without clear payment safeguards.

Install only if you are comfortable with agent-initiated USDC micropayments. Use an x402 wallet with strict per-call and session spend limits, prefer testnet unless intentionally enabling mainnet, and require confirmation for unexpected amounts, recipients, chains, or repeated paid calls.

Vulnerability Patterns
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • 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
Findings (1)

T09 · Insecure Skill Coding Practices

Warning
Location
SKILL.md:17
Finding

Automatic Cryptocurrency Payments Lack Explicit Safety Controls

Content
View full analysis

Vulnerability Details

File Location: SKILL.md:17, 38-47
Vulnerability Type: Unbounded automatic cryptocurrency payment authorization
Risk Level: Medium

Complete Relevant Snippet:

markdown
It is **x402-native**: agents detect the 402 response, pay a tiny USDC amount instantly via their wallet, and continue. No keys, no subscriptions.

## Setup & Prerequisites
1. Make sure the official x402 skill is installed (it handles automatic payment on 402 responses).
2. No extra configuration needed — the skill discovers the base URL and x402 flow automatically.

## Pricing (what agents will pay)
- /search, /filter, /rank: ~$0.003 each
- /product-details: ~$0.010
- /best (one-shot): ~$0.020

Prices are micropayments in USDC on Base Sepolia (or mainnet when enabled).

Technical Analysis

The Skill directs an agent to use a separate x402 component that automatically pays USDC whenever the remote service returns an HTTP 402 payment request. The documented prices are approximate and informational; the instructions do not require the agent or payment component to enforce them.

No mandatory safeguards are specified for:

  • Transaction-specific user approval
  • Maximum payment amount per request
  • Aggregate spending per session
  • Validation of the payment recipient
  • Pinning of the chain and token contract
  • Rejection of payment demands that exceed the documented price
  • Prevention of automatic transition from testnet to mainnet
  • Retry limits for paid requests

Consequently, payment authorization depends on payment parameters supplied through a remote response. If the service, payment metadata, DNS resolution, or companion payment component is compromised or misconfigured, an agent following these instructions could authorize an unexpected payment. Even correctly priced calls can accumulate charges through repeated requests.

Attack Path

  1. A user asks the agent to search for, rank, f ...[truncated 1355 chars]
Remediation
View remediation

Remediation Suggestions

  1. Require explicit, transaction-specific user confirmation before every mainnet payment. The confirmation should show the chain, token, recipient, exact amount, endpoint, and cumulative session cost.
  2. Pin the permitted chain ID, USDC token contract, API origin, and payment recipient or recipient allowlist. Reject any mismatch.
  3. Define hard maximum prices for every endpoint and reject payment demands above those limits rather than relying on approximate documentation.
  4. Enforce per-transaction, per-workflow, per-session, and daily spending limits.
  5. Default to Base Sepolia and require an explicit configuration change and renewed user consent before enabling mainnet.
  6. Disable automatic payment retries. Require fresh authorization if a paid request fails or another HTTP 402 response is received.
  7. Estimate and disclose the maximum workflow cost before initiating multi-stage flows such as /search → /filter → /rank → /product-details.
  8. Record payment decisions and receipts in an audit log without exposing wallet secrets.
  9. Update the Skill instructions to state that HTTP 402 metadata is untrusted input and must be validated before signing or submitting a transaction.
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • YARA SignaturesMalware Match, Webshell Match, Cryptominer Match
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (7)

YARA rule 'agent_skill_mcp_tool_poisoning_metadata': MCP/tool metadata poisoning indicators in tool schemas or skill manifests [agent_skills]

High
Category
YARA Match
Confidence
80% confidence
Finding

YARA rule matched a hack tool or exploit indicator (offensive tools, reconnaissance, privilege escalation, or exploit frameworks).

Content

Scanner excerpt · examples/best_response.json (reported line 6)May include surrounding context.

json
[
  {
    "source": "Amazon",
    "title": "Pointcinco Hybrid Active Noise Cancelling Headphones, Over Ear Bluetooth 6.0 Wireless Headphones, 50H Playtime, Deep Bass, HiFi Stereo Sound, Lightweight Foldable for Travel, Home and Office(Black)",
    "product_url": "https://www.amazon.com/dp/B0G9L2TNYZ",
    "description": "Active Noise Cancelling & Multi-Mode Switching : ANC ON mode blocks ambient noise, with a specific focus on reducing low-frequency disturbances, allowing you to stay focused on music or work even in noisy environments. When noise cancellation is not needed, you can switch to other bluetooth headphones modes:Transparency/ANC OFF.Transparency mode clearly captures surrounding voices and ambient sounds, balancing safety with listening immersion All Day Comfort & Portable : Designed for all-day comfort, the over ear headphones prioritize both softness and wearability. The ear cups

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The README explicitly says agents will pay USDC automatically on 402 responses, but it does not instruct users or integrators to obtain explicit spending consent, define budget limits, or present transaction warnings before charges occur. In an agent skill context, automatic payment behavior can lead to unintended financial loss or unauthorized spending if an agent invokes the API repeatedly or without the user's awareness.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% 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 · README.md (reported line 33)May include surrounding context.

md
## Links
- Live API: https://api.hashcats.io
- Docs: https://api.hashcats.io/docs
- OpenAPI: https://api.hashcats.io/openapi.json

Made for the agentic shopping economy. Contributions and feedback welcome!

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% 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 · README.md (reported line 34)May include surrounding context.

md
## Links
- Live API: https://api.hashcats.io
- Docs: https://api.hashcats.io/docs
- OpenAPI: https://api.hashcats.io/openapi.json

Made for the agentic shopping economy. Contributions and feedback welcome!

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% 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 · SKILL.md (reported line 50)May include surrounding context.

md
## Links
- Live API: https://api.hashcats.io
- Docs: https://api.hashcats.io/docs
- OpenAPI: https://api.hashcats.io/openapi.json

Made for the agentic shopping economy. Contributions and feedback welcome!

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% 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 · SKILL.md (reported line 51)May include surrounding context.

md
## Links
- Live API: https://api.hashcats.io
- Docs: https://api.hashcats.io/docs
- OpenAPI: https://api.hashcats.io/openapi.json

Made for the agentic shopping economy. Contributions and feedback welcome!

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The skill explicitly states that agents will automatically pay USDC after a 402 response, but it does not present a prominent user-facing warning at the point of use that invoking the tool spends funds. This can lead to unauthorized or unexpected micropayments, especially in autonomous agent workflows where users may not realize ordinary search requests incur blockchain-backed charges.

Content

No source excerpt is available for this finding.