Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

LETHAL-FORENSICS/MacOS-Analyzer-Suite

Open more actions menu

Repository files navigation

MacOS-Analyzer-Suite

A collection of PowerShell scripts for analyzing macOS Forensic Artifacts

The following MacOS Forensic Artifacts are supported yet:

  • Aftermath Storyline → Storyline-Analyzer
  • Aftermath File Timeline → Timeline-Analyzer
  • BTM dump file(s) → BTM-Analyzer
  • .DS_Store file(s) → DSStore-Analyzer
  • File Hash Lists → VirusTotal-Analyzer
  • FSEvent Logs → FSEvents-Analyzer
  • KnockKnock Results → KnockKnock-Analyzer (incl. VirusTotal-Analyzer)
  • LSQuarantine database file(s) → Quarantine-Analyzer
  • TCC database file(s) → TCC-Analyzer
  • XProtect Behavioral Service database file(s) → XProtect-Analyzer

Note

MacOS-Analyzer-Suite includes all external tools by default.

Prerequisites

  1. Windows PowerShell 5.1 or newer.

Setup

  1. Download the latest version of the MacOS-Analyzer-Suite from the Releases section.

  2. Install ImportExcel PowerShell module to import/export Excel spreadsheets, without Excel.

    Install-Module -Name ImportExcel
  3. Install Python 3 and add it to your PATH environment variable.

  4. Run the specific script in PowerShell (e.g. TCC-Analyzer.ps1).

  5. Optional: Edit Config.json to choose your own Excel color scheme.

Usage

Open PowerShell and navigate to the directory containing e.g. TCC-Analyzer.ps1 and run the script with following command: .\TCC-Analyzer.ps1

File-Browser
Fig 1: Select your TCC Database file

You can skip the file selection dialog and provide the file path to your log file with following command:
.\TCC-Analyzer.ps1 -Path "$env:USERPROFILE\Desktop\tcc_<USERNAME>"

You can specify the output directory with following command:
.\TCC-Analyzer.ps1 -Path "H:\macos-collector\tcc_<USERNAME>" -OutputDir "H:\MacOS-Analyzer-Suite"

Note

Default output directory is $env:USERPROFILE\Desktop\TCC-Analyzer
The subdirectory 'TCC-Analyzer' is automatically created.


FSEvents-Analyzer
Fig 1: FSEvents-Analyzer

MessageBox
Fig 2: MessageBox

Quarantine-Analyzer
Fig 3: Quarantine-Analyzer

TCC-Analyzer
Fig 4: TCC-Analyzer

XProtect-Analyzer
Fig 5: XProtect-Analyzer

XProtect-BehaviorService
Fig 6: XProtect Behavior Service

Bastion-Rules
Fig 7: Bastion-Rules.xlsx (Stats)

BTM-Analyzer
Fig 8: BTM-Analyzer (Background Task Management)

Tip

Aftermath Collection\Persistence\btm.txt or sudo sfltool dumpbtm > ~/Desktop/btm.txt

BTM-XLSX
Fig 9: BTM.xlsx

DSStore-Analyzer
Fig 10: DSStore-Analyzer

Storyline-Analyzer
Fig 11: Storyline-Analyzer

Storyline-SQLite
Fig 12: Storyline-Analyze.db (SQLite database w/ Views)

KnockKnock-Analyzer
Fig 13: KnockKnock-Analyzer (incl. VirusTotal-Analyzer)

VirusTotal-Analyzer
Fig 14: VirusTotal-Analyzer (Standalone)

VirusTotal-Report
Fig 15: VirusTotal-Report.xlsx

License

This project is licensed under the MIT License - see the LICENSE file for details.

Feedback

Feel free to send comments and feedback to github@lethal-forensics.com or open an issue.

Links

Aftermath by Jamf Threat Labs
macos-collector by LETHAL-FORENSICS
DB Browser for SQLite
Arsenal Image Mounter (AIM)
APFS for Windows by Paragon Software
VirusTotal CLI

About

A collection of PowerShell scripts for analyzing macOS Forensic Artifacts

Topics

Resources

Stars

Watchers

Forks

Releases

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.