What it stops
Each attack below is mapped to the rule that stops it on-chain, and to the check the SDK runs before signing.
| Attack | What happens | What stops it |
|---|---|---|
| Prompt injection | A page tells the agent to send funds somewhere | Allowlisted recipients (Strict), daily caps in any mode |
| Unlimited approval to a drainer | The agent approves max to a contract that sweeps later | Approvals only to allowlisted contracts, never max, within the cap |
| Permit, Permit2, EIP-3009 phishing | A signed message moves tokens without a transaction | No ERC-1271; the SDK refuses typed data |
| Address poisoning | A look-alike address is copied from history | Allowlist; the SDK flags addresses sharing first and last characters with ones you used |
| Leaked agent key | Someone else signs as your agent | Caps limit the damage; freeze at once; rotate the key |
| Known drainer contract | The agent calls a contract seen draining wallets | Threat registry, read inside execute() in Open mode |
| Compromised router | A router pulls more, or another token | Caps by balance delta |
| The owner's own key | Whoever holds the owner key controls the wallet | Out of scope: keep the owner key in a hardware or browser wallet the agent never sees |
The SDK checks
- An
eth_callofexecute()from the agent key, with the wallet's custom error decoded into a sentence. - The threat list, for the target and the decoded recipient or spender.
- An approval to an address with no contract code.
- A contract deployed in the last minutes (the public node keeps a short state window), or with no verified source on Sourcify.
- An address that looks like one the wallet used before.
- Any typed-data signing request: refused.