Home > Security Tips > Threat Monitor > How to use (almost) free tools to find sensitive data
Security Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

THREAT MONITOR

How to use (almost) free tools to find sensitive data


John Soltys, Contributor
03.04.2009
Rating: -4.50- (out of 5)


Threat Monitor
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


There are lots of high-end products that will automate the process of data discovery, but it doesn't take much effort to hunt down data yourself.
You've got sensitive data. Every organization does. And your users need it. If they didn't need it, why would you have it?(That's a different topic, but assume you keep it around for a good reason.)

Unfortunately, credit card and Social Security numbers can be stored almost anywhere, and they usually are. Sure, security managers can educate users with awareness programs that warn about the dangers of insecure storage. They can provide secure locations for the data while employees are working with it, and even create encrypted connections to move the data back and forth. In many cases, applications are specially built to house such data.

Users, however, will still build spreadsheets full of sensitive data and store them on the file server or right on their laptops. Data can even exist locally for accidental reasons, such as a critical table in a database backed up before an upgrade and never purged, even though the data in it could lead to a hefty fine for the company if it's ever compromised.

So what to do? Go hunting for the data, of course.

There are lots of high-end products that will automate the process of data discovery, but it doesn't take much effort to hunt down data yourself. As a bonus, finding it yourself avoids budget fights and saves your political capital for the purging effort that follows discovery.

Don't miss need-to-know info!

Security pros can't afford to be the last to know. Sign up for email updates from SearchSecurity.com and you'll never be behind the curve!
Depending on where users might have stored the data, there are different discovery tools. For Windows systems, Nessus, a network vulnerability scanner, has a Windows File Contents Compliance Check plug-in that can be customized to find specified types of data. Nessus also provides pre-made audit files for common types of sensitive data, such as credit card numbers, Social Security numbers and drivers' license numbers, all of which are covered by most of the state breach-notification mandates.

Provide credentials with access to the file system (usually a domain admin) and Nessus will identify those systems that fail the compliance check; those that contain data that matched one of the patterns. Nessus can be configured to show the location of the data and also mask what it found so the data is not exposed in yet another location. Looking at all the content on a Windows box can take a long time, so consider segmenting the search by network.

Nessus is also inexpensive. $1,200 a year includes the audit files and all the vulnerability assessment functionality that made Nessus such a valuable tool in the first place. (A free version of Nessus is available, but only the "ProfessionalFeed" includes the sensitive content plug-ins and the pre-built audit files for detecting sensitive data. While it would be possible to create your own audit files with patterns that match SSNs, credit cards, etc., they won't work without the "Professional Feed.")

Searching non-Windows environments -- Unix, Linux and Mac OS X -- requires a little more manual work, as the Nessus File Contents Compliance Check plug-ins work only on Windows file systems. Luckily, there are usually fewer of these systems to look through.

Grep is a great tool for this purpose: the powerful command-line tool is built into many operating systems. Each OS may have a slightly different version of grep, so check the syntax for compatibility. Begin by creating a file full of patterns you want to find, such as: [0-9]{3}-[0-9]{2}-[0-9]{4} for SSNs. Then point grep at the pattern file and a directory. Something like this works on RH Linux and Mac OS X:

grep -cEHilrs -f patterns /directory/to/search

Your best option is to pipe the output to a file in order to continue investigations later.

Keep in mind that grep is not likely to find data in all binary files, but it can search text files and look into files created by applications like Microsoft Word.

Finally, think about your databases. Over time these seem to multiply. Data becomes misplaced when an application is decommissioned or the principle user leaves the company.

Happily, it just takes a little script (with proper credentials, of course) to discover what sort of data resides in databases you may not be familiar with. The script can be written in whichever language you're most comfortable with, as long as it can connect to the database. It needs to connect, get a list of the tables, extract the first few and last few rows of each table, and write that to a secured file.

The following is an example in pseudo code:

for each database in list_of_databases
connect to database
get list_of_tables

for each table in list_of_tables
get first five rows
get last five rows
write to output file

For more information
Watch this screencast to learn more about finding host-level data with Network Miner.

Write Wireshart network traffic filters with this expert advice.
Then use either Nessus or grep to search the output of the script for sensitive data patterns.

This approach is far from comprehensive, but can turn up many of the locations where users are storing sensitive data. Also, don't forget to record everything so you can use it to justify a more robust data-search product if needed in the future.

About the author:
John Soltys, GSNA, GCIH runs the information security program for The Seattle Times Co. in Seattle, Washington. When he's not securing data, he's hiking and climbing in the Cascades with his family.


Rate this Tip
To rate tips, you must be a member of SearchSecurity.com.
Register now to start rating these tips. Log in if you are already a member.




BROWSE BY TAG
Threat Monitor,   Enterprise Data Protection,   Data Loss Prevention,   Application and Platform Security,   Open Source Security Tools and Applications,   VIEW ALL TAGS

Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google



RELATED CONTENT
Threat Monitor
How to detect software tampering
How to prevent phishing attacks with social engineering tests
An enterprise strategy for Web application security threats
How SSL-encrypted Web connections are intercepted
How a corporate Twitter policy can combat social network threats
Cyberwarfare and the enterprise: Is the threat real?
Software security threats and employee awareness training
Newest malware threats
How to defend against rogue DHCP server malware
When BIOS updates become malware attacks

Data Loss Prevention
Breach prevention: How to keep track of data and applications
Trend Micro to address DLP after analyst report criticizes strategy
How to secure USB ports on Windows machines
DLP technology challenges security costs
Defining DLP
Analyst DLP study finds maturity, ranks top DLP vendors
Data protection tips for corporate compliance leaders
Trustwave acquires data loss prevention vendor Vericept
Best Data Loss Prevention Products
Are there still Google Desktop security problems?

Open Source Security Tools and Applications
Screencast: How to launch an OpenVAS scan
Could Metasploit popularity erode?
Metasploit Project acquired by vulnerability management firm Rapid7
SSH key compromise shuts down Apache website
Screencast: Smoothwall offers firewall defense in lean times
Screencast: Samurai offers pen-testing nirvana
Rootkit Hunter demo: Detect and remove Linux rootkits
When to use open source security tools over commercial products
Screencasts: On-screen demonstrations of security tools
Maltego demo: Identifying a website's trust relationships

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
Blowfish  (SearchSecurity.com)
Kermit  (SearchSecurity.com)
Open Source Hardening Project  (SearchSecurity.com)
SnortSnarf  (SearchSecurity.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



Research Solutions for Network Security, Access Control and Security Threats
TechTarget Security Media
Information Security View this month\\'s issue and subscribe today.
Information Security Decisions Apply online for free conference admission.
SearchSecurity.com
HomeNewsMagazineMultimediaWhite PapersLearningAdviceTopicsEventsAbout Us

About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2003 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts