Filesystem analysis using TSK
Filesystem analysis using TSK
Filesystem Tools
Conclusions
April 8, 2024 Filesystem Analysis using TSK © IIIT Pune
Physical Structure of Hard Disk
A sector can contain 512 bytes. The minimum size OSes write
on the disk.
A filesystem is a method and data structure that the operating system uses to control how
data is stored and retrieved.
By separating the data into pieces and giving each piece a name, the data is easily isolated
and identified.
For storing and retrieving files, file systems make use of metadata, which includes the date
the file was created, data modified, file size, file name and so on.
It provides a mechanism for users to store data logically in a hierarchy of files and directories.
Major filesystems include FAT, NTFS, HFS, HFS+, Ext2, Ext3, Ext4 etc.
April 8, 2024 Filesystem Analysis using TSK © IIIT Pune
1. NTFS
NTFS (New Technology File System) is the file
system was introduced in 1993 for Win NT 3.1 and
is now default file system for NT based OS (Win NT,
2K,2K3, XP, ...)
Microsoft reserves first 16 MFT entries for the file Hidden files and folders in
system metadata files. NTFS
April 8, 2024 Filesystem Analysis using TSK © IIIT Pune
Metadata files stored in the MFT
Resident attributes: These are the attributes contained in the MFT entry.
Non-resident attributes: These are the attributes that are allocated with one or more clusters
of disk space.
The Sleuth Kit (TSK) is open source software that allows you
to forensically analyze disk images and local drives.
create an index
of hashes and
Processing data as a volume system, e.g., DOS perform fast
partition tables lookups of them
TSK will auto-detect the filesystem type and can search for your file (even if it is deleted):
• icat: Extracts the data units of a file, which is specified by its meta data address (instead of
the file name).
• ifind: Finds the meta data structure that has a given file name pointing to it or the meta
data structure that points to a given data unit.
• ils: Lists the meta data structures and their contents in a pipe delimited format.
• istat: Displays the statistics and details about a given meta data structure in an easy to
read format.
Using tsk_recover tool, we can export files from an image into a local directory.
We can execute the command below specifying the path where you want to store
recovered files.
The Sleuth Kit (TSK) is a library and collection of Unix- and Windows-based tools and utilities
to allow for the forensic analysis of computer systems. It was written and maintained by
digital investigator Brian Carrier.
TSK typically involves data recovery, extracting hidden files, accessing protected content if
technically feasible and legally appropriate, etc.
TSK is normally used in conjunction with its custom front-end application, Autopsy, to
provide a user friendly interface.
TSK can be used for understanding what data is stored on a disk drive (even if the operating
system has removed all meta data), recovering deleted image files, and searching for files by
name or included keyword.
April 8, 2024 Filesystem Analysis using TSK © IIIT Pune
Contact
Contact:
ORCID: http://orcid.org/0000-0003-3357-1398
ResearchGate: https://www.researchgate.net/profile/Bhupendra_Singh38