Sans book 2 Flashcards
(125 cards)
Keyword
Description
Malware execution (WER Report)
Windows Error Logs (WER) are stored as files named Report.wer and are written in plain text or XML format. Of notes, they can include the SHA1 hash of a file, although note that there is a file size limitation, so the Report.wer won’t catch very large files.
They can be present in multiple different “WER” folders including:
> C:\ProgramData\Microsoft\Windows\WER
> %User Profile%\AppData\Local\Microsoft\Windows\WER (also check Default, Public, and ALL Users profiles)
ShimCache: Application Compatability Cache
Designed to detect and remediate program compatibility challenges when a program launches. Different compatability modes are called “shims”.
ShimCache: Location Windows 7+
Memory: SYSTEM\CurrentControlSet\Control\SessionManager\AppCompatCache\AppCompatCache
ShimCache: Location Windows XP
Memory: SYSTEM\CurrentControlSet\Control\SessionManager\AppCompatibility\AppCompatCache
AppCompatCacheParser.exe
Used to parse an offline SYSTEM hive or to collect data on a live system (Windows 7 and above).
Amcache
Amcache tracks installed applications, programs executed, drivers loaded among others. It provides full path info, file size, publisher metadata, loaded drivers, SHA1 hash, and timestamps. Iportant keys are InventoryApplication, InventoryApplicationFile and InventoryDriverBinaries.
Amcache: Evidence of Execution
Does not confirm execution, as AmCache also tracks .exe and .dll that were copied as part of application execution and .exe present in one of the directories scanned by the Microsoft Compatibility Appraiser scheduled task.
InventoryApplicationFile
Amcache registry hive containing list of applications
InventoryApplication
Amcache registry hive containing a list of “installed” applications, so contains a subset of InventoryApplicationFile
InventoryDriverBinaries
Amcache: Contain information relating to loaded drivers
AmcacheParser.exe
Tool to parse Amcache data.
Amcache_ProgramEntries
Contains data from the InventoryApplication key. Contains metadata on installed applications.
Amcache_UnassociatedFileEntries
File in InventoryApplicationFile key detailing information on executables present on the system that have not been installed as part of an installation package.
Amcache_DriverBinaries
Output from AmcacheParser containing information from the InventoryDriverBinaries key
appcompatprocessor.py
Toolset deisgned to perform hunting of ShimCache and Amcache artifacts placingthe result in a SQLite database.
Event Logs: Location (Vista and before)
%systemroot%\System32\config
Event Logs: Location (post-Vista)
%systemroot%\System32\winevt\logs
Event Logs: Custom Location (Registry)
> HKLM\SYSTEM\CurrentControlSet\Services\EventLog\Application
HKLM\SYSTEM\CurrentControlSet\Services\EventLog\System
HKLM\SYSTEM\CurrentControlSet\Services\EventLog\Security
Event Logs: Max Capacity/Log Rolling
When the max size of a log is reached, you can:
> Overwrite events as needed (Default)
> Archive the log when full; do not overwrite events (“Archive-Security-<Date>")
> Do not overwrite events (error messages generated to indicate full event log), requires manual clearing.</Date>
Event Logs: Three primary types
> Security: Records events based on auditing criteria included in local or group policies.
System: Records events logged by the OS or its components.
Application: Records events logged by applications.
Security Logs Overview
> Only the Local Security Authorit Subsystem Service (LSASS) can interact with the Security log
Only admins can review, export, or clear the log
There is currently no known method to manipulate the log effectively.
Security Logs Objects
> Account Logon
Account Mgmt
Directory Service
Logon Events
Object Access
Policy Change
Privilege Use
Process Tracking
System Events
Prefetch: Definition
OS loads data/code into memory (prefetch directory) before needed.