COINPURO - Crypto Currency Latest News logo COINPURO - Crypto Currency Latest News logo
Crypto Daily 2026-06-03 08:40:48

AI Agents in DeFi: Why Automated Wallets Could Increase Smart Contract Risk

AI agents are rapidly moving from research toys to on-chain actors. They can already hold keys, parse market data, and submit transactions without a human clicking “Confirm.” That convenience is colliding with DeFi’s brittle edges: token approvals, composability risk, and adversarial prompts. Recent launches and incidents show what changes when wallets become autonomous. The risk shifts from “What did I sign?” to “What did my agent infer, and under what permissions?” For DeFi users and builders, the threat model must expand to include prompt injection, mis-scoped allowances, and policy bypasses that were once out of scope. This article maps the new fault lines, using fresh case studies and practical controls you can adopt now—before autonomous flows become your default trading or treasury rails. PointDetailsAgents are now on-chain signersCoinbase’s Base launched “Base MCP,” letting AI clients like ChatGPT submit swaps and transfers via natural language—expanding the signing surface ( CoinDesk ).Micro-settlements at scaleBetween May 2025–Apr 2026, ~176M on-chain AI-agent transactions settled ~$73M, mostly tiny USDC payments (~98.6%), signaling volume that compounds small mistakes ( CoinDesk (reporting on Keyrock) ).Prompt injection becomes on-chain lossA May 4 attack chained Morse-code prompt injection to Grok and an agent wallet, moving billions of DRB tokens (~$150k–$180k at transfer) from a Base address ( BlockTempo ).Agent wallet providers are targetsOn May 19–20, Bankr paused swaps/transfers after 14 wallets were accessed; addresses tied to the attacker held roughly $440k. Some users reported losses near $150k per wallet ( Cointelegraph ).Risk concentrates in approvalsOverbroad token allowances, long-lived session keys, and unsupervised policies let benign prompts turn into costly transactions—often without explicit new signature events. Agents are becoming on-chain actors, not just chat interfaces Editor's note: The Bankr disruption and the Morse-code prompt-injection report were sobering — my own test agents now run behind strict allowlists, with sub-minute session keys and transfer alerts on approvals, not just sends. Conversations with auditors echoed the same theme: the weakest link is no longer a buggy pool but a generous policy. That’s where I’m spending more time stress-testing. — Elliot Veynor What used to be a chatbot in your browser is now a wallet-connected agent that can route orders, roll strategies, and maintain positions across protocols. On May 26, 2026, Base introduced “Base MCP,” an integration layer that lets users connect Base accounts to AI clients like ChatGPT and Claude so agents can send funds, swap tokens, and talk to DeFi apps via natural-language prompts ( CoinDesk ). At the same time, the transaction firehose is already here. A May 2026 report co-published by Keyrock with partners found that AI agents settled roughly 176 million on-chain transactions totaling more than $73 million from May 2025 to April 2026. The typical transaction was a few dozen cents, and approximately 98.6% were in USDC—micro-settlements that make agents attractive for automation ( CoinDesk (reporting on Keyrock) ). When agents are allowed to sign, DeFi’s composability amplifies both utility and danger. A single, well-meaning prompt can cascade across DEX routers, lending, bridges, and token approvals. The distinction between “front-end exploit” and “protocol exploit” blurs: a compromised agent policy can make legitimate contracts execute harmful sequences. How automated wallets bend DeFi threat models From explicit consent to policy-driven intent With human-first wallets, each approval or swap typically surfaces a transaction to review. Agent wallets invert this: you delegate policies (spending caps, asset lists, target protocols) and the agent composes transactions within that scope. The risk shifts to whether the scope is too broad, too long-lived, or easy to bypass. Session keys and account abstraction cut both ways Session keys and smart-account controllers are great for rate-limiting and whitelisting dApps, but they’re also new attack surfaces. If a session carries “swap any token up to X” for hours, a single bad prompt or data source could drain valuable assets through legitimate calls. Because the key is authorized, on-chain defenses may not flag it as anomalous. Data supply chains influence transactions Agents rely on external data: price feeds, orderbooks, risk scores, and even social content. If that pipeline is poisoned (malicious web content, adversarial tokens, crafted forum posts), the model can choose actions that look optimal under tainted inputs. When the agent holds a signer, those choices become state changes. Risk warning: In an agent world, the “front end” isn’t just a website—it’s the total prompt and data environment. Threat actors will attack whichever component your policy trusts most. Prompt-injection meets permissions: when words move money On May 4, 2026, a prompt-injection chain reportedly used Morse code embedded in an X (Twitter) post. The sequence coerced Grok to decode instructions that led an automated wallet (referred to as Bankrbot in coverage) to execute a transfer of 3,000,000,000 DRB tokens—roughly $150k–$180k at the time—from a Grok-associated Base wallet; a transaction hash was shared by investigators ( BlockTempo ). Two weeks later, on May 19–20, the AI trading and agent-wallet service Bankr paused swaps and transfers after reporting that an attacker had accessed 14 Bankr wallets. Addresses linked by investigators held roughly $440,000, and some users reported losses near $150,000 per wallet. Bankr pledged to reimburse affected users while investigating ( Cointelegraph ). These separate events illustrate a pattern: most losses weren’t due to a vulnerable DeFi protocol. Instead, autonomous wallets executed valid contract calls after being steered by malicious inputs—or after a platform-level compromise. That is a different failure mode than a reentrancy or oracle-manipulation bug inside a single protocol. An attack path you should model Adversary places malicious content (web page, token metadata, social post) that includes hidden or obfuscated instructions. Agent ingests content while operating under a broad policy: e.g., “optimize fees and swap into stablecoins if volatility rises.” Model interprets instructions as part of the goal, crafting transactions that include new token approvals or transfers to an attacker-controlled address. Because the session key is authorized for the token and the dApp, the chain accepts the call. No critical alerts fire. Only after funds move does monitoring catch unusual patterns—too late to prevent the first drain. Pro tip: Split policies. Put “read-only research” agents in a separate environment without signer access. Elevate to a transaction-capable agent only after a deterministic checklist passes. Designing safer approvals, session keys, and intents Most catastrophic agent losses start with generous permissions. Here’s how to narrow the blast radius. Token allowances: minimize by design Prefer granular “permit-style” allowances (spend X of token Y in dApp Z) that auto-expire quickly. Avoid infinite approvals on volatile or high-value assets. Cap each session to what the next action strictly needs. Use allowance managers (e.g., permit libraries and router patterns) that support revocation and per-spender caps. Session keys with short leases Time-box session keys to minutes, not days. If an agent needs long jobs, rotate keys per task segment. Scope by function: allow swaps on a named router, but block approvals or arbitrary calls. Attach velocity limits (N tx/min, max notional per hour) and block bursts that exceed baselines. Intent execution with policy engines Run pre-trade simulation against independent RPCs and price oracles; reject paths with non-whitelisted contracts or unexpected state writes. Implement two-tier intents: low-risk actions auto-execute; high-risk actions require a human or a separate risk model to co-sign. Log every decision artifact (inputs, prompt, plan, policy evaluation) so post-mortems can trace failures quickly. Wallet/Flow PatternStrengthsPrimary RisksBest UseEOA + unlimited approvalsLow friction; broad dApp compatibilityTotal drain if agent or front end is compromisedNever for agents; only for manual, low-value accountsSmart account + session keyScopes actions; supports time/tx limitsMis-scoped sessions enable multi-dApp misuseEveryday agent trading with caps and rotationMPC-managed signerNo single point of key compromiseProvider/platform compromise impacts many usersCustodial/enterprise agents with strong vendor due diligenceIntent-based router + policy engineAbstracts tx crafting; centralized risk checksPolicy bugs or allowlist gaps can be systemicTeams coordinating many agents across dApps Operational controls for teams wiring agents to DeFi Segment value and environments Use a tiered wallet structure: research (no signer), staging (tiny signer limits), production (strict limits and human co-sign for large moves). Keep high-value treasuries offline or gated behind time-locked guardians; let agents manage only rebalance buffers. Define a contract allowlist Enumerate routers, vaults, and permits the agent can call; reject unknown addresses by default. Bind token lists to known contract addresses; do not resolve arbitrary token metadata at run time. Telemetry and circuit breakers Set alerts on approval creation, not just transfers. The first red flag is often a new spender allowance. Install kill-switches: pause all sessions if losses exceed a threshold or if a monitored account calls a new contract. Use multi-source RPCs and indexers so your simulator isn’t blinded by a single provider outage. Prompt hygiene and data curation Strip HTML, SVG, and steganography from fetched content; restrict agents from interpreting untrusted media as instructions. Block model tools from accessing social feeds in execution mode; fetch summaries into a read-only context instead. Pin critical data (oracle feeds, ABI caches) to vetted sources; hash and verify before use. Pro tip: Treat your agent like a junior trader with a corporate card. Set per-transaction and per-day limits, and auto-freeze on anomalies. What protocols and auditors should change for an agentic user base Design dApps for bounded autonomy Offer native spending limits, session expirations, and revoke UX so agent platforms don’t have to bolt them on. Ship a “safe-mode” that disables token approvals and restricts to specific method selectors for high-risk periods. Shift audits left into policy and intent layers Audit not just contracts, but also the policy engine and allowlist logic that bind agent behavior. Threat-model prompt injection and data poisoning scenarios that end in valid, harmful calls to your contracts. Safer token approval patterns Support permit-style approvals with expiries. Encourage dApps and wallets to cap allowances per route. Emit events that are easy to monitor for policy breaches (e.g., ApprovalCreated, SessionStarted, SessionRevoked). Guardrails for routers and bridges Publish canonical allowlists and ABI hashes. Make it trivial for agents to verify they are calling the intended code. Expose a dry-run endpoint with post-simulation receipts so platforms can block unexpected transfers before submission. Red flags and common mistakes with automated wallets Single, catch-all session key controlling many tokens and dApps. Infinite approvals left over from “testing,” later exploited by a poisoned prompt. Agents consuming live social media directly during execution mode. No alerts on new approvals; only transfer alerts—detecting the problem too late. Shared API keys or credentials across staging and production agents. Relying on a provider’s “trust us” security posture without isolating funds—see the Bankr disruption as a cautionary case ( Cointelegraph ). Assuming small micro-payments cannot add up; 176M agent txs show the opposite dynamic over time ( CoinDesk (reporting on Keyrock) ). For ongoing coverage and practical explainers on DeFi security and automation, Crypto Daily tracks major agent-wallet launches and incident post-mortems. Visit Crypto Daily for updates as platforms harden their guardrails. Frequently Asked Questions Are AI agent wallets inherently more dangerous than manual wallets? They carry different risks. Manual wallets concentrate risk in phishing and user error, while agent wallets add policy misconfiguration, prompt injection, and provider compromise. With narrow approvals, short sessions, and allowlists, agent risk can be managed—but the margin for error is thinner. Can a prompt-injection attack drain funds without a protocol bug? Yes. If the agent has authority to approve or transfer tokens, a malicious prompt or poisoned data source can trigger legitimate calls that move money. The May 4 DRB incident on Base, reported as a prompt-injection chain, is a case in point. Is using USDC for agent payments safer than using volatile tokens? Stablecoins reduce price risk, not smart-contract or policy risk. The Keyrock-cited data showed about 98.6% of agent settlements used USDC, which suits micro-payments—but approvals and session design still determine security outcomes. Would a hardware wallet solve agent risk? Hardware wallets protect private keys from extraction, but agents usually need programmatic signing. If a hardware signer delegates to a session key or smart account with broad privileges, prompt injection can still cause valid, harmful transactions. How do I test my agent setup safely? Start with a sandbox account funded with trivial amounts. Enable read-only mode first, simulate transactions against multiple RPCs, and introduce caps gradually. Add alerts for approval creation, new contract calls, and unusual velocity before increasing limits. What should I do if I suspect my agent was steered by a malicious prompt? Immediately revoke approvals for all high-value tokens, pause or rotate session keys, and trigger your kill-switch. Export decision logs (prompts, plans, policies) for forensics, and monitor attacker clusters for follow-on attempts. Which chains are safer for agent activity? Safety depends more on your controls than the chain. Choose networks with mature tooling (simulation, allowlisting, revocation UX) and transparent providers. Regardless of chain, scope approvals tightly and enforce session expiries. Disclaimer: This article is provided for informational purposes only. It is not offered or intended to be used as legal, tax, investment, financial, or other advice.

La maggior parte ha letto le notizie

coinpuro_earn
Leggi la dichiarazione di non responsabilità : Tutti i contenuti forniti nel nostro sito Web, i siti con collegamento ipertestuale, le applicazioni associate, i forum, i blog, gli account dei social media e altre piattaforme ("Sito") sono solo per le vostre informazioni generali, procurati da fonti di terze parti. Non rilasciamo alcuna garanzia di alcun tipo in relazione al nostro contenuto, incluso ma non limitato a accuratezza e aggiornamento. Nessuna parte del contenuto che forniamo costituisce consulenza finanziaria, consulenza legale o qualsiasi altra forma di consulenza intesa per la vostra specifica dipendenza per qualsiasi scopo. Qualsiasi uso o affidamento sui nostri contenuti è esclusivamente a proprio rischio e discrezione. Devi condurre la tua ricerca, rivedere, analizzare e verificare i nostri contenuti prima di fare affidamento su di essi. Il trading è un'attività altamente rischiosa che può portare a perdite importanti, pertanto si prega di consultare il proprio consulente finanziario prima di prendere qualsiasi decisione. Nessun contenuto sul nostro sito è pensato per essere una sollecitazione o un'offerta