Agent Shield
Autonomous AI agents can now hold a crypto wallet and trade from it. Coinbase made agent trading generally available in June 2026, and Robinhood opened its trading server to agents a month earlier. Google, Visa and Mastercard have each published standards defining how an agent proves its identity. None specifies whether a given transaction should proceed. The vulnerability sits in the architecture. Execution instructions and untrusted external data share one model context, so text an attacker plants in a contract description or a social feed can be read as a command. Patlan et al. (2025), working across Princeton University and the Sentient Foundation, benchmarked this against Web3 agents and report memory-injection attacks succeeding in 55 percent of multi-step tasks against the most advanced reasoning model they tested, under the same conditions where direct prompt injection had fallen to around 2 percent.
Blockchain settlement makes those failures permanent. CertiK's Hack3d reports put crypto losses at $3.35 billion in 2025, with 8.8 percent of first-half 2026 losses frozen or returned. Global Ledger records stolen funds moving within seconds of a breach and finds that in roughly three-quarters of cases the money moved before the theft became public. Agent-specific losses are already documented. The OECD AI Incidents Monitor logged $175,000 moved in May 2026 after one model acted on another model's output, and CoinDesk reported $500,000 drained through compromised model routers.Existing wallet security answers this by rendering a warning for a person to read. Agents do not read warnings. AgentShield evaluates the proposed transaction and returns allow, warn or block to the wallet before the signature exists.
AgentShield ACP (agent control plane) is powered by a comprehensive, multi-source foundation that captures the breadth and variety of real world agentic finance risks. In regards to crypto and web3, we fuse smart contract solidity code data, exploit intelligence, and a standardized adversarial taxonomy through Google cloud buckets. This enables precise retrieval, contextual reasoning, and verifiable risk classification for autonomous on-chain actions.
Our data science approach integrates graphRAG, vector similarity search, and LLM-based reasoning in a cascaded architecture. If graphRAG is unable to yield a verdict from inconclusive evidence, the system leverages a Gemini LLM as fallback to conduct deeper reasoning and provide the user a verdict and response for every request. This combination yields highly accurate responses supported by cryptographic assurance while maintaining speed, safety, and interpretability.
Data Sources
We curate and combine data sources that provide coverage of solidity code structure, real documented exploit behavior, and standardized adversarial knowledge. The combined dataset is stored across Qdrant vector database for semantic retrieval and a neo4j knowledge graph for relational reasoning. This information coverage is critical for risk classification in the open and adversarial nature of blockchain systems. Responses will also be grounded in reality, with real-world incident data reducing hallucinations and false positives.
Evaluation Methodology & Results
AgentShield v2 was evaluated against a balanced dataset of 500 Ethereum mainnet smart contracts, 250 malicious and 250 safe, sourced from Forta's labeled threat intelligence feeds. This run incorporated two key pipeline changes from v1: a delegatecall similarity threshold fix to reduce false positives on legitimate proxy contracts, and binary verdict enforcement that eliminated the ambiguous WARN category, forcing every contract to a definitive block or allow decision. Each contract was submitted to the full GraphRAG pipeline: source code retrieval via Etherscan, vector similarity search against vulnerability embeddings in Qdrant, graph-based knowledge expansion through Neo4j, and a final LLM-generated verdict on Vertex AI. The system returned a binary block or allow decision for each contract, which was compared against ground-truth labels to, F1, and a full confusion matrix.
Across all 500 contracts, AgentShield v2 achieved 44.4% accuracy, a 17.8 percentage point improvement over v1. The delegatecall threshold fix was the standout success, reducing "Dangerous Delegatecall" false positive triggers from 133 to 6 and cutting total false positives by 45%, from 110 to 61. Average pipeline latency also improved significantly, dropping from 3.3 seconds.However, the binary verdict enforcement exposed a critical recall problem. In v1, 247 contracts received ambiguous warn verdicts. When forced to choose block or allow in v2, the system defaulted most of these to allow, causing recall to drop from 88.1% to 13.2%. The confusion matrix showed 33 true positives, 189 true negatives, 61 false positives, and 217 false negatives. The detection was that most malicious contracts (exploits, phishing addresses) lack verified source code on Etherscan, and the system defaults to allow without source to analyze.
Key Learnings & Impact
We learned that securing autonomous agents requires layered evidence, deterministic policies, and auditable decnd iteration reduced false positives by 45% and cut delegatecall false positives from approximately 81 to 6. Moving from ALLOW/WARN/BLOCK to binary decisions revealed an important opportunity to improve recall. Although BLOCK recall decreased to 13.2%, the experiment clearly identified where policy calibration and evidence coverage require further development. Our analysis showed that missing verified source code was a major contributor to missed detections. This finding provides a focused roadmap that includes bytecode analysis, address reputation data, and stronger handling of incomplete evidence. AgentShield provides an important safety layer between an autonomous agent and an irreversible blockchain transactions Bundle captures model outputs, policy actions, and decision paths. Along with key logging, model selection, data versioning and other important data points to allow for refinement of the security layer. Together, these capabilities provide a foundation for more transparent and accountable agent security.
