07 - iOS Forensics Flashcards

1
Q

What are the six most important databases for iOS forensics?

A
  • Contacts: Addressbook.sqlitedb
  • Call History: call_history.db
  • Chats: ChatStorage.sqlite
  • Calendar: Calendar.sqlitedb / Extras.db
  • SMS: sms.db
  • Location: consolidated.db
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the two main databases for Contact details?

A
  • AddressBook.sqlitedb: Information saved for each contact. Important tables: ABPerson and ABMultiValue.
  • AddressBookImages.sqlitedb: Containing the images associated to given contact. Important tables: ABFullSizeImage.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the four steps to retrieve Contact information?

A
  1. Examine the schema of ABPerson table
  2. Retrieve all information from the ABPerson
  3. Examine the schema of other tables (ABMultiValue, ABMultiValueEntry, ABMultiValueLabel)
  4. Retrieve information from the ABPerson, ABMultiValue, ABMultiValueEntry, ABMultiValueLabel tables

ModificationDate: NSDate Format (# of seconds since 2001). Convert to Unix epoch: +978’307’200

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Where are call history information stored?

A

Information are stored in call_history.db. Important table: call. Will only hold 100 calls (incl. FaceTime).

flags: 4=incoming, 5=outgoing, 8=blocked, 16: facetime. Everything else=dropped.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How do you build a SQL CASE statement?

A

SELECT CASE field_name

WHEN field_value1 THEN “Some Text”
WHEN field_value2 THEN “Some Other Text”

ELSE “Some More Text”

END

FROM ;

SELECT CASE field1, field2

WHEN field2 = “1” THEN “Some Text”
WHEN field2 = “2” THEN “Some Other Text”

ELSE “Some More Text”

END

FROM ;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Where are SMS information stored?

A

SMS information are stored in sms.db. Important tables are: message, sqlite_sequence, msg_group, group_member, msg_pieces.

  • Most important tables is: message.*
  • flags: 3 = sent, 2 = Received*
  • Timestamps are in unixepoch*
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Where are calendar data stored?

A

Details are stored in two databases:

  • Calendar.sqlitedb : Tables are: Alarm, AlarmChanges, Attendee, AttendeeChanges, Calendar, CalendarChanges, Event, EventChanges, EventExceptionDate, OccurrenceCache, OccurrenceCacheDays, Participant, Recurrence, RecurrenceChanges, Store, Task, TaskChanges…
    Most Interesting table: Event
  • Extras.db : ZALARM, ZSETTING, Z_METADATA, Z_PRIMARYKEY
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Where are chat information stored?

A

Stored under …/Documents. File name: ChatStorage.sqlitedb. Contains chat information from third party applications, such as Viber, WhatsApp, etc. Important table: zwamessage.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Where are iPhone location data stored?

A

In consolidated.db file stores GPS coordinates of WIFI and Cell sites. Consolidated.db can be used to track a user’s movements. Accuracy is within a few 100 meters.

  • Main tables: CellLocation and WifiLocation.
  • Timestamp: NSDate format.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How can you only show the first three entries of a table?

A

SELECT * FROM table_name LIMIT 3

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

How can you show 10 entries starting at entry 6?

A

SELECT * FROM table_name LIMIT 5,10

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

How to convert NSDate format into Unixepoch and then into human readable format?

A

SELECT MAC, datetime(Timestamp+978307200, ’unixepoch’, ’localtime’) FROM WifiLocation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly