Dark Reading is part of the Informa Tech Division of Informa PLC

This site is operated by a business or businesses owned by Informa PLC and all copyright resides with them.Informa PLC's registered office is 5 Howick Place, London SW1P 1WG. Registered in England and Wales. Number 8860726.

Perimeter

9/22/2010
10:12 AM
John H. Sawyer
John H. Sawyer
Commentary
50%
50%

Web-Based Spam Detection With Google Alerts

Search engines are great, powerful tools. They can help find an answer when you've tried everything you can think of. They can also help find information about a company you may be performing a penetration test on.

Search engines are great, powerful tools. They can help find an answer when you've tried everything you can think of. They can also help find information about a company you may be performing a penetration test on.Johnny Long's Google Hacking Database and follow-up book, "Google Hacking for Penetration Testers," brought the offensive use of search engines to the mainstream. Everyone was using Google Dorks to find vulnerable servers, exposed password files, and classified documents that were not meant to be publicly accessible.

Now we have SHODAN, which is a great tool that I've mentioned a few times, but I want to step back and look at Google again. One feature that I've found extremely useful over the years has been the automated alerts. Google Alerts lets you configure a search query just like you'd put into a normal Google search. The difference is that the results can be e-mailed to you as they Google finds new results.

There are other customizations like type of site, how often to send alert e-mail, how many results to include in the report, or whether to send an e-mail or make the results an RSS feed. The power comes from the full search query capabilities so you can target you queries for things like your companies domain (e.g., site:yourdomain.com).

Still wondering about interesting uses? How about detecting spam on your site? Let's say you want to monitor to see if anyone puts the commonly spammed words "viagra", "cialis", or "vioxx" on your site. You query would look like "site:yourdomain.com viagra OR cialis OR vioxx." Now whenever Google indexes a page on your site that has one of those three terms, you'll get an e-mail.

Similarly, you could setup a search looking for additional drug names and common spammed words or phrases like "free ringtones," "texas holdem," and "free celebrity porn."

I know it sounds simple, but it is incredibly effective and works great for companies who allow user generated content in the form of a page comment, forum, or wiki. Recently, I found a client whose webite had been hacked because it tripped one of my Google Alerts for spam. Turns out that the site was compromised by a remote attacker who uploaded several PHP files to host spam and were indexed by Google.

There are other uses, too. Your public relations and marketing departments may find it useful to be alerted anytime a new page is indexed with the company name or maybe a competitor's name. As security professionals, it's important to know what's available publicly about you. Setup up an "ego" search for your name using a Google Alert and find out any time new content shows up containing your name.

The possibilities are practically endless. If you haven't tried Google Alerts, give it a shot. You never know what you might come across.

John H. Sawyer is a senior security engineer on the IT Security Team at the University of Florida. The views and opinions expressed in this blog are his own and do not represent the views and opinions of the UF IT Security Team or the University of Florida. When John's not fighting flaming, malware-infested machines or performing autopsies on blitzed boxes, he can usually be found hanging with his family, bouncing a baby on one knee and balancing a laptop on the other. Special to Dark Reading.

Comment  | 
Print  | 
More Insights
Comments
Newest First  |  Oldest First  |  Threaded View
Commentary
What the FedEx Logo Taught Me About Cybersecurity
Matt Shea, Head of Federal @ MixMode,  6/4/2021
Edge-DRsplash-10-edge-articles
A View From Inside a Deception
Sara Peters, Senior Editor at Dark Reading,  6/2/2021
Register for Dark Reading Newsletters
White Papers
Video
Cartoon
Current Issue
The State of Cybersecurity Incident Response
In this report learn how enterprises are building their incident response teams and processes, how they research potential compromises, how they respond to new breaches, and what tools and processes they use to remediate problems and improve their cyber defenses for the future.
Flash Poll
How Enterprises are Developing Secure Applications
How Enterprises are Developing Secure Applications
Recent breaches of third-party apps are driving many organizations to think harder about the security of their off-the-shelf software as they continue to move left in secure software development practices.
Twitter Feed
Dark Reading - Bug Report
Bug Report
Enterprise Vulnerabilities
From DHS/US-CERT's National Vulnerability Database
CVE-2021-34682
PUBLISHED: 2021-06-12
Receita Federal IRPF 2021 1.7 allows a man-in-the-middle attack against the update feature.
CVE-2021-31811
PUBLISHED: 2021-06-12
In Apache PDFBox, a carefully crafted PDF file can trigger an OutOfMemory-Exception while loading the file. This issue affects Apache PDFBox version 2.0.23 and prior 2.0.x versions.
CVE-2021-31812
PUBLISHED: 2021-06-12
In Apache PDFBox, a carefully crafted PDF file can trigger an infinite loop while loading the file. This issue affects Apache PDFBox version 2.0.23 and prior 2.0.x versions.
CVE-2021-32552
PUBLISHED: 2021-06-12
It was discovered that read_file() in apport/hookutils.py would follow symbolic links or open FIFOs. When this function is used by the openjdk-16 package apport hooks, it could expose private data to other local users.
CVE-2021-32553
PUBLISHED: 2021-06-12
It was discovered that read_file() in apport/hookutils.py would follow symbolic links or open FIFOs. When this function is used by the openjdk-17 package apport hooks, it could expose private data to other local users.