MemProcFS-Analyzer
MemProcFS-Analyzer.ps1 is a PowerShell script utilized to simplify the usage of MemProcFS and to assist with the memory analysis workflow.
MemProcFS - The Memory Process File System by Ulf Frisk
https://github.com/ufrisk/MemProcFS
Features:
- Auto-Install of MemProcFS, Elasticsearch, Kibana, EvtxECmd, AmcacheParser, AppCompatCacheParser, ImportExcel, and IPinfo CLI
- Auto-Update of MemProcFS, Elasticsearch, Kibana, ClamAV Virus Databases (CVD), EvtxECmd (incl. Maps), AmcacheParser, AppCompactCacheParser, Import-Excel, and IPinfo CLI
- Update-Info when there's a new version of ClamAV or a new Redistributable packaged Dokany Library Bundle available
- Multi-Threaded scan w/ ClamAV for Windows
- Collection of injected modules detected by MemProcFS PE_INJECT for further analysis (PW: infected)
- Extracting IPv4/IPv6
- IP2ASN Mapping w/ Team Cymru
- GeoIP w/ IPinfo CLI
- Checking for Unusual Parent-Child Relationships and Number of Instances
- Extracting Windows Event Log Files and processing w/ EvtxECmd → Timeline Explorer (EZTools by Eric Zimmerman)
- Analyzing extracted Amcache.hve w/ Amcacheparser (EZTools by Eric Zimmerman)
- Analyzing Application Compatibility Cache aka ShimCache w/ AppCompatcacheParser (EZTools by Eric Zimmerman)
- Integration of PowerShell module ImportExcel by Doug Finke
- Collecting Evidence Files (Secure Archive Container → PW: MemProcFS)
Download
Download the latest version of MemProcFS-Analyzer from the Releases section.
Usage
Launch Windows PowerShell (or Windows PowerShell ISE or Visual Studio Code w/ PSVersion: 5.1) as Administrator and open/run MemProcFS-Analyzer.ps1.
Fig 1: Select your Raw Physical Memory Dump (File Browser)
Fig 2: MemProcFS-Analyzer checks for dependencies (First Run)
Fig 3: Accept Terms of Use (First Run)
Fig 4: MemProcFS-Analyzer checks for dependencies (Second Run)
Fig 5: Multi-Threaded ClamAV Scan
Fig 8: Processing Windows Event Logs (EVTX)
Fig 9: Processing extracted Amcache.hve → XLSX
Fig 10: Processing ShimCache → XLSX
Fig 13: ClamAV Scan found 29 infected file(s)
Fig 14: Press OK to shutdown MemProcFS and Elastisearch/Kibana
Fig 15: Secure Archive Container (PW: MemProcFS)
Prerequisites
-
Download and install the latest Dokany Library Bundle (Redistributable packaged) → DokanSetup_redist.exe
The Dokany installer will also install the required Microsoft Visual C++ Redistributables for Visual Studio 2019.
https://github.com/dokan-dev/dokany/releases/latest -
Download and install the latest Windows package of ClamAV.
https://www.clamav.net/downloads -
First Time Set-Up of ClamAV
Launch Windows PowerShell console as Administrator.
cd "C:\Program Files\clamav"
copy .\conf_examples\freshclam.conf.sample .\freshclam.conf
copy .\conf_examples\clamd.conf.sample .\clamd.conf
write.exe .\freshclam.conf
→ Comment or remove the line that says “Example”.
write.exe .\clamd.conf
→ Comment or remove the line that says “Example”.
https://www.clamav.net/documents/installing-clamav-on-windows -
Create your free IPinfo account [approx. 1-2 min]
https://ipinfo.io/signup?ref=cli
Open "MemProcFS-Analyzer.ps1" with your text editor, search for "access_token" and copy/paste your access token. -
Done!
😃
Dependencies
7-Zip 9.20 Command Line Version (2010-11-18)
https://www.7-zip.org/download.html
AmcacheParser v1.4.0.0 (2021-03-20)
https://binaryforay.blogspot.com/
AppCompatCacheParser v1.4.4.0 (2021-03-20)
https://binaryforay.blogspot.com/
ClamAV - Windows Packages → Win64 → ClamAV-0.103.2.exe (2021-04-07)
https://www.clamav.net/downloads
https://www.clamav.net/documents/installing-clamav-on-windows → First Time Set-Up
Dokany Library Bundle v1.4.0.1000 x64 (2020-06-01)
https://github.com/dokan-dev/dokany/releases/latest → DokanSetup_redist.exe
Elasticsearch 7.13.0 (2021-05-25)
https://www.elastic.co/downloads/elasticsearch
EvtxECmd v0.6.5.0 (2020-12-21)
https://binaryforay.blogspot.com/
ImportExcel 7.1.2 (2020-05-08)
https://github.com/dfinke/ImportExcel
Ipinfo CLI 2.0.0 (2021-05-26)
https://github.com/ipinfo/cli
Kibana 7.13.0 (2021-05-25)
https://www.elastic.co/downloads/kibana
MemProcFS v4.0 - The Memory Process File System (2021-05-24)
https://github.com/ufrisk/MemProcFS
Microsoft Visual C++ Redistributables for Visual Studio 2019 https://go.microsoft.com/fwlink/?LinkId=746572 → VC_redist.x64.exe
Netcat v1.11 (2009-04-10)
https://joncraton.org/blog/46/netcat-for-windows/
Links
MemProcFS
Demo of MemProcFS with Elasticsearch
Sponsor MemProcFS project
MemProcFSHunter