ShimCache
ShimCache, also called the Application Compatibility Cache or AppCompatCache, lives in the SYSTEM registry hive. Windows uses it to decide whether an executable needs compatibility shims, and in doing so records executables the system has looked at.
What Shimcache is
Each entry holds a full path and the file's last-modified time, in order from most to least recent. The cache is held in memory and written to the hive when the system shuts down.
Forensic value
What Shimcache can tell an investigator:
- Paths of executables the operating system has encountered, including ones since deleted.
- The order of entries, which gives a relative sequence.
- Each file's last-modified time, useful for spotting timestomped or renamed tools.
What it does not prove
- The timestamp is the file's modification time, not when it ran.
- On modern Windows an entry does not prove execution.
- Entries since the last shutdown may exist only in memory, so a live system's hive can be out of date.
Where it is stored
Arcsentry looks for Shimcache at these locations inside a collection, disk image or mounted volume:
**/Windows.old/Windows/System32/config/RegBack/SYSTEM
**/Windows.old/Windows/System32/config/SYSTEM
**/Windows/System32/config/RegBack/SYSTEM
**/Windows/System32/config/SYSTEM What Arcsentry records
Each Shimcache record is written to Arcsentry's common schema with these fields, alongside the host, timestamp and provenance every record carries:
| Field | Type | Meaning |
|---|---|---|
message | VARCHAR | Human-readable message |
log_file | VARCHAR | Source log file path |
artifact_read_status | VARCHAR | Source read failure: unreadable (the source could not be read), corrupt (its bytes failed format or stream integrity checks), unrecognized (the content does not identify a supported format), or unsupported (the format version or a required format extension is not supported); records read before a failure may still be present |
shimcache_position | BIGINT | Shimcache entry position |
file_path | VARCHAR | File path |
shimcache_last_modified | VARCHAR | Shimcache last modified timestamp |
executed | BOOLEAN | Shimcache executed flag |
insertion_flags | BIGINT | Shimcache insertion flags |
shimcache_flags | BIGINT | Shimcache flags |
registry_hive_set | VARCHAR | Registry hive set the record was read from: live, regback, windows_old or windows_old_regback |
registry_hive_replay | VARCHAR | Why the registry hive this record was read from lacks its transaction-log changes: failed when replay failed at staging, disabled when replay was turned off |
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 Shimcache with Arcsentry Collector
Arcsentry Collector gathers Shimcache in these triage profiles: windows::profile::triage::priority, windows::profile::triage::offline, windows::profile::triage::timeline, 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::registry::registry_hives_system, windows::security::windows_hello.
.\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 Shimcache can come from the tools you already use.
Analysing Shimcache in Arcsentry
Ask in plain English, for example "show Shimcache records from the incident window, newest first", and Arcsentry shows the query before it runs. Or write it in AQL:
filter event_type == "shimcache"
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 Shimcache records with the same tools and cites them by event ID.
Corroborate with
No single artifact settles a question on its own. Check Shimcache against:
- Amcache: Parses Amcache.hve application execution history.
- Windows Prefetch files: Parses Windows Prefetch (.pf) execution artifacts.
- 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.
Frequently asked
What is the difference between ShimCache and Amcache?
Both record executables Windows has seen. ShimCache is a list of paths with file modification times in the SYSTEM hive; Amcache is a separate hive with richer metadata, including SHA-1 hashes and publishers.
Why is a recent program missing from ShimCache?
ShimCache is written to the registry at shutdown. On a running system, recent entries may still be only in memory.
Does Arcsentry parse Shimcache?
Yes. Arcsentry's Shimcache parser (shimcache) reads it from Windows evidence and records 11 fields per record, with provenance back to the source file.
How do I collect Shimcache?
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 Shimcache 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