Gate Research: AI Accelerates the Crypto Security Arms Race, the Evolution of On-Chain Security Systems Under Intelligent Attacks

Gate 研究院
本文约19415字,阅读全文需要约78分钟
Artificial intelligence is reshaping the offensive and defensive capabilities across the crypto industry. AI Agents are continuously advancing in smart contract vulnerability discovery, attack path validation, and automated execution, while generative AI and deepfake technology have heightened risks such as phishing attacks, private key theft, identity impersonation, and software supply chain attacks. Security incidents involving Drift Protocol, Kelp DAO, and others reflect that social engineering, permission management, and cross-chain infrastructure remain critical weak points in crypto asset security.

Summary

• Large language models and AI Agents have improved the efficiency of smart contract vulnerability analysis, attack testing, and automated execution, lowering the technical barrier for some cyberattacks.

• AI-generated content, deepfakes, and automation tools have increased the risks of phishing attacks, private key theft, identity impersonation, and software supply chain attacks. The abuse of AI Agent permissions has also become a new security concern.

• Security incidents such as Drift Protocol and Kelp DAO reflect that social engineering, permission management, and cross-chain infrastructure remain important sources of asset security risk, and that a single smart contract audit can hardly cover the full attack surface.

• AI is gradually being applied to smart contract auditing, on-chain anomaly monitoring, vulnerability identification, and automated response, but it still needs to be combined with manual audits, MPC, multi-signature, and permission isolation mechanisms.

• Through AI smart contract auditing, PoR, PoSEC, Gate Vault, and Gate Guard, Gate covers code risk identification, reserve verification, asset storage, key management, and user account protection.

Introduction

The development of artificial intelligence technology is changing the distribution of offensive and defensive capabilities in the cybersecurity field. Large language models and AI Agents now possess code comprehension, vulnerability analysis, test generation, tool invocation, and multi-step task execution capabilities, enabling them to participate in smart contract vulnerability discovery, attack path validation, and automated security testing. At the same time, generative AI, voice cloning, and deepfake technologies have lowered the cost of carrying out identity impersonation and social engineering attacks, further extending the security risks facing the crypto industry to wallets, private keys, development environments, third-party software dependencies, and automated trading systems.

From late 2025 to 2026, a number of AI security studies began directly testing models' ability to discover, exploit, and fix vulnerabilities in real historical smart contracts. EVMbench, jointly launched by OpenAI and Paradigm, Anthropic's SCONE-bench, and the reproduction research on historical DeFi attack incidents by DefiLlama and Firepan all show that AI Agents are already capable of completing some complex vulnerability analysis and attack validation tasks. Chainalysis's research on crypto scam activity also found that scam operations with on-chain links to AI tool vendors exhibited a higher average amount of funds obtained per incident, indicating that AI tools are being used by some scam organizations to improve attack efficiency.

This report examines the impact of AI on the offensive and defensive landscape of Crypto security. It first analyzes the progress of AI capabilities in smart contract vulnerability discovery, attack script generation, and automated execution, then studies new risks such as wallet and private key compromise, phishing and identity forgery, software supply chain attacks, and AI Agent permission abuse, and combines security incidents such as Drift Protocol and Kelp DAO to analyze the weak points in the industry's existing protection systems. On the defense side, the report focuses on the application of AI in smart contract auditing, on-chain anomaly monitoring, transaction risk identification, and automated response, and assesses how AI security tools can work in coordination with traditional auditing, key management, and asset protection mechanisms. Finally, drawing on security services such as Gate AI smart contract auditing, Proof of Reserves (PoR), Proof of Security (PoSEC), Gate Vault, and Gate Guard, it analyzes the practices of trading platforms in code risk identification, asset storage, reserve verification, and user protection.

1. AI Technology Development Is Changing the Crypto Security Offensive and Defensive Landscape

1.1 From Code Assistance to Autonomous Execution: The Technical Foundation of AI Attack Capabilities

Traditional cyberattacks usually require attackers to have programming, system analysis, and security research experience. Technical attacks targeting the crypto industry also involve specialized knowledge such as Solidity smart contract development, EVM execution mechanisms, on-chain transaction analysis, wallet signing, oracles, and cross-chain protocols. Attackers need to go through multiple stages, including target screening, code analysis, vulnerability localization, test environment setup, and attack validation, before they can form an attack plan with practical execution conditions.

In the past, AI in the cybersecurity field mainly handled tasks such as code explanation, rule matching, and assisted analysis. The development of large language models has improved systems' ability to understand complex code and natural language instructions, while AI Agents have further connected models with external tools, development environments, and execution systems, enabling them to complete continuous tasks. Current Agents can read project files, analyze contract call relationships, generate test code, invoke compilers and testing frameworks, and adjust subsequent analysis steps based on execution results.

This capability has a direct impact on smart contract security. Smart contracts are usually deployed publicly on blockchains, and attackers can obtain contract source code, transaction records, and some operational states through block explorers, code repositories, and on-chain data. Compared with traditional closed-source software, public contracts provide a relatively complete information base for automated code analysis. AI can assist in analyzing call relationships between functions, permission configurations, asset transfer paths, and external dependencies, making code research work that previously required significant manual effort amenable to automation.

AI's impact on the attack preparation process is mainly reflected in three aspects.

First, the efficiency of target screening and vulnerability analysis has improved. Attackers can use AI to conduct preliminary analysis of a large number of public contracts and identify key code areas such as permission control, external calls, price calculations, and asset management. For projects that use similar development frameworks or copy existing code, AI can also help identify recurring risk patterns, enabling attackers to screen more potential targets in a shorter time.

Second, the vulnerability validation process is gradually gaining automation capabilities. AI Agents can invoke code compilers, static analysis tools, testing frameworks, and blockchain simulation environments to execute continuous testing tasks. Models can adjust test cases based on execution feedback and assist in determining whether a vulnerability meets specific conditions. This makes the workflow between code analysis, test generation, and result organization more tightly connected.

Finally, AI gives some attack activities the technical conditions for scaled execution. Attackers can assign code analysis and target screening tasks to multiple Agents for parallel processing, expanding the search scope. For social engineering attacks, AI can also generate customized communication materials based on the target's language, profession, and social background, reducing the time required for manual content creation.

However, AI automation capabilities do not mean that attackers can directly bypass all security mechanisms of a contract. Exploitation is still constrained by factors such as contract state, transaction ordering, on-chain liquidity, permission conditions, execution costs, and protocol economic mechanisms. AI-generated attack plans may also contain errors and need to be confirmed through testing and validation. For industry security research, it is necessary to distinguish between three different situations: the model possessing a certain technical capability, the experimental environment being able to reproduce an attack, and real-world attacks having already used AI.

1.2 AI Agents Enable Vulnerability Analysis and Attack Execution to Form a Continuous Workflow

The important difference between AI Agents and traditional code assistance tools lies in their ability to actively invoke tools according to task objectives and adjust execution steps through feedback.

In smart contract security research, an Agent can first read the contract source code and related interfaces, and extract key functions, state variables, and permission configurations. The system can then combine static analysis results to identify suspicious code areas and use testing frameworks to check the execution results of relevant functions under different inputs and states. If anomalies are found, the Agent can further analyze the involved call paths and organize potential impacts and remediation suggestions.

This workflow can be used for contract auditing, and may also be used by attackers for vulnerability research. There is no inherent difference in the underlying tools used by security teams and attackers; the final result depends on access permissions, task objectives, and the execution environment.

AI Agents can also connect multiple tools together. For example, a code analysis tool is responsible for identifying suspicious functions, an on-chain data tool is responsible for obtaining contract states, a testing environment is responsible for validating boundary conditions, and a risk analysis module organizes the results. Once a task chain is formed between different tools, the model can assume the work of process coordination and result judgment.

This capability development has two impacts on the Crypto industry.

On the one hand, security teams can improve the efficiency of code auditing and risk analysis, shortening the time required for vulnerability localization and remediation. On the other hand, attackers can also use public information and automation tools to reduce research costs and increase the scale of potential target screening. For projects with similar code structures and shared components, a single vulnerability may affect multiple protocols, and automated analysis further increases the possibility of similar vulnerabilities being discovered in batches.

The development of AI Agents has also added a new attack surface. When models can access wallets, APIs, development environments, and trading interfaces, external malicious inputs may affect actual operations through tool invocation. Agent security issues therefore involve multiple aspects, including model inputs, tool sources, identity authentication, permission scope, and transaction execution, and cannot rely solely on the model's ability to recognize malicious text.

1.3 AI's Improvement of Smart Contract Security Capabilities Has Already Been Experimentally Verified

From late 2025 to 2026, a number of studies began using real historical vulnerabilities and controlled blockchain environments to evaluate AI's smart contract security capabilities.

In December 2025, Anthropic released research related to SCONE-bench, using 405 smart contracts with historical vulnerabilities to test AI Agents' exploitation capabilities. In the study, the model generated approximately $4.6 million in simulated attack results in historical vulnerability tests. The research team also tested 2,849 recently deployed contracts with no known vulnerabilities, discovered two previously undisclosed vulnerabilities, and completed exploitation validation in an isolated environment. The related tests did not carry out attacks on real on-chain assets.

In February 2026, OpenAI and Paradigm jointly released EVMbench to evaluate AI Agents' capabilities in vulnerability discovery, code remediation, and exploitation in smart contract security. The test set contains 117 vulnerabilities from 40 audit reports, and uses a controlled EVM execution environment to assess whether models can identify risks, fix code, and validate exploitation results.

The research value of EVMbench lies in breaking down smart contract security capabilities into different tasks. Vulnerability discovery requires models to understand code structure and locate risks; vulnerability remediation requires models to modify problematic code and verify the fix; and exploitation requires models to prove that a specific vulnerability is executable in a controlled environment. The three tasks respectively reflect AI's different capabilities in defensive research and offensive research.

In September 2026, DefiLlama Research and Firepan released a reproduction study of historical DeFi attacks, covering 1,236 security incidents from 2011 to August 2026, including 1,040 on-chain DeFi incidents. The study classified historical incidents according to whether AI could discover and complete the exploitation, whether additional conditions or human collaboration were required, and whether they were beyond the scope of current code analysis capabilities. About 68% of historical DeFi incidents were assessed as reproducible, 12.9% as partially reproducible, and 19.1% as non-reproducible.

The research shows that AI already possesses relatively strong technical capabilities in smart contract vulnerability analysis and historical attack reproduction, but the degree of automation varies across attack types. Code vulnerabilities are more easily converted into testable analysis tasks, while private key compromise, personnel permission abuse, and infrastructure intrusion involve more complex system and organizational factors. AI's impact on industry security needs to be judged in light of the actual characteristics of different attack surfaces.

2. AI's Impact on the Main Attack Surfaces in Crypto

2.1 Smart Contract Exploitation: From Single Code Defects to Complex Business Logic Analysis

Smart contracts are the core infrastructure through which DeFi protocols manage lending, trading, collateral, liquidation, and asset allocation. Once contract code is deployed, it usually cannot be modified at any time like traditional applications. Even if a protocol has upgrade capabilities, the upgrade permissions and execution process themselves may become new security risks.

Smart contract attacks mainly involve types such as reentrancy attacks, permission control flaws, oracle manipulation, flash loan risks, integer precision errors, and business logic vulnerabilities. AI can assist in identifying the above issues through code comprehension, function call analysis, and test generation.

Reentrancy attacks mainly involve the execution order between external calls and state updates. If a contract calls an external contract before completing a balance update, an attacker may exploit the callback mechanism to re-enter the relevant function, causing funds to be withdrawn multiple times. AI can analyze external call paths and state variable changes to help identify unexpected execution orders.

Permission control vulnerabilities involve the permission boundaries between administrators, authorized accounts, and ordinary users. If sensitive functions lack the necessary access control, attackers may call administrator functions, modify protocol parameters, or transfer contract assets. AI can assist in checking the relationships between function modifiers, role inheritance, and permission configurations.

Oracle manipulation involves the impact of external price data on a protocol's economic state. Lending protocols may calculate collateral value and liquidation conditions based on price oracles. If the price source is overly concentrated, the update mechanism has delays, or the protocol relies excessively on short-term trading prices, attackers may exploit insufficient market liquidity to influence price inputs. AI can analyze price sources, update frequencies, and protocol call relationships to help identify risky dependencies.

Compared with the above vulnerabilities, business logic vulnerabilities are harder to identify through simple rules. DeFi protocols may contain multiple functions such as collateral, borrowing, interest calculation, liquidation, reward distribution, and fund redemption. Each function may meet design requirements when run individually, but in special market states and continuous interaction processes, unreasonable fund flow paths may still form.

For example, a lending protocol's collateral valuation, borrowing limits, and liquidation rules may each have been audited, but when there are deviations in oracle price updates, collateral liquidity, and liquidation execution timing, the system may allow users to obtain borrowing amounts exceeding the actual collateral value under specific states. AI can assist auditors in analyzing dependencies between different functions, generating boundary condition tests, and checking whether abnormal states appear after multiple modules are combined.

This capability is particularly important for the DeFi industry. As protocols add automated market making, cross-chain collateral, yield strategies, and complex liquidation mechanisms, dependencies between contracts continue to increase. Simply checking whether reentrancy or permission flaws exist in the code makes it difficult to fully assess a protocol's economic security. AI auditing needs to further combine on-chain states, fund flows, and economic model analysis.

However, AI's understanding of business logic still has limitations. Models may overlook specific market conditions, misjudge protocol design intentions, or generate attack hypotheses that cannot hold in real environments. Contracts involving high-value funds still require the joint participation of manual audits, dynamic testing, and formal verification.

2.2 Wallet and Private Key Attacks: AI Improves the Efficiency of Identity Impersonation and Authorization Fraud

The security foundation of crypto wallets is private key management and transaction authorization. Users control assets through private keys, and any attacker who obtains effective signing capability may be able to transfer the related assets. For centralized trading platforms, the platform also needs to manage hot wallets, cold wallets, internal signing permissions, and withdrawal approval processes.

AI's impact on wallet security is mainly reflected in identity impersonation, phishing, and transaction authorization fraud.

Generative AI can create personalized communication content based on the target user's public information. Attackers can impersonate project teams, trading platform employees, investment institutions, or technical service providers, and contact targets through email, social platforms, and instant messaging tools. Voice cloning and deepfake technologies can also simulate managers or familiar partners, increasing the difficulty of identity verification in remote meetings and internal approvals.

Wallet attacks usually revolve around obtaining sensitive information and transaction authorization. Attackers may induce users to enter mnemonic phrases through fake wallet recovery pages, obtain verification codes by impersonating customer service, or use malware to replace payment addresses copied by users. For on-chain authorization, attackers may also induce users to sign unlimited token approvals, giving them the ability to continuously transfer the related assets.

AI can further increase the degree of customization of such attacks. For example, attackers can generate different cooperation invitations and security notifications based on the projects the target user participates in, recent transactions, and social relationships, making phishing content closer to real business scenarios. Multilingual generation capabilities also reduce the communication cost of cross-regional scams.

Historical security incidents show that keys and signing permissions have always been high-value attack targets in the crypto industry. DefiLlama's research on historical security incidents found that the ten largest incidents accounted for 44% of total statistical losses, most of which involved compromise of private keys, signers, or identity permissions.

This means that smart contract code auditing cannot cover all asset security issues. Even if the protocol itself has no obvious vulnerabilities, attackers may still obtain control of funds through phishing, malicious approvals, impersonation of management personnel, and abuse of internal permissions. Wallet security needs to combine mechanisms such as multi-party computation, multi-signature, hardware isolation, transaction delays, withdrawal limits, and freezing of abnormal behavior to reduce the impact of a single identity or key compromise.

2.3 Phishing and Deepfakes: Scam Activities Are Developing Toward Personalization and Scale

Generative AI has lowered the cost of producing scam materials and communicating across languages. Attackers can generate different scam content based on the target user's profession, investment experience, and social relationships, and contact targets through email, social platforms, instant messaging, and video conferences.

Chainalysis estimated in the 2026 Crypto Crime Report that crypto scams and fraud activities may have caused $17 billion in losses in 2025. The research noted that impersonation scam activities increased by about 1,400% year over year. Scam operations with on-chain links to AI service providers obtained an average of about $3.2 million per incident; scam operations with no identified link to AI services obtained an average of about $719,000 per incident, with the former being about 4.5 times the latter.

This study observed some scam organizations' use of AI tools through correlation analysis between on-chain transactions and AI service providers. It should be noted that on-chain links cannot prove that every scam was directly executed by AI, nor do they mean that all AI scam activities can be fully identified.

AI's help to scam activities mainly comes from content generation, identity forgery, and information gathering. Attackers can generate phishing materials in different languages in batches, imitate official project announcements and customer service replies, and also create targeted investment invitations based on the target user's public information. Deepfake technology may also be used to impersonate project leaders or trading platform employees, inducing targets to transfer funds or perform internal operations.

For Crypto users, impersonating