Browse Source

[Rules] Improve LEAKED_PASSWORD_SCAM detection

tags/1.9.0
Vsevolod Stakhov 5 years ago
parent
commit
15bb413994
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      rules/regexp/misc.lua

+ 3
- 3
rules/regexp/misc.lua View File

@@ -61,14 +61,14 @@ reconf['HAS_ONION_URI'] = {
group = 'experimental'
}

local password_in_words = [[/^password/i{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 broken_unicode = [[has_flag(bad_unicode)]]

reconf['LEAKED_PASSWORD_SCAM'] = {
re = string.format('%s & %s & (%s | %s)',
password_in_words, btc_wallet_address, wallet_word, broken_unicode),
re = string.format('%s & (%s | %s | %s)',
btc_wallet_address, password_in_words, wallet_word, broken_unicode),
description = 'Contains password word and BTC wallet address',
score = 7.0,
group = 'scams'

Loading…
Cancel
Save