phishing-score-source.ts 2.6 KB

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