07 - iOS Forensics Flashcards
What are the six most important databases for iOS forensics?
- Contacts: Addressbook.sqlitedb
- Call History: call_history.db
- Chats: ChatStorage.sqlite
- Calendar: Calendar.sqlitedb / Extras.db
- SMS: sms.db
- Location: consolidated.db
What are the two main databases for Contact details?
- AddressBook.sqlitedb: Information saved for each contact. Important tables: ABPerson and ABMultiValue.
- AddressBookImages.sqlitedb: Containing the images associated to given contact. Important tables: ABFullSizeImage.
What are the four steps to retrieve Contact information?
- Examine the schema of ABPerson table
- Retrieve all information from the ABPerson
- Examine the schema of other tables (ABMultiValue, ABMultiValueEntry, ABMultiValueLabel)
- Retrieve information from the ABPerson, ABMultiValue, ABMultiValueEntry, ABMultiValueLabel tables
ModificationDate: NSDate Format (# of seconds since 2001). Convert to Unix epoch: +978’307’200
Where are call history information stored?
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 do you build a SQL CASE statement?
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 ;
Where are SMS information stored?
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*
Where are calendar data stored?
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
Where are chat information stored?
Stored under …/Documents. File name: ChatStorage.sqlitedb. Contains chat information from third party applications, such as Viber, WhatsApp, etc. Important table: zwamessage.
Where are iPhone location data stored?
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 can you only show the first three entries of a table?
SELECT * FROM table_name LIMIT 3
How can you show 10 entries starting at entry 6?
SELECT * FROM table_name LIMIT 5,10
How to convert NSDate format into Unixepoch and then into human readable format?
SELECT MAC, datetime(Timestamp+978307200, ’unixepoch’, ’localtime’) FROM WifiLocation