Trustwave SpiderLabs Exposes Unique Cybersecurity Threats in the Public Sector. Learn More

Trustwave SpiderLabs Exposes Unique Cybersecurity Threats in the Public Sector. Learn More

Services
Capture
Managed Detection & Response

Eliminate active threats with 24/7 threat detection, investigation, and response.

twi-managed-portal-color
Co-Managed SOC (SIEM)

Maximize your SIEM investment, stop alert fatigue, and enhance your team with hybrid security operations support.

twi-briefcase-color-svg
Advisory & Diagnostics

Advance your cybersecurity program and get expert guidance where you need it most.

tw-laptop-data
Penetration Testing

Test your physical locations and IT infrastructure to shore up weaknesses before exploitation.

twi-database-color-svg
Database Security

Prevent unauthorized access and exceed compliance requirements.

twi-email-color-svg
Email Security

Stop email threats others miss and secure your organization against the #1 ransomware attack vector.

tw-officer
Digital Forensics & Incident Response

Prepare for the inevitable with 24/7 global breach response in-region and available on-site.

tw-network
Firewall & Technology Management

Mitigate risk of a cyberattack with 24/7 incident and health monitoring and the latest threat intelligence.

Solutions
BY TOPIC
Offensive Security
Solutions to maximize your security ROI
Microsoft Exchange Server Attacks
Stay protected against emerging threats
Rapidly Secure New Environments
Security for rapid response situations
Securing the Cloud
Safely navigate and stay protected
Securing the IoT Landscape
Test, monitor and secure network objects
Why Trustwave
About Us
Awards and Accolades
Trustwave SpiderLabs Team
Trustwave Fusion Security Operations Platform
Trustwave Security Colony
Partners
Technology Alliance Partners
Key alliances who align and support our ecosystem of security offerings
Trustwave PartnerOne Program
Join forces with Trustwave to protect against the most advance cybersecurity threats
Loading...
Loading...

HOWTO: How do I allow 'legitimately' spoofed email and block all other spoofed email?

Expand / Collapse


This article applies to:

  • Trustwave MailMarshal (SEG)

Question:

  • How do I allow legitimately spoofed email and block all other spoofed email?
  • How do I selectively block spoofed email?
  • How do I identify valid spoofed email?

Details:

MailMarshal uses the following criteria to identify and block all spoofed email, legitimate and otherwise:

  • Inbound email addressed from *@yourdomain.com.
  • Did not originate from your mail server.

In some cases you may want to allow email messages generated elsewhere to pass through. For instance, email distribution list groups often send email as the user. 

Procedure:

To allow legitimate email to pass, you can add exclusions to the Block Spoofed Messages rule.

  1. Create a TextCensor script named Spoofing Exclusions.

    Sample TextCensor script:

    The following script, specified in the Edit TextCesor Script dialog box, above, does not block spoofed email with fedex, cnn.com, msnbc, or webex in the message subject:

    "NOT (fedex OR cnn.com OR msnbc OR webex)"

    Notes:

    This script assumes that the text you are matching is in the message subject. It does NOT check the sender email address. Many distribution lists provide unique identifying text in the subject. Matching on sender email addresses is very likely to allow unwanted spoofed items.

    Add any additional keywords to the existing entry - NOT as a new TextCensor item.  For instance the line could read:

    "NOT (fedex OR cnn.com OR msnbc OR webex OR yahoo)"

     

  2. In the Block Spoofed Messages rule, add this script as a condition:

    When a message arrives
    Where message is incoming
    Where message triggers text censor script(s) 'Spoofing Exclusions'
        And where message spoofing analysis is based on 'anti-relay'
    Send a 'Spoofed Message In' notification message
        And write log message(s) with 'Spoofed Message Inbound'
        And move the message to 'Spoofed Messages'


    Note: The logic of this rule is that the script triggers when the subject DOES NOT contain the exclusions.
  3. Commit configuration changes to activate this exception script.

Notes:

  • Be as specific as possible in creating the TextCensor script. Base the exclusions on specific examples of email that you want to allow. For instance, distribution lists often include the list name in the subject.
  • If the subject of the messages does not include any unique text, you can normally identify unique text in other message headers.
    • Use the message viewer in the MailMarshal Console to review headers of your target emails.
    • Create a TextCensor script that checks the headers only (NOT the subject or sender).
    • Include the text you have identified in the TextCensor item.
  • Be aware that spam senders attempt to exploit spoofing. The recipient domain (your domain) and common domains such as yahoo and cnn are often spoofed by spam senders. Allowing any spoofed email is likely to increase the amount of unwanted mail your server accepts.

This article was previously published as:

NETIQKB34945

 

 


To contact Trustwave about this article or to request support:


Rate this Article:
     
Tags:

Add Your Comments


Comment submission is disabled for anonymous users.
Please send feedback to Trustwave Technical Support or the Webmaster
.