User redefined approveTransfer via prompt injection.
Onleash
Agents unleashed. Wallets on leash.
Token-2022 transfer hook for AI agent wallets. Spending policy enforced at the mint layer, not in middleware. A jailbroken agent can sign anything — the chain refuses to clear it.
the problem
AI agents have wallets. They're getting drained.
Pipeline injection via operator dashboard.
Memory injection, real ETH drained on mainnet.
9 of 428 routers silently replaced recipients.
how it works
Policy lives in the token, not the wallet.
Solana's Token-2022 transfer-hook extension lets a mint specify a program that runs on every transfer. Onleash is that program. Three checks; any failure reverts the entire atomic transaction.
Up to 8 approved destination token accounts per mint. Anything else, the chain rejects.
Hard ceiling on a single transfer amount. No oversized exfiltration.
Cumulative limit per rolling window. Self-resets after 24h on the next transfer.
integration · 5 lines
// pnpm add @onleash/sdk
import { OnleashClient } from "@onleash/sdk";
const client = new OnleashClient(connection, wallet);
await client.deployProtectedMint({
decimals: 6,
perTxMax: 10n * 1_000_000n,
dailyCap: 50n * 1_000_000n,
allowlist: [approvedPoolATA],
});on-chain · devnet