Understanding Data Deletion and Data Recovery in Windows
Understanding Data Deletion and Data Recovery in Windows
Copyright © Izazi Mubarok – Understanding Data Deletion and Data Recovery in Windows | FORKRIPT TALKS 1 BSSN 2021 www.forensor.com 1 1
About me
1 Professional Experiences
1. Chairman of AFDI
Outline
2. Chief of Tax Forensics at DGT
3. Digital Forensics Investigator (±10 years)
4. Founder of Forensor.com
5. Assessor of Digital Forensics Labs at KAN, BSN Understanding Type of Data
2 Education
Master in Forensic Computing and Cybercrime Investigation, Deletion in Windows
University College Dublin, Ireland (First Class Honours)
3 Professional Certification
1. Computer Hacking Forensic Investigator (CHFI)
2. Certified Ethical Hacker (CEH)
3. AccessData Certified Examiner (ACE)
Understanding Type of Data
4. Oxygen Forensic Certified Examiner (OFCE) Recovery in Windows
5. Certified Information System Auditor (CISA)
6. Certified Data Science Specialist (CDSS)
4 Overseas training
1. Benchmarking Study on Digital Forensics, USA • Recovering file from $Recycle.bin
2. Counterpart Training on Criminal Investigation, JAPAN
3. Digital Economy, Turkey
• Recovering file from exploring raw data on NTFS
5 Teaching/Sharing Experiences • Creating your own scripts to data carving
1. Government: BSSN, TNI AD, Polda Jatim, PPATK, KPK, OJK,
Itjen DKI, Itjen Kemenag RI, DJP, etc.
2. Private Sec: Banks, Insurance, etc.
3. University: UI, UNDIP, UMP, Gunadharma, etc.
Copyright © Izazi Mubarok – Understanding Data Deletion and Data Recovery in Windows | FORKRIPT TALKS 1 BSSN 2021 www.forensor.com 2 2
Forensic Computing and Cybercrime Investigation
Data &
Computer Mobile Phone Live Data
Database
Forensics Forensics Forensics
Forensics
Money
Network VoIP & Wireless Malware
Laundering
Investigation Investigation Investigation
Investigation
Programming Advanced
Linux For Advanced
for Investigators Computer
Investigators Scripting [Linux]
[Python] Forensics
Copyright © Izazi Mubarok – Understanding Data Deletion and Data Recovery in Windows | FORKRIPT TALKS 1 BSSN 2021 www.forensor.com 3 3
The Role of Digital Forensics
Copyright © Izazi Mubarok – Understanding Data Deletion and Data Recovery in Windows | FORKRIPT TALKS 1 BSSN 2021 www.forensor.com 4 4
File is so meaningful as it has at least four!
File Signature
Digital Fingerprint
Metadata
Content
Copyright © Izazi Mubarok – Understanding Data Deletion and Data Recovery in Windows | FORKRIPT TALKS 1 BSSN 2021 www.forensor.com 5 5
What do we look for?
File Signature
Digital Fingerprint
Metadata
Content
Copyright © Izazi Mubarok – Understanding Data Deletion and Data Recovery in Windows | FORKRIPT TALKS 1 BSSN 2021 www.forensor.com 6 6
File is organized by File system
Copyright © Izazi Mubarok – Understanding Data Deletion and Data Recovery in Windows | FORKRIPT TALKS 1 BSSN 2021 www.forensor.com 7 7
Windows File system
NTFS
special
files
Copyright © Izazi Mubarok – Understanding Data Deletion and Data Recovery in Windows | FORKRIPT TALKS 1 BSSN 2021 www.forensor.com 8 8
How to delete a file in Windows?
1. Drag and drop file into Recycle Bin
2. Select file, press “Delete” key
3. Select file, right-click, select
“Delete” option
Copyright © Izazi Mubarok – Understanding Data Deletion and Data Recovery in Windows | FORKRIPT TALKS 1 BSSN 2021 www.forensor.com 9 9
How to delete a file in Windows?
4. Select file, press “Shift” and
“Delete” keys
5. Select file, right-click, press “Shift”
key and select “Delete” option
6. Delete file from command line
Copyright © Izazi Mubarok – Understanding Data Deletion and Data Recovery in Windows | FORKRIPT TALKS 1 BSSN 2021 www.forensor.com 1010
How to delete a file in Windows?
Copyright © Izazi Mubarok – Understanding Data Deletion and Data Recovery in Windows | FORKRIPT TALKS 1 BSSN 2021 www.forensor.com 1111
How to recover a file deleted in Windows?
Copyright © Izazi Mubarok – Understanding Data Deletion and Data Recovery in Windows | FORKRIPT TALKS 1 BSSN 2021 www.forensor.com 1212
Recovering file from $Recycle.bin
File Recycling Recycle Bin on NTFS drives SID Named Folder
Copyright © Izazi Mubarok – Understanding Data Deletion and Data Recovery in Windows | FORKRIPT TALKS 1 BSSN 2021 www.forensor.com 1313
$IYB6LR4.txt Have fixed size of 544 bytes
Copyright © Izazi Mubarok – Understanding Data Deletion and Data Recovery in Windows | FORKRIPT TALKS 1 BSSN 2021 www.forensor.com 1414
Case study: Forensics Analysis of a File $IYB6LR4.txt
Name : $IYB6LR4.txt
File Size : 544 bytes
Physical Size : 544 bytes
Date Accessed : 4/25/2020 1:49:13 AM
Date Created : 4/25/2020 1:49:13 AM
Date Modified : 4/25/2020 1:49:13 AM
Size of $RYB6LR4.txt file in bytes
64-bit LE Value A6 01 00 00 00 00 00 00
01 A6 = 422 bytes
Date & Time of Recycling
Decode Hex Value 40 EA 9A B8 A3 1A D6 01
Sat, 25 April 2020 01:49:13 UTC
Convert Hex Value to Unicode
Copyright © Izazi Mubarok – Understanding Data Deletion and Data Recovery in Windows | FORKRIPT TALKS 1 BSSN 2021 www.forensor.com 1616
Recover file from exploring raw data on NTFS
Disk Structure Size on disk Number system Raw Data
Copyright © Izazi Mubarok – Understanding Data Deletion and Data Recovery in Windows | FORKRIPT TALKS 1 BSSN 2021 www.forensor.com 1717
Logical disk structure
Disk Structure Size on disk Number system Raw Data
Copyright © Izazi Mubarok – Understanding Data Deletion and Data Recovery in Windows | FORKRIPT TALKS 1 BSSN 2021 www.forensor.com 1818
Information storage
Disk Structure Size on disk Number system Raw Data
Sector is the basic disk unit, usually contains 512 data bytes
Copyright © Izazi Mubarok – Understanding Data Deletion and Data Recovery in Windows | FORKRIPT TALKS 1 BSSN 2021 www.forensor.com 1919
Number system
Disk Structure Size on disk Number system Raw Data
Binary Digits: 0, 1
Decimal Digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
Hex Digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F
Copyright © Izazi Mubarok – Understanding Data Deletion and Data Recovery in Windows | FORKRIPT TALKS 1 BSSN 2021 www.forensor.com 2020
Representing textual-information
Disk Structure Size on disk Number system Raw Data
Convert to Decimal
Interpret to ASCII/Unicode
Copyright © Izazi Mubarok – Understanding Data Deletion and Data Recovery in Windows | FORKRIPT TALKS 1 BSSN 2021 www.forensor.com 21 21
SK
Copyright © Izazi Mubarok – Understanding Data Deletion and Data Recovery in Windows | FORKRIPT TALKS 1 BSSN 2021 www.forensor.com 2222
Convert multi-bytes value of hex
Convert the multi-bytes value
Disk Structure Sizeof
on0x0080
disk to decimal?
Number system Raw Data
Copyright © Izazi Mubarok – Understanding Data Deletion and Data Recovery in Windows | FORKRIPT TALKS 1 BSSN 2021 www.forensor.com 2323
SK
Copyright © Izazi Mubarok – Understanding Data Deletion and Data Recovery in Windows | FORKRIPT TALKS 1 BSSN 2021 www.forensor.com 2424
Search all file signature (hex) of $MFT. Check each of $MFT from
the last result
Search for filenames that start with “$I” in $FILE_NAME
Open image using HXD attribute (3000 000)
Read MBR (sector 0 on image/disk, size 512b) Get the original filename in $DATA attribute (8000 000)
Get 64 bytes of partition table Find $STANDAR_INFORMATION attribute (1000 000) and save the
attribute
Check offset 0x04, find the ID type NTFS (07)
If Non-Resident (0x08 value 0x01), check value 0x20 for the offset
Find the starting sector of Partition (4 bytes offset 0x08)
of the Run List
Get the number of sector (4 bytes offset 0x0C)
Interpret the Run List to get starting cluster of file and get the
Go to the starting sector of NTFS, add number of sectors & save NTFS number of cluster used
Extract data (hex) from the starting cluster (Run List) and add
Get the size of sector (2 bytes offset 0x0B) Logical Size (8 bytes offset 0x30)
Get the number sectors per cluster (1 byte offset 0x0D)
Find the size (4 bytes offset 0x10) and offset to the attribute
Calculate size per cluster (in bytes) stream (2 bytes offset 0x14)
Find metadata (Creation; Modification, $MFT Modification; Last
Get the starting cluster for $MFT (8 bytes offset 0x30) Access and each 8 bytes) and decode using Dcode
Copyright © Izazi Mubarok – Understanding Data Deletion and Data Recovery in Windows | FORKRIPT TALKS 1 BSSN 2021 www.forensor.com 2525
Create your own scripts to data carving
Copyright © Izazi Mubarok – Understanding Data Deletion and Data Recovery in Windows | FORKRIPT TALKS 1 BSSN 2021 www.forensor.com 2626
Summary
Digital Forensics help us to preserve and recovery Digital Evidence, and
reconstruct any Digital Crime.
Copyright © Izazi Mubarok – Understanding Data Deletion and Data Recovery in Windows | FORKRIPT TALKS 1 BSSN 2021 www.forensor.com 2727
[email protected]
[email protected]
+62 852 8647 0009