Amcache

Amcache.hve is a registry hive in C:\Windows\AppCompat\Programs that Windows uses for application compatibility. It keeps an inventory of executables, drivers and installed programs the system has encountered, with file paths, sizes, versions, publishers and a SHA-1 hash of the file.

WindowsExecutionParser: amcache60 fieldsCollected by priority triage

What Amcache is

Because it records a hash and full path, Amcache can identify a binary even after the file itself has been deleted, which makes it one of the first places to look for attacker tooling.

Forensic value

What Amcache can tell an investigator:

  • Full path, size, version, publisher and SHA-1 hash of executables that were present on the system.
  • Evidence of tools that were later deleted from disk.
  • Driver and installed-program inventory, useful for spotting unusual kernel drivers or remote-access software.
  • Key last-write times that help place entries in time.

What it does not prove

  • An Amcache entry shows a file was present and inventoried. On its own it is not proof that the program ran.
  • Entries can be written by scheduled inventory tasks, not only by execution.
  • The hash covers the start of large files only, so very large binaries may not match a full-file hash.

Where it is stored

Arcsentry looks for Amcache at these locations inside a collection, disk image or mounted volume:

**/Windows/appcompat/Programs/Amcache.hve
**/Windows/appcompat/pca/PcaAppLaunchDic.txt
**/Windows/appcompat/pca/PcaGeneralDb*.txt

What Arcsentry records

Each Amcache record is written to Arcsentry's common schema with these fields, alongside the host, timestamp and provenance every record carries:

FieldTypeMeaning
file_pathVARCHARFile path
file_nameVARCHARFile name
file_sizeBIGINTFile size
file_publisherVARCHARFile publisher
file_versionVARCHARFile version
file_binary_versionVARCHARFile binary version
file_binary_product_versionVARCHARFile binary product version
file_product_versionVARCHARFile product version
file_product_nameVARCHARFile product name
file_descriptionVARCHARFile description
file_digestVARCHARFile digest
file_languageVARCHARFile language
file_binary_typeVARCHARFile binary type
file_is_peBIGINTFile PE indicator
file_is_os_componentBIGINTFile OS component indicator
file_link_date_rawVARCHARRaw file linker date
file_link_dateTIMESTAMPFile linker timestamp
file_pe_size_of_imageBIGINTFile PE size of image
file_pe_header_hashVARCHARFile PE header hash
file_pe_header_checksumBIGINTFile PE header checksum
file_modification_timeTIMESTAMPFile modification timestamp
file_creation_timeTIMESTAMPFile creation timestamp
registry_key_last_writeVARCHARRegistry key last write timestamp
subtreeVARCHARAmcache inventory subtree
entry_typeVARCHAREntry marker (: command history, ? search history in either direction, = expression history, @ input or debug history, " register, ' file mark, -' jump, > buffer last used)
program_idVARCHARAmcache program identifier
program_name_resolvedVARCHARAmcache resolved program name
amcache_hash_pathVARCHARAmcache file-hash store path
file_referenceVARCHARAmcache file reference
last_modified_store_timestampTIMESTAMPAmcache stored last modified timestamp
link_timestampTIMESTAMPAmcache link timestamp
driver_package_strong_nameVARCHARAmcache driver package strong name
driver_package_classVARCHARAmcache driver package class
driver_package_class_guidVARCHARAmcache driver package class GUID
driver_package_date_rawVARCHARAmcache raw driver package date
driver_package_dateTIMESTAMPAmcache driver package date
driver_package_directoryVARCHARAmcache driver package directory
driver_package_infVARCHARAmcache driver package INF
driver_package_providerVARCHARAmcache driver package provider
driver_package_versionVARCHARAmcache driver package version
driver_package_submission_idVARCHARAmcache driver package submission ID
application_install_date_rawVARCHARAmcache raw application install date
application_install_dateTIMESTAMPAmcache application install date
application_arp_last_modified_rawVARCHARAmcache raw ARP last modified date
application_arp_last_modifiedTIMESTAMPAmcache ARP last modified timestamp
application_install_date_from_link_fileVARCHAR[]Amcache install dates from link files
application_language_codeVARCHARAmcache application language code
application_msi_package_codeVARCHARAmcache application MSI package code
application_msi_product_codeVARCHARAmcache application MSI product code
application_package_full_nameVARCHARAmcache application package full name
application_typeVARCHARAmcache application type
application_manifest_pathVARCHARAmcache application manifest path
application_os_version_at_installVARCHARAmcache application OS version at install
application_instance_idVARCHARAmcache application instance ID
application_registry_key_pathVARCHARAmcache application registry key path
application_root_dir_pathVARCHARAmcache application root directory path
application_sourceVARCHARAmcache application source
application_uninstall_stringVARCHARAmcache application uninstall string
shortcut_target_typeVARCHARAmcache shortcut target type
pca_typeVARCHARAmcache PCA entry type

Time

Arcsentry keeps each record's own time and labels its time zone when the source does not state one. A record with no time of its own stays untimed; Arcsentry never substitutes the collection time.

Collecting Amcache with Arcsentry Collector

Arcsentry Collector gathers Amcache in these triage profiles: windows::profile::triage::priority, windows::profile::triage::offline, windows::profile::triage::full. It is read straight from the file system, on a live host or inside a disk image, without mounting.

The collection targets that pick it up: windows::accounts_identity::roaming_profile, windows::execution::app_compat_pca, windows::registry::amcache.

.\arcsentry-collect.exe collect --local -t windows::profile::triage::priority `
  -o E:\IR -f host.arcx --password-file E:\IR\pw.txt

Every file lands in one AES-256 archive with a SHA-256 recorded for it, and the collection log notes which target collected it. See everything each profile collects.

Already collected with something else? Arcsentry also reads KAPE, Velociraptor and UAC collections, so Amcache can come from the tools you already use.

Analysing Amcache in Arcsentry

Ask in plain English, for example "show Amcache records from the incident window, newest first", and Arcsentry shows the query before it runs. Or write it in AQL:

filter event_type == "amcache"
sort {-timestamp}
take 100

Mark a record malicious or suspicious and it joins the timeline in its kill-chain lane. Add its values as indicators and Arcsentry matches them across every host. When the AI investigator works the case, it reads Amcache records with the same tools and cites them by event ID.

Corroborate with

No single artifact settles a question on its own. Check Amcache against:

  • Windows Prefetch files: Parses Windows Prefetch (.pf) execution artifacts.
  • ShimCache: Parses Application Compatibility Cache (Shimcache) entries.
  • BAM / DAM: Program execution times the Background and Desktop Activity Moderator services record for each user SID.
  • Windows event log: Parses Windows Event Log (.evtx) files.
  • SRUM: Parses System Resource Usage Monitor database for application metrics.

Frequently asked

Does Amcache prove a program was executed?

Not on its own. Amcache shows a file was present and inventoried. Corroborate execution with Prefetch, BAM, process-creation events (4688) or SRUM.

Where is Amcache.hve stored?

In C:\Windows\AppCompat\Programs\Amcache.hve, with transaction logs (Amcache.hve.LOG1 and LOG2) beside it. Collect the logs too, so recent changes are not lost.

Does Arcsentry parse Amcache?

Yes. Arcsentry's Amcache parser (amcache) reads it from Windows evidence and records 60 fields per record, with provenance back to the source file.

How do I collect Amcache?

Arcsentry Collector gathers it with the priority triage profile (windows::profile::triage::priority), live or from a disk image, sealed in an AES-256 archive with a SHA-256 for every file.

Parse Amcache on your own evidence.

Tell us what you want to investigate. A person replies within one business day with the download and a trial licence.

Request a trial