Skip to main content

LevelBlue Completes Acquisition of Cybereason.  Learn More

LevelBlue Completes Acquisition of Cybereason.  Learn More

Services
Cyber Advisory
Managed Cloud Security
Data Security
Managed Detection & Response
Email Security
Managed Network Infrastructure Security
Exposure Management
Security Operations Platforms
Incident Readiness & Response
SpiderLabs Threat Intelligence
Solutions
BY TOPIC
Offensive Security
Solutions to maximize your security ROI
Operational Technology
End-to-end OT security
Microsoft Security
Unlock the full power of Microsoft Security
Securing the IoT Landscape
Test, monitor and secure network objects
Why LevelBlue
About Us
Awards and Accolades
LevelBlue SpiderLabs
LevelBlue Security Operations Platforms
Security Colony
Partners
Microsoft Security
Unlock the full power of Microsoft Security
Technology Alliance Partners
Key alliances who align and support our ecosystem of security offerings
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:

  • 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 LevelBlue about this article or to request support:


Rate this Article:
     
Tags:

Attachments


DomainChecker.zip DomainChecker.zip (1,142 views)

Add Your Comments


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