OpenBSD Journal

[Tip] ILOVEYOU worm sendmail rules

Contributed by Dengue on from the lowest-common-denominator dept.

I wouldn't say I have a lot of sympathy for people who've been bitten by the ILOVEYOU worm.
[Updated mc file available]
[Updated yet again to handle the .F, .G, & .I variants]

Let's face it, if you click on anything attached to an email reading:

"kindly check the attached LOVELETTER coming from me."

    [ Part 2, Application/OCTET-STREAM (Name: ]
    [ "LOVE-LETTER-FOR-YOU.TXT.vbs")  10KB. ]
    [ Cannot display this part. Press "V" then "S" to save in a file. ]
You are naive and stupid.
Hey, brother, I have a BRIDGE I'd like to sell you.
I won't even go there about the Outlook mail client.

But I recognize that some of us are responsible for some of them, so courtesty of BUGTRAQ and SENDMAIL I present for you a modified that you can use to regenerate your /etc/ or /etc/mail/ . to do that:

m4 >
cp /etc/ /etc/sendmail.bak
cp /etc/
kill -HUP `head -1 /var/run/`
I recommend checking the maillog to make sure sendmail restarted correctly, and then testing the ruleset. You should see something like this:

May  5 04:52:25 eris sendmail[32355]:
restarting /usr/sbin/sendmail on signal
May  5 04:52:25 eris sendmail[13476]:
starting daemon (8.9.3): SMTP+queueing@00:30:00
May  5 04:52:39 eris sendmail[24874]: EAA24874:
arg1=ILOVEYOU, relay=dengue@localhost, reject=553
This message may contain the LoveLetter virus.
May  5 04:52:39 eris sendmail[24874]: EAA24874:

, size=365, class=0, pri=30365, nrcpts=1,
,proto=ESMTP, relay=dengue@localhost

Now keep in mind, this is a BRAINDEAD® solution to this, since all you have to do to defeat it is change the subject line. A better fix would be attachment content scanning. I encourage everyone to submit better rulesets, and I will post them here.

This solution was built and tested on Sendmail 8.9.3 on OpenBSD 2.6. YMMV


(Comments are closed)

  1. By Anonymous Coward () on

    Does anyone have a snort rule for this yet?

  2. By Tyrann () on

    It seems that other one are coming... They look like derivatives from the "ILOVEYOU" virus. Just prepare for another round of mail viruses.


  3. By KG Higgins () on

    I won't even go there about the Outlook mail client.

    I will. If you went to an IS manager and told them "I'm going to install client software on all of your desktops that introduces subtle and frustrating inconsistencies into the way it handles the protocols it are supposed to be implementing. As an added bonus, this client will allow perfect strangers to send arbitrary code to it from anywhere, which it will then execute without reference to any sort of security model."

    Strangely, they said yes. The fact that Outlook (or Active X within a browser) does this is just too farfetched I guess.

    Back in - 1995? I think? - I remember getting a couple of panicked messages from people who had received the "Good Times" virus hoax message. I reassured them that although it was good to be cautious, there was no chance that a virus like this could exist. I'm thinking somehow Good Times got included in the requirements doc for MS Outlook by mistake, and they went ahead and built something that would make it possible.


Copyright © - Daniel Hartmeier. All rights reserved. Articles and comments are copyright their respective authors, submission implies license to publish on this web site. Contents of the archive prior to as well as images and HTML templates were copied from the fabulous original with Jose's and Jim's kind permission. This journal runs as CGI with httpd(8) on OpenBSD, the source code is BSD licensed. undeadly \Un*dead"ly\, a. Not subject to death; immortal. [Obs.]