Back to skill

Security audit

Agent Casino

Security checks for vulnerabilities and agentic risk

Overview

This skill is transparent about being a real-USDC casino tool, but it asks users or agents to sign transaction data supplied by a remote API without local validation.

Review before installing or using with any funded wallet. Only sign transactions after independently verifying the Base chain, contract addresses, function calls, spender, amount, and calldata; do not rely on the API description alone. Treat game choices, salts, wallet addresses, and balances as visible to the API operator, and avoid using CASINO_URL overrides except in a trusted test setup.

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

T09 · Insecure Skill Coding Practices

Error
Location
scripts/casino.js:14
Finding

Unvalidated Remote Transaction Data Can Induce Malicious Real-Money Transactions

Content
View full analysis
{ console.log(` ${i + 1}. ${tx.description}`); console.log(` to: ${tx.to}`); console.log(` data: ${tx.data}`); }); break; } case 'withdraw': { if (!amount) { console.error('--amount required'); process.exit(1); } const d = await request('POST', '/withdraw', { amount }); console.log(`${d.transaction.description}`); console.log(` to: ${d.transaction.to}`); console.log(` data: ${d.transaction.data}`); break; } ``` The documented workflow encourages signing the returned data: ```text 1. Deposit: POST /deposit → sign & send approve + deposit txs 2. Create: POST /create → sign & send createGame tx (save salt!) ``` ### Technical Analysis The remote service controls the transaction destination and calldata displayed to the ...[truncated 2204 chars]
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/casino.js:93
Finding

Commit-Reveal Choices and Salts Are Disclosed to the Remote API

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (2)

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
93% confidence
Finding

The skill describes network interactions with a third-party API and implicitly requires wallet-related operations, but it does not declare any explicit tool scope or permissions boundaries. In an agent setting, this can cause the host to expose broader network or environment capabilities than intended, increasing the risk of unauthorized requests or unsafe handling of wallet-connected actions involving real funds.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
88% confidence
Finding

The skill instructs the agent to send wallet addresses and game activity to an external domain, which constitutes external data transmission to an untrusted third-party service. In this specific skill, the risk is heightened because the service is tied to real-money gameplay and may influence transaction preparation, exposing sensitive behavioral or financial metadata and creating phishing or transaction-manipulation risk if the endpoint is compromised or misleading.

Content

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

GET /balance/:address

Query Router balance for an address.

bash
curl https://casino.lemomo.xyz/balance/0xYOUR_ADDRESS

Returns: { "address": "0x...", "balance": "1.05", "balanceRaw": "1050000" }

Static analysis

Detected: suspicious.env_credential_access

Environment variable access combined with network send.

Critical
Code
suspicious.env_credential_access
Location
scripts/casino.js:6