001-ShimCache (AppCompatCache)

## ShimCache (AppCompatCache)

> 用来识别应用程序兼容性问题。缓存数据跟踪文件路径、大小、上次修改时间和是否被执行(取决于操作系统),Windows XP的ShimCache被限制为96条记录,此后所有版本最多保留1024条记录。

**注**:虽然记录在`ShimCache`中的存在但是并不能100%证明文件是被执行过的,但它确实显示了与文件交互的窗口

注册表位置:

**注**:数据加密,重启之后更新

“`bash
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\AppCompatCache

“`

![](/static/lingzu/images/security_wiki/15906449107067.png)

解析工具(C#):

“`
https://github.com/ianxtianxt/AppCompatCacheParser

“`

例子

以csv格式保存的指定路径

“`
AppCompatCacheParser.exe –csv .

“`

按上次修改时间排序

“`
AppCompatCacheParser.exe –csv . -t

“`

![](/static/lingzu/images/security_wiki/15906449223975.png)

如果我们想离线分析,我们可以用这个项目:https://github.com/ianxtianxt/ShimCacheParser

导出注册表

“`bash
reg export “HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\AppCompatCache” ShimCache.reg

“`

解析

“`
python ShimCacheParser.py -o test.csv -r ShimCache.reg -t

“`

![](/static/lingzu/images/security_wiki/15906449330451.png)

结果

![](/static/lingzu/images/security_wiki/15906449402674.png)

© 版权声明
THE END
喜欢就支持一下吧
点赞0 分享
评论 抢沙发

请登录后发表评论

    请登录后查看评论内容