]> source.dussan.org Git - rspamd.git/commitdiff
[Rules] Add more defs for LEAKED_PASSWORD_SPAM
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 21 Jan 2019 13:43:32 +0000 (13:43 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 21 Jan 2019 13:43:32 +0000 (13:43 +0000)
rules/regexp/misc.lua

index 56e63cd7b310d69f6169b478158335664ee21419..aaf8425bdcdf992e4416e81ed9f77053b91837d0 100644 (file)
@@ -61,14 +61,18 @@ reconf['HAS_ONION_URI'] = {
     group = 'experimental'
 }
 
+local my_victim = [[/(?:victim|prey)/{words}]]
+local your_webcam = [[/webcam/{words}]]
+local your_onan = [[/(?:mast[ur]{2}bati(?:on|ng)|onanism|solitary)/{words}]]
 local password_in_words = [[/^pass(?:(?:word)|(?:phrase))/i{words}]]
 local btc_wallet_address = [[/^[13][0-9a-zA-Z]{25,34}$/{words}]]
-local wallet_word = [[/^wallet$/i{words}]]
+local wallet_word = [[/^wallet$/{words}]]
 local broken_unicode = [[has_flag(bad_unicode)]]
 
 reconf['LEAKED_PASSWORD_SCAM'] = {
-  re = string.format('%s & (%s | %s | %s | lua:check_data_images)',
-      btc_wallet_address, password_in_words, wallet_word, broken_unicode),
+  re = string.format('%s & (%s | %s | %s | %s | %s | %s | lua:check_data_images)',
+      btc_wallet_address, password_in_words, wallet_word,
+      my_victim, your_webcam, your_onan, broken_unicode),
   description = 'Contains password word and BTC wallet address',
   functions = {
     check_data_images = function(task)