phishing-score-source.ts 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. import { createRetrieKeywordFilter as createKeywordFilter } from 'foxts/retrie';
  2. export const BLACK_TLD = new Set([
  3. 'accountant', 'art', 'autos',
  4. 'bar', 'beauty', 'bid', 'bio', 'biz', 'bond', 'business', 'buzz',
  5. 'casa', 'cc', 'cf', 'cfd', 'click', 'cloud', 'club', 'cn', 'codes',
  6. 'co.uk', 'co.in', 'com.br', 'com.cn', 'com.pl', 'com.vn',
  7. 'cool', 'cricket', 'cyou',
  8. 'date', 'design', 'digital', 'download',
  9. 'email',
  10. 'faith', 'fit', 'fun',
  11. 'ga', 'games', 'gd', 'gives', 'gq', 'group',
  12. 'help', 'host',
  13. 'icu', 'id', 'info', 'ink',
  14. 'lat', 'life', 'live', 'link', 'loan', 'lol', 'love', 'ltd',
  15. 'me', 'media', 'men', 'ml', 'mobi', 'movie', 'mom', 'monster',
  16. 'net.pl', 'ninja',
  17. 'one', 'online',
  18. 'party', 'pro', 'pl', 'pw',
  19. 'qpon', 'quest',
  20. 'racing', 'rest', 'review', 'rf.gd',
  21. 'sa.com', 'sbs', 'science', 'shop', 'site', 'skin', 'space', 'store', 'stream', 'su', 'support', 'surf',
  22. 'tech', 'tk', 'tokyo', 'top', 'trade',
  23. 'vip', 'vn',
  24. 'webcam', 'website', 'win',
  25. 'xyz',
  26. 'za.com'
  27. ]);
  28. export const WHITELIST_MAIN_DOMAINS = new Set([
  29. // 'w3s.link', // ipfs gateway
  30. // 'dweb.link', // ipfs gateway
  31. // 'nftstorage.link', // ipfs gateway
  32. 'fleek.cool', // ipfs gateway
  33. 'flk-ipfs.xyz', // ipfs gateway
  34. 'business.site', // Drag'n'Drop site building platform
  35. 'page.link', // Firebase URL Shortener
  36. // 'notion.site', d
  37. // 'vercel.app',
  38. 'gitbook.io',
  39. 'zendesk.com',
  40. 'ipfs.eth.aragon.network',
  41. 'wordpress.com',
  42. 'cloud.microsoft', // actually owned by Microsoft
  43. 'windows.net', // Microsoft refuses to add web.core.windows.net to the Public Suffix List
  44. 'myqcloud.com', // curben phishing-filter contains many entries
  45. 'surge.sh', // caused by phishing-filter, also no public suffix
  46. 'backblazeb2.com', // phishing-filter, no publicsuffix, too much abuse
  47. 'cloudflarestorage.com', // Cloudflare R2 S3-API endpoint, phishing-filter false-positives the entire apex
  48. 'pages.dev',
  49. 'workers.dev'
  50. ]);
  51. export const leathalKeywords = createKeywordFilter([
  52. 'vinted-',
  53. 'inpost-pl',
  54. 'vlnted-',
  55. 'allegrolokalnie',
  56. 'thetollroads',
  57. 'getipass',
  58. '.secure.txtag',
  59. '00lx.',
  60. '0-lx.',
  61. '01-x',
  62. '0llx',
  63. '0lx.',
  64. 'olx.o',
  65. // Fake TLD
  66. '.pl-',
  67. '-pl.',
  68. '.com-',
  69. '-com.',
  70. '.net-',
  71. '.org-',
  72. '.gov-',
  73. '-gov.',
  74. '.au-',
  75. '.co.uk-',
  76. '.de-',
  77. '.eu-',
  78. '.us-',
  79. '.uk-',
  80. '.ru-'
  81. ]);
  82. export const sensitiveKeywords = createKeywordFilter([
  83. 'amazon',
  84. 'fb-com',
  85. 'focebaak',
  86. 'facebook',
  87. 'metamask',
  88. 'apple',
  89. 'icloud',
  90. 'coinbase',
  91. 'booking.',
  92. 'booking-',
  93. 'vinted.',
  94. 'vinted-',
  95. 'inpost-pl',
  96. 'microsoft',
  97. 'google',
  98. 'minecraft',
  99. 'staemco',
  100. 'oferta',
  101. 'txtag',
  102. 'paypal',
  103. 'dropbox',
  104. 'payment',
  105. 'instagram'
  106. ]);
  107. export const lowKeywords = createKeywordFilter([
  108. 'transactions',
  109. 'wallet',
  110. '-faceb', // facebook fake
  111. '.faceb', // facebook fake
  112. 'virus-',
  113. '-roblox',
  114. '-co-jp',
  115. 'customer.',
  116. 'customer-',
  117. '.www-',
  118. '.www.',
  119. '.www2',
  120. 'microsof',
  121. 'password',
  122. 'recover',
  123. 'banking',
  124. 'shop'
  125. ]);