You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Rich Shepard <rs...@appl-ecosys.com> on 2007/01/28 15:35:45 UTC
Ideas to Identify Base64-encoded Spam?
With your help the amount of spam getting past the various filters in my
inbox (and that of my fiancee) has dropped dramatically. I appreciate
learning from all of you.
The past couple of days has seen the arrival of a new mutant species of
spam: the empty message with a Windows .exe attachment that is base64
encoded. SpamAssassin is giving them scores of 0.0. I have a postfix filter
checking for exposed .exe attachments, but nothing seems to catch these
guys. To add insult to injury, I have a postfix body check for '/Empty or
malformed message/' that did nothing when the original message came in, but
prevented me from send it on to the list here. :-(
Below are the headers from one example, with the uucoded part removed. If
I tell pine to look at the attachments, and start to save it, the name comes
up with a .exe extension. If anyone has suggestions on how to identify and
reject this format, please share them with me.
Rich
--
Richard B. Shepard, Ph.D. | The Environmental Permitting
Applied Ecosystem Services, Inc. | Accelerator(TM)
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863
===========================================================================
> From rbkcxy@landrovernb.dealerspace.com Sun Jan 28 04:31:09 2007
Return-Path: <rb...@landrovernb.dealerspace.com>
X-Original-To: postmaster@appl-ecosys.com
Delivered-To: postmaster@appl-ecosys.com
Received: by salmo.appl-ecosys.com (Postfix, from userid 1006)
id E6FC7DE; Sun, 28 Jan 2007 04:31:08 -0800 (PST)
X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on
salmo.appl-ecosys.com
X-Spam-Level: X-Spam-Status: No, score=0.0 required=4.0 tests=BAYES_50
autolearn=no
version=3.1.7
Received: from abjn32.neoplus.adsl.tpnet.pl (abjn32.neoplus.adsl.tpnet.pl
[83.7.155.32])
by salmo.appl-ecosys.com (Postfix) with SMTP id 210A258
for <po...@appl-ecosys.com>; Sun, 28 Jan 2007 04:29:55 -0800 (PST)
Received: from egvvx ([116.82.221.212])
by abjn32.neoplus.adsl.tpnet.pl (8.13.4/8.13.4) with SMTP id
l0SCY7oD053228;
Sun, 28 Jan 2007 13:34:07 +0100
Message-ID: <45...@landrovernb.dealerspace.com>
Date: Sun, 28 Jan 2007 13:29:22 +0100
From: Dooley Dinah <rb...@landrovernb.dealerspace.com>
User-Agent: Thunderbird 1.5.0.9 (Windows/20061207)
MIME-Version: 1.0
To: postmaster@appl-ecosys.com
Subject: Love at First Sight
Content-Type: multipart/related;
boundary="------------010904090903010104020004"
[ Empty or malformed message. Displaying raw text. ]
--------------010904090903010104020004
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
--------------010904090903010104020004
Content-Type: application/x-msdownload;
name="flash postcard.exe"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="flash postcard.exe"
RE: Ideas to Identify Base64-encoded Spam?
Posted by Giampaolo Tomassoni <g....@libero.it>.
From: Rich Shepard [mailto:rshepard@appl-ecosys.com]
>
> With your help the amount of spam getting past the various
> filters in my
> inbox (and that of my fiancee) has dropped dramatically. I appreciate
> learning from all of you.
>
> The past couple of days has seen the arrival of a new mutant species of
> spam: the empty message with a Windows .exe attachment that is base64
> encoded. SpamAssassin is giving them scores of 0.0. I have a
> postfix filter
> checking for exposed .exe attachments, but nothing seems to catch these
> guys. To add insult to injury, I have a postfix body check for '/Empty or
> malformed message/' that did nothing when the original message
> came in, but
> prevented me from send it on to the list here. :-(
>
> Below are the headers from one example, with the uucoded part
> removed. If
> I tell pine to look at the attachments, and start to save it, the
> name comes
> up with a .exe extension. If anyone has suggestions on how to identify and
> reject this format, please share them with me.
Also, I get these rules fired by-passing amavisd's blocking functions:
0.7 FH_HOST_EQ_D_D_D_D Host starts with d-d-d-d
4.2 HELO_DYNAMIC_IPADDR Relay HELO'd using suspicious hostname (IP addr
1)
1.4 FH_HELO_EQ_D_D_D_D Helo is d-d-d-d
3.5 BAYES_99 BODY: Bayesian spam probability is 99 to 100%
[score: 1.0000]
2.2 DCC_CHECK Listed in DCC (http://rhyolite.com/anti-spam/dcc/)
2.4 RCVD_IN_WHOIS_BOGONS RBL: CompleteWhois: sender on bogons IP block
[112.140.35.193 listed in combined-HIB.dnsiplists.completewhois.com]
1.9 RCVD_IN_NJABL_DUL RBL: NJABL: dialup sender did non-local SMTP
[82.247.67.3 listed in combined.njabl.org]
0.0 RCVD_IN_PBL RBL: Received via a relay in Spamhaus PBL
[82.247.67.3 listed in zen.spamhaus.org]
2.0 FM_DDDD_TIMES_2 Dual helo + host eq d_d_d_d
Did you get a latest ruleset and network tests on?
Cheers,
Giampaolo
>
> Rich
>
> --
> Richard B. Shepard, Ph.D. | The Environmental Permitting
> Applied Ecosystem Services, Inc. | Accelerator(TM)
> <http://www.appl-ecosys.com> Voice: 503-667-4517 Fax:
> 503-667-8863
> ==================================================================
> =========
> > From rbkcxy@landrovernb.dealerspace.com Sun Jan 28 04:31:09 2007
> Return-Path: <rb...@landrovernb.dealerspace.com>
> X-Original-To: postmaster@appl-ecosys.com
> Delivered-To: postmaster@appl-ecosys.com
> Received: by salmo.appl-ecosys.com (Postfix, from userid 1006)
> id E6FC7DE; Sun, 28 Jan 2007 04:31:08 -0800 (PST)
> X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on
> salmo.appl-ecosys.com
> X-Spam-Level: X-Spam-Status: No, score=0.0 required=4.0 tests=BAYES_50
> autolearn=no
> version=3.1.7
> Received: from abjn32.neoplus.adsl.tpnet.pl (abjn32.neoplus.adsl.tpnet.pl
> [83.7.155.32])
> by salmo.appl-ecosys.com (Postfix) with SMTP id 210A258
> for <po...@appl-ecosys.com>; Sun, 28 Jan 2007 04:29:55
> -0800 (PST)
> Received: from egvvx ([116.82.221.212])
> by abjn32.neoplus.adsl.tpnet.pl (8.13.4/8.13.4) with SMTP id
> l0SCY7oD053228;
> Sun, 28 Jan 2007 13:34:07 +0100
> Message-ID: <45...@landrovernb.dealerspace.com>
> Date: Sun, 28 Jan 2007 13:29:22 +0100
> From: Dooley Dinah <rb...@landrovernb.dealerspace.com>
> User-Agent: Thunderbird 1.5.0.9 (Windows/20061207)
> MIME-Version: 1.0
> To: postmaster@appl-ecosys.com
> Subject: Love at First Sight
> Content-Type: multipart/related;
> boundary="------------010904090903010104020004"
>
>
> [ Empty or malformed message. Displaying raw text. ]
>
> --------------010904090903010104020004
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> Content-Transfer-Encoding: 7bit
>
>
> --------------010904090903010104020004
> Content-Type: application/x-msdownload;
> name="flash postcard.exe"
> Content-Transfer-Encoding: base64
> Content-Disposition: inline;
> filename="flash postcard.exe"
RE: Ideas to Identify Base64-encoded Spam?
Posted by Giampaolo Tomassoni <g....@libero.it>.
From: Rich Shepard [mailto:rshepard@appl-ecosys.com]
>
> With your help the amount of spam getting past the various
> filters in my
> inbox (and that of my fiancee) has dropped dramatically. I appreciate
> learning from all of you.
>
> The past couple of days has seen the arrival of a new mutant species of
> spam: the empty message with a Windows .exe attachment that is base64
> encoded. SpamAssassin is giving them scores of 0.0. I have a
> postfix filter
> checking for exposed .exe attachments, but nothing seems to catch these
> guys. To add insult to injury, I have a postfix body check for '/Empty or
> malformed message/' that did nothing when the original message
> came in, but
> prevented me from send it on to the list here. :-(
Don't: it is a virus...
> Below are the headers from one example, with the uucoded part
> removed. If
> I tell pine to look at the attachments, and start to save it, the
> name comes
> up with a .exe extension. If anyone has suggestions on how to identify and
> reject this format, please share them with me.
>
> Rich
Rich, it is not spam: it is a mutant virus. I've amavisd-new installed in my systems and I managed to block mails with .exe attachments, since often ClamAV and BDC are not up-to-date enough to identify this threat.
Giampaolo
>
> --
> Richard B. Shepard, Ph.D. | The Environmental Permitting
> Applied Ecosystem Services, Inc. | Accelerator(TM)
> <http://www.appl-ecosys.com> Voice: 503-667-4517 Fax:
> 503-667-8863
> ==================================================================
> =========
> > From rbkcxy@landrovernb.dealerspace.com Sun Jan 28 04:31:09 2007
> Return-Path: <rb...@landrovernb.dealerspace.com>
> X-Original-To: postmaster@appl-ecosys.com
> Delivered-To: postmaster@appl-ecosys.com
> Received: by salmo.appl-ecosys.com (Postfix, from userid 1006)
> id E6FC7DE; Sun, 28 Jan 2007 04:31:08 -0800 (PST)
> X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on
> salmo.appl-ecosys.com
> X-Spam-Level: X-Spam-Status: No, score=0.0 required=4.0 tests=BAYES_50
> autolearn=no
> version=3.1.7
> Received: from abjn32.neoplus.adsl.tpnet.pl (abjn32.neoplus.adsl.tpnet.pl
> [83.7.155.32])
> by salmo.appl-ecosys.com (Postfix) with SMTP id 210A258
> for <po...@appl-ecosys.com>; Sun, 28 Jan 2007 04:29:55
> -0800 (PST)
> Received: from egvvx ([116.82.221.212])
> by abjn32.neoplus.adsl.tpnet.pl (8.13.4/8.13.4) with SMTP id
> l0SCY7oD053228;
> Sun, 28 Jan 2007 13:34:07 +0100
> Message-ID: <45...@landrovernb.dealerspace.com>
> Date: Sun, 28 Jan 2007 13:29:22 +0100
> From: Dooley Dinah <rb...@landrovernb.dealerspace.com>
> User-Agent: Thunderbird 1.5.0.9 (Windows/20061207)
> MIME-Version: 1.0
> To: postmaster@appl-ecosys.com
> Subject: Love at First Sight
> Content-Type: multipart/related;
> boundary="------------010904090903010104020004"
>
>
> [ Empty or malformed message. Displaying raw text. ]
>
> --------------010904090903010104020004
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> Content-Transfer-Encoding: 7bit
>
>
> --------------010904090903010104020004
> Content-Type: application/x-msdownload;
> name="flash postcard.exe"
> Content-Transfer-Encoding: base64
> Content-Disposition: inline;
> filename="flash postcard.exe"
RE: Ideas to Identify Base64-encoded Spam?
Posted by Rich Shepard <rs...@appl-ecosys.com>.
On Sun, 28 Jan 2007, Giampaolo Tomassoni wrote:
> Yes, they are. But I see often legitimate messages like this. They are
> probably used when sending something to somebody while having a voice
> conversation with him/her. I did it, too.
Giampaolo,
In which case, nothing is lost if the message doesn't appear in our
inboxes.
> If you could turn network tests on, you probably may at least reduce the
> number of accepted viral e-mails: most of them come from infected dialup
> hosts and get the score they deserve.
OK. I understood most of them to come from poorly secured zombies that
were taken over by the spammers. My mail logs show a lot of such junk from
cable and DSL connections. All Winduhs, of course.
> Anyway, this may work to you:
>
> body EMPTY_BODY m'^[^\n]+\n\s*$'
> describe EMPTY_BODY Message has subject but no body
> score EMPTY_BODY 0.001
>
> Your score mileage may vary... :)
Thank you. I'm taking it for a test drive.
Rich
--
Richard B. Shepard, Ph.D. | The Environmental Permitting
Applied Ecosystem Services, Inc. | Accelerator(TM)
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863
RE: Ideas to Identify Base64-encoded Spam?
Posted by Giampaolo Tomassoni <g....@libero.it>.
From: Rich Shepard [mailto:rshepard@appl-ecosys.com]
>
> On Sun, 28 Jan 2007, John D. Hardin wrote:
>
> > Please don't ask SA to become an antivirus or attachment file type
> > security policy enforcement tool. There are already very effective tools
> > to do perform those tasks.
>
> We run only linux here, so I ignore Microsoft virii and the like. But,
> when I get an empty message with an attached .exe file I see it as another
> form of obfuscated spam.
>
> Empty message bodies aren't legitimate SA targets?
Yes, they are. But I see often legitimate messages like this. They are probably used when sending something to somebody while having a voice conversation with him/her. I did it, too.
If you could turn network tests on, you probably may at least reduce the number of accepted viral e-mails: most of them come from infected dialup hosts and get the score they deserve.
Anyway, this may work to you:
body EMPTY_BODY m'^[^\n]+\n\s*$'
describe EMPTY_BODY Message has subject but no body
score EMPTY_BODY 0.001
Your score mileage may vary... :)
giampaolo
>
> Rich
>
> --
> Richard B. Shepard, Ph.D. | The Environmental Permitting
> Applied Ecosystem Services, Inc. | Accelerator(TM)
> <http://www.appl-ecosys.com> Voice: 503-667-4517 Fax:
> 503-667-8863
Re: Ideas to Identify Base64-encoded Spam?
Posted by Rich Shepard <rs...@appl-ecosys.com>.
On Sun, 28 Jan 2007, John D. Hardin wrote:
> Please don't ask SA to become an antivirus or attachment file type
> security policy enforcement tool. There are already very effective tools
> to do perform those tasks.
We run only linux here, so I ignore Microsoft virii and the like. But,
when I get an empty message with an attached .exe file I see it as another
form of obfuscated spam.
Empty message bodies aren't legitimate SA targets?
Rich
--
Richard B. Shepard, Ph.D. | The Environmental Permitting
Applied Ecosystem Services, Inc. | Accelerator(TM)
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863
Re: Ideas to Identify Base64-encoded Spam?
Posted by "John D. Hardin" <jh...@impsec.org>.
On Sun, 28 Jan 2007, Rich Shepard wrote:
> The past couple of days has seen the arrival of a new mutant
> species of spam: the empty message with a Windows .exe attachment
> that is base64 encoded. SpamAssassin is giving them scores of 0.0.
Please don't ask SA to become an antivirus or attachment file type
security policy enforcement tool. There are already very effective
tools to do perform those tasks.
Let's keep SA focused on being the best tool for detecting unsolicited
commercial messages, phishing and fraud.
--
John Hardin KA7OHZ http://www.impsec.org/~jhardin/
jhardin@impsec.org FALaholic #11174 pgpk -a jhardin@impsec.org
key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
There is no doubt in my mind that millions of lives could have been
saved if the people were not "brainwashed" about gun ownership and
had been well armed. ... Gun haters always want to forget the Warsaw
Ghetto uprising, which is a perfect example of how a ragtag,
half-starved group of Jews took 10 handguns and made asses out of
the Nazis. -- Theodore Haas, Dachau Survivor
-----------------------------------------------------------------------
15 days until Abraham Lincoln's and Charles Darwin's 198th Birthdays