diff --git a/KAM.cf b/KAM.cf index a67541c..fae0d89 100644 --- a/KAM.cf +++ b/KAM.cf @@ -1,6 +1,6 @@ #KAM.cf - SpamAssassin Rules -#Author: Kevin A. McGrail with contributions from Joe Quinn, Karsten Bräckelmnn, +#Author: Kevin A. McGrail with contributions from Joe Quinn, Karsten Bräckelmann, # & Bill Cole #Email: Kevin.McGrail@McGrail.com - NOTE: Questions about spam are best submitted @@ -55,7 +55,7 @@ #https://raptor.pccc.com/free_spam_consultation.cgim # -#Copyright (c) 2018 Kevin A. McGrail and the McGrail Foundation +#Copyright (c) 2019 Kevin A. McGrail and the McGrail Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -91,7 +91,7 @@ body __KAM_PHISH4_2 /dear.{0,50}customer|automated.message|spam.activ body __KAM_PHISH4_3 /(confirm|verify|update).your.(identity|account)|account.password|credit.(bureau|profile)|identity.theft|accredited.commission|security.concern|kindly.find.enclosed/i ifplugin Mail::SpamAssassin::Plugin::MIMEHeader - mimeheader __KAM_PHISH4_4 Content-Type =~ /(verification|information|form).htm/i + mimeheader __KAM_PHISH4_4 Content-Type =~ /(verification|information|form)\.htm/i endif meta KAM_PHISH4 (__KAM_PHISH4_1 + __KAM_PHISH4_2 + __KAM_PHISH4_3 + __KAM_PHISH4_4 >= 3) @@ -1440,8 +1440,11 @@ body __KAM_PHISH2_7 /extra security check|security.tip/i describe KAM_PHISH2 Prevalent Phishing Scam emails score KAM_PHISH2 2.0 -meta KAM_PHISH2 (__KAM_PHISH2_1 + __KAM_PHISH2_2 >= 2) && ((__KAM_IPHTTP + __KAM_URIBL_PCCC + __KAM_PHISH2_3 >= 1) || (__KAM_PHISH2_4 + __KAM_PHISH2_5 + __KAM_PHISH2_6 + __KAM_PHISH2_7 >= 4)) - +ifplugin Mail::SpamAssassin::Plugin::KAMOnly + meta KAM_PHISH2 (__KAM_PHISH2_1 + __KAM_PHISH2_2 >= 2) && ((__KAM_IPHTTP + __KAM_URIBL_PCCC + __KAM_PHISH2_3 >= 1) || (__KAM_PHISH2_4 + __KAM_PHISH2_5 + __KAM_PHISH2_6 + __KAM_PHISH2_7 >= 4)) +else + meta KAM_PHISH2 (__KAM_PHISH2_1 + __KAM_PHISH2_2 >= 2) && ((__KAM_IPHTTP + __KAM_PHISH2_3 >= 1) || (__KAM_PHISH2_4 + __KAM_PHISH2_5 + __KAM_PHISH2_6 + __KAM_PHISH2_7 >= 4)) +endif #CRAZY HEX EMPTY MESSAGE body __KAM_HEX1 /^[a-f0-9]{8}(\b|$)/i @@ -2602,7 +2605,7 @@ score KAM_SHORT 0.001 describe KAM_SHORT Use of a URL Shortener for very short URL #URL SHORTENER - META RULE TO SEE IF URL SHORTENER IS IN USE - THANKS TO SHANE WILLIAMS and RW for HELP - More thanks to Giovanni Bechis -uri __KAM_SHORT /^http:\/\/(?:bit\.ly|tinyurl\.com|ow\.ly|is\.gd|tumblr\.com|formspring\.me|ff\.im|youtu\.be|tl\.gd|plurk\.com|migre\.me|j\.mp|cli\.gs|goo\.gl|yfrog\.com|lnk\.ms|su\.pr|fb\.me|alturl\.com|wp\.me|ping\.fm|chatter\.com|post\.ly|twurl\.nl|tiny\.cc|4sq\.com|ustre\.am|short\.to|u\.nu|flic\.kr|budurl\.com|digg\.com|twitvid\.com|gowal\.la|om\.ly|justin\.tv|icio\.us|p\.gs|loopt\.us|tcrn\.ch|xrl\.us|wpo\.st|bkite\.com|t\.cn|t\.co|x\.co|hop\.kz|urla\.ru|fw\.to|back\.ly)\/[^\/]{3}\/?/ +uri __KAM_SHORT /^http:\/\/(?:bit\.ly|tinyurl\.com|ow\.ly|is\.gd|tumblr\.com|formspring\.me|ff\.im|youtu\.be|tl\.gd|plurk\.com|migre\.me|j\.mp|cli\.gs|goo\.gl|yfrog\.com|lnk\.ms|su\.pr|fb\.me|alturl\.com|wp\.me|ping\.fm|chatter\.com|post\.ly|twurl\.nl|tiny\.cc|4sq\.com|ustre\.am|short\.to|u\.nu|flic\.kr|budurl\.com|digg\.com|twitvid\.com|gowal\.la|om\.ly|justin\.tv|icio\.us|p\.gs|loopt\.us|tcrn\.ch|xrl\.us|wpo\.st|bkite\.com|t\.cn|t\.co|x\.co|hop\.kz|urla\.ru|fw\.to|back\.ly|justpaste\.it)\/[^\/]{3}\/?/ # GENERIC RULE FOR TINY DOMAINS, WHICH WILL LIKELY BE URL SHORTENERS uri __KAM_TINYDOMAIN /https?:\/\/(?:[^\/]{1,4})\..{2,7}\//i @@ -2697,7 +2700,7 @@ describe KAM_PRIV Private Messages using Exploits in attached HTML files score KAM_PRIV 5.0 #DIV -rawbody __KAM_DIV1 /Viagr?|Cial?
orn|promising evidence|video|masturbat|playing with yourself|wanking|lf orn|promising evidence|video|masturbat|playing with yourself|wanking|lf