Trustwave and Cybereason Merge to Form Global MDR Powerhouse for Unparalleled Cybersecurity Value. Learn More

Trustwave and Cybereason Merge to Form Global MDR Powerhouse for Unparalleled Cybersecurity Value. Learn More

Services
Managed Detection & Response

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

Co-Managed SOC (SIEM)

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

Advisory & Diagnostics

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

Penetration Testing

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

Database Security

Prevent unauthorized access and exceed compliance requirements.

Email Security

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

Digital Forensics & Incident Response

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

Firewall & Technology Management

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

Solutions
BY TOPIC
Microsoft Security
Unlock the full power of Microsoft Security
Offensive Security
Solutions to maximize your security ROI
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 check if URLs in a message body are valid and listed in DNS?

Expand / Collapse


This article applies to:

  • Trustwave MailMarshal (SEG)

Question:

How do I check if URLs in a message body are valid and listed in DNS?

Symptom:

  • Spam with URLs is not being caught by the URLCensor.
  • Some spam is not being stopped by the URLCensor

Procedure:

A common spamming tactic involves registering a new domain and immediately sending out a burst of spam messages with hyperlinks pointing to a website on the new domain. During the initial message delivery there is a good chance that the message will not yet be listed on any DNS based block list. It may, in fact, may be so new that the domain name has not propagated fully in DNS. This article outlines how to target this behavior by confirming that links in the message body point to domains that actually exist in DNS.

Note: Given the nature of the DNS check, this rule could also trigger on accidentally misspelled domain names in URLs.

To create this DNS checking rule:

  1. Download the file DomainChecker.zip from the Article Attachments section below.
  2. Unpack the DomainChecker.xml file into your {Install}\Config folder.
  3. Create the following rule in the MailMarshal Configurator.

    Content Analysis: DNS URL Checker
    When a message arrives
    Where the message is incoming
    Where the message is categorized as 'DNS URL Checker'
    Move the message to 'DNS URL Invalid'

     

  4. Commit configuration changes.

Notes:

This method requires the domain being checked to have a valid A record in DNS. Domains without A records in DNS will be classified as non-existent by the above process.

This article was previously published as:
NETIQKB45534

 

 


To contact Trustwave about this article or to request support:


Rate this Article:
     
Tags:

Attachments


DomainChecker.zip DomainChecker.zip (959 views)

Add Your Comments


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