Download presentation
Presentation is loading. Please wait.
Published byJack Benson Modified over 8 years ago
1
Fighting Spam in an Exchange Environment Tzahi Kolber IT Supervisor - Polycom Israel
2
What will we cover: Problems and Concerns How to Fight Spam Exchange Server 2003 Anti-Spam Features Exchange Server 2007 Anti-spam Features How not to be blocked as spammers.
3
Problems and Concerns Unwanted messages are the #1 concern Risk to security and privacy and availability Phisher scams, ID and information theft Spoofing detected in 95% of phishing attacks Unauthorized relay Spam represents more than 60% of e-mail traffic Hotmail blocks more than 1 billion messages every day Viruses, Spyware, and Trojans (that can effects mobile devices too). http://www.messagelabs.com/emailthreats/ Low cost of entry, high profit, and anonymity All the economics favor the spammer and phisher
4
How to Fight Spam
5
False positives are primary concern Block at the gateway whenever possible User never sees it Reduces impact on bandwidth. Reduces impact of system resources on Exchange servers (CPU, I/O, DB size … ) Administration End-to-end solutions (including mobiles). Easy to manage Balance corporate and end-user control Enterprise Requirements for Anti-Spam
6
Connection filtering: where it came from Sender filtering: who sent it Recipient filtering: who it is for Microsoft Exchange Intelligent Message Filter: what it is about Sender ID: Is the sender is really the sender? * Restricted Distribution Lists Exchange Server 2003: Anti-Spam Features
7
Message Filtering in Exchange Sender ID Accept/ Deny Lists Block Lists Recipient Filter Sender Filtering Intelligent Message Filter Information Store
8
Outlook 2003 and Outlook Web Access junk e-mail Connection filtering Sender and recipient filtering Intelligent Message Filter Blocks of all incoming SMTP connections Blocks of remaining messages Message Filtering in Exchange AV Scanning
9
Anti-Spam Antivirus and Attachments Mailbox servers Clients Gateway Server Transport SCL=Gateway Threshold? Exchange IMF Sender/Recipient Filtering Filter Action Connection Filtering RBLs No Yes Gateway Server Transport Attachment Stripping Virus Scanning SCL Mailbox Server Store SCL Store Threshold User Safe/ Blocked Senders Spam? Junkmail Inbox YesNo SCL Outlook 2003 & Outlook Web Access Desktop Anti-Virus Attachment blocking User Safe/Blocked Senders Spam? JunkmailInbox Internet Message Mail flow
10
Layer 1 - Connection Filtering Check where the mail is coming from Support for multiple Real Time Block List (also known as DNS Block List) providers Global Accept and Deny Lists Configurable exception list that override the RBL Blocking by IP/subnet
11
Connection Filtering and SP2 Admins need to configure trusted internal IP gateway As a result connection filtering can now perform filtering inside the perimeter. As a result connection filtering can now perform filtering inside the perimeter. Connection Filtering relies on getting the original sender's IP to run the DNS query on In SP2 New Header parsing algorythm (P2 header) Looks for first untrusted IP addresses of SMTP sender servers
12
Filters messages sent from particular e- mail addresses or domains Message submission method is persisted Optionally filter messages with blank senders Optionally drop connection Note: adding own domain to Sender Filter list may break list services Sender Filtering
13
Filter messages sent to particular e-mail recipients (valid or invalid) No NDR because message is rejected at protocol level Designed to combat directory harvesting attacks (Tarpitting combats that too). Related Feature - Restricted distribution lists Related Feature - Restricted distribution lists Allow only authenticated users to send to a distribution list Reduces impact of unsolicited e-mail sent to internal-only distribution lists Recipient Filtering (Who It Is For)
14
Layer 2 – SMTP Filtering If the incoming connection passed through the Connection Filtering layer, the next in line is SMTP Filtering Sender and Recipient Filtering Sender : List of prohibited sender email addresses, domain address, blank sender Recipient : Directory lookup and Tar pitting Sender ID Filtering
15
Sender ID Comes with SP2 Industry standard framework Fight against e-mail domain spoofing. Fight against e-mail domain spoofing. Verify that each e-mail message originates from the Internet domain from which it claims to come based on the sending server's IP address. See http://www.microsoft.com/mscorp/safety/te chnologies/senderid/default.mspx http://www.microsoft.com/mscorp/safety/te chnologies/senderid/default.mspx http://www.microsoft.com/mscorp/safety/te chnologies/senderid/default.mspx
16
Benefits of Sender ID Protect sender’s brand and domain names from spoofing and phishing Receivers validate the origin of mail More input into spam filtering decision By itself does NOT stop spam
17
How Does Sender ID Work? Senders publish IP addresses of outbound email servers in DNS via SPF record Receivers determine which domain(s) to check “Purported responsible domain” derived from message body (RFC 2822 headers) “Envelope From” domain (RFC 2821 Mail From) Receivers query DNS for the outbound email servers of the chosen domain and perform domain spoofing test
18
One time: Publish SPF record in DNS One time: Publish SPF record in DNS No other changes required No other changes required Email sent as normal Email sent as normal Look up Sender’s SPF record in DNS Look up Sender’s SPF record in DNS Determine PRA or Mail From check Determine PRA or Mail From check Compare PRA to legitimate IPs in SPF record or Mail From check Compare PRA to legitimate IPs in SPF record or Mail From check Match positive filter input Match positive filter input No match negative filter input No match negative filter input Message transits one to many email servers en route to receiver Message transits one to many email servers en route to receiver Sender ID Framework
19
Limitations Authenticates domains not users Validates “last hop” not end-to-end (Can not block email from relay). Spammers can register their own domains… But this aids investigative efforts Allows for reputation of domains - sooner or later is going to be caught….
20
Exchange Configuration Set perimeter IP list
21
Define action Set it on the SMTP Virtual server
22
Layer 3 - Content Filtering If a mail item gets through Recipient Filtering it faces Content filtering. Content Filtering in Exchange relies on Microsoft Research SmartScreen machine learning technology incorporated into the Intelligent Message Filter (IMF). IMF is now integrated to SP2 (Pre-SP2 version should be uninstalled before SP2 upgrade). Should be updated from Microsoft Update (not Windows Update!!!). http://www.petri.co.il/installing_imf_with_exchange_2003 _sp2.htm http://www.petri.co.il/installing_imf_with_exchange_2003 _sp2.htm
23
How it works Examines messages and gives each an SCL value [0-9] Two thresholds: Gateway and Store Messages with a high SCL value are filtered at the gateway MS IT: More than 30% filtered Reduces impact to users and the rest of the infrastructure Possibility of SCL store level spam filtering SCL is transferred as a part of EXCH50 blob Exposing SCL in Outlook http://blogs.msdn.com/exchange/archive/2004/05/26/14 2607.aspx
24
Anti-spam MUST be done before anti virus Anti-spam SHOULD be done for inbound mail only Anti-spam filtering SHOULD remove vs. quarantine Anti-virus MUST be mail direction aware Anti-virus SHOULD remove vs. quarantine Generate security notifications for infected ingoing e-mail Anti-virus and Anti-spam systems MUST integrate with Exchange Messaging Hygiene Architectural Principles
25
Restricted Distribution Lists Can accept emails only from Autenticated users. Benefit: Will not be accessed from outside to large number of recipients. Will not be accessible from Linux or other SMTP applications (non authenticated users)
26
Dedicated role / server – Edge server role. * Attachment Filtering * Edge Protocol Rules - Filter known text patterns in malware carriers and drop the connection (Porn, Love, Linux….). * Connection Filtering (White List was added). Sender and Recipient Filtering (including Tar Pitting) Safe Sender List – which was configured at Outlook 2003 / 2007. Sender ID IMF * Are additions that were added to the Anti-Spam system in Exchange 2003 http://www.microsoft.com/exchange/evaluation/features/defa ult.mspx http://www.microsoft.com/exchange/evaluation/features/defa ult.mspx Exchange 2007 Anti-Spam systems.
27
How NOT to be blocked as spammers. Block SMTP – TCP/25 outside using FW. Verify that you have PTR record in the DNS – same address as the MX record (will avoid NDR errors 5.7.1 Access Denied too) Don’t send emails with blank subject / Sender. Avoid sending emails to more the 200 recipients in one email. Close your SMTP for relaying. http://www.dnsstuff.com/tools/dnsreport.ch?domain=domai n.com http://www.dnsstuff.com/tools/dnsreport.ch?domain=domai n.com
28
Some Useful links…… http://www.msexchange.org/tutorials/Sender-Recipient- Filtering.html http://www.msexchange.org/tutorials/Sender-Recipient- Filtering.html http://www.msexchange.org/tutorials/MF005.html http://www.petri.co.il/block_spam_with_exchange_2003.ht m http://www.petri.co.il/block_spam_with_exchange_2003.ht m http://www.spamcop.net/fom-serve/cache/345.html http://www.microsoft.com/mscorp/safety/content/technolog ies/senderid/wizard/default.aspx http://www.microsoft.com/mscorp/safety/content/technolog ies/senderid/wizard/default.aspx http://www.dnsstuff.com/ http://www.microsoft.com/exchange/evaluation/features/de fault.mspx http://www.microsoft.com/exchange/evaluation/features/de fault.mspx http://www.petri.co.il/configure_imf_in_exchange_2003_sp 2.htm http://www.petri.co.il/configure_imf_in_exchange_2003_sp 2.htm http://www.msexchange.org/tutorials/Windows-based- SMTP-Tar-Pitting-Explained.html http://www.msexchange.org/tutorials/Windows-based- SMTP-Tar-Pitting-Explained.html
29
Questions? Thank you !
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.