• Stars
    star
    722
  • Rank 62,738 (Top 2 %)
  • Language
    Python
  • License
    MIT License
  • Created almost 5 years ago
  • Updated about 1 month ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

iOS Logs, Events, And Plist Parser

iLEAPP

iOS Logs, Events, And Plists Parser
Details in blog post here: https://abrignoni.blogspot.com/2019/12/ileapp-ios-logs-events-and-properties.html

Supports iOS/iPadOS 11, 12, 13 and 14. Select parsing directly from a compressed .tar/.zip file, or a decompressed directory, or an iTunes/Finder backup folder.

Features

Parses:
⚙️ Mobile Installation Logs
⚙️ iOS 12 & 13 Notifications
⚙️ Build Info (iOS version, etc.)
⚙️ Wireless cellular service info (IMEI, number, etc.)
⚙️ Screen icons list by screen and in grid order.
⚙️ ApplicationState.db support for app bundle ID to data container GUID correlation.
⚙️ User and computer names that the iOS device connected to. Function updated by Jack Farley (@JackFarley248, http://farleyforensics.com/).
etc...

Requirements

Python 3.9 to latest version (older versions of 3.x will also work with the exception of one or two modules) If on macOS (Intel) make sure Xcode is installed and have command line tools updated to be able to use Python 3.10 and above.

Dependencies

Dependencies for your python environment are listed in requirements.txt. Install them using the below command. Ensure the py part is correct for your environment, eg py, python, or python3, etc.

py -m pip install -r requirements.txt
or
pip3 install -r requirements.txt

To run on Linux, you will also need to install tkinter separately like so:

sudo apt-get install python3-tk

To install dependencies offline Troy Schnack has a neat process here: https://twitter.com/TroySchnack/status/1266085323651444736?s=19

To install on Windows follow the guide, courtesy of Hexordia, here: https://www.hexordia.com/s/ILEAPP-Walkthrough.pdf

Windows installation and walkthrough video, by Hexordia, here: https://www.youtube.com/watch?v=7qvVFfBM2NU

Compile to executable

To compile to an executable so you can run this on a system without python installed. If using Python 3.10 and above delete the arguments from the following terminal commands.

To create ileapp.exe, run:

pyinstaller --onefile ileapp.spec

To create ileappGUI.exe, run:

pyinstaller --onefile --noconsole ileappGUI.spec

Usage

CLI

$ python ileapp.py -t <zip | tar | fs | gz> -i <path_to_extraction> -o <path_for_report_output>

GUI

$ python ileappGUI.py 

Help

$ python ileapp.py --help

Contributing artifact plugins

Each plugin is a Python source file which should be added to the scripts/artifacts folder which will be loaded dynamically each time ILEAPP is run.

The plugin source file must contain a dictionary named __artifacts__ which defines the artifacts which the plugin processes. The keys in the __artifacts__ dictionary should be IDs for the artifact(s) which must be unique within ILEAPP; the values should be tuples containing 3 items: the category of the artifact as a string; a tuple of strings containing glob search patterns to match the path of the data that the plugin expects for the artifact; and the function which is the entry point for the artifact's processing (more on this shortly).

For example:

__artifacts__ = {
    "cool_artifact_1": (
        "Really cool artifacts",
        ('*/com.android.cooldata/databases/database*.db'),
        get_cool_data1),
    "cool_artifact_2": (
        "Really cool artifacts",
        ('*/com.android.cooldata/files/cool.xml'),
        get_cool_data2)
}

The functions referenced as entry points in the __artifacts__ dictionary must take the following arguments:

  • An iterable of the files found which are to be processed (as strings)
  • The path of ILEAPP's output folder(as a string)
  • The seeker (of type FileSeekerBase) which found the files
  • A Boolean value indicating whether or not the plugin is expected to wrap text

For example:

def get_cool_data1(files_found, report_folder, seeker, wrap_text):
    pass  # do processing here

Plugins are generally expected to provide output in ILEAPP's HTML output format, TSV, and optionally submit records to the timeline. Functions for generating this output can be found in the artifact_report and ilapfuncs modules. At a high level, an example might resemble:

import datetime
from scripts.artifact_report import ArtifactHtmlReport
import scripts.ilapfuncs

def get_cool_data1(files_found, report_folder, seeker, wrap_text):
    # let's pretend we actually got this data from somewhere:
    rows = [
     (datetime.datetime.now(), "Cool data col 1, value 1", "Cool data col 1, value 2", "Cool data col 1, value 3"),
     (datetime.datetime.now(), "Cool data col 2, value 1", "Cool data col 2, value 2", "Cool data col 2, value 3"),
    ]
    
    headers = ["Timestamp", "Data 1", "Data 2", "Data 3"]
    
    # HTML output:
    report = ArtifactHtmlReport("Cool stuff")
    report_name = "Cool DFIR Data"
    report.start_artifact_report(report_folder, report_name)
    report.add_script()
    report.write_artifact_data_table(headers, rows, files_found[0])  # assuming only the first file was processed
    report.end_artifact_report()
    
    # TSV output:
    scripts.ilapfuncs.tsv(report_folder, headers, rows, report_name, files_found[0])  # assuming first file only
    
    # Timeline:
    scripts.ilapfuncs.timeline(report_folder, report_name, rows, headers)


__artifacts__ = {
    "cool_artifact_1": (
        "Really cool artifacts",
        ('*/com.android.cooldata/databases/database*.db'),
        get_cool_data1)
}

Acknowledgements

This tool is the result of a collaborative effort of many people in the DFIR community.

More Repositories

1

ALEAPP

Android Logs Events And Protobuf Parser
Python
489
star
2

DFIR-SQL-Query-Repo

Collection of SQL query templates for digital forensics use by platform and application.
98
star
3

RLEAPP

Returns Logs Events And Properties Parser
Python
91
star
4

VLEAPP

Vehicle Logs Events And Properties Parser
JavaScript
68
star
5

iOS-Mobile-Installation-Logs-Parser

Roff
60
star
6

WLEAPP

WLEAPP is an open source project that aims to parse Windows OS artifacts for the purpose of triage analysis.
JavaScript
30
star
7

iOS-KnowledgeC-StructuredMetadata-Bplists

Scripts to extract compound bplists in the iOS -> KnowledgeC.db -> structuredmetadata table.
Python
22
star
8

Android-Usagestats-XML-Protobuf

Android Usagestats XML + Protobuf Parser
Python
19
star
9

iOS-Snapshot-Triage-Parser

Python
19
star
10

JSON-to-HTML-and-XLS

Simple script to convert JSON to html or excel
Python
17
star
11

DLEAPP

Drones Logs Events And Properties Parser
JavaScript
13
star
12

iOS-Notifications-Parser

Python script that generates a HTML triage report of iOS notifications content.
Python
12
star
13

Whatsapp-ManualBUP-Parser

Python
10
star
14

Torrent-Infohash-Calculate-Compare-Dedup

Python
8
star
15

UIDAS

Union, Intersection, Difference, and Symmetric Difference of the per line content of two text files.
Python
7
star
16

iTunesBackup-Snapshot-Triage-Parser

Python
6
star
17

UsRT

Android Usage Stats and Recent Tasks Graphical Parser
Python
6
star
18

Twines

Choose your own DFIR adventures
HTML
4
star
19

leveldb-datadump-scripts

Scripts to assist in exporting data from a leveldb data store.
Python
4
star
20

Android-LauncherDB-Parser

Python
4
star
21

LDPS

Python
3
star
22

LEAPP-Art-Misc

Misc. art & other matters related to the LEAPP projects
Shell
2
star
23

Android-Recent-Tasks-XML-Parser

Python
2
star
24

MSFT-Translate-Android-Parser

Microsoft Translate Android app parser for the xml/json data store.
Python
1
star
25

NikeRunApp-Geoparser

Scripts extract latitudes and longitudes as a CSV from the Nike Run app database.
Python
1
star
26

Misc-Scripts

Miscellaneous Scripts
Python
1
star