MCPcopy Index your code
hub / github.com/MetaMask/eth-phishing-detect

github.com/MetaMask/eth-phishing-detect @v1.2.3

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.2.3 ↗ · + Follow
38 symbols 77 edges 7 files 1 documented · 3%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

eth-phishing-detect

Greenkeeper badge

Utility for detecting phishing domains targeting Ethereum users.

For checking why a given domain was blocked, try our interactive page here

Blocking Policy

We are constantly evolving the ideal policy that guides this list, but a few clearly defined rules have emerged. We will be quick and decisive to block websites that: - Impersonate other known and established sites. - Use their interfaces to collect user signing keys (especially cryptocurrency keys) and send them back to home servers.

There are other grounds for blocking, and we will ultimately do our best to keep our users safe.

basic usage

const checkForPhishing = require('eth-phishing-detect')

const value = checkForPhishing('etherclassicwallet.com')
console.log(value) // true

advanced usage

const PhishingDetector = require('eth-phishing-detect/src/detector')

const detector = new PhishingDetector({ whitelist, blacklist, fuzzylist, tolerance })
const value = detector.check('etherclassicwallet.com')
console.log(value)
/*
{
  type: "blacklist",
  result: true,
}
*/

Contributions

To keep a tidy file, use the following CLI to add new phishing domains:

yarn add:blacklist crypto-phishing-site.tld

Core symbols most depended-on inside this repo

testDomain
called by 31
test/index.js
testAnyType
called by 8
test/index.js
testListIsPunycode
called by 6
test/index.js
processDomainList
called by 6
src/detector.js
processDomainList
called by 3
example/bundle.js
testListOnlyIncludesDomains
called by 3
test/index.js
testListDoesntContainRepeats
called by 3
test/index.js
check
called by 3
src/detector.js

Shape

Function 29
Method 5
Class 4

Languages

TypeScript100%

Modules by API surface

test/index.js12 symbols
src/detector.js12 symbols
example/bundle.js12 symbols
src/index.js1 symbols
example/why.js1 symbols

For agents

$ claude mcp add eth-phishing-detect \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact