Use Case: Use Tanium to Find Passwords Stored in Clear Text Files

When I was a red teamer, I was always excited when I would find a file called Passwords.xls. These files were almost always a list of usernames and passwords. Many times those passwords were administrative credentials or access to critical systems that I didn’t even know I wanted access to.

The reason why these files exist is simple. Users are busy and they forget passwords. But storing passwords in clear text files is not the answer! 

Tanium can help you find where these password files are stored so you can take action. The only requirement is that you have Index installed and configured.

Example Question (question built using Threat Response 2.0.5 - your exact question may vary):

Get Index Query File Details[1,*,".*password.*\(zip|csv|xls|txt|doc|one).*",*,*,*,*,*,10]from all machines


UseCaseUseTanFi_de0c0e74-f501-40f5-8df4-6da3125f3bcd.png
Image: Example using the question builder to build a question that can find password files

As always, it is a good idea to test on a small sample of systems first. Many of the files you find will likely be false positives, but they may have the same file size or date and can be removed as false positives.

A Word of Caution

Once you have a list of suspect files, you can use Tanium to retrieve the files or obtain more information about the system. Treat these files with care as they likely contain passwords!

Extending the Use Case with Tanium Reveal

This use case covered reporting on the names of files with Index. However, if you are interested in the content of files, Tanium Reveal can extend your search into the files themselves. It also provides a workflow for automatically removing false positives. Another benefit of Reveal is that it has many built in mechanisms designed specifically to protect the confidentiality of data. For more information on Reveal, check out the documentation here .