Difference between pages "Acquiring a MacOS System with Target Disk Mode" and "MediaWiki talk:Sidebar"

From ForensicsWiki
(Difference between pages)
Jump to: navigation, search
m (Connecting)
 
m (New page: Cool! I just found out about this page; it controls the sidebar.)
 
Line 1: Line 1:
First, [[Disabling_Macintosh_Disk_Arbitration_Daemon|Disable the disk arbitration daemon]] on the machine where you will do the acquisition.
+
Cool! I just found out about this page; it controls the sidebar.
 
+
Prepare a clean firewire drive in HFS+ using Mac Disk Utility; name the volume “Target”. This process relies on being able to identify which drive is the suspect's drive by knowing its size. Many new Macs are shipping with 250GB drives. Having a unique firewire target drive size will help you identify it later, as you will see below.
+
 
+
Note the sizes of all drives on your forensic Mac, if you don't already know. (Go to the Apple menu>About This Mac>More info>ATA.)
+
==Connecting==
+
<table>
+
  <table width="705" border="0" cellspacing="1" cellpadding="15">
+
    <tr class="Section1">
+
      <td width="4">&nbsp;</td>
+
      <td width="638" align="left" valign="top"><ol start=1 type=1>
+
        <li class="Section1">Without turning anything on, chain the forensic Mac to the firewire drive to the suspect’s computer using  firewire cables.</li>
+
      </ol>
+
        <ol start=2 type=1>
+
          <li>Hold down the “Option” key on the suspect’s computer and turn it on.</li>
+
        </ol>
+
        <ol start=3 type=1>
+
          <li>If the suspect’s computer <b>does not </b><span style='font-weight:normal'>ask for a password, then</span><b> turn it off</b><span style='font-weight:    normal'>. If the computer </span><b>does</b><span style='font-weight:    normal'> ask for a password, then</span><b> turn it off</b><span
+
    style='font-weight:normal'>. You cannot do a simple TDM acquisition if a password is required. You will have to either: 1) remove the drive and do a direct acquisition; or, 2) modify the memory by adding or removing chips and zapping the PRAM.</span></li>
+
        </ol>
+
      </td>
+
    </tr>
+
  </table>
+
  <table width="700" border="0" cellspacing="1" cellpadding="0">
+
    <tr class="Section1">
+
      <td width="17">&nbsp;</td>
+
      <td width="680"><table width="500" border="1" align="center" cellpadding="15" cellspacing="1" bordercolor="#000000">
+
        <tr>
+
          <td align="center" valign="middle" class="Section1"> To zap the PRAM, start up the computer and as soon as you hear the startup 'bong', hold down these four keys: Command-Option-P-R. It will bong again. And again. Continue to hold down these four keys until it has 'bonged' a total of three times (the initial startup bong and two more after you hold down those four keys). </td>
+
        </tr>
+
      </table></td>
+
    </tr>
+
  </table>
+
  <table width="700" border="0" cellspacing="1" cellpadding="15">
+
    <tr class="Section1">
+
      <td>&nbsp;</td>
+
      <td><ol start=4 type=1>
+
          <li>Assuming that no password was needed, hold down the “T” key and turn the suspect’s computer back on. The computer will eventually display the firewire logo on the screen and is then ready for TDM.</li>
+
      </ol> </td>
+
    </tr>
+
  </table>
+
  <table width="700" border="0" cellspacing="1" cellpadding="15">
+
    <tr>
+
      <td class="Section1"><strong>Acquisition</strong></td>
+
    </tr>
+
  </table>
+
  <table width="700" border="0" cellspacing="1" cellpadding="15">
+
    <tr class="Section1">
+
      <td width="4">&nbsp;</td>
+
      <td width="633" align="left" valign="top">
+
        <ol start=1 type=1>
+
          <li>Turn on the forensic Mac.</li>
+
        </ol>
+
        <ol start=2 type=1>
+
          <li>Start the Terminal.</li>
+
        </ol>
+
        <ol start=3 type=1>
+
          <li style='text-align:justify;'>At the command prompt, type <span style='color:maroon'><b>cd /dev</b></span>.<b> </b><span style='font-weight:normal'>A list will appear, but you can ignore it. Type<br>
+
          </span><span style='color:maroon'><b>ls disk?</b></span><b> </b><span style='font-weight:normal'>This will list all drives that are seen by the system. A list containing at least three drives will appear; </span><b>disk0</b><span style='font-weight:normal'>, </span><span
+
    style='color:red'><b>disk1 </b></span>and<span style='color:red'><b> </b></span><span
+
    style='color:blue'><b>disk2</b></span>. One of these drives is the suspect’s. The other two are either the forensic Mac’s OS or the <span
+
    style='color:blue'><b>Target</b></span> drive. You won’t necessarily know which is which, so you need to query them to see their size, which will give you a hint. </li>
+
        </ol>
+
        <ol start=4 type=1>
+
          <li>Type <span
+
    style='color:maroon'><b>sudo pdisk /dev/</b></span><span style='color:    red'><b>disk1</b></span><b> <span style='color:maroon'>–dump</span></b><span
+
    style='color:maroon;font-weight:normal'>.</span><span style='color:maroon'><b> </b></span>Your return will look something like this:</li>
+
      </ol> </td>
+
    </tr>
+
  </table>
+
  <table width="700" border="0" cellspacing="1" cellpadding="15">
+
    <tr class="Section1">
+
      <td width="77">&nbsp;</td>
+
      <td width="560" align="left" valign="top"><p>/dev/disk0 map block size=512<br>
+
        #: type name length base ( size )<br>
+
          1: Apple_partition_map Apple 63 @ 1 <br>
+
          2: Apple_Driver43*Macintosh 56 @ 64 <br>
+
          3: Apple_Driver43*Macintosh 56 @ 120 <br>
+
          4: Apple_Driver_ATA*Macintosh 56 @ 176 <br>
+
          5: Apple_Driver_ATA*Macintosh 56 @ 232 <br>
+
          6: Apple_FWDriver Macintosh 512 @ 288 <br>
+
          7: Apple_Driver_IOKit Macintosh 512 @ 800 <br>
+
          8: Apple_Patches Patch Partition 512 @ 1312 <strong><br>
+
        </strong><b>9: Apple_HFS OS X 72600384 @ 1824 ( 34.6G)<br>
+
        10: Apple_HFS OS 8.6 5537944 @ 72602208 ( 2.6G)</b><br>
+
        11: Apple_Free 0+@ 78140152</p>
+
      </td>
+
    </tr>
+
  </table>
+
  <table width="700" border="0" cellspacing="1" cellpadding="15">
+
    <tr class="Section1">
+
      <td width="4">&nbsp;</td>
+
      <td width="633" align="left" valign="top"><ol start=5 type=1>
+
          <li>Partitions on an HFS are called  “slices.” You can see in bold that this drive has a 34.6G slice listed under the number 9<span
+
    style='color:lime'> </span>and a 2.6G under line 10. Add them up and your looking at a “40G” drive. If the result is the wrong size, then you are looking at the wrong drive. Repeat step 4 using <b>disk0</b><span
+
    style='font-weight:normal'> and </span><b>disk2</b><span style='font-weight:    normal'> to identify all the disks. </span></li>
+
        </ol>
+
        <ol start=6 type=1>
+
          <li>Lets assume that your Target volume is <b>disk2</b> and is a 120GB<span style='font-weight:normal'>. If it is formatted as HFS, then the query in step 4 should return something like this.</span></li>
+
      </ol></td>
+
    </tr>
+
  </table>
+
  <table width="700" border="0" cellspacing="1" cellpadding="15">
+
    <tr class="Section1">
+
      <td width="76">&nbsp;</td>
+
      <td width="561" align="left" valign="top"><p>/dev/disk2 map block size=512<br>
+
        #: type name length base ( size )<br>
+
          1: Apple_partition_map Apple 63 @ 1 <br>
+
          2: Apple_Free 0+@ 64 <br>
+
          <span style='color:lime'><b>3</b></span><b>: Apple_HFS Apple_HFS_Untitled_2 239859504 @ 262208 (114.4G)<br>
+
        </b>4: Apple_Free 0+@ 240121712</p>
+
      </td>
+
    </tr>
+
  </table>
+
  <table width="700" border="0" cellspacing="1" cellpadding="15">
+
    <tr>
+
      <td class="Section1"><p>Notice that slice <span
+
style='color:lime'><b>3</b></span> is 114.4 GB in size. Slice 3 is the “working area” on this 120G drive and is the slice that you will make available for receiving your evidence, using the mount command shown in green in line 8 below. </p>
+
   
+
      </td>
+
    </tr>
+
  </table>
+
  <table width="700" border="0" cellspacing="1" cellpadding="15">
+
    <tr class="Section1">
+
      <td width="4">&nbsp;</td>
+
      <td width="633" align="left" valign="top"><ol start=7 type=1>
+
          <li>Once you confirm which drive is which, you are ready to go. Lets assume that your forensic drive is <b>disk0</b><span style='font-weight:normal'>, the suspect’s drive is </span><span style='color:red'><b>disk1</b></span>, and the Target drive is <span style='color:blue'><b>disk2</b></span>.</li>
+
        </ol>
+
        <ol start=8 type=1>
+
          <li>Because we turned off disk arbitration, however, the target drive isn't available to receive the image. We therefore need to mount the <span style='color:blue'><b>Target</b></span> drive; specifically slice <span style='color:lime'><b>3</b></span> of <span
+
    style='color:blue'><b>disk2</b></span>. </li>
+
      </ol></td>
+
    </tr>
+
  </table>
+
  <table width="700" border="0" cellspacing="1" cellpadding="15">
+
    <tr>
+
      <td width="4">&nbsp;</td>
+
      <td width="633" align="left" valign="top"><span class="Section1">Type<b> <span
+
style='color:maroon'>sudo mount –t hfs /dev/</span><span style='color:blue'>disk2</span><span
+
style='color:maroon'>s</span><span style='color:lime'>3 </span></b><span
+
style='color:maroon;font-weight:normal'>/Volumes</span></span><span class="Section1" style='color:maroon'><b>/</b></span><span class="Section1"
+
style='color:blue'><b>Target</b></span><span class="Section1">.</span></td>
+
    </tr>
+
  </table>
+
  <table width="700" border="0" cellspacing="1" cellpadding="0">
+
    <tr class="Section12">
+
      <td width="17">&nbsp;</td>
+
      <td width="680"><div align="left">
+
        <table width="500" border="1" align="center" cellpadding="15" cellspacing="1" bordercolor="#000000">
+
            <tr>
+
              <td align="center" valign="middle" class="Section12"><p align="left">If you are still unsure about which drive is which, you can verify things because <span class="style24">Target</span>  now has a BSD name. To clear the Terminal screen, hold down the <span class="style35">command</span> key and type</p>
+
                <p align="center" class="style29"> k</p>
+
                <p align="left">Then, type </p>
+
                <p align="center" class="Section1 style29">ioreg -l</p>
+
              <p align="left">Buried in the resulting display is information about the connected drives. Go to the Terminal Menu&gt;Edit&gt;Find. Search for <span class="style30">disk1</span>. Scroll through the hits and you should see the make and model number for <span class="style34">disk1</span>. If a search for <span class="style24">disk2</span> comes up empty, then you know it is the unmounted drive. </p> </td>
+
            </tr>
+
          </table>
+
      </div></td>
+
    </tr>
+
  </table>
+
 
+
  <table width="700" border="0" cellspacing="1" cellpadding="15">
+
    <tr>
+
      <td class="Section1">At this point, you have the choice of imaging the suspect’s entire drive (recommended), or of just imaging the slice that you want. If you want to image the entire drive, type:&nbsp;&nbsp; </td>
+
    </tr>
+
  </table>
+
  <table width="700" border="0" cellspacing="1" cellpadding="15">
+
    <tr class="Section1">
+
      <td width="4"><span class="style11"></span></td>
+
      <td width="633" align="left" valign="top" class="style11"><span class="style12" style='color:maroon; page:Section1; font-family: Arial, Helvetica, sans-serif;'><b>sudo dd if=/dev/</b></span><span class="style12" style='color:red; page:Section1; font-family: Arial, Helvetica, sans-serif;'><b>disk1</b></span><span class="style10"><b> <span
+
style='color:maroon'>bs=1024 conv=notrunc,noerror,sync of=/Volumes/</span><span
+
style='color:blue'>Target/Evidence.dmg</span></b><span style='font-weight:normal'>.</span></span></td>
+
    </tr>
+
  </table>
+
  <table width="700" border="0" cellspacing="1" cellpadding="15">
+
    <tr>
+
      <td><p class="Section1">This will write a raw DD image to the root of <span style='color:blue'><b>Target</b></span> and will name the image <span style='color:blue'><b>Evidence.dmg</b>.</span></p>        <p class="Section1">If you only want to image particular slices, then add the slice to the command, i.e.</p></td>
+
    </tr>
+
  </table>
+
  <table width="700" border="0" cellspacing="1" cellpadding="15">
+
    <tr>
+
      <td width="4">&nbsp;</td>
+
      <td width="633" align="left" valign="top"><span class="style13" style='color:maroon'><span class="style22">sudo dd if=/dev/</span></span><span class="style15">disk1</span><span class="style17">s</span><span class="style19">9</span> <span class="style21"><b><span style='color:maroon'>bs=1024 conv=notrunc,noerror,sync of=/Volumes/</span><span
+
style='color:blue'>Target/Evidence.dmg</span></b><span style='font-weight:normal'>.</span></span></td>
+
    </tr>
+
  </table>
+
  <table width="700" border="0" cellspacing="1" cellpadding="15">
+
    <tr>
+
      <td><p class="Section1">A separate acquisition can be done for each slice that you want to examine by changing the slice number and giving each new image a different file name, i.e. <span style='color:blue'><b>EvidOS8.dmg</b></span>.</p>       
+
        <p class="Section1">The advantage of imaging the whole disk is that you can later bring it into Encase as a single evidence file. </p></td>
+
    </tr>
+
  </table>
+
  <table width="700" border="0" cellspacing="1" cellpadding="15">
+
    <tr class="Section1">
+
      <td width="4">&nbsp;</td>
+
      <td width="633" align="left" valign="top"><ol start=9 type=1>
+
          <li><span class="Section1">Your done. Unmount the <span class="style24">Target</span> drive by typing
+
            </span>
+
            <p class="style25">cd /Volumes</p>
+
            <p><span class="Section1" style='color:maroon'><b>sudo umount /</b></span><span class="Section1" style='color:blue'><b>Target</b></span></p>
+
          </li>
+
      </ol></td>
+
    </tr>
+
  </table>
+
  <table width="700" border="0" cellspacing="1" cellpadding="15">
+
    <tr>
+
      <td><p class="Section1">Shut down your forensic Mac and then shut down the suspect’s Mac. Disconnect the firewire connection to the suspect’s Mac.</p>       
+
      <p class="style26">Examination</p></td>
+
    </tr>
+
  </table>
+
  <table width="700" border="0" cellspacing="1" cellpadding="15">
+
    <tr class="Section1">
+
      <td width="4">&nbsp;</td>
+
      <td width="633" align="left" valign="top"><ol start=1 type=1>
+
          <li><span class="Section1">Reboot your forensic Mac and restore the <b>diskarbitrationd.plist</b><span
+
    style='font-weight:normal'> file back to the </span><b>/etc/mach-init.d</b><span
+
    style='font-weight:normal'> directory. Type </span></span>
+
            <p class="style23">cd / </p>
+
            <p><span class="Section1"
+
style='color:maroon'><b>sudo cp diskarbitrationd.plist /etc/mach_init.d</b></span><span class="Section1">. </span></p>
+
          </li>
+
      </ol></td>
+
    </tr>
+
  </table>
+
  <table width="700" border="0" cellspacing="1" cellpadding="15">
+
    <tr>
+
      <td class="Section1">Turn the  forensic Mac off and back on to initiate diskarbitration. Power up the <span style='color:blue'><b>Target</b></span> drive. The <span style='color:blue'><b>Target</b></span> drive should  mount and appear on your desktop. Open it.</td>
+
    </tr>
+
  </table>
+
  <table width="700" border="0" cellspacing="1" cellpadding="15">
+
    <tr>
+
      <td width="4">&nbsp;</td>
+
      <td width="633" align="left" valign="top"><ol start=2 type=1>
+
          <li class="Section1">The <span
+
    style='color:blue'><b>Evidence.dmg</b></span> file should appear. Click on it once. Lock the file via the “GET INFO” menu to ensure it is write protected.</li>
+
      </ol></td>
+
    </tr>
+
  </table>
+
  <table width="700" border="0" cellspacing="1" cellpadding="15">
+
    <tr>
+
      <td><p class="Section1">You can now double-click to mount the Evidence.dmg file <b>and explore it within the native Mac OS environment.</b></p>       
+
      <p class="Section1">If the image won’t mount, go into the Terminal and type the following:</p></td>
+
    </tr>
+
  </table>
+
  <table width="700" border="0" cellspacing="1" cellpadding="15">
+
    <tr>
+
      <td width="4">&nbsp;</td>
+
      <td width="633" align="left" valign="top"><span class="Section1"
+
style='color:maroon;layout-grid-mode:line'><b>sudo hdiutil attach</b></span> <span class="Section1" style='color:maroon'><b>/Volumes/</b></span><span class="Section1"
+
style='color:blue'><b>Target/Evidence.dmg</b></span><span class="Section1" style='layout-grid-mode:line'> <span style='color:maroon'><b>-shadow</b></span></span></td>
+
    </tr>
+
  </table>
+
  <table width="700" border="0" cellspacing="1" cellpadding="15">
+
    <tr>
+
      <td class="Section1"><p>If you want to move the evidence file over into Encase, change the .dmg extension to .001 and add it as a raw image.</p>
+
      <p>Jon Muller<br>
+
        San Jose PD<br>
+
        (With guidance from Derrick Donnally)<br>
+
        July-05
+
      </p>
+
      </td>
+
    </tr>
+

Latest revision as of 23:38, 5 November 2007

Cool! I just found out about this page; it controls the sidebar.