phishing-score-source.ts 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  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. 'pages.dev',
  48. 'workers.dev'
  49. ]);
  50. export const leathalKeywords = createKeywordFilter([
  51. 'vinted-',
  52. 'inpost-pl',
  53. 'vlnted-',
  54. 'allegrolokalnie',
  55. 'thetollroads',
  56. 'getipass',
  57. '.secure.txtag',
  58. '00lx.',
  59. '0-lx.',
  60. '01-x',
  61. '0llx',
  62. '0lx.',
  63. 'olx.o',
  64. // Fake TLD
  65. '.pl-',
  66. '-pl.',
  67. '.com-',
  68. '-com.',
  69. '.net-',
  70. '.org-',
  71. '.gov-',
  72. '-gov.',
  73. '.au-',
  74. '.co.uk-',
  75. '.de-',
  76. '.eu-',
  77. '.us-',
  78. '.uk-',
  79. '.ru-'
  80. ]);
  81. export const sensitiveKeywords = createKeywordFilter([
  82. 'amazon',
  83. 'fb-com',
  84. 'focebaak',
  85. 'facebook',
  86. 'metamask',
  87. 'apple',
  88. 'icloud',
  89. 'coinbase',
  90. 'booking.',
  91. 'booking-',
  92. 'vinted.',
  93. 'vinted-',
  94. 'inpost-pl',
  95. 'microsoft',
  96. 'google',
  97. 'minecraft',
  98. 'staemco',
  99. 'oferta',
  100. 'txtag',
  101. 'paypal',
  102. 'dropbox',
  103. 'payment',
  104. 'instagram'
  105. ]);
  106. export const lowKeywords = createKeywordFilter([
  107. 'transactions',
  108. 'wallet',
  109. '-faceb', // facebook fake
  110. '.faceb', // facebook fake
  111. 'virus-',
  112. '-roblox',
  113. '-co-jp',
  114. 'customer.',
  115. 'customer-',
  116. '.www-',
  117. '.www.',
  118. '.www2',
  119. 'microsof',
  120. 'password',
  121. 'recover',
  122. 'banking',
  123. 'shop'
  124. ]);