WEBVTT

00:00.540 --> 00:06.570
Hey everyone welcome to file carving and data recovery and this section will introduce the file carving

00:06.570 --> 00:13.890
process and important concepts such a slack unallocated space and deleted files will also cover the

00:13.890 --> 00:17.550
recycle bin on Windows and a tool to examine it.

00:17.550 --> 00:19.110
Refuter too.

00:19.120 --> 00:25.140
Next we will cover file carving tools a tool to automatically recover deleted files from a disk image

00:25.850 --> 00:33.150
like for most scalpel and photo rack then will show how to use bulk extractor a tool that extracts much

00:33.150 --> 00:37.440
information including deleted ones from a disk image.

00:37.440 --> 00:41.490
Now we move on to the first video of the section file carving overview.

00:41.610 --> 00:46.720
We're going to take a look at the file carving process and important concepts like slack unallocated

00:46.740 --> 00:54.090
space and deleted files will also cover refuted to a tool to examine the recycle bin on windows in the

00:54.090 --> 00:58.890
first video section 3 overview of the sleuthed kit and file system analysis.

00:58.890 --> 01:05.550
We solve with the smallest addressable data units on file systems are called blocks or clusters.

01:05.550 --> 01:07.350
They could be of different sizes.

01:07.440 --> 01:13.950
Also depending on the file system but generally blocks of 4 kilobytes are used the block size is therefore

01:14.100 --> 01:19.320
the smallest disk space that a file can use if a file is larger than the block size.

01:19.470 --> 01:22.060
Then various blocks are allocated to that file.

01:22.140 --> 01:25.050
The number of blocks depending on the file size.

01:25.050 --> 01:30.900
If the file size is not an exact multiple of the block size the last allocated block is only partially

01:30.900 --> 01:32.690
used to store the files data.

01:32.820 --> 01:38.650
The space slipped between the logical end of the file and the end of the block is called slack space.

01:38.940 --> 01:44.700
For example as we could see in this diagram if a file size occupies only two kilobytes of the last block

01:44.940 --> 01:50.670
and the block size is 4 kilobytes it uses only the first two kilobytes and the remaining two of the

01:50.670 --> 01:54.990
Block are unused and forms the file slack space.

01:55.080 --> 02:01.620
The analysis of slack space is important for a forensic examiner because some tools for example be map

02:01.620 --> 02:05.680
on Linux allowed to hide data in a file slack space.

02:05.940 --> 02:11.300
Select space could also contain remnants from a previously deleted file.

02:11.490 --> 02:17.250
Indeed one of byelaws deleted the relative directory entry is removed but the master file table entry

02:17.250 --> 02:21.380
on Windows and the i node on Linux still remain.

02:21.390 --> 02:26.550
Also its allocated blocks remain intact but are marked as free.

02:26.700 --> 02:30.230
Which are not used and could be allocated to another file.

02:30.240 --> 02:36.090
These blocks are part of the so-called UN allocated space unallocated space could also reside between

02:36.090 --> 02:42.870
two disk partitions and could be revealed by the end and LS tool as we've seen in the previous section

02:42.870 --> 02:48.750
covering the sleuthed kit until they are not allocated again and overwritten the blocks contents could

02:48.750 --> 02:55.320
be recovered using the sleuthed kit tools or with specific data carving tools as we're going to see

02:55.320 --> 03:01.800
in the next video data carving is the process of identifying and extracting meaningful data out of the

03:01.830 --> 03:04.140
unallocated and slack space.

03:04.200 --> 03:09.570
It's usually performed to recover those deleted files that no longer have an entry in the files table

03:09.960 --> 03:13.050
that could tell which data blocks were allocated to them.

03:13.050 --> 03:18.330
In previous sections we've seen that files are identifiable through the magic numbers included in the

03:18.330 --> 03:24.270
files header data carving relies on located the magic number of a certain type of file and copying all

03:24.270 --> 03:30.810
the binary data between it and the corresponding end of file marker or FOAF if the files data are stored

03:30.810 --> 03:33.980
on contiguous blocks then the process is straightforward.

03:34.020 --> 03:40.400
If the file is fragmented i.e. its blocks are scattered on the disk then Carbin becomes more challenging.

03:40.560 --> 03:47.070
Algorithms that use houris stick techniques and can also handle files fragmentation had been developed

03:47.160 --> 03:51.270
and used in carving tools on modern operating systems.

03:51.270 --> 03:57.820
Files are not permanently deleted on a first instance unless the user explicitly does so instead their

03:57.840 --> 04:01.900
first moved to the recycle bin or trash depending on the OS.

04:02.160 --> 04:07.980
They could be restored in its original locations or permanently deleted when the recycle bin is emptied.

04:08.160 --> 04:13.410
The data blocks are left untouched and are not marked as free until the file remains in the recycle

04:13.410 --> 04:14.180
bin.

04:14.280 --> 04:20.910
On Windows XP on Windows XP systems or earlier deleted files are moved to the recycle or folder into

04:20.910 --> 04:25.550
the sub folders named after the security identifiers of the users.

04:25.590 --> 04:31.560
The original file names paths and deletion times are stored in an index file called info to Windows

04:31.560 --> 04:31.940
Vista.

04:31.950 --> 04:38.580
Newer stores deleted files into a hidden dollar sign recycle bin folder with the same suppled or structure

04:38.700 --> 04:39.940
as Windows XP.

04:40.050 --> 04:46.200
But information about the files are not stored in info to instead they're stored in a pair of files

04:46.200 --> 04:54.090
for each deleted file whose name begins with Dollar Sign Dollar sign one and Dollar Sign are the first

04:54.090 --> 04:59.820
type is an index file that stores the original information while the letter type contains a copy of

04:59.820 --> 05:06.610
the file refuted to is a tool installed on Kelly Linux that allows to examine the contents of the recycle

05:06.640 --> 05:07.150
bin.

05:07.360 --> 05:15.600
Indeed refuse to refute who is an Italian word that means trash refuter to is made up of two tools for

05:15.700 --> 05:23.950
you to analyze info to files and you to Vista to analyze the new dollar sign recycle bin files on Windows

05:23.950 --> 05:28.050
Vista or newer the usage of Rifi to is straightforward.

05:28.060 --> 05:31.840
We simply run the tool with the info to file as the unique parameter

05:45.860 --> 05:48.570
the output displays each files in the recycle bin.

05:48.680 --> 05:55.310
It shows the deleted time original path and the size worthy to Vista is instead usually executed to

05:55.310 --> 05:58.130
scan and analyze recycle bin subaltern's

06:03.480 --> 06:12.590
the recycle bin begins with a security identifier of the user run the tool in the sample folder.

06:12.840 --> 06:19.260
And we can see the output is similar to that of the refuse to put the info to file because it displays

06:19.260 --> 06:23.480
the index with the deleted time original path and the size of each file.

06:24.630 --> 06:27.520
In this video we covered the file carving process.

06:27.630 --> 06:32.850
We introduced concepts like unallocated disk space and file slacke space.

06:32.850 --> 06:36.440
Even the theory behind the identification of deleted files.

06:36.600 --> 06:42.720
Then we introduced the windows recycle bin and saw how to examine it with refuter to tool in the next

06:42.720 --> 06:48.290
video file carving tools were going to cover how to recover a deleted file with a sleuthed kid.

06:48.390 --> 06:53.160
Then some automated file carving tools like for most scalpel and photo rec.
