unit-1
unit-1
File Systems
• FAT12 was the original version of the FAT file system, which was first introduced in
1980 with MSDOS. It was designed for small disks, with a maximum size of 16MB
and a cluster size of 512 bytes. FAT12 is no longer commonly used, but it can still
be found on some older devices such as digital cameras and music players.
• FAT16 was the next version of the FAT file system, which was introduced in 1984
with the release of MS-DOS 3.0. It supports larger disks than FAT12, with a maximum
size of 2GB and a cluster size of up to 64KB. FAT16 is still used on some devices, but
it is not as common as it used to be.
• FAT32 is the most recent version of the FAT file system, which was introduced in
1996 with the release of Windows 95 OSR2. It was designed to support larger disks
than FAT16, with a maximum size of 2TB and a cluster size of up to 32KB. FAT32 is
still widely used today, particularly on removable storage devices such as USB
drives and SD cards.
Explanation of how FAT manages files
• When a file is created or saved, the operating system allocates one or more
clusters to the file and updates the corresponding entries in the FAT to indicate
that these clusters are now in use. The first entry in the FAT is reserved for the root
directory of the disk, which contains a list of all the files and directories on the disk.
• To access a file, the operating system uses the FAT to find the first cluster of the file
and then follows the chain of clusters that make up the file, using the pointers in
the FAT entries to locate each subsequent cluster. When a file is deleted or
moved, the operating system marks the corresponding clusters in the FAT as free,
making them available for use by new files.
• The FAT also helps to manage available space on the disk by keeping track of
free clusters and allocating them to new files as needed. When a file is saved or
modified, the operating system checks the FAT to find a sequence of free clusters
that are large enough to hold the file and allocates them to the file.
• NTFS, which stands for NT file system and
the New Technology File System, is the file
system that the Windows NT operating system
(OS) uses for storing and retrieving files on hard
disk drives (HDDs) and solid-state drives
(SSDs). NTFS is the Windows NT equivalent of
NTFS the Windows 95 file allocation table (FAT) and
the OS/2 High Performance File System
(HPFS). However, NTFS offers several
improvements over FAT and HPFS in terms of
performance, extendibility and security.
NTFS features
One distinguishing characteristic of NTFS, compared with FAT, is that it
allows for file permissions and encryption. Notable features of NTFS
include the following:
• Organizational efficiency. NTFS uses a b-tree directory scheme to keep track of file
clusters. This is significant because it allows for efficient sorting and organization of
files.
• Accessible data. It stores data about a file's clusters and other data in the MFT,
not just in an overall governing table as with FAT.
• File size. NTFS supports very large files.
• User permissions. It has an access control list that lets a server administrator control
who can access specific files.
NTFS features
• Compression. Integrated file compression shrinks file sizes and provides more
storage space.
• Unicode file naming. Because it supports file names based on Unicode, NTFS has a
more natural file-naming convention and allows for longer file names with a wider
array of characters. Non-Unicode naming conventions sometimes require
translation
• Secure. NTFS provides security for data on removable and nonremovable disks.
• Requires less storage. It has support for sparse files that replaces empty
information -- long strings of zeros -- with metadata that takes up a smaller volume
of storage space.
• Easy volume access. NTFS uses mounted volumes, meaning disk volumes can be
accessed as normal folders in the file system.
Advantages of NTFS
• Control. One of the primary features of NTFS is the use of disk quotas, which gives
organizations more control over storage space. Administrators can use disk
quotas to limit the amount of storage space a given user can access.
• Performance. NTFS uses file compression, which shrinks file sizes, increasing file
transfer speeds and giving businesses more storage space to work with. It also
supports very large files.
• Security. The access control features of NTFS let administrators place permissions
on sensitive data, restricting access to certain users. It also supports encryption.
• Easy logging. The MFT logs and audits files on the drive, so administrators can
track files that have been deleted, added or changed in any way. NTFS is a
journaling file system, meaning it logs transactions in a file system journal.
Advantages of NFTS
• Reliability. Data and files can be quickly restored in the event of a
system failure or error, because NTFS maintains the consistency of
the file system. It is a fault tolerant system and has an MFT mirror file
that the system can reference if the first MFT gets corrupted.
Disadvantages of NTFS
• Limited OS compatibility. The main disadvantage of NTFS is limited OS
compatibility; it is read-only with non-Windows OSes.
• Limited device support. Many removable devices don't support NTFS, including
Android smartphones, DVD players and digital cameras. Some other devices
don't support it either, such as media players, smart TVs and printers.
• Mac OS X support. OS X devices have limited compatibility with NTFS drives; they
can read them but not write to them.
Parsing FAT/NTFS
file systems
File Allocation Table
File slack consists of the difference between the size of a physical file and the size of a logical
file. The physical size of a file is the size of the file that is stored on the hard drive and the
logical size of a file is the actual size of a file (Anon, 2008).
1. To find the length of a file, select the hex view; then simply scroll down to the bottom of
the hex pane related to the file and click on the last byte. Alternatively, you can click the
‘Properties’ pane on the left hand side and the length of the file will be listed.
2. To find the file slack of a file simply find the file slack file that is linked to the file you have
selected and in the ‘Properties’ pane again and the size will be listed.
3. To further find how many clusters are (depending on how many bytes are in the clusters)
present in a file you need to add the length of the file and the file slack together divided
by how the size of each individual cluster in bytes.
LOOKING AT A FILE AND ITS FILE SLACK
Figure 1: Properties
tab in FTK.
VOLUME BOOT RECORD(MBR) AND MASTER BOOT
RECORD(MBR)
• The Volume Boot Record is the first sector of the
Windows Boot Sector where there are eight
more sectors that follow this. Seven of the
sectors consist of 512-byte sectors with an extra
40 bytes to start the eighth sector (Sedory,
2015).
• The Master Boot Record (sometimes known as
‘Master Partition Table’) is the first sector of the
whole disk on any system and is used to identify
how and operating system is located and
where to ensure it can be loaded into the RAM
(Random Access Memory) or the computer’s
main system (Rouse, 2005). The MBR is the first
part of the disk to be read. In FTK, in order to
view just the contents of the MBR, simply click
‘Unpartitioned Space’ in the File List and MBR
will appear as shown in Figure 3.
Figure 3: The view of MBR.
NTFS File system
• New Technology File System (NTFS) was first
created and released by Microsoft in 1993 and
is now the main file system used within the
Windows operating systems from Windows
2000 onwards. From Windows 7 new
computers will default set their file systems to
NTFS (Domingo, 2013). The NTFS file system is
able to support hard drives just under 16
exabytes whereby each file size is individually
capped at 256 terabytes in Windows 8 and
later versions.
• Within NTFS contains the Master File Table
(MFT) which is a file that consists of information
that is 1024-byte records in every other file or
directory within the NTFS volume. The
operating system needs to collect the files
where the data is stored in the MFT. This may
be the creation date and time to the name
and size of the file etc (Beal, n.d.). Then as
shown in Figure 4 the $MFT file will look
something similar to this when inspecting the
element. Furthermore, in the ‘Properties’ pane
will contain the ‘MFT Record Number’ Figure 4: The layout
(Butterfield, n.d.). of an $MFT file.
Importance of Malware detection
Each line within the server log file contains significant information,
including:
• The device’s IP address
• Request method
• Date and time of the request
• Status of the request
• Referrer method
• User-Agent
• Requested file information, including file name, size and network location
Why do we need server logs