> For the complete documentation index, see [llms.txt](https://mahmoud-shaker.gitbook.io/dfir-notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mahmoud-shaker.gitbook.io/dfir-notes/application-compatibility-cache-shim-cache.md).

# Application Compatibility Cache (Shim Cache)

### **Overview:**

* **Purpose**: Used by Windows to ensure compatibility with older applications by maintaining metadata about executable files.
* **Registry Location**:
  * `HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\AppCompatCache`
* **Data Stored**:
  * File paths, timestamps, and information about recently executed binaries.

### **Benefits for DFIR:**

* **Evidence of Execution**: Identifies executables that have been run, even if they were later deleted.
* **Historical Records**: Preserves data for files no longer present on the disk.

### **How It Works:**

* Logs metadata when an executable is run, storing:

  * **File Path**: Full path to the executable.
  * **Timestamp**: Last modified time.
  * **Metadata**: Indicators of compatibility settings.
  * **File Name:** Provides the name of the executable.
  * **Full Path:** Indicates the complete path to the executable file.
  * **Standard Info Last Modified Date:** Shows the last modified date of the executable.
  * **Size of the Binary:** Records the size of the executable file.
  * **Execution Status:** Indicates whether the file ran on the system.

  **Note:** Even if the file metadata changes, it will still be recorded in the shim cache.

**Tools:**

* **ShimCacheParser**: Decodes and interprets data.
* **FTK Imager**: Extracts registry hives for offline analysis.
* **SANS AppCompatCache Parser**: Comprehensive parser for cached entries

for example :&#x20;

<figure><img src="/files/31Hq2GUUjrmCWjNJDUeY" alt=""><figcaption></figcaption></figure>

there is plugin in volatility3 we can used to analyses image for Shim Cache , for example :&#x20;

<figure><img src="/files/8CpC30pducFimdKqVSPK" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://mahmoud-shaker.gitbook.io/dfir-notes/application-compatibility-cache-shim-cache.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
