volatility3.plugins.windows.amcache module
- class Amcache(context, config_path, progress_callback=None)[source]
Bases:
PluginInterface,PluginRenameClassExtract information on executed applications from the AmCache (deprecated).
- Parameters:
- build_configuration()
Constructs a HierarchicalDictionary of all the options required to build this component in the current context.
Ensures that if the class has been created, it can be recreated using the configuration built Inheriting classes must override this to ensure any dependent classes update their configurations too
- Return type:
- property config: HierarchicalDict
The Hierarchical configuration Dictionary for this Configurable object.
- property context: ContextInterface
The context object that this configurable belongs to/configuration is stored in.
- generate_timeline()[source]
Method generates Tuples of (description, timestamp_type, timestamp)
These need not be generated in any particular order, sorting will be done later
- Return type:
- classmethod get_amcache_hive(cls, context, config_path, kernel_module_name)[source]
Retrieves the Amcache.hve registry hive from the kernel module, if it can be located.
- Return type:
- classmethod get_requirements()[source]
Returns a list of Requirement objects for this plugin.
- Return type:
- classmethod make_subconfig(context, base_config_path, **kwargs)
Convenience function to allow constructing a new randomly generated sub-configuration path, containing each element from kwargs.
- Parameters:
context (
ContextInterface) – The context in which to store the new configurationbase_config_path (
str) – The base configuration path on which to build the new configurationkwargs – Keyword arguments that are used to populate the new configuration path
- Returns:
The newly generated full configuration path
- Return type:
- property open
Returns a context manager and thus can be called like open
- classmethod parse_driver_binary_key(cls, driver_binary_key)[source]
Parses information about installed drivers from the RootInventoryDriverBinary registry key.
- Parameters:
driver_binary_key (
CM_KEY_NODE) – The RootInventoryDriverBinary registry key- Return type:
Iterator[_AmcacheEntry]- Returns:
An iterator of `AmcacheEntry`s
- classmethod parse_file_key(cls, file_key)[source]
Parses File entries from the Windows 8 RootFile key.
- Parameters:
programs_key – The RootFile registry key.
- Return type:
Iterator[Tuple[Union[str,None,BaseAbsentValue],_AmcacheEntry]]- Returns:
An iterator of tuples, where the first member is the program ID string for
correlating RootProgram entries, and the second member is the AmcacheEntry.
- classmethod parse_inventory_app_file_key(cls, inv_app_file_key)[source]
Parses executable file entries from the RootInventoryApplicationFile registry key.
- Parameters:
inv_app_file_key (
CM_KEY_NODE) – The RootInventoryApplicationFile registry key.- Return type:
Iterator[Tuple[Union[str,None,BaseAbsentValue],_AmcacheEntry]]- Returns:
An iterator of tuples, where the first member is the program ID string for correlating
with it’s parent InventoryApplication program entry, and the second member is the Amcache entry.
- classmethod parse_inventory_app_key(cls, inv_app_key)[source]
Parses InventoryApplication entries from the Windows 10 RootInventoryApplication key.
- Parameters:
programs_key – The RootInventoryApplication registry key.
- Return type:
- Returns:
An iterator of tuples, where the first member is the program ID string for
correlating RootInventoryApplicationFile entries, and the second member is the AmcacheEntry.
- classmethod parse_programs_key(cls, programs_key)[source]
Parses Program entries from the Windows 8 RootPrograms key.
- Parameters:
programs_key (
CM_KEY_NODE) – The RootPrograms registry key.- Return type:
- Returns:
An iterator of tuples, where the first member is the program ID string for
correlating RootFile entries, and the second member is the AmcacheEntry.
- run()[source]
Executes the functionality of the code.
Note
This method expects self.validate to have been called to ensure all necessary options have been provided
- Returns:
A TreeGrid object that can then be passed to a Renderer.
- classmethod unsatisfied(context, config_path)
Returns a list of the names of all unsatisfied requirements.
Since a satisfied set of requirements will return [], it can be used in tests as follows:
unmet = configurable.unsatisfied(context, config_path) if unmet: raise RuntimeError("Unsatisfied requirements: {}".format(unmet)
- Return type:
- version = (2, 0, 0)