diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-01-21 13:43:32 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-01-21 13:43:32 +0000 |
commit | eea2b46b1d896f518cd2b51f6512d58806f737e0 (patch) | |
tree | 3352eb7419e5469b83f566cdd629d6181686edb2 | |
parent | 45df2c78a87700a7501fb889d5c2791b0d354348 (diff) | |
download | rspamd-eea2b46b1d896f518cd2b51f6512d58806f737e0.tar.gz rspamd-eea2b46b1d896f518cd2b51f6512d58806f737e0.zip |
[Rules] Add more defs for LEAKED_PASSWORD_SPAM
-rw-r--r-- | rules/regexp/misc.lua | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/rules/regexp/misc.lua b/rules/regexp/misc.lua index 56e63cd7b..aaf8425bd 100644 --- a/rules/regexp/misc.lua +++ b/rules/regexp/misc.lua @@ -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) |