621 likes | 914 Views
File Analysis Chapter 5 – Harlan Carvey. Event Logs File Metadata. Event Logs Logging Events. Events Logging Events Event Log Format Event Record Structure Various Logs. Usual Event Logs. Application Log of application errors, warnings and information Security
E N D
File AnalysisChapter 5 – Harlan Carvey Event Logs File Metadata
Event LogsLogging Events • Events • Logging Events • Event Log Format • Event Record Structure • Various Logs
Usual Event Logs • Application • Log of application errors, warnings and information • Security • Dropped Packets, Successful Connections • Logon/Logoffs • System • Various device events
Windows 7 Location of logs
Event Log LocationVista, Win7 • C:Windows->System32->winevt->Logs
App & System Logging • On by default • Log size is 512 KB by default • Written by the application
Security Logging - XP • Not on by default • Log size is 512 KB by default • Control Panel Admin tools -> Local Security Policy
Log Viewer • Event Viewer • Control Panel -> Administrative Tools -> Event Viewer • Application, Security and System logs available • Event Properties • DTG of the event • Important for some timelines
Event Viewer • Convenient and pretty • Works only on live systems • Does not work on a forensics image • We have to parse the event logs
Event Logs • Binary Structure • Header and a series of records • Application logs are vendor specific • EventID.net is a good source for this info - $$$ • blogs.msdn.com/ericfiz/default.aspx • www.microsoft.com/technet/support/ee/ee_advanced.aspx
Event Log ConfigurationXP • Held in registry keys
Registry Viewer • Event message
Event Log File Format XP only • Event Log Header – 12 DWORD values • Event Records – Variable length • Windows 7 & Vista • http://www.dfrws.org/2007/proceedings/p65-schuster.pdf • http://computer.forensikblog.de/files/talks/SANS_Summit_Vista_Event_Log.pdf
Carvey’s Help • Best not to depend on the Window’s API to read the Event files • They can be corrupted • May miss the next to be over written • Provides summary stats • Provides output readable in Excel
evtstats.exe Lots of events
lsevt.exe Entry for each of the 2464 Event Records
lsevt2.exe Entry for each of the 2464 Event Records Puts it into an Excel readable format lsevt –f event_file –c > save_file.csv
Change Format Choose Delimited
Identify Separators Harlan’s stuff is separated by semicolons. With Perl knowledge you could change it.
Other Logs • IE Browsing History • Set Up • XP Firewall • Recycle Bin • Shortcut Files
IE Browsing History • Index.dat files • DiscoverPro • NetAnalysis • Index dat spy • SuperWinSpy • Be careful !!!
Set Up Logs • Setuplog.txt • Setupact.log • SetupAPI.log • Netsetup.log
Enabling Firewall Logging • Control Panel -> Security Center -> Windows Firewall -> Advanced • Follow your nose
Firewall Log • C:\WINDOWS\pfirewall.log
Recycle Bin • C:\RECYCLER • Each user gets his own folder • Use the user’s SID • Each has its own INFO2 file