How to identify and delete malware hidden in Windows Prefetch
Windows Prefetch is a system cache at C:\Windows\Prefetch. Windows creates small .pf files to speed up application starts and record which programs have run. Most are harmless traces such as OUTLOOK.EXE-12345678.pf. Some malware strains abuse the folder as a hiding place, replace a cache file, or leave a clue after another component launches it.
A Prefetch file is not proof of infection. It usually contains an execution trace, not a working copy of the program. Suspicion rises when an unfamiliar entry appears, executable content carries a .pf name, or folder changes coincide with pop-ups, redirects, data theft or unauthorised remote control. Treat the cache as evidence, not the whole infection.
Australian conditions make this practical. Small retailers and hospitality venues in Melbourne, Sydney and Brisbane often run Windows point-of-sale systems bought through local resellers or managed-service bundles, while staff mix work laptops with family PCs. In Australian parlance, a computer that has “gone dodgy” may be described as “throwing up” pop-ups. Check timestamps in day/month/year order and allow for the shift between AEST and AEDT.
Before changing anything, record suspicious names, dates and sizes, and disconnect the PC if banking, customer data or sign-in details may be exposed. Do not empty the folder, alter permissions or take ownership of it. Those actions can erase clues and weaken protection. Identify the active payload and persistence first; treat the suspicious Prefetch artefact as a later cleanup item.
Read Prefetch without treating every entry as malware
Open C:\Windows\Prefetch in File Explorer after approving the administrator prompt, or list recent files with Get-ChildItem "$env:windir\Prefetch" -Force -ErrorAction SilentlyContinue | Sort-Object LastWriteTime -Descending. Compare names with installed programs, recent downloads and normal use. Never run an unfamiliar file merely to test it.
| Observation |
Likely explanation |
Sensible response |
A .pf name matches a known app and its timestamp fits normal use |
Legitimate execution cache |
Leave it alone |
| An unfamiliar name appears when odd behaviour starts |
Possible trace of an unwanted program |
Identify the app and check persistence |
A .pf item is detected as an application or executable |
A disguised payload may be present |
Quarantine it and run an offline scan |
| Several unknown items share one recent timestamp |
Clustered launch or staging activity |
Scan the whole system and inspect recent files |
| Browser settings and extensions change alongside new Prefetch files |
Compromise may extend beyond the cache |
Review extensions, tasks and downloads |
The suffix on a normal entry is derived from the executable path, so its name alone cannot identify malware. Use file size, digital signature and Defender’s verdict together. A strange .pf trace may point to an unwanted program, but it does not show where that program now resides or prove it still exists.
Identify the program behind suspicious entries
Match an unfamiliar entry against installed apps, the Downloads folder, recent shortcuts and Task Manager’s Startup list. If an item appears executable, check its digital signature and calculate a SHA-256 hash with Get-FileHash; searching that hash through a reputable reputation service does not upload the private file. Run a Microsoft Defender custom scan of the Prefetch folder, followed by a full scan.
Symptoms help focus the cleanup. Changed search results, injected extensions and a replaced homepage fit a browser hijacker as readily as any hidden payload. Unknown processes, remote-control sessions or banking pop-ups point instead to active compromise. Record which symptom began first, because that timing can connect the Prefetch entry to the program that launched it.
Trace persistence and related payloads
Prefetch can reveal a launch, but not where persistence lives. Review Startup, Task Scheduler, services, registry Run keys and Microsoft Sysinternals Autoruns. Treat any startup item, scheduled task or service pointing into Prefetch—or to an unknown executable—as suspicious. Verify it before removal; malware can imitate legitimate Windows tasks, so deleting every unusual-looking system entry is unsafe.
Also inspect browser extensions, installers and other recently changed folders. A full or Microsoft Defender Offline scan is stronger than scanning Prefetch alone. Review active network connections for unknown hosts. If remote access is evident, keep the machine offline and change affected passwords from a separate clean device.
Quarantine and delete the concealed threat
Begin with containment, then update Microsoft Defender, run a custom scan of the Prefetch folder and use Microsoft Defender Offline scan. Quarantine confirmed detections and review Protection history for the payload and related files. Reboot, rescan and remove any startup item that restored the threat. For a wider cleanup sequence, Pc Malware Expert provides guidance on related removal steps.
Once the active payload and persistence are gone, delete only the confirmed suspicious Prefetch item through File Explorer or let Defender quarantine it. Leave legitimate traces and never clear the entire directory; Windows recreates needed entries. If access is denied, use Defender rather than taking ownership or disabling protection. If files are encrypted or a ransom note appears, preserve the disk and seek specialist recovery help instead of deleting evidence.
Prevent reinfection and confirm the system is clean
Keep real-time and cloud protection enabled, patch Windows and applications, remove cracked software and unnecessary extensions, and use a standard user account for everyday work. Separate work and personal activity on shared PCs. Australian small businesses should include managed IT providers in endpoint protection, point-of-sale monitoring and tested backups rather than relying on consumer antivirus alone.
Report affected systems to the Australian Cyber Security Centre’s ReportCyber service, contact the relevant bank promptly, and assess customer-data notification duties. The Australian Government’s Scamwatch service can help where a security incident became a payment scam. A clean Prefetch folder alone is not proof of recovery: the final check requires clean Defender results, no suspicious startup or scheduled tasks, normal browser behaviour and no unexplained remote-control traffic.