DFIR Blog
  • Infosec
    • Blog
    • Threat Landscape
  • Digital Forensics
    • Windows Forensics
    • Mac Forensics
    • Memory Forensics
    • Forensic Resources
  • Incident Response
  • CISSP
    • Domain-1
    • Domain-2
    • Domain-3
    • Domain-4
    • Domain-5
    • Domain-6
    • Domain-7
    • Domain-8
  • Contact
  • HTB
  • Productivity

Blog

Filesystem HFS+/APFS

4/4/2018

 
​Filesystem 
HFS+ (Hierarchical File System) (1998 – 2018)
  • macOS 10.12-
  • iOS 10.2-
  • Big Endian (Flip Hex Editor)
 
APFS (Apple File System)
  • macOS 10.13+
  • iOS 10.3+
  • Similar to HFS and Additional Stuff like highly nested stuff
  • Keep eye on Blog
 
HFS+ Volume Header & Special FilesCatalog File (Forensics Gold) - BTree
Extents Overflow – B Tree
Attributes File (Forensics Gold)  – BTree
 
Volume Header & Example
  • Lot of meta data
  • Fsstat/hdiutil
 
B-TreesThink of it as a FLAT File
  • Also used in APFS
  • Used by Catalog, Attributes, Extents Overflow File
  • Used for efficiency in searching stored data
  • Made up of Nodes, Records, Keys (Catalog ID – Unique Value) & Data
  • Ordered Key
  • Header Node (always 1 and always at 0)
  • Map Node (Allocation type of data)
  • Index Data is like Pointers
  • Leaf Node (Forensic Gold) – This will contain filesystem metadata.
  • Read page 18-19
  • FF notified a leaf node
  • 01 is header
Leaf Node
  • Bottom of  a tree
  • Key Length – Always 2 Bytes in HFS +
  • There are random null bytes for padding
Catalog File
  • Hold File System Metadata
  • CNID or i-node number
  • First 15 Reserved by Apple
  • 4 is catalog Files
  • 6 is allocation File
  • Sort by CNID
  • Sleuth kit is used to extract out catalog file
  • Used MMLS to find offset
Catalog file key
  • 2 bytes | Key length
  • 4 Bytes | Parent CNID
  • Variable | Node Name (File Name)
  • Folder Record
  • File Record
  • Extense Overflow File
  • KMDI Where from is the data downloaded via Internet
 

Comments are closed.

    Mac Forensics
    Windows Forensics
    Forensic Tools

    Categories

    All
    Attack
    Bash
    Bigdata
    Corporate
    Ctf
    Data
    Digital Forensics
    Docker
    EDR
    Forensics
    Hacking
    Hadoop
    HDFS
    Health Care
    Linux
    Memory
    Network
    Network Forensics
    PCIP
    SQL
    Windows
    Wireshark

    Archives

    January 2023
    October 2019
    September 2019
    July 2019
    June 2019
    May 2019
    March 2019
    April 2018
    March 2018
    February 2018
    July 2017
    June 2017
    May 2017
    November 2015
    October 2015
    July 2015
    June 2015
    May 2015
    April 2015
    March 2015

    RSS Feed

  • Infosec
    • Blog
    • Threat Landscape
  • Digital Forensics
    • Windows Forensics
    • Mac Forensics
    • Memory Forensics
    • Forensic Resources
  • Incident Response
  • CISSP
    • Domain-1
    • Domain-2
    • Domain-3
    • Domain-4
    • Domain-5
    • Domain-6
    • Domain-7
    • Domain-8
  • Contact
  • HTB
  • Productivity