[Linux-aus] Solution: working procmail rule for Mydoom/Mymail/Novarg/SCO virus
arjen at mysql.com
Thu Jan 29 09:20:02 UTC 2004
(mind the crosspost!)
Hi again all,
Alright, I found the problem with the procmail rule.
The incoming mail actually contains a LF+tab after the semicolon on the
content-type lines. My mail reader (evolution) rewrapped it as a single
line, and saved it as a space. So that's why my test with egrep worked.
If I fed the saved msg directly into procmail, it would also work ;-)
So that's the entire explanation.
Anyway, the two rules below do the trick. For the current virus, you
only really need the second one but since the first one is shorter, why
not leave it in...
I had to adjust and add to the zip signature a bit this morning to catch
some new variants - this is possibly the .B strain that is being
reported. We'll see whether more new stuff shows.
Right now the below has a 100% catch rate here.
It may be possible to simplify even further... for instance, normally a
.zip file wouldn't be application/octet-stream, but /x-zip-attachment.
But you never know what weird mail editors produce, so I like to have
some redudancy in the rules, to prevent false positives...
# Klez, Elkern & co viruses
# (Basically catch all executable attachments)
* ^Content-Type: .*/.*;$?.*NAME=.*\.(exe|com|cmd|bat|pif|scr|lnk)$
# W32/MyDoom.A (aka Mimail.R, Novarg.A, Shimg, W32.Novarg.A at mm,
W32/Mydoom at MM)
# Possibly also .B mutation
# All but .zip would already be picked up by the previous rule
* ^Content-Type: text/plain;$?.*charset="Windows-1252"$
Arjen Lentz, Technical Writer, Trainer
Brisbane, QLD Australia
MySQL AB, www.mysql.com
Sydney 1 Mar 2004 (5 days): Using & Managing MySQL Training
Training,Support,Licenses,T-shirts @ https://order.mysql.com/?marl
More information about the linux-aus