Open-source project
MetaMask/eth-phishing-detect avatar
MetaMask/eth-phishing-detect

eth-phishing-detect: MetaMask's domain blocklist and the tooling around it

Utility for detecting phishing domains targeting Web3 users

1,353 stars1,136 forksTypeScriptNOASSERTION

At a glance

What is it?
A look at the MetaMask phishing domain list, its block and allow rules, the CLI and library functions for editing it, and the safeguards against false positives. The project is now superseded by the phishing-controller in MetaMask/core.
Who is it for?
Adopt eth-phishing-detect if you need a straightforward, auditable domain blocklist with simple CLI or library functions for adding and removing entries, and if you are comfortable maintaining your own copy. Do not adopt it if you expect active upstream maintenance, because the last release is from April 2022 and the README points to a replacement.
Can I use it commercially?
Check first. The repository uses a licence we do not classify automatically, so read its LICENSE file before any commercial use.
Is it still maintained?
Yes. The repository received new commits within the last day.
What is it written in?
Mainly TypeScript, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 22, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • MetaMask/eth-phishing-detect1,353 ★ · +34
Star history
Repository2026-08-272026-11-22
MetaMask/eth-phishing-detect1.3k1.4k

34 Stars in the last 87 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

What the project actually is

eth-phishing-detect is a utility for detecting phishing domains that target Web3 users. The repository contains a list of malicious domains and a set of TypeScript functions and Yarn commands to manage that list. The README describes it as a list first, and the tooling second. The primary artifact is src/config.json, which holds the blocklist and allowlist entries. The project was maintained by MetaMask until April 2022, when the last release, v1.2.0, was pushed. The README now states that the phishing detector has moved to the phishing-controller package in the MetaMask/core repository. So this repository is effectively a snapshot of an older approach, kept for reference or for projects that have not migrated.

The blocking policy: what gets blocked and why

The README outlines a blocking policy that is deliberately broad. MetaMask will block websites that impersonate other known and established sites. It will also block sites that use their interfaces to collect user signing keys, especially cryptocurrency keys, and send them back to home servers. The policy is not exhaustive. The README says there are other grounds for blocking and that they will do their best to keep users safe. This vagueness is a limitation for anyone who wants a predictable, rule-based system. If you deploy this list, you inherit that policy, including the judgment calls. The list is not a fully automated detection engine; it is a curated denial set. The policy also implies that false positives are possible, which is why the project includes safeguards.

How the blocklist is structured and edited

The core data lives in src/config.json. The README shows two ways to modify it: Yarn commands and library functions. For adding a domain, you run yarn add:blocklist crypto-phishing-site.tld or yarn add:allowlist legitimate-site.tld. The equivalent JavaScript calls are addDomains(config, "blocklist", ["crypto-phishing-site.tld"]) and addDomains(config, "allowlist", ["legitimate-site.tld"]). Removal works the same way with yarn remove:blocklist and yarn remove:allowlist, or removeDomains(config, ...). The config object is passed explicitly, which suggests the functions are pure and testable. There is no network call involved in the editing process itself. The list is plain JSON, so you can inspect every entry. That is a strength for auditing, but it also means the list is only as current as the last update.

Safeguards against false positives

The project includes a set of safeguard lists in test/resources. Each file is plaintext with one host per domain. These lists are pulled from various sources, and the README does not name those sources. They are used to reduce the risk of false positives. If you need to block a domain that appears on one of these safeguard lists, you must add a bypass to test/test-lists.ts. This is a concrete, if awkward, mechanism. It means the test suite will fail if you block a domain that the safeguards consider legitimate. You can override that by editing the test file, but the override is manual and project-specific. The update process for these lists is yarn update:lists, which requires a CoinMarketCap Pro API key. That dependency is a real operational cost. Without that key, you cannot refresh the safeguard lists, and the project gives no alternative source.

Auditing the list with git

The README suggests a way to audit submissions and removals: git log -S "example.com" -- src/config.json. This uses git's pickaxe search to find commits that added or removed a specific domain string. It is a simple and effective method for tracing why a domain was blocked. The README also points to a third-party search tool maintained by ChainPatrol at app.chainpatrol.io, which lets you check why a given domain was blocked. That tool is external and not part of this repository. The audit trail is therefore split: the git history gives you the commit-level record, and the external tool gives you the reasoning, if it has any. This is a practical workflow, but it relies on the maintainer having written meaningful commit messages, which the README does not guarantee.

The move to MetaMask/core and what it means

The README contains an update note: the phishing detector has been moved to the MetaMask/core repository, specifically to the packages/phishing-controller package. That is the clearest signal about the project's future. The listed release v1.2.0 is from April 2022. The repository is not archived and has received later pushes, although that alone does not establish the maintenance status of the older package. If you are evaluating this project for adoption, the first question is whether you want to depend on a deprecated codebase. The phishing-controller in MetaMask/core is the active successor. It likely has the same core logic but is integrated into MetaMask's broader architecture. The README does not describe the differences, so you would need to compare the two codebases directly. For a standalone utility, inspect the repository and its current documentation before deciding whether the older package fits your use case.

Maintenance, license, and the wrong tool cases

The license field in the repository metadata says NOASSERTION. That is not a standard license identifier. It means the license is not clearly declared, which is a red flag for commercial adoption. You should not assume you can use the code without clarification. The maintenance cost is low if you use it as a static list, but high if you want to keep the list current. Updating the blocklist requires manual additions via the CLI or library functions, and updating the safeguards requires a CoinMarketCap Pro API key. The project is the wrong tool if you need real-time phishing detection or heuristic analysis. It is a blocklist, not a scanner. It cannot detect a new phishing domain until someone adds it. It is also the wrong tool if you need a permissive license, given the NOASSERTION status. For a quick internal blocklist with a clear audit trail, it works. For anything more, look at the phishing-controller or a commercial threat feed.

Editorial conclusion

Adopt eth-phishing-detect if you need a straightforward, auditable domain blocklist with simple CLI or library functions for adding and removing entries, and if you are comfortable maintaining your own copy. Do not adopt it if you expect active upstream maintenance, because the last release is from April 2022 and the README points to a replacement. Before using it, verify that the phishing-controller in MetaMask/core does not already meet your needs, and check the license situation, since the repository reports NOASSERTION rather than a standard license identifier.

Frequently asked questions

What does eth-phishing-detect do?

It holds a list of malicious domains targeting Web3 users, together with the command line and library tooling that adds and removes entries, and the tests that guard against false positives. The detection behaviour itself now lives in a package inside MetaMask's main repository, and this repository's basic usage section is a redirect to it.

How does eth-phishing-detect avoid blocking legitimate sites?

It keeps plaintext domain lists pulled from external sources in a test resources directory, with one host per line, and uses them to reduce false positives rather than to build the blocklist. Blocking a domain that appears on one of those lists requires adding a bypass to a specific test file, so every false positive is a written decision.

How do I contribute a domain to eth-phishing-detect?

Through the tooling rather than by editing the file: a command to add a domain to the blocklist or the allowlist, and matching commands to remove one, with equivalent library functions taking a list of domains. There are also separate commands to clean each list and to update the external safeguard lists.

Can I see the history of a specific domain in eth-phishing-detect?

Yes, with a single git log invocation that searches the commit messages for the domain and restricts to the configuration file, which returns every addition, removal, and change for that entry. Because contributions are required to go through the tooling, the list stays in one canonical format and each change is a small reviewable commit.

Which external lists does eth-phishing-detect use to reduce false positives?

Four, each with its own update command: a general web popularity ranking, a cryptocurrency market data service, a coin data service, and the wallet's own extension registry. The environment example file contains a single variable for the market data service's paid API key, so at least one of the four sources requires a paid tier.

What licence is eth-phishing-detect under?

The manifest's licence field contains four letters that are not a licence identifier, while the project metadata records no licence value and a licence file sits at the repository root. Read the root file for the terms rather than relying on the manifest field, and note that automated licence resolution will not succeed on the field as written.

Official sources

  1. Official README
  2. Project repository
  3. Release notes
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/metamask-eth-phishing-detect.svg)](https://hysenlabs.com/projects/metamask-eth-phishing-detect)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/metamask-eth-phishing-detect.svg)](https://hysenlabs.com/projects/metamask-eth-phishing-detect)

Was this useful?