
Gerador de linha do tempo forense para macOS usando as bases de dados de resultados de análise do mac_apt.
Esta é uma ferramenta DFIR para gerar uma linha do tempo forense do macOS a partir dos bancos de dados de resultados de análise do mac_apt.
% git clone https://github.com/mnrkbys/ma2tl.git
% python ./ma2tl.py -h
usage: ma2tl.py [-h] [-i INPUT] [-o OUTPUT] [-ot OUTPUT_TYPE] [-s START] [-e END] [-t TIMEZONE] [-l LOG_LEVEL] plugin [plugin ...]
Forensic timeline generator using mac_apt analysis results. Supports only SQLite DBs.
positional arguments:
plugin Plugins to run (space separated).
optional arguments:
-h, --help show this help message and exit
-i INPUT, --input INPUT
Path to a folder that contains mac_apt DBs.
-o OUTPUT, --output OUTPUT
Path to a folder to save ma2tl result.
-ot OUTPUT_TYPE, --output_type OUTPUT_TYPE
Specify the output file type: SQLITE, XLSX, TSV (Default: SQLITE)
-s START, --start START
Specify start timestamp. (ex. 2021-11-05 08:30:00)
-e END, --end END Specify end timestamp.
-t TIMEZONE, --timezone TIMEZONE
Specify Timezone: "UTC", "Asia/Tokyo", "US/Eastern", etc (Default: System Local Timezone)
-l LOG_LEVEL, --log_level LOG_LEVEL
Specify log level: INFO, DEBUG, WARNING, ERROR, CRITICAL (Default: INFO)
The following 4 plugins are available:
FILE_DOWNLOAD Extract file download activities.
PERSISTENCE Extract persistence settings.
PROG_EXEC Extract program execution activities.
VOLUME_MOUNT Extract volume mount/unmount activities.
----------------------------------------------------------------------------
ALL Run all plugins
Os seguintes 4 plugins estão disponíveis: FILE_DOWNLOAD Extrai atividades de download de arquivos. PERSISTENCE Extrai configurações de persistência. PROG_EXEC Extrai atividades de execução de programas. VOLUME_MOUNT Extrai atividades de montagem/desmontagem de volumes. ---------------------------------------------------------------------------- ALL Executa todos os plugins

Infelizmente, a versão mais recente do mac_apt não consegue analisar arquivos de Logs Unificados corretamente. Então você precisa substituir o UnifiedLogs.db por um banco de dados criado pelas ferramentas auxiliares.
Esta ferramenta foi publicada na Japan Security Analyst Conference 2022 (JSAC2022).
Slides disponíveis abaixo: