# API Reference: Autopsy and The Sleuth Kit (TSK) ## mmls - Partition Layout ### Syntax ```bash mmls mmls -t dos # Force DOS partition table mmls -t gpt # Force GPT partition table ``` ### Output Format ``` DOS Partition Table Offset Sector: 0 Slot Start End Length Description 00: 00:00 0000002048 0001026047 0001024000 NTFS (0x07) ``` ## fls - File Listing ### Syntax ```bash fls -o # List root directory fls -r -o # Recursive listing fls -rd -o # Deleted files only, recursive fls -m "/" -r -o # Bodyfile format for mactime ``` ### Flags | Flag | Description | |------|-------------| | `-r` | Recursive listing | | `-d` | Deleted entries only | | `-D` | Directories only | | `-m "/"` | Output in bodyfile format with mount point | | `-o` | Partition sector offset | ## icat - File Extraction by Inode ### Syntax ```bash icat -o > recovered_file icat -r -o > file # Recover slack space ``` ## istat - File Metadata ### Syntax ```bash istat -o ``` ### Output Includes - MFT entry number and sequence - File creation, modification, access, MFT change timestamps - File size and data run locations - Attribute list (NTFS: $STANDARD_INFORMATION, $FILE_NAME, $DATA) ## mactime - Timeline Generation ### Syntax ```bash mactime -b -d > timeline.csv mactime -b -d 2024-01-15..2024-01-20 > filtered.csv mactime -b -z UTC -d > timeline_utc.csv ``` ### Output Columns ``` Date,Size,Type,Mode,UID,GID,Meta,File Name ``` ## img_stat - Image Information ### Syntax ```bash img_stat ``` ## sigfind - File Signature Search ### Syntax ```bash sigfind -o sigfind -o 2048 evidence.dd 25504446 # Find %PDF headers sigfind -o 2048 evidence.dd 504B0304 # Find ZIP/DOCX headers ``` ### Common Signatures | Hex | File Type | |-----|-----------| | `FFD8FF` | JPEG | | `89504E47` | PNG | | `25504446` | PDF | | `504B0304` | ZIP/DOCX/XLSX | | `D0CF11E0` | OLE (DOC/XLS) | ## srch_strings - Keyword Search ### Syntax ```bash srch_strings -a -o | grep -i "keyword" srch_strings -t d # Print offset in decimal ``` ## Autopsy GUI Ingest Modules | Module | Function | |--------|----------| | Recent Activity | Browser history, downloads, cookies | | Hash Lookup | NSRL and known-bad hash matching | | File Type Identification | Signature-based file type detection | | Keyword Search | Full-text content indexing | | Email Parser | PST/MBOX/EML extraction | | Extension Mismatch | Wrong file extension detection | | Embedded File Extractor | ZIP, Office, PDF extraction | | Encryption Detection | Encrypted container identification |