瀏覽代碼

Modify phishing tld threshold

SukkaW 1 年之前
父節點
當前提交
45c205f52e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Build/lib/get-phishing-domains.ts

+ 1 - 1
Build/lib/get-phishing-domains.ts

@@ -162,7 +162,7 @@ export const getPhishingDomains = (parentSpan: Span) => parentSpan.traceChild('g
       }
       }
 
 
       let sensitiveKeywordsHit: boolean | null = null;
       let sensitiveKeywordsHit: boolean | null = null;
-      if (tld.length < 7 && !BLACK_TLD.has(tld) && !(sensitiveKeywordsHit = sensitiveKeywords(line))) continue;
+      if (tld.length < 6 && !tld.includes('.') && !BLACK_TLD.has(tld) && !(sensitiveKeywordsHit = sensitiveKeywords(line))) continue;
 
 
       domainCountMap[apexDomain] ||= 0;
       domainCountMap[apexDomain] ||= 0;
       domainCountMap[apexDomain] += calcDomainAbuseScore(line, subdomain, sensitiveKeywordsHit);
       domainCountMap[apexDomain] += calcDomainAbuseScore(line, subdomain, sensitiveKeywordsHit);