Giter Club home page Giter Club logo

bluemactriage's Introduction

BlueMacTriage

BlueMacTriage is a comprehensive Mac forensics triage bash script designed for Intel-based Macs. This script collects a variety of forensic data from a suspect system to assist in initial forensic investigations.

Features

  • Collects detailed system information
  • Gathers user and group information
  • Captures running processes and network connections
  • Lists installed applications
  • Collects system logs
  • Retrieves browser history (Safari, Chrome, Firefox)
  • Identifies persistence mechanisms (LaunchDaemons, LaunchAgents, cron jobs)
  • Captures detailed network configurations
  • Gathers disk and file system information
  • Checks security settings (SIP, FileVault, Gatekeeper)
  • Captures clipboard data
  • Hashes important binaries and system files
  • Zips the collected data and cleans up the temporary directory

Usage

Prerequisites

Ensure you have root privileges to run the script:

sudo ./macTriage.sh

Installation

  1. Clone the repository:
git clone https://github.com/fulco/BlueMacTriage.git
  1. Navigate to the repository directory:
cd BlueMacTriage
  1. Make the script executable:
chmod +x macTriage.sh

Running the Script

Run the script with root privileges:

sudo ./macTriage.sh

The script will create a directory in /tmp with the collected forensic data. The directory name will include the date and time the script was run, for example: /tmp/mac_forensics_(date +%Y%m%d_%H%M%S).

Once the data is collected, the script will zip the directory and save it as /tmp/mac_forensics_(date +%Y%m%d_%H%M%S).zip. The temporary directory will then be cleaned up.

Output

The script collects and stores data in the following files within the output directory:

  • system_info.txt: Detailed system information
  • users.txt: List of users
  • groups.txt: List of groups
  • user_details.txt: Detailed information for each user
  • processes.txt: List of running processes
  • open_files.txt: List of open files
  • network_connections.txt: Network connections
  • installed_apps.txt: List of installed applications
  • system.log: System log
  • kernel.log: Kernel log
  • install.log: Install log
  • appfirewall.log: Application firewall log
  • secure.log: Secure log
  • Safari_History: Safari history files
  • Chrome_History: Chrome history files
  • Firefox_History: Firefox history files
  • launchdaemons.txt: List of LaunchDaemons
  • launchagents.txt: List of LaunchAgents
  • crontab.txt: User's crontab
  • cronjobs.txt: List of cron jobs
  • network_config.txt: Network configuration
  • dns_config.txt: DNS configuration
  • proxy_config.txt: Proxy configuration
  • disk_usage.txt: Disk usage
  • disk_list.txt: List of disks
  • disk_info.txt: Detailed disk information
  • sip_status.txt: System Integrity Protection status
  • filevault_status.txt: FileVault status
  • gatekeeper_status.txt: Gatekeeper status
  • clipboard.txt: Clipboard data
  • bin_hashes.txt: Hashes of important binaries

Contributing

Contributions are welcome! Please fork the repository and submit a pull request for any improvements or additional features.

License

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

Contact

For any questions or feedback, please reach out to [Fulco] at [[email protected]].

Tested on MacOS Sonoma 14.5

bluemactriage's People

Contributors

fulco avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.