phishing-score-source.ts 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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. '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. 'faith', 'fit', 'fun',
  10. 'ga', 'gd', 'gives', 'gq', 'group', 'host',
  11. 'icu', 'id', 'info', 'ink',
  12. 'lat', 'life', 'live', 'link', 'loan', 'lol', 'ltd',
  13. 'me', 'men', 'ml', 'mobi', 'mom', 'monster',
  14. 'net.pl',
  15. 'one', 'online',
  16. 'party', 'pro', 'pl', 'pw',
  17. 'racing', 'rest', 'review', 'rf.gd',
  18. 'sa.com', 'sbs', 'science', 'shop', 'site', 'skin', 'space', 'store', 'stream', 'su', 'support', 'surf',
  19. 'tech', 'tk', 'tokyo', 'top', 'trade',
  20. 'vip', 'vn',
  21. 'webcam', 'website', 'win',
  22. 'xyz',
  23. 'za.com'
  24. ]);
  25. export const WHITELIST_MAIN_DOMAINS = new Set([
  26. // 'w3s.link', // ipfs gateway
  27. // 'dweb.link', // ipfs gateway
  28. // 'nftstorage.link', // ipfs gateway
  29. 'fleek.cool', // ipfs gateway
  30. 'flk-ipfs.xyz', // ipfs gateway
  31. 'business.site', // Drag'n'Drop site building platform
  32. 'page.link', // Firebase URL Shortener
  33. // 'notion.site', d
  34. // 'vercel.app',
  35. 'gitbook.io',
  36. 'zendesk.com',
  37. 'ipfs.eth.aragon.network',
  38. 'wordpress.com'
  39. ]);
  40. export const leathalKeywords = createKeywordFilter([
  41. 'vinted-',
  42. 'inpost-pl',
  43. 'vlnted-',
  44. 'allegrolokalnie',
  45. 'thetollroads',
  46. 'getipass',
  47. '.secure.txtag',
  48. // Fake TLD
  49. '.pl-',
  50. '-pl.',
  51. '.com-',
  52. '-com.',
  53. '.net-',
  54. '.org-',
  55. '.gov-',
  56. '-gov.',
  57. '.au-',
  58. '.co.uk-',
  59. '.de-',
  60. '.eu-',
  61. '.us-',
  62. '.uk-',
  63. '.ru-'
  64. ]);
  65. export const sensitiveKeywords = createKeywordFilter([
  66. 'amazon',
  67. 'fb-com',
  68. 'focebaak',
  69. 'facebook',
  70. 'metamask',
  71. 'apple',
  72. 'icloud',
  73. 'coinbase',
  74. 'booking.',
  75. 'booking-',
  76. 'vinted.',
  77. 'vinted-',
  78. 'inpost-pl',
  79. 'microsoft',
  80. 'google',
  81. 'minecraft',
  82. 'staemco',
  83. 'oferta',
  84. 'txtag',
  85. 'paypal',
  86. 'dropbox',
  87. 'payment',
  88. 'instagram'
  89. ]);
  90. export const lowKeywords = createKeywordFilter([
  91. 'transactions',
  92. 'wallet',
  93. '-faceb', // facebook fake
  94. '.faceb', // facebook fake
  95. 'virus-',
  96. '-roblox',
  97. '-co-jp',
  98. 'customer.',
  99. 'customer-',
  100. '.www-',
  101. '.www.',
  102. '.www2',
  103. 'microsof',
  104. 'password',
  105. 'recover',
  106. 'banking',
  107. 'shop'
  108. ]);