x402 Lotto
Analysis
This lottery skill is purpose-aligned, but it involves crypto-wallet payment authority and ticket purchases without declared credentials or clear per-purchase limits.
Findings (3)
Artifact-based informational review of SKILL.md, metadata, install specs, static scan signals, and capability signals. ClawScan does not execute the skill or run runtime probes.
Checks for instructions or behavior that redirect the agent, misuse tools, execute unexpected code, cascade across systems, exploit user trust, or continue outside the intended task.
| `/api/tickets` | POST | Purchase ticket | Uses x402 protocol — EIP-712 off-chain signing, no gas fees. USDC on Base (8453).
The documented POST endpoint performs a paid ticket purchase using crypto payment signing. The instructions do not define confirmation requirements, spend limits, ticket quantity limits, or safeguards around this high-impact action.
import { wrapFetchWithPayment, decryptKey } from '@x402/evm';The usage example depends on an external package that is not installed or pinned by the skill artifact. This is not evidence of automatic execution, but users would need to verify the package source and version before using it with a wallet key.
Checks whether tool use, credentials, dependencies, identity, account access, or inter-agent boundaries are broader than the stated purpose.
const wallet = decryptKey(process.env.KEY); const fetch = wrapFetchWithPayment(wallet);
The skill instructs use of an environment-provided wallet key to create a payment-capable fetch client. A private wallet key is sensitive financial authority, and the artifacts do not bound which key, wallet, or spending authority should be used.
