Computer Forensics NTFS File System.

Slides:



Advertisements
Similar presentations
NTFS - The workhorse file system for the Windows Platform
Advertisements

COMP091 – Operating Systems 1
BACS 371 Computer Forensics
CSN11121/CSN11122 System Administration and Forensics File System 28/10/2011
Computer Forensics Hard Drive Format.
计算机系 信息处理实验室 Lecture 15 File Systems
NTFS MFT Example COEN 152 / 252. MFT Table Entry.
File Systems Examples.
Ext2/Ext3 Linux File System Reporter: Po-Liang, Wu.
© Microsoft Corporation1 Windows Kernel Internals NTFS David B. Probert, Ph.D. Windows Kernel Development Microsoft Corporation.
FILE SYSTEMS. File Names 1 to 255 characters in length  This includes the path You can use uppercase and lowercase (case-aware, but not case-sensitive)
1 EXT4NTFS 6FAT32 Allocation method IndexedIndexed, by “runs”Linked File representation i-node (default size 256KB) MFT record (default size 1Kb) Chain.
The FAT File System CSC 414. Objectives  Understand the structure and components of the FAT (12/16/32) File Systems  Understand what happens when a.
Day 29 File System.
Lecture 10: The FAT, VFAT, and NTFS Filesystems 6/17/2003 CSCE 590 Summer 2003.
Operating Systems File systems
1 File Management in Representative Operating Systems.
Wince File systems. File system on embedded File system choice on embedded is important –File system size can be an issue –Different media are used –
Metadata Files Excellent reference:
Files & Partitions BACS 371 Computer Forensics. Data Hierarchy Computer Hard Disk Drive Partition File Physical File Logical File Cluster Sector Word.
BACS 371 Computer Forensics
Implementing Hard Drives Chapter 10
Tasks Necessary for Setting Up a Hard Disk Initializing the disk with basic or dynamic storage type Creating partitions on basic disks or volumes on dynamic.
New Technologies File System
FAT Structure. File Allocation Table (FAT) File Systems Used with all flavors of Windows Supported by all Windows and UNIX varieties Used in flash cards.
Mastering Windows Network Forensics and Investigation Chapter 7: Windows File Systems.
Chapter 8 File Management
Presented to: Sir Ahmad Karim
Disk Structures. CTEC 1102 Formatting a Disk Two parts to formatting a disk:  Low-level (physical) formatting  High level (logical) formatting Low-level.
 FILE S SYSTEM  DIFFERENT FILE SYSTEMS  FILE SYSTEM COMPONENTS  FILE OPERATIONS  LOG STRUCTERD FILE SYSTEM  FILE EXAMPLES.
Matthew Seyer G-C Partners, LLC.  Records File System Metadata Changes  Optionally Can Retain More Depending on File System Options  Allows File System.
NTFS Architecture NTFS Physical Structure
Lecture 9: The FAT and VFAT Filesystems 6/16/2003 CSCE 590 Summer 2003.
Mastering Windows Network Forensics and Investigation Chapter 7: Windows File Systems.
CSN08101 Digital Forensics Lecture 8: File Systems Module Leader: Dr Gordon Russell Lecturers: Robert Ludwiniak.
File System Management File system management encompasses the provision of a way to store your data in a computer, as well as a way for you to find and.
Windows NTFS Introduction to Operating Systems: Module 15.
NTFS Structure Excellent reference:
Chapter 3 Partitioning Drives using NTFS and FAT32 Prepared by: Khurram N. Shamsi.
File Systems in Real-Time Embedded Applications March 5th Eric Julien Understanding How the File Allocation Table (FAT) Operates 1.
Macintosh Hierarchical File System by Imad Qamar 2190-B.
Lecture 11: The FAT, VFAT, and NTFS Filesystems 6/19/2003 CSCE 590 Summer 2003.
File Storage Organization The majority of space on a device is reserved for the storage of files. When files are created and modified physical blocks are.
MCSE Guide to Microsoft Windows Vista Professional Chapter 5 Managing File Systems.
Operating System Concepts and Techniques Lecture 18 Information management-2* FFS, UFS2, NTFS M. Naghibzadeh Reference M. Naghibzadeh, Operating System.
Lecture 18 Windows – NT File System (NTFS)
FAT File Allocation Table
NTFS 5.0 By Jeffrey Richter and Luis Felipe Cabrera From the Microsoft Systems Journal Presented by Stylianos Paparizos.
FILE SYSTEMS. Presented to: Sir. Ahmad Kareem Presented by: Sadia Rasheed Bsit
© Janice Regan, CMPT 300, May CMPT 300 Introduction to Operating Systems File systems.
Computer Forensics Hard Drive Format.
Web File System Meeting Presentation October 06. NTFS New Technology File System Muhammad Talha Ekram 2185.
NTFS Filing System CHAPTER 9. New Technology File System (NTFS) Started with Window NT in 1993, Windows XP, 2000, Server 2003, 2008, and Window 7 also.
Digital Forensics Dr. Bhavani Thuraisingham The University of Texas at Dallas Lecture #8 File Systems September 22, 2008.
File system and file structures
BACS 371 Computer Forensics
File Systems May 12, 2000 Instructor: Gary Kimura.
Silberschatz, Galvin and Gagne ©2011 Operating System Concepts Essentials – 8 th Edition Chapter 3: Windows7 Part 3.
BITS Pilani Pilani Campus Pawan Sharma Lecture ES C263 INSTR/CS/EEE F241 Microprocessor Programming and Interfacing.
Master Boot Record (MBR)
Day 28 File System.
Advanced Computer Forensics
UMBC CMSC 421 Spring 2017 The FAT Filesystem.
Computer Forensics NTFS File System.
Working with Disks Lesson 4.
Windows XP File Systems
File Systems and Partitioning Systems
FILE SYSTEM ANALYSIS Dr Fudong Li
Computer Forensics NTFS File System.
FAT File System.
Presentation transcript:

Computer Forensics NTFS File System

MBR and GPT Disks MBR disks for 32b 86x-compatibles GPT disks for 64b Itanium processors Start with a MBR in order to maintain compatibility MBR has a single partition with a partition table entry of 0xEE

NTFS Architecture

NTFS Architecture

NTFS Boot Sector Notice that the end of sector marker is 55 AA. You can look for this to find boot sectors for NTFS and DOS.

NTFS Boot Sector 0x00 3B Jump Instruction 0x03 8B OEM ID 0x0B 25B BPB 0x24 48B Extended BPB 0x54 426B Bootstrap Code. 0x1FE 2B End of Sector Marker

NTSF Boot Sector

NTSF Boot Sector Many fields are not important, but: 0x0B, Bytes per sector. 0x0D Sectors per Cluster 0x15 Media descriptor. F8: HD; F0: HD Floppy 0x28 Total sectors. 0x30 Logical cluster number for the MFT 0x38 Logical cluster number copy of the MFT 0x40 Clusters per MFT Record. 0x48 Volume serial

NTFS Boot Sector WinHex allows access to an interpreted NTFS Boot Sector. Use the Access Tab.

NTFS BPB 0x0B Bytes per sector: 00 02  0200 = 512 decimal 0x0D Sectors per cluster: 0x 08 0x0E Reserved sectors 0x 00 00

NTFS BPB 0x15: Media Descriptor: F8 is hard drive, F0 is floppy. 0x28 Total number of sectors: F7AF4E0900000000  000000094EAFF7  156,151,799 sectors, i.e. ~80GB

NTFS BPB 0x30: Logical cluster number for MFT copy 1: cluster C07FE9 (File $MFT) 0x38: Logical cluster number for MFT copy 2: cluster 40029D

NTFS BPB 0x40: Clusters per MFT record: F6 0x48: Volume Serial Number

NTFS Master File Table First four entries are replicated, so that MFT can be repaired First 16 records are reserved for metadata files, their name begins with a dollar sign ($)

NTFS Master File Table Master file table $MFT. Master file table mirror $MftMirr. Log file $LogFile. Volume $Volume Attribute definitions $AttrDef. The root folder “.” Cluster bitmap $Bitmap Boot sector $Boot (located at the beginning of partition) Bad cluster file $BadClus Security file $Secure Upcase table $Upcase NTFS extension file $Extend, that is used for future use.

NTFS Master File Table

MFT Record Structure Entries are 1KB each Entries contain File Attributes Location Data

MFT Records Small Files (<900B) are contained completely in the MFT entry.

MFT Records Folders contain index data. Small folders reside within the MFT record Larger folders have an index structure to other data blocks. They use a B-tree structure.

MFT Record Each MFT record is addressed by a 48 bit MFT entry value. First entry has address 0. Each MFT entry has a 16 bit sequence number that is incremented when the entry is allocated. MFT entry value and sequence number combined yield 64b file reference address.

MFT Record NTFS uses the file reference address to refer to MTF entries. When the system crashes during allocation, then the sequence number describes whether the MTF entry belonged to the previous file or to the current one.

MFT Record MFT entry attributes are loosely defined. Each attribute is preceded by the attribute header. The attribute header identifies Type of attribute. Size. Name.

MFT Record Structure The attribute header gives basic information about the attribute. A resident attribute is stored in the MFT entry. A non-resident entry is stored in a cluster outside the MFT.

MFT Record Structure Resident attributes are stored in MFT record. Non-resident attributes are stored in cluster runs. Cluster run consists of consecutive clusters and are identified by starting cluster and run length. NTFS distinguishes between Virtual Cluster Numbers and Logical Cluster Numbers. LCN * (#sectors in cluster) = sector number LCN 0 is first cluster in the volume (boot sector). VCN 0 refers to the first cluster in a cluster run.

MFT Record Structure MFT entry header has a fixed structure

MFT Record Structure 0x00 - 0x03: Magic Number: "FILE" 0x04-0x05: Offset to the update sequence. 0x06-0x07: Number of entries in fixup array 0x08-0x0f: $LogFile Sequence Number (LSN) 0x10-0x11: Sequence number 0x12 - 0x13: Hard link count 0x14-0x15: Offset to first attribute

MFT Record Structure 0x16 - 0x17: Flags: 0x01: record in use, 0x02 directory. 0x18-0x1b: Used size of MFT entry 0x1c-0x1f: Allocated size of MFT entry. 0x20-0x27: File reference to the base FILE record 0x28-0x29: Next attribute ID 0x2a-0x2b: (XP) Align to 4B boundary 0x2c-ox2f: (XP) Number of this MFT record 0x30-0x100: Attributes and fixup value

MFT Record Structure EXAMPLE 1: A directory entry

MFT Record MFT records start with “FILE”. A bad cluster would start with “BAAD”

MFT Record Bytes 4-5: Offset to update sequence. Bytes 6-7: Number of entries in fixup array Bytes 8-f: Log file sequence number Bytes 0x10-0x11: Sequence number: 59 00

MFT Record Bytes 0x12-0x13: 2 – hard link count Bytes 0x14-0x15: Offset to first attribute: 0x 38 Bytes 0x16-0x17: Flags: In use and contains a directory 0x 0001 | 0x 0002

MFT Record Bytes 0x14 – 0x15: First attribute starts at 0x 38 00  0x 00 38

MFT List of possible attributes Defined in $AttrDef entry of MFT, but default is: 0x10 STANDARD_INFORMATION 0x20$ATTRIBUTE_LIST 0x30$FILE_NAME0 X40 (NT) $VOLUME_VERSION (2K) $OBJECT_ID 0x50 $SECURITY_DESCRIPTOR 0x60$VOLUME_NAME 0x70 $VOLUME_INFORMATION 0x80$DATA 0x90$INDEX_ROOT 0xA0$INDEX_ALLOCATION 0xB0$BITMAP 0xC0 (NT) $SYMBOLIC_LINK, (2K) $REPARSE_POINT 0xD0$EA_INFORMATION 0xE0$EA0xF0NT$PROPERTY_SET 0x100 (2K) $LOGGED_UTILITY_STREAM

MFT Attribute Layout Attributes can be resident or non-resident. Beginning is always the same: 0x00 Attribute Type Identifier 0x04 Length of Attribute 0x08 non-resident flag 0x09 length of name 0x0a offset to name 0x0c flags

MFT Attribute Example Attribute is of type 00 00 00 01. Standard Information Attribute is 0x 00 00 00 60 bytes long. Attribute is resident (0x00) Contents are 0x 00 00 00 48 bytes long and start at offset 0x 00 18.

Standard Info Attribute Layout MFT Attribute Example Standard Info Attribute Layout 0x00 8 File Creation Time 0x08 File Alteration Time 0x10 MFT Change 0x18 File Read Time 0x20 4 DOS File Permissions 0x24 Maximum number of versions 0x28 Version number 0x2C Class ID 0x30 2K Owner ID

MFT Attribute Example This allows us to extract the file access times just as for DOS. Time values are in 100 nanoseconds since January 1, 1601 UTC.

MFT Attribute Example Second entry has attribute number 00 00 00 03  300000. $FILE_NAME attribute Total attribute length is 70 B. Contents start at offset 18B

MFT Attribute Example The content layout for the $FILE_NAME attribute is: 0x00 File reference to parent directory 0x08 File creation time 0x10 File modification time 0x20 File access time 0x28 Allocated size of file 0x30 Real size of file 0x38 Flags 0x40 File name length in unicode characters 0x42 File name in unicode

MFT Attribute Example Obviously, this is a short file name.

MFT Attribute Example Third attribute is also a file name, but this time the complete entry

NTFS Versions File system improves. Disk Layout changes.