So one of the cool things I learned in my SANS-508 class a couple years back was how to identify and carve files out of a network capture file. I had knew it was possible, and I have seen other folks do it before, but up until then I hadn't pulled out entire files from network captures. I think a good network security/forensic security professional should have that skill (to be able to look at a PCAP and locate the files and be able to extract them manually) but many times it is somewhat tedious to do this, and it may be prone to error.
Recently SANS published a list of tools for doing this (including Foremost which was also used in the SANS 508 training).
http://isc.sans.org/diary.html?storyid=6961
Here is the article:
Published: 2009-08-13,
Last Updated: 2009-08-16 00:42:14 UTC
by Jim Clausing (Version: 2)
Often in the course of investigating a compromised machine or when analyzing malware in a sandnet or honeynet, I will have a complete capture of all the network activity in a pcap file and I want to pull out any files that were downloaded by the infected machine. Unfortunately, I have not found any really good tools that allow me to full files from lots of different types of traffic. A couple of years ago, I put together a perl script that used tcptrace and the HTTP::Response perl module to pull downloaded files out of HTTP traffic, but what about other forms of traffic? FTP? SMTP? unknown TCP or UDP? whatever? My ideal tool would be able to reassemble the packets, discard headers, etc. Well, the other day I noticed a post on Darknet about Xplico that might be (at least the basis of) the magic tool I'm looking for. I'm just starting to play with it, but I figured this might be a good time to ask our readers what they use? You can send us e-mail, use the contact form, or leave a comment. Thanx in advance.
Update: 2009-08-16 00:15 GMT (jac) A huge thanx to all who wrote in, here are some of the tools you suggested.
* NetworkMiner ( thanx, Russ and Dentrasi. Just found this note on running it under wine on Linux)
* tcpxtract (suggested by John R, Chris and Doug)
* Bro (suggested by Nicholas)
* tcpflow (suggested by Ratufa and Chris)
* foremost (suggested by Chris and Doug)
* the dsniff suite (suggested by Chris and Jason)
* Chaosreader (suggested by Chris and Parveen)
* pyflag (suggested by Chris)
* tcptrace (suggested by John T)
* tcpick (suggested by Doug)
* xtract.py from npeid (suggested by anonymous)
---------------
Jim Clausing, jclausing --at-- isc dot sans dot org
Keywords: file extraction pcap tool
Recently SANS published a list of tools for doing this (including Foremost which was also used in the SANS 508 training).
http://isc.sans.org/diary.html?storyid=6961
Here is the article:
Published: 2009-08-13,
Last Updated: 2009-08-16 00:42:14 UTC
by Jim Clausing (Version: 2)
Often in the course of investigating a compromised machine or when analyzing malware in a sandnet or honeynet, I will have a complete capture of all the network activity in a pcap file and I want to pull out any files that were downloaded by the infected machine. Unfortunately, I have not found any really good tools that allow me to full files from lots of different types of traffic. A couple of years ago, I put together a perl script that used tcptrace and the HTTP::Response perl module to pull downloaded files out of HTTP traffic, but what about other forms of traffic? FTP? SMTP? unknown TCP or UDP? whatever? My ideal tool would be able to reassemble the packets, discard headers, etc. Well, the other day I noticed a post on Darknet about Xplico that might be (at least the basis of) the magic tool I'm looking for. I'm just starting to play with it, but I figured this might be a good time to ask our readers what they use? You can send us e-mail, use the contact form, or leave a comment. Thanx in advance.
Update: 2009-08-16 00:15 GMT (jac) A huge thanx to all who wrote in, here are some of the tools you suggested.
* NetworkMiner ( thanx, Russ and Dentrasi. Just found this note on running it under wine on Linux)
* tcpxtract (suggested by John R, Chris and Doug)
* Bro (suggested by Nicholas)
* tcpflow (suggested by Ratufa and Chris)
* foremost (suggested by Chris and Doug)
* the dsniff suite (suggested by Chris and Jason)
* Chaosreader (suggested by Chris and Parveen)
* pyflag (suggested by Chris)
* tcptrace (suggested by John T)
* tcpick (suggested by Doug)
* xtract.py from npeid (suggested by anonymous)
---------------
Jim Clausing, jclausing --at-- isc dot sans dot org
Keywords: file extraction pcap tool
Comments