浏览代码

Stricter Phishing Domain detection

SukkaW 3 年之前
父节点
当前提交
eb12eee2f9
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      Build/build-phishing-domainset.js

+ 7 - 0
Build/build-phishing-domainset.js

@@ -74,6 +74,13 @@ const BLACK_TLD = Array.from(new Set([
           domainCountMap[apexDomain] += 1;
         } else if (domain.length > 30) {
           domainCountMap[apexDomain] += 0.5;
+        } else if (domain.length > 25) {
+          domainCountMap[apexDomain] += 0.25;
+        }
+
+        const subdomain = tldts.getSubdomain(domain, { allowPrivateDomains: true });
+        if (subdomain && subdomain.includes('.')) {
+          domainCountMap[apexDomain] += 0.5;
         }
       }
     }