rspamd
rspamd copied to clipboard
[Rules] Added rules for detecting likely malware
trafficstars
- Punish exe-laden archives in general
- Harsh punishment for exe-laden archives with suspicious filenames or subjects
- Harsh punishment for fantastically well compressed UDF images
- Punish misidentified RARs & misidentified RARs bearing executables
@moisseev @dragoangel I would appreciate if you take a quick look on this.
I wouldn't punish *.exe files in archives as they are supposed to be there unless they (or the email containing them) have suspicious signs.
Hi @vstakhov @fatalbanana , my view on this:
- Join @moisseev that we should not punish
.exeand other thing, as of: I assume such files most administrators already ban viamime_types.luaor multimaps withprefilter. Maybe this module will be okay for people who want acceptingexes orimg, but I not sure if naming is enough to banexe, this too much dynamic thing. Compressedimg- same, not better just block it and that's all? Usually "valid" img files takes more then 100mb, which is not valid file to be transferred over email, correct me if I'm wrong? Malware can skip compressing img at all, but greatly obfuscate and compress malware itself. Plus there more extensions that used for same thing:dmg&isoat minimum. Saw them in spam campaigns and blocked atmime_types.lua. - About
misidentified RARs- nice thing, but if we can detect in Rspamdmime_types.luaextensions inside of such archives - I think better to still punish exec (or other extensions listed inmime_types.lua) by creating composite based on symbols from this module &mime_types.luaone. Maybe I missed something and this not possible, but it looks more optimal.