Scenario
Our intrusion detection system has alerted us to suspicious behavior on a workstation, pointing to a likely malware intrusion. A memory dump of this system has been taken for analysis. Your task is to analyze this dump, trace the malware’s actions, and report key findings. This analysis is critical in understanding the breach and preventing further compromise.
Q 1: We need to identify the process responsible for this suspicious behavior.
What is the name of the suspicious process?
Press enter or click to view image in full size
Now, we can see that there is a connection only with svchost.exe which is the Service Host of the windows operating System and WAAhost.exe is stands for Windows Web Application Host so, nothing is risky except ChromeSetup.exe.
Q 2: To eradicate the malware, what is the exact file path of the process executable?
Press enter or click to view image in full size
Q 3: Identifying network connections is crucial for understanding the malware’s communication strategy.
What is the IP address it attempted to connect to?
Press enter or click to view image in full size
Look at Foreign Address for process ‘ChromeSetup.exe’
Q 4: To pinpoint the geographical origin of the attack, which city is associated with the IP address the malware communicated with?
Press enter or click to view image in full size
Just take the foreign ip address and paste it into ip lookup page on whatismyipaddress.com and you can find the answer
Q 5: Hashes provide a unique identifier for files, aiding in detecting similar threats across machines.
What is the SHA1 hash of the malware’s executable?
Press enter or click to view image in full size
First we need to dump the process on the machine to get SHA1 hash of it
Get Loay Salah’s stories in your inbox
Join Medium for free to get updates from this writer.
i used pslist to list all processes, we can find that the most left column is PID which stands for Process ID. So let’s make grep to find the Malware
Press enter or click to view image in full size
So, the PID is 4628, Let’s dump the process on the device
Press enter or click to view image in full size
after dumping the malware we can skip any other dump (ctrl + c)
Press enter or click to view image in full size
Finally, we got the SHA1 hash for the malware using sha1sum tool
Q 6: Understanding the malware’s development timeline can offer insights into its deployment.
What is the compilation UTC timestamp of the malware?
Press enter or click to view image in full size
To find the timestamp of any file you can easily use exiftool to get the metadata of any file. But There is a tiny problem called UTC.
So, you will convert the timestamp here which is +02:00 format to +00:00
just subtract 2 hours or use http://www.unixtimestampconverter.com
Press enter or click to view image in full size
Take the UTC Date and Time, ant put it in right format on CyberDefenders
Q 7: Identifying domains involved with this malware helps in blocking future malicious communications and identifying current possible communications with that domain in our network.
Can you provide the domain related to the malware?
Press enter or click to view image in full size
We can use virustotal.com to get the Domain of the malware
Just paste the SHA1 hash in the search bar and go to relations
Finally, we found the domain related to the malware as you can see