Carving Issues Scal...
 
Notifications
Clear all

Carving Issues Scalpel wont export all jpg headers

10 Posts
3 Users
0 Reactions
880 Views
(@xaberx)
Estimable Member
Joined: 17 years ago
Posts: 105
Topic starter  

The most common header for jpgs is FF D8 FF E0 However some cameras use FF D8 FF E1

For some strange reason scalpel nor any of my forensic apps will extract the second file format of the two. Does anyone know what may be causing this? I have tried multiple carvers each using the correct headers to search as well as just searching for FF D8 FF as the header to make it not as specific. All however fail, Using a hex editor i can see the header fine, but for some reason the second still will not show up.

Any Ideas

Thanks


   
Quote
(@bithead)
Noble Member
Joined: 20 years ago
Posts: 1206
 

I thought FF D8 FF E1 was the header for EXIF rather than JFIF? While EXIF is technically a JPEG, if you are using the standard header/footer signatures that may not be included.


   
ReplyQuote
(@xaberx)
Estimable Member
Joined: 17 years ago
Posts: 105
Topic starter  

then is

FF D8 FF E0

Still the jpg format but the Exif which i am assuming is the format almost all digital cameras are now using is just indicated by one bit change to
FF D8 FF E1 ?

Thanks for the fast reply I am making my own carving engine, that auto removes benign files as part of a new project


   
ReplyQuote
(@adamd)
Eminent Member
Joined: 19 years ago
Posts: 46
 

are you searching for the header at a specific offset? FF D8 FF could generate quiet a few false positives. Have you tried locating the headers with sigfind?


   
ReplyQuote
(@xaberx)
Estimable Member
Joined: 17 years ago
Posts: 105
Topic starter  

yah basically theprogram loads the drive image then parses it until it hits ffd8ffe0 and then keeps note of it, however when i tell it to check for the e1 it never finds it. I however did finally get it to work just a few minutes ago, using the ffd8ff and have it not be as sensitive on the last value after tweeking the code a bit.

Thanks for all the help


   
ReplyQuote
(@bithead)
Noble Member
Joined: 20 years ago
Posts: 1206
 

IIRC you can encounter E0, E1, E3 and DB in JPEGS, especially if you carve for data from some of the mobile phones on the market. The JPEG footer (FF D9) remains the same however. Have you experimented with any of those strings?


   
ReplyQuote
(@xaberx)
Estimable Member
Joined: 17 years ago
Posts: 105
Topic starter  

Primarily i used E0 and E1, Do you know of any cheat sheet that has a list of devices\ manufactures that use the different header variant?


   
ReplyQuote
(@bithead)
Noble Member
Joined: 20 years ago
Posts: 1206
 

The only "cheat sheet" I know of is Gary Kessler's File Signatures Table.

I just had notes on the other strings from some research I was doing on a case with some mobile phones.


   
ReplyQuote
(@adamd)
Eminent Member
Joined: 19 years ago
Posts: 46
 

/etc/magic from the *nix utility "file" relies on the strings Exif or JFIF 6 bytes in. Ie

ffd8 ???? ???? 4a46 4946
ffd8 ???? ???? 4578 6966

This is the way we tend to go if needed, but you'll find that ffd8 at offset 0 will grab most anyway.


   
ReplyQuote
(@xaberx)
Estimable Member
Joined: 17 years ago
Posts: 105
Topic starter  

Ok thank you for all the help


   
ReplyQuote
Share: