1 / 10

Scalpel

Moshe Caplan moshecaplan@isis.poly.edu Summer 2012. Scalpel. *Presentation partially based on material created by Moshe Kaplan (moshekaplan@isis.poly.edu) and material created for the 2012 CSAW Cybersecurity Summer Bootcamp:

redell
Download Presentation

Scalpel

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Moshe Caplan moshecaplan@isis.poly.edu Summer 2012 Scalpel *Presentation partially based on material created by Moshe Kaplan (moshekaplan@isis.poly.edu) and material created for the 2012 CSAW Cybersecurity Summer Bootcamp: https://sites.google.com/a/isis.poly.edu/cyfor/hsf-teacher-summer-bootcamp/hsf-teacher-summer-bootcamp---day-3

  2. Background • When a file is deleted: • Oftentimes the file is only MARKED as deleted • The actual data bytes are NOT overwritten • File Carving • Reconstructing files by scanning the raw bytes of the disk and reassembling them • Usually done by examining the header (first few bytes) and footer (last few bytes) of a file • Pro: Filesystem independent • Con: Recovering fragmented files is difficult

  3. Obtaining scalpel • Preinstalled on CERT Fedora • Executed from the command line • Can also be obtained from: • http://www.digitalforensicssolutions.com/Scalpel/ • See the “Synopsis” section of this module for more specific directions

  4. scalpel.conf (1) • Configuration file • Specifies the file formats to look for • Watch out for false positives • Default conf has all formats commented out • On CERT Fedora stored in /etc • We make our own configuration file • Specify to use ours with -c option

  5. scalpel.conf (2) • Configuration entry • <extension> <header & footer case sensitive> <size [min:]max> <header> [footer] • Searching for jpeg files • jpg y 20000000 \xff\xd8\xff\xe0\x00\x10 \xff\xd9 • jpg y 20000000 \xff\xd8\xff\xe1 \xff\xd9 • \x specifies hexadecimal values • These are possible signatures for jpeg files

  6. scalpel.conf (3)

  7. jpeg With Header Signature • I opened a jpeg file with a hex editor • Notice the header signature matches one of the entries on the previous slide

  8. Running scalpel • I put two jpgs on a usb drive, deleted them, and ran dd on the drive • scalpel options: • -c specifies config file • -o specifies output directory • must either be empty or not exist • Format: • scalpel options input_image

  9. scalpel Output (1)

  10. scalpel Output (2)

More Related