Skip to content

Instantly share code, notes, and snippets.

View hojendiz's full-sized avatar
😄
Trying

Hugo Ojendiz hojendiz

😄
Trying
View GitHub Profile
@hojendiz
hojendiz / local.cf
Last active February 7, 2019 13:51
Stop email spoofing by having two email address at the From header. Spamassassin Rule
# Some malwares are implementing a technique to spoof email that consist in having two email address in the "From" header:
# From: Amazon Legit Account <confirm@amazon.com> <reception.lvh@hackedemail-domain.com>
# Usually the email clients only show the first email
# This is a local spamassassin rule to prevent this kind of email spoofing.
describe LOCAL_TWO_FROM_EMAILS The From has two emails, probably email spoofing
header LOCAL_TWO_FROM_EMAILS From =~ /<.*\@.*>\s+<.*\@.*>/i
score LOCAL_TWO_FROM_EMAILS 9.0 # Set this value at your discretion