volatility3.plugins.windows.amcache module

class Amcache(context, config_path, progress_callback=None)[source]

Bases: PluginInterface, TimeLinerInterface

Extract information on executed applications from the AmCache.

Parameters:
  • context (ContextInterface) – The context that the plugin will operate within

  • config_path (str) – The path to configuration data within the context configuration data

  • progress_callback (Optional[Callable[[float, str], None]]) – A callable that can provide feedback at progress points

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:

HierarchicalDict

property config: HierarchicalDict

The Hierarchical configuration Dictionary for this Configurable object.

property config_path: str

The configuration path on which this configurable lives.

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:

Iterator[Tuple[str, TimeLinerType, datetime]]

classmethod get_amcache_hive(context, config_path, kernel)[source]

Retrieves the Amcache.hve registry hive from the kernel module, if it can be located.

Return type:

Optional[RegistryHive]

classmethod get_requirements()[source]

Returns a list of Requirement objects for this plugin.

Return type:

List[RequirementInterface]

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 configuration

  • base_config_path (str) – The base configuration path on which to build the new configuration

  • kwargs – Keyword arguments that are used to populate the new configuration path

Returns:

The newly generated full configuration path

Return type:

str

property open

Returns a context manager and thus can be called like open

classmethod parse_driver_binary_key(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(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(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(inv_app_key)[source]

Parses InventoryApplication entries from the Windows 10 RootInventoryApplication key.

Parameters:

programs_key – The RootInventoryApplication registry key.

Return type:

Iterator[Tuple[str, _AmcacheEntry]]

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(programs_key)[source]

Parses Program entries from the Windows 8 RootPrograms key.

Parameters:

programs_key (CM_KEY_NODE) – The RootPrograms registry key.

Return type:

Iterator[Tuple[str, _AmcacheEntry]]

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.

set_open_method(handler)

Sets the file handler to be used by this plugin.

Return type:

None

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:

Dict[str, RequirementInterface]

version = (1, 0, 0)
class AmcacheEntryType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: IntEnum

Driver = 1
File = 3
Program = 2
as_integer_ratio()

Return integer ratio.

Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.

>>> (10).as_integer_ratio()
(10, 1)
>>> (-10).as_integer_ratio()
(-10, 1)
>>> (0).as_integer_ratio()
(0, 1)
bit_count()

Number of ones in the binary representation of the absolute value of self.

Also known as the population count.

>>> bin(13)
'0b1101'
>>> (13).bit_count()
3
bit_length()

Number of bits necessary to represent self in binary.

>>> bin(37)
'0b100101'
>>> (37).bit_length()
6
conjugate()

Returns self, the complex conjugate of any int.

denominator

the denominator of a rational number in lowest terms

from_bytes(byteorder='big', *, signed=False)

Return the integer represented by the given array of bytes.

bytes

Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.

byteorder

The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value. Default is to use ‘big’.

signed

Indicates whether two’s complement is used to represent the integer.

imag

the imaginary part of a complex number

numerator

the numerator of a rational number in lowest terms

real

the real part of a complex number

to_bytes(length=1, byteorder='big', *, signed=False)

Return an array of bytes representing an integer.

length

Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes. Default is length 1.

byteorder

The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value. Default is to use ‘big’.

signed

Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.

class Win10DriverBinaryValName(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: Enum

An enumeration containing the most useful Windows 10 Amcache ‘InventoryDriverBinary’ subkey value names.

DriverCompany = 'DriverCompany'
DriverId = 'DriverId'
DriverName = 'DriverName'
DriverTimeStamp = 'DriverTimeStamp'
Product = 'Product'
Service = 'Service'
class Win10InvAppFileValName(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: Enum

An enumeration containing the most useful Windows 10 Amcache ‘InventoryApplicationFile’ subkey value names.

FileId = 'FileId'
LinkDate = 'LinkDate'
LowerCaseLongPath = 'LowerCaseLongPath'
ProductName = 'ProductName'
ProductVersion = 'ProductVersion'
ProgramID = 'ProgramId'
Publisher = 'Publisher'
class Win10InvAppValName(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: Enum

An enumeration containing the most useful Windows 10 Amcache ‘InventoryApplication’ subkey value names.

InstallDate = 'InstallDate'
Name = 'Name'
Publisher = 'Publisher'
RootDirPath = 'RootDirPath'
Version = 'Version'
class Win8FileValName(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: Enum

An enumeration that creates a helpful mapping of opaque Windows 8 Amcache ‘File’ subkey value names to their human-readable equivalent.

Company = '1'
CompileTime = 'f'
CreateTime = '12'
LastModTime = '11'
LastModTime2 = '17'
PEHeaderChecksum = '9'
Path = '15'
Product = '0'
ProgramID = '100'
SHA1Hash = '101'
Size = '6'
SizeOfImage = '7'
Version = 'd'
class Win8ProgramValName(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: Enum

An enumeration that creates a helpful mapping of opaque Windows 8 Amcache ‘Program’ subkey value names to their human-readable equivalent.

InstallTime = 'a'
MSIPackageCode = '12'
MSIProductCode = '11'
PackageCode = '10'
Product = '0'
ProductCode = 'f'
Publisher = '2'
Version = '1'