LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Snowshoe email filter for Thunderbird (https://www.linuxquestions.org/questions/linux-general-1/snowshoe-email-filter-for-thunderbird-4175507117/)

mike acker 06-05-2014 07:27 AM

Snowshoe email filter for Thunderbird
 
so it seems we now have this "snowshow" type of spam-- where random "from" addresses are used.

the Thunderbird filter for "not in my address book" re-directs these messages into my "Fraud" folder naturally, and that's All Good

the messages i'm getting now though are adverts for rogue pharmacies and i want to just delete these instead of posting them for review

but: the messages are written in html with all of the text
written in html like this:

style=3D"color:#DD694B; font-size:24pt">D</span>QÈQ§<span =

the D there is part of their message
"MEDICATIONS AT THE BEST PRICE"
but as you see they have obfuscated the source so that
a filter is not easy to apply against that string --
as the string does not occur in the body(source) only in the
HTML presentation

what I need is the ability to apply the filter against the RAW HTML --
not just against its enclosed text strings

any ideas/experience on this ?


dijetlo 06-07-2014 10:15 AM

You have no control over the mail server?

Generally efficient spam blocking is done in the mail header, blocking regular expressions in the body of the message is slow and time consuming, especially if your refreshing your maildir from the server at regular intervals. On top of that, depending on how your mail client is set up, you may only be downloading the headers and pull down the messages when you select the header, in which case regular expression tests run against the body of the message will have no effect.
Why don't you post a header from a couple of the offending messages and maybe I can help you.

mike acker 06-07-2014 06:16 PM

snowshoe filter ( cont'd )
 
I'll certanly appreciate any help!!!!!
I'm running Thunderbird 24.5 on a LMDE/MINT client

here's one example:

Quote:

From - Sat May 31 19:24:56 2014
X-Mozilla-Status: 0001
X-Mozilla-Status2: 00000000
X-Mozilla-Keys:
Return-path: <drugs_best12@avangarddsl.ru>
Envelope-to: bill@napfn.com
Delivery-date: Sat, 31 May 2014 14:22:47 -0400
Received: from pppoe.178-65-198-8.dynamic.avangarddsl.ru ([178.65.198.8]:2640)
by cpanel006.corecommhosting.com with esmtp (Exim 4.82)
(envelope-from <drugs_best12@avangarddsl.ru>)
id 1Wqnva-00014a-6j
for bill@napfn.com; Sat, 31 May 2014 14:22:47 -0400
From: Medications Mall <drugs_best12@avangarddsl.ru>
To: <bill@napfn.com>
Subject: BEST MEDS for the BEST PRICE !
Date: Sat, 31 May 2014 22:22:40 +0400
MIME-Version: 1.0
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<span style=3D"color:#F2F6F7; =
font-size:10pt">_________________________________________________________=
_______________Answered the name of your mother. Repeated the couch =
beside adam</span>
<br>
<div align=3D"center">
<table border=3D"0" width=3D"81%" cellspacing=3D"2" =
style=3D"color:#EAE3EC; background-color:#E9EDE2; font-family:arial, new =
york, sans-serif; font-size:1px">
<tr>
<td colspan=3D"2">x&sup;1<span style=3D"color:#D3926A; =
font-size:24pt">H</span>Uz&int;<span style=3D"color:#D3926A; =
font-size:24pt">I</span>23L<span style=3D"color:#D3926A; =
the spammers vary the subject line as well as the from address.
it's an anoyance really, as my Personal Friends e/mail address
is white-listed against a selected address book. this is very effective
but I'd like to exclude these drug-scam messages entirely. I route
unkonwn senders into a REVIEW folder which is where these drug scams end up.

http://napfn.com/snowshoe.png

dijetlo 06-07-2014 06:32 PM

Quote:

inetnum: 178.65.128.0 - 178.65.255.255
netname: RU-AVANGARD-DSL
descr: OJSC "North-West Telecom"
descr: Murmansk branch of the OJSC "North-West Telecom"
descr: 82a Lenina av., 183038, Murmansk, Russia
country: RU
I notice they aren't using character expansion to guess this email address, they know who their sending too.
(Hey Mike. I always check my posts and obfuscate someone@somwhere.com to someoneatsomewheredotcom.)

There is the IP range of RU-AVANGARD-DSL. Does thunderbird give you an option of "block by IP "range? How about the control panel options on the mail server? Third option is the hosting company your working through may have the blocking capability, let them know what's going on and see if they can block that range. 178.65.128.0 through 178.65.255.255

mike acker 06-07-2014 08:09 PM

Quote:

Originally Posted by dijetlo (Post 5184282)
I notice they aren't using character expansion to guess this email address, they know who their sending too.
(Hey Mike. I always check my posts and obfuscate someone@somwhere.com to someoneatsomewheredotcom.)

There is the IP range of RU-AVANGARD-DSL. Does thunderbird give you an option of "block by IP "range? How about the control panel options on the mail server? Third option is the hosting company your working through may have the blocking capability, let them know what's going on and see if they can block that range. 178.65.128.0 through 178.65.255.255

i thought about obfuscating my email address -- but -- the scammers already have it . i'm pretty sure they got it from a correspondent who just now started sending to my friends only e/mail -- using one of the big commercial freebe services
not that it matters *that much* : on this address you have to be white-listed to send to it.

i looked through Thunderbird for the options you suggested; no luck. I white-listed a couple addresses from the review folder though so this isn't really a pressing issue. I was just hoping we might know a way to get at these guys.

mike acker 06-10-2014 07:51 PM

exit needed
 
what we need in Thunderbird is a plug-in that would allow us to pass the message text to a C program for scanning. The usual return codes would be appropriate,-- 0 for OK and 1 for junk.

we could really tear up some spam that way

dijetlo 06-10-2014 08:31 PM

Mike take a look at

tools->message filters->new and then under the "subject" drop down it has an option for "customize".

If you click it, you get a blank entry box, try to put the IP range in there.

mike acker 06-11-2014 05:51 AM

Quote:

Originally Posted by dijetlo (Post 5186021)
Mike take a look at

tools->message filters->new and then under the "subject" drop down it has an option for "customize".

If you click it, you get a blank entry box, try to put the IP range in there.

this "snowshoe" spam seems to be distributed from a botnet: there is no commonality in the from IP range. the thing
that is common is a gross misuse of HTML tags in order to obfuscate the body of the message -- which would otherwise be
easy to catch with a filter. that's why we need to be able to get at the message source.

example
Quote:

<td colspan=3D"2">4Õl<span style=3D"color:#E19200; =
font-size:24pt">H</span>7éç<span style=3D"color:#E19200; =
font-size:24pt">I</span>tID<span style=3D"color:#E19200; =
font-size:24pt">G</span>Ñ0À<span style=3D"color:#E19200; =
font-size:24pt">H</span>&upsih;U&circ;<span style=3D"color:#E19200; =
font-size:24pt">-</span>Æyb<span style=3D"color:#E19200; =
font-size:24pt">Q</span>&not;Al<span style=3D"color:#E19200; =
font-size:24pt">U</span>Wc&prime;<span style=3D"color:#E19200; =
font-size:24pt">A</span>&eth;7T<span style=3D"color:#E19200; =
font-size:24pt">L</span>b16<span style=3D"color:#E19200; =
font-size:24pt">I</span>FÈ&iuml;<span style=3D"color:#E19200; =
font-size:24pt">T</span>2d3<span style=3D"color:#E19200; =
font-size:24pt">Y</span>åÍ&loz;<span style=3D"color:#E19200; =
font-size:24pt"> </span>&Pi;eN<span style=3D"color:#E19200; =
font-size:24pt">M</span>&and;1ó<span style=3D"color:#E19200; =
font-size:24pt">E</span>r&uml;&uml;<span style=3D"color:#E19200; =
font-size:24pt">D</span>n°&and;<span style=3D"color:#E19200; =
font-size:24pt">I</span>äi1<span style=3D"color:#E19200; =
font-size:24pt">C</span>&rfloor;æf<span style=3D"color:#E19200; =
font-size:24pt">A</span>p50<span style=3D"color:#E19200; =
font-size:24pt">T</span>&notin;µ&hArr;<span style=3D"color:#E19200; =
font-size:24pt">I</span>2&copy;P<span style=3D"color:#E19200; =
font-size:24pt">O</span>6Ñs<span style=3D"color:#E19200; =
font-size:24pt">N</span>aR8<span style=3D"color:#E19200; =
font-size:24pt">S</span>&iuml;z9<span style=3D"color:#E19200; =

dijetlo 06-11-2014 03:37 PM

netnum: 178.65.128.0 - 178.65.255.255
netname: RU-AVANGARD-DSL

I was assuming that was the IP range they are all coming from.
If we can't find a commonality among the messages, I'm afraid your stuck

mike acker 06-12-2014 05:42 PM

Quote:

Originally Posted by dijetlo (Post 5186543)
netnum: 178.65.128.0 - 178.65.255.255
netname: RU-AVANGARD-DSL

I was assuming that was the IP range they are all coming from.
If we can't find a commonality among the messages, I'm afraid your stuck

the nasties seem to have tapered off. if I could get at the message with a little C program exit I could count ( e.g. ) the number of times he used the span tag and when that is more than 6 or so set the error value in the return code... maybe relate it to the total length of the message as well
... the little C program exit would be fun to pass around as well in keeping with our great Linux Traditions


All times are GMT -5. The time now is 08:22 AM.