🖥️
Windows DFIR
  • Introduction
  • Windows Artifacts
    • Windows Quick Tips
      • Windows Command Line
      • Workstation File/Folder Locations
      • Server File/Folder Locations
    • Account Usage
      • Authentications SAM Artifacts
        • Last Login
        • Last Failed Login
        • Last Password Change
      • Authentications (Windows Event Log)
        • Logon ID
      • Group Membership
        • Event ID: 4798
        • Event ID: 4799
      • RDP
        • Source System Artifacts - Quick Reference
        • Destination System Artifacts - Quick Reference
      • SSH
      • Rouge Local Accounts
      • CrowdStrike Searches
        • Event Name - UserLogon
        • Event Name - UserLogonFailed
        • Event Name - UserLogonFailed2
        • Event Name - SsoApplicationAccess
    • Browser Usage
      • History & Downloads
        • Viewing History Files - DB Browser
        • Transition Types
      • Auto-Complete Data
      • Bookmarks
      • Browser Preferences
      • Cache
      • Cookies
      • Extensions
      • Super Cookies (HTML5 Web Storage)
      • Media History
      • Private Browsing
      • Session Restore
      • Stored Credentials
      • Suggested/Frequent Sites
      • DB Browser Queries
        • Firefox
        • Chrome
        • Media History
      • PowerShell Scripts
        • Browser Extension Finder
        • Browser History Finder
    • Processes
      • at.exe
      • explorer.exe
      • lsass.exe
      • lsaiso.exe
      • PuTTy.exe
        • X11 Forwarding
      • runtimebroker.exe
      • services.exe
      • smss.exe
      • System
      • svchost.exe
        • Services
      • winlogon.exe
      • wininit.exe
    • Cloud Storage
    • Deleted File or File Knowledge
      • WordWheelQuery (Win 7+)
      • ACMRU (Win XP)
      • Internet Explorer file:///
      • Last Visited MRU
      • Thumbs.db (Win XP)
      • Thumbcache
      • Recycle Bin
      • User Typed Paths
      • Windows Search Database
    • File Download
      • Zone.Identifer
      • Open/Save Most Recently Used (MRU)
      • Email
      • Drive By Downloads
        • Malvertising
      • Web Browsing
        • Cache Files
      • CrowdStrike Searches
        • MoTW
    • Folder/File Opening/Creation
      • Recent Files
      • Office Recent Files
      • Shell Bags
      • .lnk Files
      • Jump Lists
        • AppIDs
      • Prefetch
      • Index.dat file://
      • PowerShell Scripts
        • .lnk Files
    • Persistence
      • Registry
        • NTUSER.DAT & HKU\SID
        • Run and Run Once
        • Shell Folders and UserInit Key
        • Services
        • Logon Scripts
        • Office Add-ins
        • Winlogon Shell
        • Image File Execution Options (IFEO)
        • AppInit_DLLs
        • Scheduled Tasks
      • Scheduled Tasks
        • Scheduled Task Destination System Artifacts
        • Scheduled Task Source System Artifacts
      • Startup
      • Tool: AutoRuns
      • Accounts
      • WMI Event Consumers
        • WMI: Source System Artifacts
        • WMI: Destination System Artifacts
        • WMI: PowerShell Analysis
      • PowerShell Scripts
        • Startup Programs
      • CrowdStrike Searches
        • Files Written to Startup Folder
        • Files Written to Startup Folder from the Internet
        • Local Account Creation/Deletion
        • Azure Account Creation/Deletion
        • Scheduled Tasks
    • Physical Location
      • Time zone
      • Wireless SSID
      • Network History (Vista/Win7–11)
      • Cookies
      • Browser Search Terms
    • Program Execution
      • Prefetch
        • Decoding Prefetch Files with Eric Zimmerman's PECmd Tool
      • BAM/DAM
      • CapabilityAccessManager
      • UserAssist
      • Last Visited MRU
      • RunMRU
      • MUI Cache
      • ShimCache
      • Amcache
      • Jump Lists
    • Shadow Copies
      • VSC Permissions
      • Event ID 8193: Volume Shadow Copy Service Error
    • USB Usage
      • Key Identification
      • Drive Letter and Volume Name
      • Connection Timestamps
      • User
      • Volume Name
      • Plug & Play Event Log
    • Windows Services
      • DoSvc (Delivery Optimization)
    • System Information
    • Event IDs
      • Authentication / Account
        • 4624 - Authentication Success
          • Logon Types
        • 4625 - Authentication Failure
          • SubStatus Codes
        • 4634 - Account Logoff
        • 4648 - Explicit Credentials Success
        • 4672 - Special Privileges
        • 4720 - Account Creation
        • 4722 - Account Enabled
        • 4732 - Addition to Local Group
        • 4738 - Account Changed
        • 4776 - Kerberos Authentication Attempt
          • Substatus Codes
        • 4771 - Kerberos Failure
        • 4768
      • File System
        • 1006
        • 4688 - Process Created
        • 4663
        • 4656
        • 6416
        • 20001
        • 20003
  • Windows DFIR & MITTR
    • Initial Access
      • Content Injection
      • Drive-by Compromise
        • Watering Hole Attack
        • Microsoft Files (Payload Execution)
        • Exploit Delivery
        • Viewing Browser History Files
      • Phishing
    • Execution
    • Persistence
    • Privilege Escalation
    • Defense Evasion
    • Credential Access
      • Logon ID
    • Discovery
    • Lateral Movement
    • Collection
    • Command and Control
    • Exfiltration
    • Impact
  • SOC Related
    • Cached Credentials
    • Domain Controller Password Spraying
Powered by GitBook
On this page
  • Key Points:
  • Prefetching: Boosting Performance and Aiding Forensics
  • Prefetch Settings Adjustment

Was this helpful?

  1. Windows Artifacts
  2. Program Execution

Prefetch

Explore the role of Prefetch files in Windows, how they boost system performance, and their forensic significance.

File path: C:\Windows\Prefetch

Key Points:

  1. Performance Optimization:

    • Windows Prefetching optimizes system performance by preloading essential data and executable code into memory, thereby speeding up application load times and enhancing overall system responsiveness.

  2. Forensic Value:

    • Prefetch files are a significant asset in forensic analysis, offering insights into application execution patterns, including the frequency of application use and the original file paths of executables.

  3. Enhancements in Windows 8 and Beyond:

    • Starting with Windows 8, the Prefetching mechanism records up to eight execution timestamps for each application, providing a more detailed timeline of application usage that is particularly valuable in forensic investigations.

  4. Prefetch in Server Environments:

    • Prefetching is typically not enabled on servers, as their operational profile involves running a consistent set of applications and services continuously, diminishing the utility of Prefetching compared to desktop environments.

  5. Considerations

    • Give precedence to collecting Prefetch files, as using response tools may result in generating new files and the potential removal of existing ones.

Prefetching: Boosting Performance and Aiding Forensics

Windows Prefetching stands as a pivotal system performance feature, ingeniously designed to optimize and expedite the loading times of applications. By preemptively loading vital data and executable code into memory, Prefetching ensures that the necessary components are readily available, thereby enhancing the system's responsiveness and overall user experience.

From a forensic perspective, Prefetch files serve as a veritable goldmine of information. These artifacts are a byproduct of the Prefetching process, and they provide a wealth of data pivotal for forensic analysts. Each file is a repository of insightful details regarding application execution patterns. Forensic experts can glean the frequency of application usage through the total number of runs recorded within these files. Furthermore, the Prefetch files meticulously preserve the original file path of the executable, offering a clear trail of software usage.

With the advent of Windows 8 and subsequent versions, the Prefetching mechanism has been refined to maintain an even more robust execution history. These newer iterations of the Windows operating system are capable of storing up to eight separate execution timestamps per application. This enhancement not only serves the primary function of performance optimization but also significantly augments the depth of forensic analysis. Investigators can now construct a more comprehensive timeline of application usage, which is instrumental in various scenarios, from cybersecurity breach assessments to digital behavior profiling.

Prefetch is not enabled on servers by default. (I've yet to see a server WITH prefetch enabled)

When it comes to Windows servers, prefetching takes a back seat. Why? Well, it's all about the different demands of server environments compared to our daily-use desktops. In the server world, consistency is king. These digital workhorses run a fixed set of applications and services around the clock. There's not much of this on-and-off game that's typical in desktop scenarios.

Prefetching shines in desktops where apps are constantly opened and closed. It's like a shortcut, speeding up the loading times of these programs. But in servers, since the same applications hum along continuously, prefetching doesn't quite get its moment in the spotlight. After all, why invest in speeding up program launches when they're always running?

Moreover, servers juggle different performance priorities. They're the powerlifters, focusing on stability, handling heavy-duty tasks, and managing network requests. So, the resources that would go into prefetching are better used for these server-specific roles. It's all about playing to the strengths and needs of each environment – desktops and servers, each with their own performance playbook!

Give precedence to collecting Prefetch files, as using live response tools may result in generating new files and the potential removal of existing ones.

Prefetch Settings Adjustment

To audit or disable Prefetch:

  • Key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters

  • Value: EnablePrefetcher (REG_DWORD)

  • Settings:

    • 0 (Disabled)

    • 1 (App launch enabled)

    • 2 (Boot enabled)

    • 3 (Both enabled)

Prefetch files provide a unique insight into system usage and user activities, essential in digital forensics.

PreviousProgram ExecutionNextDecoding Prefetch Files with Eric Zimmerman's PECmd Tool

Last updated 1 year ago

Was this helpful?

For more detailed information, check out Magnet Forensics' insights on Prefetch files.