Join our Newsletter — 33% off our NHI Course
Threats, Abuse & Incident Response

Drainer

← Back to Glossary
By NHI Mgmt Group Updated October 29, 2026 Domain: Threats, Abuse & Incident Response

A drainer is malware or a malicious script that empties a crypto wallet by tricking the user into signing an authorisation or transaction. It commonly operates through phishing pages, fake dApps or poisoned browser interactions, and the signed approval can transfer assets without re-entering the wallet password.

How a Drainer Works

A drainer is not trying to break the wallet itself. It is trying to get the owner to sign something that appears ordinary, but actually authorises asset movement or broad token approvals, letting the attacker empty funds without needing the wallet password.

That makes the danger highly transaction-focused. The malicious code or phishing page relies on interface deception, misleading prompts, and the user’s normal trust in signing flows, rather than on classic password theft alone.

In practice, drainers often operate through fake decentralised applications, compromised advertisements, counterfeit mint or claim pages, or injected browser content. The attack succeeds when the signed approval is valid on-chain, even if the victim never intended to grant that level of authority.

Why Drainers Are So Effective

Drainers work because blockchain signing is powerful by design. A signature can create a binding authorisation, so if the prompt is misunderstood or the transaction details are obscured, the wallet may faithfully execute the attacker’s request.

The technique also exploits speed and familiarity. Many users have been conditioned to approve pop-ups, token approvals, and connect requests with minimal scrutiny, which creates a narrow window for deception before the transaction is finalised.

Once a malicious approval is in place, the attacker can often move quickly to sweep assets, especially where the wallet holds liquid tokens, stablecoins, or other assets that can be transferred with a single follow-up action.

Common Delivery and Abuse Paths

Drainers are typically delivered through social engineering and web manipulation, not by exploiting a wallet implementation flaw in isolation. The malicious page may mimic a real service, present a fake reward, or disguise a signing request as a routine verification step.

Browser-based delivery is especially common because it can blur the boundary between legitimate wallet interaction and hostile content. Poisoned scripts, injected iframes, lookalike domains, and malicious front ends can all steer the user toward the wrong signing decision.

For defenders, the key point is that the threat often lives at the interface between user, browser, and wallet, not only in the wallet software itself. That makes the surrounding web experience, domain reputation, and transaction clarity part of the security problem.

Exposure, Detection, and Recovery After a Drainer Event

Exposure is highest when a wallet has already signed approvals, granted broad token allowances, or interacted with an untrusted dApp. Because the approval is often on-chain and durable, a post-incident review should look beyond the initial phishing page to the full transaction history and token permissions.

Detection is usually behavioural: unexpected outbound transfers, unfamiliar approvals, new delegates, sudden depletion of balances, or activity that appears shortly after a suspicious sign-in or claim flow. Once compromise is suspected, the safest assumption is that the wallet’s active approvals and any related sessions are no longer trustworthy.

Failure mechanism: The attacker obtains a valid signature for a transaction or allowance that transfers value or grants future transfer rights, so the blockchain treats the malicious action as authorised.

Impact: Funds can be drained without password theft, and the loss may continue if remaining approvals, connected sessions, or reused wallet interactions are not revoked or abandoned.

Risk and Threat Considerations

Drainers are especially dangerous because they convert a single mistaken signature into immediate financial loss. The attacker does not need to keep guessing passwords or stay resident in the environment once the approval is granted.

Failure mechanism: The user is induced to approve a malicious transaction, token allowance, or contract interaction, after which the attacker can transfer assets or reuse the granted authority.

Impact: The result can be rapid theft of crypto assets, broadening of exposure through over-permissioned approvals, and limited recovery options once the transaction is confirmed.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP API Security Top 10, MITRE ATT&CK and OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST SP 800-53 Rev 5 sets the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP API Security Top 10API5 — Broken Function Level AuthorizationDrainer flows abuse authorisation to move assets through a user-approved function.
Recommendation — Review transaction functions for overbroad authorisation before users can approve asset-moving actions.
NIST SP 800-53 Rev 5IA-5 — Authenticator ManagementWallet approvals and signing material behave like identity-enabling credentials that need lifecycle control.
Recommendation — Manage signing and approval material with strict lifecycle controls and rapid revocation.
MITRE ATT&CKT1566 — PhishingDrainers commonly arrive through phishing pages and deceptive web lures that solicit harmful signatures.
Recommendation — Detect and block phishing delivery paths that solicit malicious wallet approvals.
OWASP Non-Human Identity Top 10NHI-02 — Secret LeakageDrainers often succeed when users expose signing authority or approval power through deceptive prompts.
Recommendation — Limit exposure of approval power by scrutinising every signing request before release.

Practitioner Guidance

What to watch for: Treat unexpected signature prompts as the main control point, not a nuisance step. The safest operational habit is to verify the exact contract, domain, and requested action before approving anything that can move assets or grant token authority.

Governance implication: Wallet owners and security teams should assume that approval hygiene matters as much as password hygiene. Transaction review, allowance minimisation, and fast response to suspicious approvals are the practical controls that reduce drainers’ success rate.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on October 29, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org