Security

How to find an infected network host sending SPAM messages

How to find an infected network host sending SPAM messages

A very challenging situation in a network environment where you may have several or even hundreds of network hosts is finding a specific host that is infected with malware.ย  Many variants of malware may send SPAM messages from the infected host resulting in warnings or violations from your ISP alerting you to the fact that you have a host inside your network sending SPAM.ย  The problem is that these warning messages probably will contain the WAN IP or firewall address instead of the infected host as these days most networks are NAT’ed and use private IPs inside the network.

One of the best ways to find a host that is on your network sending SPAM out or any other malicious traffic is to use an Untangle UTM host/device between your internal network and firewall.ย  Untangle is a great product even in its free version that can quickly identify malicious hosts or traffic on your network.ย  Even if you don’t plan on using Untangle as a long term solution, it is easy enough to load up a host with Untangle, place it between your network and firewall, and identify the malicious traffic.

In our situation above, where we have a host that is sending out SPAM where maybe you have been alerted by your ISP, I want to show you how quickly you can identify a host sending out SPAM.

The Quick Process

The process below assumes that you have either loaded up an Untangle host or you are using an Untangle host that is already in place.ย  If you don’t know how to cable the Untangle box, there are some really great tutorials here on the Untangle Wiki pages.

The first step is simply installing the available free rack module Spam Blocker Lite.

spamblock1

After we have loaded the SPAM blocker Lite rack module, we want t click on the Settings for this rack module and add a setting in the configuration.ย  Note below, that you will need to expand the Advanced SMTP Configuration settings for the SPAM Blocker Lite module.ย  Select the option to Scan outbound (WAN) SMTP.ย  This will tell the module that you want to also examine outgoing port 25 messages for potential SPAM content.

spamblock2

After you flag on the option to scan outbound (WAN) SMTP traffic, we can now take a look at the Event Log and see if we see a host that is sending mail.ย  In the screenshot below, in our particular situation we saw a host IP that was filling up the quarantine logs with SPAM messages.ย  We were pretty confident after seeing this host filling up the logs, that we had found the culprit.

spamblock3

We sorted the Event log listing above to include All SPAM events which will show only the SPAM emails and not the ones passed through.ย  That quickly, we have identified the host that is responsible for sending out mass SPAM emails.

Final Thoughts

The Untangle product is a great UTM product for anyone especially who has no other hardware or software UTM in place and even for those who may already have something in place but who are not satisfied with the performance and results.ย  The Untangle UTM makes finding rogue hosts as in the situation above in minutes instead of hours or days parsing through the network or sneakernet running virus scans or malware scans on all hosts just to find the one that is infected.

Subscribe to VirtualizationHowto via Email ๐Ÿ””

Enter your email address to subscribe to this blog and receive notifications of new posts by email.



Brandon Lee

Brandon Lee is the Senior Writer, Engineer and owner at Virtualizationhowto.com, and a 7-time VMware vExpert, with over two decades of experience in Information Technology. Having worked for numerous Fortune 500 companies as well as in various industries, He has extensive experience in various IT segments and is a strong advocate for open source technologies. Brandon holds many industry certifications, loves the outdoors and spending time with family. Also, he goes through the effort of testing and troubleshooting issues, so you don't have to.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.