What question were you trying to answer? Could be:
- Where did this malicious software come from?
- What web sites has this person been visisting?
What access do you have? Could be:
- A single machine, and I have local access
- Multiple machines, and I have remote access
Don’t forget that you may wish to search unallocated disk space for deleted web cache information. See Digital Forensics Links.
Is this actually a Forensics examination, where you care about preserving evidence, or is this a root cause examination, where discovery (not legally admissible evidence) is the goal.
The answers affect the tool you choose and how you use it. For example, in a “concerned parent” scenario there is a single Windows machine using Internet Explorer, for which you have local access, and you want to learn the web sites visited. Use Mandiant Web Historian and inspect the C:\Users\<userid>\AppData\Local\Microsoft\Windows\History\History.IE5\index.dat file. (A firewall log of successful web connections would be of more help.)
On the other hand, consider a large environment that investigates web-based malware alerts. Here the questions are: where was the threat encountered and what else arrived from that site or around that time. As part of the alert, you have the machine name and user id and the name of the malicious file.
Grab copies of the Index.dat files, saving them with names that make them distinguishable later. Use Pasco
(http://www.sourceforge.net/projects/fast) to make tab-separated text files from the dat files.
A batch file to make this task easier:
@echo off
if (%2)==() goto ERR_SYNTAX
copy "\\%1\C$\Users\%2\AppData\Local\Microsoft\Windows\Temporary
Internet Files\Content.IE5\index.dat" "%1_%2_cache_index.dat"
attrib -s -h "C:\Users\%2\AppData\Local\Microsoft\Windows\History\History.IE5\index.dat"
copy "\\%1\C$\Users\%2\AppData\Local\Microsoft\Windows\History\History.IE5\index.dat"
"%1_%2_history_index.dat"
attrib +s +h "C:\Users\%2\AppData\Local\Microsoft\Windows\History\History.IE5\index.dat"
copy "C:\Users\%2\AppData\Local\Microsoft\Windows\History\History.IE5\index.dat"
"%1_%2_history_index.dat"
pasco "%1_%2_cache_index.dat" > "%1_%2_cache_index.txt"
pasco "%1_%2_history_index.dat" > "%1_%2_history_index.txt"
GOTO EXIT
:ERR_SYNTAX
Error - requires two parameters, machine name (or IP address) and userid
:EXIT
When loading the text separated text file into Excel, some columns won’t line up. Close enough for my purposes, though.
Note that this problem in Excel is because some of the original fields in the index.dat file contain tabs; using pasco to create a tab-separated text file when some fields contain tabs is problematic. If you wish to be consistent, fields rarely contain pipe characters; creating a pipe character-separated text file will produce a more consistently formatted Excel spreadsheet.
The questions again were: Where was the threat encountered and what else arrived from that site (or around that time).
Search the resulting text file for the detected malicious file. This turns up a lot of undetected malware. A malicious site rarely sticks to only one threat. A site typically hangs on to the older, already detected threats when breaking in a new, undetected threat. Get a sample of the new, undetected threat and submit it to vendors. You will also turn up a pattern of sites and ASNs. Report sites, blacklist sites, and the count of detected threats goes down.
Utilities:
- Chrome Analysis Internet only, Google Chrome only utility
- Firefox 3 web browser forensics Includes description of the SQLite database, how to use sqlite3 to view the database and a PERL script to generate a report from the database. No need for Windows.
- Firefox 3 web browser forensics using f3e
- Fox Analysis Internet only, Firefox 3 only utility
- Mandiant Web Historian Internet only, Firefox and Internet Explorer utility
- Pasco (part of the Forensic Analyst’s Software Toolkit) Internet Explorer only utility
- SQLite Database Browser Public domain SQLite database browser, useful for Chrome and Firefox’s downloads.sqlite
- Elongsoft’s Computer History Viewer, a utility to examine IE and Windows history, is available from many sources but not from elongsoft.com.
- IEHistoryView from NirSoft examines IE history files
- MyLastSearch from NirSoft View your latest searches with major search engines.
- SkypeLogView from NirSoft View Skype Logs ( incoming/outgoing calls, chat messages, and file transfers)
- MozillaHistoryView from NirSoft View the list of visited web sites in Firefox/Mozilla/Netscape browsers
- MozillaCacheView from NirSoft View the cache files of Mozilla/Firefox browsers
- MozillaCookiesView from NirSoft Cookies Viewer/Manager For Mozilla/Firefox Browsers
- IECookiesView from NirSoft Cookies viewer/manager for Internet Explorer
- IECacheView from NirSoft Internet Explorer Cache Viewer
- IEPassView from NirSoft reveals Internet Explorer stored passwords
- Karen’s Cookie Viewer from KarenWare examines browser cookies
- FirePasswordViewer at SecurityXploded reveals Firefox stored passwords
- PasswordFox from NirSoft reveals Firefox stored passwords
- ChromePass from Nirsoft reveals Chrome stored passwords
- Protected Storage Pass View from NirSoft reveals IE stored information
- Web Cache Illuminator reveals web browser activityregardless of browser

December 19, 2009 at 10:16 pm |
[...] Web browser utilities are in Web Browser Forensics. [...]