|
Mar 05
2010
|
|
Mar 05
2010
|
|
Jun 18
2009
|
Forensic Imaging of RAM on live Linux systemsPosted by Chris Pavan in RAM, linux, imaging, Forensics, acquisition |
During CEIC this year I had a couple people come up to me and ask how to create an image of RAM on a Linux computer. Recently there have been a lot of tools created that gets the job done in Windows, but there is nothing really out there for Linux.
I created a knowledgebase article that goes into detail on how to handle imaging RAM on a Linux system. I also cover how to use netcat to send the image across the network to a remote computer. The article can be found HERE.
The basic command you are going to run is:
dd if=/dev/mem bs=4096 conv=noerror,sync | tee >evidence.dd | md5sum >evidence.hash
By using tee the data is written out to a file as well as passed down the pipeline so it can be hashed. Once your image completes, run md5sum against the output file and compare that to the hash originally created. If they match you are good to go.
If you want to send the data across the network get netcat listening on your target computer:
nc -l -p 5000 >evidence.dd
On the source computer use the following command:
dd if=/dev/mem bs=4096 conv=noerror,sync | tee >(nc -w 5 target_ipaddress 5000) | md5sum
Make sure you record the MD5 hash value when the process completes and then hash the output on the target computer and compare the two.
There are also some issues with block sizes that you may run across that I cover in the knowledgebase article.
Incidentally, you can do the same thing with disks, just change the device (e.g. /dev/sda) and now you are taking an image of the serial attached hard drive sda. I am working on another KB article that will cover imaging hard drives on live systems with dd.