menu arrow_back 湛蓝安全空间 |狂野湛蓝,暴躁每天 chevron_right ... chevron_right 002-从注册表中取证 chevron_right 001-ShimCache (AppCompatCache).md
  • home 首页
  • brightness_4 暗黑模式
  • cloud
    xLIYhHS7e34ez7Ma
    cloud
    湛蓝安全
    code
    Github
    001-ShimCache (AppCompatCache).md
    1.31 KB / 2021-07-17 00:01:42
        ## ShimCache (AppCompatCache)
    
    > 用来识别应用程序兼容性问题。缓存数据跟踪文件路径、大小、上次修改时间和是否被执行(取决于操作系统),Windows XP的ShimCache被限制为96条记录,此后所有版本最多保留1024条记录。
    
    **注**:虽然记录在`ShimCache`中的存在但是并不能100%证明文件是被执行过的,但它确实显示了与文件交互的窗口
    
    注册表位置:
    
    **注**:数据加密,重启之后更新
    
    ```bash
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\AppCompatCache
    
    ```
    
    ![](images/security_wiki/15906449107067.png)
    
    
    解析工具(C#):
    
    ```
    https://github.com/ianxtianxt/AppCompatCacheParser
    
    ```
    
    例子
    
    以csv格式保存的指定路径
    
    ```
    AppCompatCacheParser.exe --csv .
    
    ```
    
    按上次修改时间排序
    
    ```
    AppCompatCacheParser.exe --csv . -t
    
    ```
    
    ![](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
    
    ```
    
    ![](images/security_wiki/15906449330451.png)
    
    
    结果
    
    ![](images/security_wiki/15906449402674.png)
    
    
    
    
    links
    file_download