Tryhackme ~Volatility Walkthrough

Tryhackme ~Volatility Walkthrough


VOLATILITY– Walkthrough #tryhackme
@tryhackme

Page - 1

           Deploy the machine….

Page - 2

Q1) What memory format is the most common?

                       Ans = .raw

Q2) The Window's system we're looking to perform memory forensics on  was turned off by mistake. What file contains a compressed memory image?

           Ans = hiberfil.sys

Q3) How about if we wanted to perform memory forensics on a VMware-based virtual machine?

           

           Ans = .vmem


Page-3

Now that we've collected our memory image let's dig into it! For those using their own workstation for this activity, I've provided a download link to our memory sample attached to this task. If you're using the workstation I've provided as a VM for this activity you'll find the memory image in the 'voluser' home directory [DOWNLOAD THE VM AND RUN]

 

Q1) First, let's figure out what profile we need to use. Profiles determine how Volatility treats our memory image since every version of Windows is a little bit different. Let's see our options now with the command `volatility -f MEMORY_FILE.raw imageinfo`


           Ans = -

Q2)

Running the imageinfo command in Volatility will provide us with a number of profiles we can test with, however, only one will be correct. We can test these profiles using the pslist command, validating our profile selection by the sheer number of returned results. Do this now with the command `volatility -f MEMORY_FILE.raw --profile=PROFILE pslist`. What profile is correct for this memory image?


           Ans = WinXPSP2x86


Q3) Take a look through the processes within our image. What is the process ID for the smss.exe process? If results are scrolling off-screen, try piping your output into less


           Ans = 368


Q4) In addition to viewing active processes, we can also view active network connections at the time of image creation! Let's do this now with the command `volatility -f MEMORY_FILE.raw --profile=PROFILE netscan`. Unfortunately, something not great is going to happen here due to the sheer age of the target operating system as the command netscan doesn't support it.


           Ans = -


Q5) It's fairly common for malware to attempt to hide itself and the process associated with it. That being said, we can view intentionally hidden processes via the command `psxview`. What process has only one 'False' listed?


           Ans = crss.exe


Q6) In addition to viewing hidden processes via psxview, we can also check this with a greater focus via the command 'ldrmodules'. Three columns will appear here in the middle, InLoad, InInit, InMem. If any of these are false, that module has likely been injected which is a really bad thing. On a normal system the grep statement above should return no output. Which process has all three columns listed as 'False' (other than System)?

 

 

           Ans = crss.exe

Q7) Processes aren't the only area we're concerned with when we're examining a machine. Using the 'apihooks' command we can view unexpected patches in the standard system DLLs. If we see an instance where Hooking module: <unknown> that's really bad. This command will take a while to run, however, it will show you all of the extraneous code introduced by the malware.


           Ans = -


Q8) Injected code can be a huge issue and is highly indicative of very very bad things. We can check for this with the command `malfind`. Using the full command `volatility -f MEMORY_FILE.raw --profile=PROFILE malfind -D <Destination Directory>` we can not only find this code, but also dump it to our specified directory. Let's do this now! We'll use this dump later for more analysis. How many files does this generate?

 

           Ans = 12

Q9) Last but certainly not least we can view all of the DLLs loaded into memory. DLLs are shared system libraries utilized in system processes. These are commonly subjected to hijacking and other side-loading attacks, making them a key target for forensics. Let's list all of the DLLs in memory now with the command `dlllist`


           Ans = -

Q10) Now that we've seen all of the DLLs running in memory, let's go a step further and pull them out! Do this now with the command `volatility -f MEMORY_FILE.raw --profile=PROFILE --pid=PID dlldump -D <Destination Directory>` where the PID is the process ID of the infected process we identified earlier (questions five and six). How many DLLs does this end up pulling?


           Ans = 12


Page-4

Q1) Upload the extracted files to VirusTotal for examination.

 

           Ans = -

Q2) Upload the extracted files to Hybrid Analysis for examination - Note, this will also upload to VirusTotal but for the sake of demonstration we have done this separately. 


           Ans = -

Q3) What malware has our sample been infected with? You can find this in the results of VirusTotal and Hybrid Anaylsis. 


           Ans = .Cridex



Page-5

Q1) Check out the resources provided above!

           Ans = -




 

         



 

 

 

要查看或添加评论,请登录

Harsh Trivedi的更多文章

  • Tryhackme ~BLUE Machine

    Tryhackme ~BLUE Machine

    BLUE– Walkthrough #tryhackme @tryhackme Page - 1 Deploy the machine…. Q1)Scan the machine.

  • TRYHACKME WEBSCANNING

    TRYHACKME WEBSCANNING

    WEB SCANNING – Walkthrough #tryhackme @tryhackme Page - 1 Deploy the machine…. Page - 2 Q1) First and foremost, what…

  • Tryhackme Tmux - walkthrough

    Tryhackme Tmux - walkthrough

    Tmux – Walkthrough #tryhackme TMUX - Walkthrough #tryhackme @tryhackme Page – 1 Deploy tmux Download tmux by entering…

  • Tryhackme Nmap - walkthrough

    Tryhackme Nmap - walkthrough

    NMAP – Walkthrough #tryhackme @tryhackme Page - 1 Deploy the machine…. Page - 2 Q1) First, how do you access the help…

社区洞察

其他会员也浏览了