280 likes | 625 Views
Registry Structure. What is it? What does it contain?. Objectives. Logical and physical structure of the Registry Format of Registry files Examination of the Registry Forensically important keys Analyzing Registry information. The Registry. Hierarchal database
E N D
Registry Structure What is it? What does it contain?
Objectives • Logical and physical structure of the Registry • Format of Registry files • Examination of the Registry • Forensically important keys • Analyzing Registry information
The Registry • Hierarchal database • Maintains configuration settings • Applications • Hardware • Devices • Users
Registry Access • regedit.exe – A “GUI” interface to the Registry • Native to XP and Vista • NT and 2000 has regedit.exe but with limited capabilities
Physical Structure • Binary files • Stored in RAM and hard drive • Limited data types
Logical Structure • Highest Level • My Computer • Contains Five Root Hives • Each Hive consists of • Hives and Keys • Each key has a set of • <Name Type Value> triples • Subkey list • Last access time
Registry Data Types Series of nested arrays designed to store a list of resources A list of resources used by a physical HW device A list of HW resources used by a device driver
Hives - Physical • A Hive is a logical file from multiple files on disk and RAM • The Registry is the collection of these hives • Each hive contains a registry tree • Each hive has a key that serves as the root or starting point of the tree • The integration of all these hives into the root hives consists of the registry
Root Hives • HKEY_USERS • Contains all the actively loaded user profiles for the system • HKEY_CURRENT_USER • Is the active, loaded user profile currently logged on • HKEY_LOCAL_MACHINE • Contains configuration information for the system bot HW and SW
Root Hives (cont’d) • HKEY_CURRENT_CONFIG • Contains the hardware profile the system uses at startup • HKEY_CLASSES_ROOT • Contains configuration information for which apps open which files
HKEY_CLASSES_ROOTApplication to File Mapping This hive is subclassed to HKCU\Software\Classes HKLM \Software\Classes
Registry Cell Types • Key cell • Key info, offsets to subkeys and LastWrite time • Value cell • Holds a value/name and its data • Subkey list cell • Series of subkey offsets • Value list cell • Series of offsets to value cells
Registry Structure Keys Subkeys Type Values Data
Raw Registry File Key Cell Value Cell