1 # This seems to catch a lot of spam, but not sure about false positive (from airmax.cf)
2 # pasc couldn't find any false positives on the lists he's on
3 header X_MESSAGE_INFO exists:X-Message-Info
4 score X_MESSAGE_INFO 4.0
6 # Added by pasc 2004/07/08 (sent by abuse@outblaze via karsten)
7 # host no longer exists according to administrator
8 header FAKE_OUTBLAZE_RCVD Received =~ /\.mr\.outblaze\.com/
9 describe FAKE_OUTBLAZE_RCVD Received header contains faked 'mr.outblaze.com'
10 score FAKE_OUTBLAZE_RCVD 3.0
12 # blarson 2005-01-19 (--pasc 2005-01-30)
13 header TRACKING subject =~ /\b(?:tracking|package|shipping|shipment|delivery) number :/i
14 describe TRACKING tracking number
17 # Sent in by blars (20050220) -- applied by pasc
18 body GUEBDE /http\:\/\/www\.gueb\.de\//
19 describe GUEBDE www.geub.de
23 rawbody PGPSIGNATURE /-----BEGIN PGP SIGNATURE-----/
24 describe PGPSIGNATURE Has a pgp signature (may not be valid, but who cares?)
28 # TODO: The rules below seem to be very similar; possibly fix them.
30 # These might trip up on non-english lists. We'll see.
31 # They're fucking up on GPG signatures
32 body MURPHY_WRONG_WORD1 /[bcdfghjklmnpqrstvwxz]{7,}/i
33 score MURPHY_WRONG_WORD1 0.1
35 body MURPHY_WRONG_WORD2 /[bcdfghjklmnpqrstvwxz]{6,}/i
36 score MURPHY_WRONG_WORD2 0.2
38 #Impronounceable. Need to check this one for accuracy (from airmax.cf)
39 body IMPRONONCABLE_1 /([bcdfghjklmnpqrstvwxz]){6,20}/
40 describe IMPRONONCABLE_1 Some words aren't easy to pronounce (too much vowels)
41 body IMPRONONCABLE_2 /(([abcdefghijklmnopqrstvwxyz]){1,9}\d{1,4}){2,9}/
42 describe IMPRONONCABLE_2 Some words aren't easy to pronounce (mixed numbers and lower-case letters)
44 # From http://www.exit0.us/index.php/FredsRules
45 # Added by pasc 2004/06/20
47 body __FVGT_b_OBFU_J /j(b|c|f|g|w)/i
48 body __FVGT_b_OBFU_OTHER /(vj|vk|xj|xk|yy|zf|zj)/i
49 body __FVGT_b_OBFU_Q0 /(j|k|p|q|t|v|w|z)q/i
50 body __FVGT_b_OBFU_Q1 /q(a|f|h|j|k|m|n|s|y)/i
51 body __FVGT_b_OBFU_V /(f|g|q|w)v/i
52 body __FVGT_b_OBFU_X /(c|g|j|k|q|s|v|z)x/i
53 body __FVGT_b_OBFU_Z /(f|j|k|p|q|x)z/i
54 meta FVGT_m_MULTI_ODD ((__FVGT_b_OBFU_J + __FVGT_b_OBFU_OTHER + __FVGT_b_OBFU_Q0 + __FVGT_b_OBFU_Q1 + __FVGT_b_OBFU_V + __FVGT_b_OBFU_X + __FVGT_b_OBFU_Z) > 1)
55 describe FVGT_m_MULTI_ODD FVGT - contains multiple odd letter combinations
56 score FVGT_m_MULTI_ODD 0.02
59 header NEPEYO From =~ /nepeyo\@catlover/
60 describe NEPEYO spamvertizers
63 # cjwatson, 2003/07/28
64 header MP3_PLAYERS Subject =~ /New mp3 player,usb flash drive/
65 describe MP3_PLAYERS Spam from "HY Tech"
69 header UOSJUNK Subject =~ /UOS online Degree Programme/i
70 describe UOSJUNK Spam from UOS
73 # cjwatson, 2004-02-27
74 body GAS_MILEAGE /This amazing, revolutionary device|www\.mrev\.biz/
75 describe GAS_MILEAGE Fuel-saving snake oil
79 body FUELSAVER /fuel.?saver/i
80 describe FUELSAVER Fuel Saver spam
84 body CABLEFILTERZ /cablefilterz/
85 describe CABLEFILTERZ cablefilterz spam
89 header PARENNUM subject =~ /^\(\s*([0-9\/]+\)|\%RND)/
90 describe PARENNUM paren number in subject
94 # bounces our bounces.... (had negitive score)
95 header COVADRT X-RT-Loop-Prevention =~ /^Covad$/
96 describe COVADRT Covad request tracker bounces
100 header ROBERTOJIMENOCA from =~ /ROBERTOJIMENOCA\@terra\.es/
101 describe ROBERTOJIMENOCA ROBERTOJIMENOCA sends spammy looking messages
102 score ROBERTOJIMENOCA -2
105 header TURBOPRO subject =~ /\bturbonet pro\b/i
106 describe TURBOPRO dialup accelerator spam
110 header RESUBJECT subject =~ /\sRe(?:\[\d+\])?:\s*$/i
111 describe RESUBJECT re nothing
114 # blarson 2004-10-22 2007-07-18 up score
115 header NOSUBJECT subject =~ /^\s*$/
116 describe NOSUBJECT No subject
120 full NEXTPART /\-\=\_NextPart\_000\_/
121 describe NEXTPART spammer mime separator
125 full CT_IMAGE /Content\-Type\:\s*image/i
126 describe CT_IMAGE Picture attached
129 # blarson 2006-12-01 (score so low since it will also hit CT_IMAGE)
130 header CT_IMAGE_HEAD content-type =~ /image/
131 describe CT_IMAGE_HEAD entire message is image
132 score CT_IMAGE_HEAD 2.5
136 header THREADINDEX Thread-Index =~ /A-Z/
137 describe THREADINDEX thread-index header on spam
138 score THREADINDEX 1.5
141 header FORDASH subject =~ /\bFor \- \d+/
142 describe FORDASH for dash
146 header KOREAN subject =~ /\=\?koi8\-r/
147 describe KOREAN Korean Character set spam
151 header FWDNAME subject =~ /fwd\: \w+\s*$/
152 describe FWDNAME fwd: name spam
156 body NUMONLY /^\s*\d+\s*$/
157 describe NUMONLY number only body
161 header THUNDERB User-Agent =~ /^Thunderbird 1\.5\.0\.10/
162 describe THUNDERB spam missing content
167 header FAILNOTE subject =~ /Failure notice\:/
168 describe FAILNOTE bounced spam
172 rawbody CTINLINE /^Content\-Disposition\: inline\;\b/
173 describe CTINLINE Inline attachment
177 body BOXTRAPPER /^This message is a reply to a boxtrapper verifcation message\./
178 describe BOXTRAPPER boxtrapper spam
182 body PROMOCODE /^promo code\:/i
183 describe PROMOCODE promo code
187 body XLMAN /\bwww\.xl\-man\.net\b/
188 describe XLMAN xl-man spam
192 body COSTUMER /^Dear costumer\b/
193 describe COSTUMER paypal scam
197 body PRIVATE /^Your private and confidential message is attached\./
198 describe PRIVATE private message
202 header AUTOGENERATE auto-submitted =~ /auto/i
203 describe AUTOGENERATE auto generated crap
207 body PRIVPDF /^All our private messages are in pdf format/
208 describe PRIVPDF private pdf
212 header AUTORESPOND X-Autorespond =~ /./
213 describe AUTORESPOND Automatic response
216 header AUTOMAILER X-Mailer =~ /autors/
217 describe AUTOMAILER Auto response mailer
221 header OUTOFOFFICE_SUB subject =~ /Out_of_Office/
222 describe OUTOFOFFICE_SUB broken autoresponder
223 score OUTOFOFFICE_SUB 6
225 body OUTOFOFFICE /out of the office/i
226 describe OUTOFOFFICE Out of the office
229 # blarson 2007-08-01 \w was too broad 2007-08-12 add dash, at least 3 digits
230 header SUBENDNUM subject =~ /[a-zA-Z!]-?\d{3,}$/
231 describe SUBENDNUM Subject ends in word989
235 body PRIVMES /^You have been sent a private message/
236 describe PRIVMES more pdf spam
240 header MIXEDBDN Content-Type =~ /multipart\/mixed\;.*boundary\=\"\-{4,}\d{4,}\"/
241 describe MIXEDBDN more pdf spam
245 header DOTZIP subject =~ /\d\.zip\b/
246 describe DOTZIP zip spam
250 header MIXED2 Content-Type =~ /multipart\/mixed\;charset\=iso\-8859\-1\;.*boundary\=\"\-\-\-\-\=\_\d{8,}\_\d{4,}\"/
251 describe MIXED2 more pdf spam
255 header KEYENCE From =~ /KEYENCE CORPORATION/
256 describe KEYENCE opt out spam
260 header NOSUB subject =~ /\(No Subject\)$/i
261 describe NOSUB explicity no subject
265 header CTPDF Content-Type =~ /\bapplication\/pdf\;/i
266 describe CTPDF more pdf spam
270 header JAPSUB subject =~ /\=\?iso\-2022\-jp/i
271 describe JAPSUB subject in japanese
275 header XMSATT X-MS-Has-Attach =~ /yes/i
276 describe XMSATT more pdf spam
285 header XJ2ID X-J2Id =~ /\d+/
286 describe XJ2ID fax bounce
290 header LONGWORD subject =~ /\b[\w\d]{30,}/i
291 describe LONGWORD long word in subject
295 header TESTIMONIAL subject =~ /\btestimonial/i
296 describe TESTIMONIAL testimonials
300 header ITXS subject =~ /\bit\`s\b/i
305 rawbody TINYFONT /\bFONT-SIZE\:\s+[123]px\;/i
306 describe TINYFONT tiny font specified
310 rawbody ZIPFILE /\bfilename\=.*\.zip\b/i
311 describe ZIPFILE zipfile attachment
315 header SPACESUB subject =~ /^\s\w/
316 describe SPACESUB extra space before subject
320 header YAHOOCALENDAR X-Yahoo-Newman-Property: =~ /calendar-invite/i
321 describe YAHOOCALENDAR Calendar invite from yahoo; broken captcha
322 score YAHOOCALENDAR 4
325 header BOUNDARYID content-type =~ /\bboundary\=\"Boundary_\(ID_/
326 describe BOUNDARYID spamware boundary
330 body GBKXWFLXF /\bgbkxwflxf\b/
331 describe GBKXWFLXF gbkxwflxf
335 body LUKSUS /\bluksus\b/i
337 describe LUKSUS Luksus
340 header XIRONPORT X-IronPort-Anti-Spam-Filtered =~ /true/
341 describe XIRONPORT claims to be ironport filtered
345 header AUTORESPON subject =~ /Auto_response/
346 describe AUTORESPON Auto_response
350 header XWUM x-wum-to =~ /./
351 describe XWUM X-WUM-TO
355 # compensate false-positives for 140.Red-80-25-20.staticIP.rima-tde.net and stuff
356 header STATIC_RIMA_TDE received =~ /staticIP\.rima-tde\.net/
357 describe STATIC_RIMA_TDE static IP from rima-tde.net
358 score STATIC_RIMA_TDE -5
360 # cord 2008-11-30 # compensate LDO_SUBSCRIBER bonus for Forum2Mail-Gw
361 full NABBLE /lists\@nabble\.com/
362 describe NABBLE sent through nabble.com
366 full HTML_NBSP /(\ ){3,}/
367 describe HTML_NBSP Lots of