Introduction to Forensics - A Report from Southwest Drupal Summit
What do you do once you realize one of your servers has been compromised? I recently had the opportunity to hear Linux Journal's own Kyle Rankin give a very impressive talk covering this situation at the Southwest Drupal Summit in Houston, Texas.
The actions you choose to take are very important and should be prepared before the fateful event. Most people will spend time on the server trying to figure out how the intruder gained access to the machine, and what they have been doing. Not only is this problematic in that the intruder has more time to do his damage, but the longer the server is up, the more likely critical forensic data will be lost.
Kyle argued that the best first step is to immediately pull the plug on the box. Do not diagnose the situation and do not shut the machine down gracefully. We use journaling file systems for a reason and the machine will probably be rebuilt from scratch, so the danger of corrupted data from killing the power is small. Once the machine is off, you should image the compromised drive with something like 'dd' and make a copy of the image to do your work on to protect you from accidentally contaminating the evidence.
The issue with poking around on the live system is that you will destroy any information you could have learned from the meta data stored on every file on the computer. Linux uses MAC times to record when certain events occurred most recently. The events that change MAC times on a file are “modification” (the data in the file was modified), “access” (some part of the file was read or executed), and “metadata change” (the file's permissions or ownership were changed). By pulling power from the server at the earliest possible moment, you decrease the likelihood that MAC times recorded by the intruder's action will have been updated by another user.
Kyle then did a live demo on a compromised image showing how to use The Sleuth Kit and Autopsy Browser to perform the investigation. These tools can be used to view log files, recover deleted files, and to order the files on the file system by MAC times. With this information, he was able to paint an interesting picture of not only how an intruder gained access to one of his machines, but what they did once they once they had access.
Kyle is a great public speaker and I highly recommend seeing him if you get the chance. His slides for the Southwest Drupal Summit presentation are available online as is his Linux Journal article Introduction to Forensics where he goes into great detail on how to use these tools.
Trending Topics
| OpenLDAP Everywhere Reloaded, Part I | May 23, 2012 |
| Chemistry the Gromacs Way | May 21, 2012 |
| Make TV Awesome with Bluecop | May 16, 2012 |
| Hack and / - Password Cracking with GPUs, Part I: the Setup | May 15, 2012 |
| An Introduction to Application Development with Catalyst and Perl | May 14, 2012 |
| Cryptocurrency: Your Total Cost Is 01001010010 | May 09, 2012 |
- OpenLDAP Everywhere Reloaded, Part I
- Python for Android
- Validate an E-Mail Address with PHP, the Right Way
- Why Python?
- Convert video to MP4 for Nook Tablet with best Video to Nook Tablet Converter
- Building a Two-Node Linux Cluster with Heartbeat
- Pass on Passwords with scp
- Building an Ultra-Low-Power File Server with the Trim-Slice
- Make TV Awesome with Bluecop
- Hack and / - Password Cracking with GPUs, Part I: the Setup
- Euro 2012 Coupon Codes - Get 20% Off Pavtube TiVo Converter
7 hours 21 min ago - Euro 2012 Big Sale: 20% Off Instant Savings on TiVo Converter
7 hours 25 min ago - MakeMKV works as well, though
8 hours 7 min ago - Euro 2012 Big Sale: 20% Off Instant Savings on TiVo Converter
8 hours 39 min ago - Awesome
1 day 6 hours ago - Who worries approx the
1 day 8 hours ago - Convert DVD to MKV File with
1 day 9 hours ago - Really nice article! Catalyst
1 day 9 hours ago - michael kors outlet
1 day 14 hours ago - Default configuration of /etc/ssh/ssh-config
2 days 2 hours ago





Comments
Good to also focus on prevention
Drupal owners should also focus on prevention. Overall Drupal is pretty secure, though some modules can reduce that security.
To that end, site owners (not only drupal) should consider scanning their sites ahead of time to avoid having to do this kind of work. There are some good scanners out there for just that, including my own, Golem Technologies website security scanner https://www.golemtechnologies.com
SPAM
Dear Editors,
I really think it's time for a SPAM button for comments.
testing. testing 123.
testing. testing 123.