Definition ∞ A token extraction routine describes a specific sequence of operations or a program designed to systematically remove digital assets from a compromised source. This routine is typically employed by attackers after gaining unauthorized access to a wallet, smart contract, or exchange. It automates the process of identifying and transferring various tokens to an attacker-controlled address. Such routines are often optimized for speed and stealth to maximize stolen value before detection.
Context ∞ Token extraction routines are a common feature in post-exploit analysis of digital asset hacks, illustrating the technical methods used by malicious actors. Security researchers often study these routines to understand attack patterns and develop better defenses. Preventing token extraction routines requires robust access controls, continuous security monitoring, and rapid response protocols. The development of advanced threat detection systems aims to identify and halt these illicit transfers in real-time.