Windows shimcache flush

This rule is part of a beta feature. To learn more, contact Support.
이 페이지는 아직 영어로 제공되지 않습니다. 번역 작업 중입니다.
현재 번역 프로젝트에 대한 질문이나 피드백이 있으신 경우 언제든지 연락주시기 바랍니다.

Goal

Detects attempts to flush the Windows shimcache.

Strategy

This rule monitors for command lines involving two specific shimcache flushing techniques. Windows shimcache (also known as AppCompatCache) is a registry artifact that tracks application execution for compatibility purposes and is valuable for digital forensics.

The query searches @Event.EventData.Data.CommandLine for instances of rundll32 used with either apphelp.dll (calling ShimFlushCache or #250) or kernel32.dll (calling BaseFlushAppcompatCache or #46).

These specific command patterns represent deliberate attempts to flush the shimcache registry keys. The shimcache contains evidence of program execution, including timestamps and file paths of programs that have been run on the system. Clearing this cache is not part of normal system administration and is almost exclusively performed as an anti-forensic measure.

Attackers use these techniques to hide evidence of malicious executables they’ve run on the system, complicating forensic analysis during incident response.

Triage & Response

  • Identify the user account that executed the shimcache flush command on {{host}}.
  • Review process creation events before and after the shimcache flush for suspicious activity.
  • Check for additional anti-forensic techniques being used around the same timeframe.
  • Examine recently executed programs using alternative artifacts such as prefetch files or USN journal.
  • Look for unauthorized access to the account that performed the shimcache flush.
  • Analyze the parent process that spawned the rundll32 command for context.
  • Search for unusual network connections or data transfers before the anti-forensic activity.
  • Determine if any malware cleaning tools might have legitimately triggered the shimcache flush.
  • Reset credentials for any accounts involved in the suspicious activity.