Update phishing infra

This commit is contained in:
SukkaW 2024-10-01 20:22:07 +08:00
parent a4ad75838f
commit 153e219832
3 changed files with 32 additions and 20 deletions

View File

@ -29,7 +29,7 @@ const BLACK_TLD = new Set([
'one', 'online', 'one', 'online',
'party', 'pro', 'pl', 'pw', 'party', 'pro', 'pl', 'pw',
'racing', 'rest', 'review', 'rf.gd', 'racing', 'rest', 'review', 'rf.gd',
'sa.com', 'sbs', 'science', 'shop', 'site', 'skin', 'space', 'store', 'stream', 'surf', 'sa.com', 'sbs', 'science', 'shop', 'site', 'skin', 'space', 'store', 'stream', 'su', 'surf',
'tech', 'tk', 'tokyo', 'top', 'trade', 'tech', 'tk', 'tokyo', 'top', 'trade',
'vip', 'vn', 'vip', 'vn',
'webcam', 'website', 'win', 'webcam', 'website', 'win',
@ -51,26 +51,17 @@ const WHITELIST_MAIN_DOMAINS = new Set([
]); ]);
const sensitiveKeywords = createKeywordFilter([ const sensitiveKeywords = createKeywordFilter([
'-roblox',
'.amazon-', '.amazon-',
'-amazon', '-amazon',
'fb-com', 'fb-com',
'facebook.',
'facebook-',
'facebook-com', 'facebook-com',
'.facebook',
'-facebook', '-facebook',
'coinbase', 'facebook-',
'metamask-', 'metamask-',
'-metamask', '-metamask',
'virus-',
'icloud-',
'apple-',
'www.apple', 'www.apple',
'-coinbase', '-coinbase',
'coinbase-', 'coinbase-',
'lcloud.',
'lcloud-',
'booking-com', 'booking-com',
'booking.com-', 'booking.com-',
'booking-eu', 'booking-eu',
@ -81,6 +72,16 @@ const sensitiveKeywords = createKeywordFilter([
'google.com-' 'google.com-'
]); ]);
const lowKeywords = createKeywordFilter([ const lowKeywords = createKeywordFilter([
'transactions-',
'payment-',
'-transactions',
'-payment',
'-faceb', // facebook fake
'.faceb', // facebook fake
'virus-',
'icloud-',
'apple-',
'-roblox',
'-co-jp', '-co-jp',
'customer.', 'customer.',
'customer-', 'customer-',
@ -154,12 +155,6 @@ async function processPhihsingDomains(domainArr: string[]) {
} else if (tld.length > 6) { } else if (tld.length > 6) {
domainScoreMap[apexDomain] += 2; domainScoreMap[apexDomain] += 2;
} }
if (sensitiveKeywords(apexDomain)) {
domainScoreMap[apexDomain] += 4;
} else if (lowKeywords(apexDomain)) {
domainScoreMap[apexDomain] += 2;
}
} }
if ( if (
subdomain subdomain
@ -203,12 +198,12 @@ export function calcDomainAbuseScore(subdomain: string, fullDomain: string) {
const sensitiveKeywordsHit = sensitiveKeywords(fullDomain); const sensitiveKeywordsHit = sensitiveKeywords(fullDomain);
if (sensitiveKeywordsHit) { if (sensitiveKeywordsHit) {
weight += 8; weight += 9;
if (hitLowKeywords) { if (hitLowKeywords) {
weight += 4; weight += 5;
} }
} else if (hitLowKeywords) { } else if (hitLowKeywords) {
weight += 1; weight += 1.5;
} }
const subdomainLength = subdomain.length; const subdomainLength = subdomain.length;

View File

@ -580,6 +580,7 @@ interactive-examples.mdn.mozilla.net
.hubspotusercontent30.net .hubspotusercontent30.net
.cdn2.hubspot.net .cdn2.hubspot.net
.js.hubspot.com .js.hubspot.com
.js-eu1.hubspot.com
.js.hubspotfeedback.com .js.hubspotfeedback.com
.js.usemessages.com .js.usemessages.com
.hsappstatic.net .hsappstatic.net

View File

@ -49,6 +49,10 @@ optimus-ads.amap.com
.zampdsp.com .zampdsp.com
.zhugeio.com .zhugeio.com
.telemetry.coder.com .telemetry.coder.com
.tlsens.pl
.moseasia.com
.trytoku.com
.yinzcam.com
# fake pirate bay # fake pirate bay
.thepiratebay3.com .thepiratebay3.com
@ -309,6 +313,18 @@ inst.360safe.com
.xsph.ru .xsph.ru
.ipv4dns.com .ipv4dns.com
.ipxx.pro .ipxx.pro
.goonline-bnpparibas-pl.xyz
# Poland Hosting dhosting.pl's free subdomain
.you2.pl
# NameCheap's WordPress hosting easywp.com subdomain, full of phishing
.ingress-earth.ewp.live
.ingress-erytho.ewp.live
.ingress-daribow.ewp.live
.ingress-haven.ewp.live
.ingress-bonde.ewp.live
.ingress-florina.ewp.live
.ingress-comporellon.ewp.live
.ingress-baronn.ewp.live
.temp.swtest.ru .temp.swtest.ru
.tw1.ru .tw1.ru