Tracing the Shadows: Automatic Tracking and Analysis of Crypto Money Laundering via Transaction Semantic Analysis
Open Access
- 1 October 2026
- journal article
- Published by Association for Computing Machinery (ACM) in Proceedings of the ACM on Software Engineering
- Vol. 3 (ISSTA) , 824-847
Abstract
With the rapid advancement of decentralized finance (DeFi), security incidents related to cryptocurrency have become increasingly prevalent. After such incidents, attackers typically attempt to rapidly move stolen assets, concealing the origin of illicit funds and ultimately converting them into fiat currency.However, existing anti-money laundering (AML) methods struggle to cope with the semantic complexity of DeFi transactions. They either rely heavily on low-level token transfers, or perform protocol-agnostic money flow analysis, failing to capture the high-level intent of transactions. This limitation results in misleading tracing paths with substantial noise and fails when laundering activities span multiple blockchains. In this paper, we propose AMLGuard, a semantic-aware AML framework for account-based blockchains. AMLGuard tracks illicit fund flows from known malicious addresses by performing semantic analysis on complex DeFi transactions, enabling accurate and continuous laundering tracking. Given a complex transaction, AMLGuard combines static rule-based analysis with retrieval-augmented large language model (LLM) reasoning to infer implicit DeFi semantics, transforming raw transaction data into high-level semantic representations. Furthermore, for cross-chain transactions where laundering intent is not explicitly exposed, AMLGuard parses transaction parameters and performs argument parsing to recover cross-chain semantics, enabling seamless tracking across ledgers. Based on inferred semantics, AMLGuard abstracts each transaction into a DeFi Semantic Unit (DSU). These DSUs are analyzed and composed iteratively to update account states, expand the tracing frontier, and ultimately construct the illicit fund-flow topology. We evaluate the effectiveness of AMLGuard on 82 real-world laundering cases, involving illicit assets worth over $1 billion. Specifically, AMLGuard reconstructs compact illicit fund-flow topologies with destination precision of 94.4% and 87.6%, while achieving the highest address recall of 98.4% and 95.8% and destination recall of 94.1% and 93.8% on single-chain and cross-chain datasets. Furthermore, a case study demonstrates that AMLGuard can assist real-world AML investigation, substantially reducing analysis time and effort.Keywords
Funding Information
- National Natural Science Foundation of China (62372367)
- National Natural Science Foundation of China (62232014)
- National Natural Science Foundation of China (62272377)
- National Natural Science Foundation of China (62372368)
- Shaanxi Province Sanqin Talent Introduction Program (N/A)
This publication has 42 references indexed in Scilit:
- Detecting Various DeFi Price Manipulations with LLM Reasoning2025
- Blockchain privacy and regulatory compliance: Towards a practical equilibriumBlockchain: Research and Applications, 2023
- DeFiWarder: Protecting DeFi Apps from Token Leaking Vulnerabilities2023
- CLTracer: A Cross-Ledger Tracing framework based on address relationshipsComputers & Security, 2022
- EtherClue: Digital investigation of attacks on Ethereum smart contractsBlockchain: Research and Applications, 2021
- Data Extraction Based on Web Scrapy2021
- Application of Gradient Boosting Algorithms for Anti-money Laundering in CryptocurrenciesSN Computer Science, 2021
- Detection of illicit accounts over the Ethereum blockchainExpert Systems with Applications, 2020
- Toward a new model of money launderingJournal of Money Laundering Control, 2018
- Towards Risk Scoring of Bitcoin Transactions2014