Difference between pages "Blackberry Forensics" and "File Carving"

From ForensicsWiki
(Difference between pages)
Jump to: navigation, search
 
m (Created taxonomy section)
 
Line 1: Line 1:
'''Blackberry Forensics''' is a page dedicated to the forensics world. This page should contain all the necessary steps to acquire data from a BlackBerry Device.  
+
'''Carving''' is the practice of searching an input for files or other kinds of objects based on content, rather than on metadata. File carving is a powerful tool for recovering files and fragments of files when directory entries are corrupt or missing, as may be the case with old files that have been deleted or when performing an analysis on damaged media. Memory carving is a useful tool for analyzing physical and virtual memory dumps when the memory structures are unknown or have been overwritten.
<br/>
+
<br/>
+
  
== Warning for BlackBerry Forensics ==
 
[[BlackBerry]] devices come with password protection. The owner has the capability to protect all data on the phone with a password. The user may also specify the amount of attempts for entering the password before wiping all data from the device.
 
  
[[Image:Image1.jpg|none|thumb]]
+
=File Carving=
  
If you exceed your password attempts limit (defaults to 10, but you can set it as low as 3), you will be prompted one last time to type the word BlackBerry.  
+
Most file carvers operate by looking for file headers and/or footers, and then "carving out" the blocks between these two boundaries. [[Semantic Carving]] performs carving based on an analysis of the contents of the proposed files.  
  
[[Image:Image2.jpg|none|thumb]]
+
File carving should be done on a [[disk image]], rather than on the original disk.
  
The device will then wipe. It will be reset to the factory out-of-the-box condition (default folder structure), and the password reset. You will lose everything in the device memory, with no possibility of recovery. It will not reformat the microSD card, since that's not part of the factory configuration. The phone will still be usable, and the operating system will be unchanged. So this technique cannot be used to roll back from an OS upgrade problem.
+
File carving tools are listed on the [[Tools:Data_Recovery]] wiki page.
  
Obviously this is a serious problem if you need to perform forensics on the device. The best work around is to work with the owner of the device and hopefully get them to disclose the password.
+
Many carving programs have an option to only look at or near sector boundaries where headers are found. However, searching the entire input can find files that have been embedded into other files, such as [[JPEG]]s being embedded into [[Microsoft]] [[DOC|Word documents]]. This may be considered an advantage or a disadvantage, depending on the circumstances.
  
 +
Today most file carving programs will only recover files that are contiguous on the media.
  
== Acquiring BlackBerry Backup File (.ipd) ==
+
== FIle Carving Taxonomy==
* Version 4.6 was used in this example
+
[[Simson Garfinkel]] and [[Joachim Metz]] have proposed the following file carving taxonomy:
  
Prerequisites:<br/>
+
;Header/Maximum (file) size Carving
Download and install Blackberry Desktop Manager. <br/>
+
:A method for carving files out of raw data using a distinct header (start of file marker) and a maximum (file) size. This approach works because many file formats (e.g. JPEG, MP3) do not care if additional junk is appended to the end of a valid file.
Use the following link to select and download the install file that fits your system or version. <br/>
+
https://www.blackberry.com/Downloads/entry.do?code=A8BAA56554F96369AB93E4F3BB068C22 <br/>
+
<br/>
+
  
Once Desktop Manager is installed:<br/>
+
== File Carving challenges and test images ==
1. Open Blackberry’s Desktop Manager.<br/>
+
2. Click “Options” then “Connection Settings” <br/>
+
  
[[Image:BBManager4 6 Options.JPG|none|thumb]]<br/><br/>
+
[http://www.dfrws.org/2006/challenge/]
 +
File Carving Challenge - [[DFRWS]] 2006
  
4. If the Desktop Manager hasn't already done so, select “USB-PIN: Device #” for connection type. Your device # may not be the same as the image below.<br/>
+
[http://dftt.sourceforge.net/test6/index.html]
 +
FAT Undelete Test #1 - Digital Forensics Tool Testing Image (dftt #6)
  
[[Image:BBManager4 6 Connect.JPG|none|thumb]]<br/>
+
[http://dftt.sourceforge.net/test7/index.html]
 +
NTFS Undelete (and leap year) Test #1 - Digital Forensics Tool Testing Image (dftt #7)
  
5.      Click "OK" to return to the main menu.<br/><br/>
+
[http://dftt.sourceforge.net/test11/index.html]
6. Click “Backup and Restore”.<br/>
+
Basic Data Carving Test - fat32 (by Nick Mikus) - Digital Forensics Tool Testing Image (dftt #11)
  
[[Image:BBManager4 6 Backup.JPG|none|thumb]]  <br/><br/>
+
[http://dftt.sourceforge.net/test12/index.html]
 +
Basic Data Carving Test - ext2 (by Nick Mikus) - Digital Forensics Tool Testing Image (dftt #12)
  
7.      Click the "Back up" button for a full backup of the device or use the Advanced section for specific data.<br/>
+
==File Carving Bibliography==
  
[[Image:BBManager4 6 Backup1.JPG|none|thumb]]<br/><br/>
+
Mikus, Nicholas A. "An analysis of disc carving techniques," Master's Thesis, Naval Postgraduate School. March 2005. http://handle.dtic.mil/100.2/ADA432468
  
8. Select your destination and save the ".ipd" file.<br/>
+
== See also ==
 +
[[Tools:Data_Recovery#Carving | FIle Carving Tools]]
  
[[Image:BBManager4 6 Save.JPG|none|thumb]]<br/>
+
=Memory Carving=
 
+
 
+
=== Using Older Versions of Desktop Manager ===
+
Visit the archived instructions for use with older versions of Desktop Manager [[Blackberry Forensics Backup File Old|click here]].
+
 
+
<br/>
+
<br/>
+
 
+
== Opening Blackberry Backup Files (.ipd)* ==
+
* Trial Version 6.7 was used in this example
+
 
+
1. Purchase Amber BlackBerry Converter ($19.95/user or $59.95/unlimited) or Download the Trial Version from http://www.processtext.com/abcblackberry.html
+
 
+
<br>2. Use File | Open and point the program to the BlackBerry backup file (.ipd).
+
 
+
[[Image:ABCOpen.JPG|none|thumb]]
+
 
+
<br>3. Navigate to the appropriate content by using the navigation icons on the left and/or top.
+
<br>[[Image:ABCView.JPG|600 px]]<br>
+
<small>click for enlarged version</small>
+
<br>
+
 
+
=== Advanced Export Options ===
+
You may also export each subsection of acquired data to different file types such as pdf, txt, and html, etc.<br>
+
1. Select the appropriate content from the navigation items on the left.<br>
+
2. Either select an individual row or click "Select All" to export all rows.<br>
+
[[Image:ABCExportSelectAll.JPG]]<br><br>
+
3. Click "Fields to export" button<br>
+
 
+
[[Image:ABCExportButton.JPG|none|thumb]]<br><br>
+
 
+
4. Select all the criteria for that subsection in which you wish to export and click "OK"<br>
+
 
+
[[Image:ABCExportFields.JPG|none|thumb]]<br><br>
+
 
+
5. Select your output type from the bottom list of selections and click "Save As..."<br>
+
[[Image:ABCExportOptions.JPG|none|thumb]]<br><br>
+
 
+
 
+
 
+
== Blackberry IPD File Format (.ipd) ==
+
 
+
For a more advanced and in depth look at the file format of (.ipd) backup files visit the following site.
+
<br><br>
+
http://na.blackberry.com/eng/devjournals/resources/journals/jan_2006/ipd_file_format.jsp
+
<br><br>
+
 
+
 
+
 
+
== Acquisition with Paraben's Device Seizure ==
+
* You may purchase a copy of Device Seizure on Paraben's Website [http://www.paraben-forensics.com/catalog/product_info.php?cPath=25&products_id=405 here].
+
As an alternative to acquiring the Blackberry through Amber Blackberry Converter, Paraben's Device Seizure is a simple and effective method to acquire the data.  The only drawback, is that this method takes significantly more time to acquire than using Amber Blackberry Converter.
+
 
+
1. Create a new case in Device Seizure with File | New.
+
 
+
2. Give the case a name and fill in any desired information about the case on the next two screens.  The third screen is a summary of the data entered.  If all data is correct click Next and then Finish.
+
 
+
3. You are now ready to acquire the phone.  Go to Tools | Data Acquisition.
+
 
+
4. You are prompted for the supported manufacturer.  Select RIM Blackbery (Physical).<br/>
+
[[Image:Image10.JPG|none|thumb]]<br/><br/>
+
 
+
5. Leave supported models at the default selection of autodetect.<br/>
+
[[Image:Image11.JPG|none|thumb]]<br/><br/>
+
 
+
6. Connection type should be set to USB.<br/>
+
[[Image:Image12.JPG|none|thumb]]<br/><br/>
+
 
+
7. For data type selection select Logical Image (Databases).<br/>
+
[[Image:Image13.jpg|none|thumb]]<br/><br/>
+
 
+
8. Confirm your selections on the summary page and click Next to start the acquisition.
+
<br/>
+
Now wait until the program is done acquiring data from the device. <br/><br/>
+
Please Note: In some instances the wait can be up to 30-45 minutes.
+
<br/><br/>
+
 
+
== BlackBerry Simulator ==
+
* For simulating a backup copy of the physical device. This is helpful if the device is low on battery, needs to be turned off,
+
* or you don't want to alter the data on the physical device.
+
 
+
This is a step by step guide to downloading and using a BlackBerry simulator. In this example the version 4.0.2 was used in order to simulate the 7230 series.
+
<br/><br/>
+
 
+
1. Select a simulator to download from the drop-down list on the [https://www.blackberry.com/Downloads/entry.do?code=060AD92489947D410D897474079C1477 BlackBerry website].
+
*For this example look through the list and download BlackBerry Handheld Simulator v4.0.2.51.
+
 
+
2. Then click ''Next''.
+
 
+
3. Enter your proper user credentials and click ''Next'' to continue.
+
 
+
4. On the next page, reply accordingly to the eligibility prompt and click ''Next'' to continue.*
+
 
+
5. Agree or disagree to the SDK agreement and click ''Submit'' to continue.*
+
 
+
6. The next page will provide you with a link to download the .ZIP file containing the wanted simulator.
+
* - If you disagree at any of these points you will not be able to continue to the download.
+
 
+
7. Extract the files to a folder that can easily be accessed (I used the desktop).
+
 
+
8. In that folder, find the xxxx.bat file (where xxxx is the model number of the device that is being simulated). The simulator should now open an image that resembles the phone.
+
 
+
9. In the ''BlackBerry 7230 Simulator'' window, select ''Simulate'' | ''USB Cable Connected''.  Refer to ''Figure BS-1'' for further assistance.
+
 
+
[[Image:7230_1.JPG]]
+
 
+
''Figure BS-1''
+
 
+
10. Open BlackBerry Desktop Manager.  If there are no Outlook profiles created there will be a prompt on how to create one.  Click ''OK'' to continue.  If the BlackBerry xxxx Simulator has properly connected to the BlackBerry Desktop Manager, ''Connected'' should be displayed at the bottom of the BlackBerry Desktop Manager window.  Refer to ''Figure BS-2'' for further assistance.
+
 
+
[[Image:BBDM_1.JPG|none|thumb]]
+
 
+
''Figure BS-2''
+
 
+
11. Double click ''Backup and Restore'' | select ''Restore...''.  Refer to ''Figure BS-2'' for further reference.
+
 
+
12. Navigate to the directory where an .ipd file that has been previously backed up is stored and select Open to load that file to the Simulator.  See the Acquiring BlackBerry Backup File section above on information on how to backup a physical BlackBerry.
+
 
+
== Blackberry Protocol ==
+
http://www.off.net/cassis/protocol-description.html
+
 
+
Here is a useful link to the Blackberry Protocol as documented by Phil Schwan, Mike Shaver, and Ian Goldberg. The article goes into great description of packet sniffing and the protocol as it relates to data transfer across a USB port.
+
 
+
==References==
+
* [http://www.processtext.com/abcblackberry.html ABC], Amber BlackBerry Converter
+
* [https://www.blackberry.com/Downloads/entry.do?code=060AD92489947D410D897474079C1477 BlackBerry Simulator], Simulator Download website
+
* [http://www.forensicswiki.org/wiki/BlackBerry Blackberry], BlackBerry Forensics Wiki page
+
* [https://www.blackberry.com/Downloads/entry.do?code=A8BAA56554F96369AB93E4F3BB068C22 Desktop Manager], BlackBerry Desktop Manager Download website
+
* [http://na.blackberry.com/eng/devjournals/resources/journals/jan_2006/ipd_file_format.jsp IPD], IPD File Format
+
* [[Blackberry Forensics Backup File Old|Older Desktop Manager Versions]], Using older versions of BlackBerry Desktop
+
* [http://www.paraben-forensics.com/catalog/index.php Paraben], Paraben Corporation website
+
* [http://www.off.net/cassis/protocol-description.html Blackberry Protocol]
+
* [http://www.rh-law.com/ediscovery/Blackberry.pdf Forensic Examination of a RIM (BlackBerry) Wireless Device]
+

Revision as of 14:04, 1 March 2007

Carving is the practice of searching an input for files or other kinds of objects based on content, rather than on metadata. File carving is a powerful tool for recovering files and fragments of files when directory entries are corrupt or missing, as may be the case with old files that have been deleted or when performing an analysis on damaged media. Memory carving is a useful tool for analyzing physical and virtual memory dumps when the memory structures are unknown or have been overwritten.


File Carving

Most file carvers operate by looking for file headers and/or footers, and then "carving out" the blocks between these two boundaries. Semantic Carving performs carving based on an analysis of the contents of the proposed files.

File carving should be done on a disk image, rather than on the original disk.

File carving tools are listed on the Tools:Data_Recovery wiki page.

Many carving programs have an option to only look at or near sector boundaries where headers are found. However, searching the entire input can find files that have been embedded into other files, such as JPEGs being embedded into Microsoft Word documents. This may be considered an advantage or a disadvantage, depending on the circumstances.

Today most file carving programs will only recover files that are contiguous on the media.

FIle Carving Taxonomy

Simson Garfinkel and Joachim Metz have proposed the following file carving taxonomy:

Header/Maximum (file) size Carving
A method for carving files out of raw data using a distinct header (start of file marker) and a maximum (file) size. This approach works because many file formats (e.g. JPEG, MP3) do not care if additional junk is appended to the end of a valid file.

File Carving challenges and test images

[1] File Carving Challenge - DFRWS 2006

[2] FAT Undelete Test #1 - Digital Forensics Tool Testing Image (dftt #6)

[3] NTFS Undelete (and leap year) Test #1 - Digital Forensics Tool Testing Image (dftt #7)

[4] Basic Data Carving Test - fat32 (by Nick Mikus) - Digital Forensics Tool Testing Image (dftt #11)

[5] Basic Data Carving Test - ext2 (by Nick Mikus) - Digital Forensics Tool Testing Image (dftt #12)

File Carving Bibliography

Mikus, Nicholas A. "An analysis of disc carving techniques," Master's Thesis, Naval Postgraduate School. March 2005. http://handle.dtic.mil/100.2/ADA432468

See also

FIle Carving Tools

Memory Carving