Data Carving File P...
 
Notifications
Clear all

Data Carving File Patterns: Configs for Foremost & Scalpel

5 Posts
4 Users
0 Reactions
2,550 Views
(@jsawyer)
Eminent Member
Joined: 20 years ago
Posts: 35
Topic starter  

Most people in this forum are already familiar with Foremost for data carving. Scalpel is a rewrite of Foremost to make it faster and less memory exhaustive. Both tools were recently updated. Foremost 1.1 was updated to have faster extraction methods and Scalpel supports file sizes up to 18 exabytes. Both tools compile on Linux, Windows and Mac OS X.

If you don't know what they are, the are tools that will dig through a dd image of a filesystem, memory, swap file, etc and "carve" out files. The power is in the configuration file that contains patterns for matching files. The patterns consists of typically a header and/or a footer such as this one for JPG's.


Extension CaseSens Size Header Footer
jpg y 20000000 \xff\xd8 \xff\xd9

I am compiling what I hope will be a reasonably comprehensive configuration file for use with foremost and scalpel that includes tested and reliable patterns. If you have patterns that you can share without violating company policies, I would appreciate them. Once I start getting configs from individuals and validate them, they will be made available to the forensic community.


   
Quote
(@capibara)
New Member
Joined: 19 years ago
Posts: 2
 

Great to see some work is being done on data carving configuration.
Given that for file identification libmagic is commonly used, and people thus tend to have a large set of libmagic configuration data that holds known file headers, would it not be a good idea to look at how to make data carving tool configurations integrate with libmagic configurations? Myce looking at working with the libmagic people on integrating footer support into libmagic, and using libmagic as the core of the carving tool?


   
ReplyQuote
(@keeper)
Estimable Member
Joined: 17 years ago
Posts: 106
 

got any ?


   
ReplyQuote
(@jsawyer)
Eminent Member
Joined: 20 years ago
Posts: 35
Topic starter  

Sadly, not a single person contacted me with new sigs. I was hoping to have something we could work into a wiki. Maybe it's worth pursuing on on ForensicsWiki.org.


   
ReplyQuote
steveareno
(@it-dude)
Eminent Member
Joined: 7 years ago
Posts: 18
 

@jsawyer 

Scalpel Error
 
I am using a Dell 3060 micro computer with Ubuntu 24.04.2 LTS
 
I get the following error using sudo scalpel -i /dev/sdc1
 
ERROR: In line 101 of the configuration file, expected 6 tokens,
       but instead found only 1.
 
"#" preceeding first TIFF is line 101
 
#
 TIFF
  tif y 200000000 \x49\x49\x2a\x00
 TIFF
tif y 200000000 \x4D\x4D\x00\x2A
#       
 
Please advise. Thank you.
 
 

   
ReplyQuote
Share: