Apple property list parsing with EnScript

The third blog in the series following on from Using the Generic SQLite Database Parser EnScript in forensic examination of a mobile device, will focus…

Carl Purser  profile picture
Carl Purser

October 06, 20226 minute read

The third blog in the series following on from Using the Generic SQLite Database Parser EnScript in forensic examination of a mobile device, will focus on Apple Property List (plist).  Plists are used to store user and system related information and are usually found in either a binary or XML format, some will have relevance in DFIR examinations of Apple devices. 

Whilst OpenText™ EnCase™ and OpenText™ EnCase™ Mobile Investigator has automated functionality to parse and present content from some iPhone and iPad plists, there may be a need to parse others and extend the reach of supported artifacts.

In common with the previous blog where EnScript programs were introduced for viewing and parsing SQLite databases, EnScript is again the savior.  The ability to parse Apple plist is the function of either:

  • Generic Plist Parser EnScript
  • Plist Viewer EnScript Plugin

The Generic Plist Parser can automate the parsing of plist simultaneously, whereas the Plist Viewer Plugin is great for an individual or ad-hoc parse. Both of these EnScript programs have a place in the EnCase toolbox, they are invaluable neither of which I could be without.

The Plist Viewer Plugin is great when researching a new property list, perhaps from an iOS update or a new app of interest.  Whilst there is much more functionality within the Plist Viewer Plugin, it does provide great functionality to have a quick look at the contents of a plist and decide on the relevance.  Being able to initiate from the contextual menu makes it quick and simple to use.

Take for example a binary property list from iOS called IconState.plist, which can be examined to determine app layout for an iPhone or iPad home screen(s). Initiating the Plist Viewer plugin from the contextual menu, relevant content can be bookmarked for use within a report or written to a logical evidence file (LEF).  In addition options are present within the Plist Viewer Plugin output to bookmark or write to LEF the complete parsed structure of the plist

Internal structure of IconState.plist from Apple iOS, viewed using the Plist Viewer EnScript plugin

The Plist Viewer Plugin was invaluable during research and examination of the SQLite databases BrowserState.db and SafariTabs.db.  Dependent on the version of iOS or iPadOS, they can be used by mobile Safari to maintain a ‘state’ of open tabs in the browser.

So how does a Plist Viewer aid in the examination of a SQLite database? 

Both the BrowserState.db and SafariTabs.db contain fields that use a BLOB data type to store property list.  SafariTabs.db being the newer database, using that as an example.

SafariTabs.db, illustrating a binary property list being stored using a BLOB data type

During initial research, the BLOB from the local_attributes field was initially extracted directly from the SQLite database and introduced to EnCase, then for efficiency using the SQLite BLOB extractor EnScript.

In either instance – a plist needed parsing.

Using the Plist Viewer Plugin as a research tool, viewing the structure exposed an embedded binary plist, SessionState.

Binary plist exported from SafariTabs.db, imported into EnCase to view the structure and parse using the Plist Viewer Plugin.  Illustrated an embedded binary plist, within the exported binary plist

Research and examination, initially using an external SQLite viewer and the Plist Viewer Plugin within EnCase, showed reference to web pages that had been browsed in open Safari tabs, even if that open tab is ‘private’.  Pretty neat ‘private’ internet related activity that would not have been discovered in the internet history.

This led to the development of EnScripts that automated the process:

  • BrowserState.db parser
  • SafariTabs.db parser

Illustrated below, output from the SafariTabs.db parser EnScript highlights one of the parsed records where an open Safari tab had been used for private browsing.  The parsed content includes that from the binary plist stored as BLOB shown earlier, and the embedded binary plist as seen with the Plist Viewer Plugin in EnCase.

Output from the SafariTabs.db parser enscript. Illustrating records from open tabs used for Private browsing,
highlighting record #21 and sample parsed information

Due to the increased prevalence of Apple using a BLOB data type to store plists in SQLite databases, the SQLite BLOB Extractor EnScript was updated to automate the parsing of the BLOB as a plist:

SQLite BLOB Extractor EnScript, highlighting the option to bookmark the extracted BLOB as a property list for further examination in EnCase

The Generic Plist Parser EnScript excels at parsing multiple property lists simultaneously, including functionality to pre-configure with known plists, those which are invaluable to any and every investigation.  They can be selected and efficiently parsed at the very beginning of the forensic examination.

As can be seen below, a selection of iOS plists have been custom configured within the Plist Parser.  Some artifacts from these may not automatically be parsed by EnCase but is made possible by the excellent support within EnScript.  The power is in the hands of the examiner, allowing for full customization and flexibility, especially crucial in the ever-evolving field of mobile device forensics.

Plist Parser EnScript, configured with plist’s relevant to iOS

EnCase has features and support for an array of mobile devices and artifacts.  As has been discussed in this series of blogs, an examiner can go beyond that core functionality and extend the artifact reach.  Be that for a new artifact which is pivotal to a forensic examination, or to validate the output from the forensic tool, there are a collection of EnScripts to aid the parsing of the data structures discussed.

The qualified Learning Services EnCase training team have years of experience of EnCase Security products, services and delivering training. 

The EnScripts discussed are demonstrated and used during both the DF125 Mobile Device Examinations with EnCase and the DF420 Mac Examinations with EnCase courses. They can be registered for and purchased individually or taken as part of the OpenText Learning Subscription, Security Edition Premium .

Share this post

Share this post to x. Share to linkedin. Mail to
Carl Purser avatar image

Carl Purser

Carl has been engaged in the field of digital forensics for nearly 17 years, having started his career with the Metropolitan Police London in 2002. Primarily focusing on forensic examination of Windows and Apple computer systems he has forensically examined numerous iPhone and iPad devices. In November 2010 he become an EnCase instructor, providing in-depth instruction in the use of EnCase in the field of digital forensics.

See all posts

More from the author

Using the Generic SQLite Database Parser EnScript in forensic examinations of a mobile device

Using the Generic SQLite Database Parser EnScript in forensic examinations of a mobile device

In my previous blog, the use of EnScript was introduced as a benefit to extend the artifact reach and add custom parsing for the yet…

September 30, 2022 5 minute read

Mobile device examination with EnCase

Mobile device examination with EnCase

Anyone engaged in DFIR (Digital Forensics & Incident Response) will recognize and understand the field moves and evolves at a rapid rate. There is always…

September 27, 2022 4 minute read

Mobile and wearable device examination

Mobile and wearable device examination

With the arrival of 5G technology, the increasing popularity of fitness trackers and smart watches, and growth in other “wearable tech”, the amount of data…

July 09, 2019 3 minute read

Stay in the loop!

Get our most popular content delivered monthly to your inbox.