diff options
author | twesterhever <40121680+twesterhever@users.noreply.github.com> | 2022-11-06 14:31:23 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-06 14:31:23 +0000 |
commit | 9ac1a7513254f3ef4491c4199526cbece74e7934 (patch) | |
tree | 354bf7b2655bcd917c7a4c86b8115058d1bddb8e /rules/regexp | |
parent | 39aeb394c8dc6a4f05b2e6daf4c94dae1a6e4659 (diff) | |
download | rspamd-9ac1a7513254f3ef4491c4199526cbece74e7934.tar.gz rspamd-9ac1a7513254f3ef4491c4199526cbece74e7934.zip |
[Minor] Clarify that IPFS *gateway* URLs are likely considered malicious
Diffstat (limited to 'rules/regexp')
-rw-r--r-- | rules/regexp/misc.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rules/regexp/misc.lua b/rules/regexp/misc.lua index c7876567f..47b8f74a9 100644 --- a/rules/regexp/misc.lua +++ b/rules/regexp/misc.lua @@ -108,8 +108,8 @@ rspamd_config:register_dependency('LEAKED_PASSWORD_SCAM', 'BITCOIN_ADDR') -- depending on the hash algorithm used. local ipfs_cid = '/(qm[a-z0-9]{44}|[a-z0-9]{45,256})/{url}i' local ipfs_string = '/ipfs(\\.|-|_|\\/|\\?)/{url}i' -reconf['HAS_IPFS_URL'] = { - description = 'Message contains InterPlanetary File System (IPFS) URL, likely malicious', +reconf['HAS_IPFS_GATEWAY_URL'] = { + description = 'Message contains InterPlanetary File System (IPFS) gateway URL, likely malicious', re = string.format('(%s & %s)', ipfs_cid, ipfs_string), score = 6.0, one_shot = true, |