phishing-score-source.ts 2.8 KB

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