> For the complete documentation index, see [llms.txt](https://mohab-yehia.gitbook.io/blue_team_digital_fronesics/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mohab-yehia.gitbook.io/blue_team_digital_fronesics/memory-analysis-ransomware.md).

# MEMORY ANALYSIS – RANSOMWARE

![](/files/a9rpxE3Oeb4hy9Z2GVqx)

first we need to run the next command&#x20;

vol.py -f infected.vmem imageinfo

after know what the profile is , we can start and analysis this memory , fisrt question is to find what is **the name of the suspicious process?**&#x20;

**to answer this we have two method or to write the command directly or we can do some thing smart maybe we will need it in the feture**

**we can write the next commands**

**vol.py** volatility -f infected.vmem --profile=Win7SP1x86 pslist > pslist.txt

**vol.py** volatility -f infected.vmem --profile=Win7SP1x86 psscan > pslscan.txt

![](/files/wAEriFSD4hlJPRQjaLe6)

now it's time to see what is the deference between this two files , diff pslist.txt pslscan.txt

![](/files/DhyJJdILa5b2TBIL1QF8)

we can see know the answer of the first question directly&#x20;

![](/files/lKSQXR9qxRkWXZAQWAER)

what is the parent process ID for the **suspicious process ?**

**vol.py** volatility -f infected.vmem --profile=Win7SP1x86 pstree&#x20;

![ ](/files/IVbZo3kvJxABqspFeV6E)

![](/files/ab1UYWGzqhnlt7Y0GopS)

What is the initial malicious executable that created this process?

cat pslscan.txt | grep "2732"

![](/files/WEExCmn4EW2QXs3FwrO0)

![](/files/uzOUcde8p1T5KOE3NiBb)

If you drill down on the suspicious PID (vol.py -f infected.vmem --profile=Win7SP1x86 psscan | grep (PIDhere)), find the process used to delete files&#x20;

![](/files/qqYcmyKXpdrNHyItceQj)

Find the path where the malicious file was first executed ?

vol.py -f infected.vmem --profile=Win7SP1x86 dlllist -p 2732 or&#x20;

vol.py -f infected.vmem --profile=Win7SP1x86 cmdline&#x20;

![](/files/pbxwuSJJpliA8OMJDh70)

![](/files/aCEqIGRpF7SMQZCCWAaF)

Can you identify what ransomware it is? (Do your research!)

![](/files/asv3xagrAWp4w5BhgFnS)

What is the filename for the file with the ransomware public key that was used to encrypt the private key? (.eky extension)

vol.py -f infected.vmem --profile=Win7SP1x86 memdump -p 2732 --dump-dir=./

after it we can grep the key word we looking for&#x20;

![](/files/SXvxVr3XzK7j3fA9mUgC)

![](/files/QywighmMqDs9cccKjkeV)
