Digital Forensic Tools

SQLite databases in apps

Short answer

SQLite is a small database stored in a single file. Many phone apps keep chats, calls, contacts and history in SQLite files, so reading them is a core mobile forensic skill.

What SQLite is

SQLite is a database engine that stores data in one file. The file is split into pages of equal size. Data is stored in tables, which have rows and columns. Apps use it because it is small, fast and needs no server.

Why it matters

Messaging apps, browsers, call logs and many system services save data in SQLite files. Often the file ends in .db or .sqlite, but the extension can vary, so look at the file header. A good examiner reads the tables and also knows the app's own meaning of the columns.

  • Open a copy, not the original.
  • Look at the tables and their column names.
  • Time values may be stored as numbers in different formats.

Working safely

Opening a database in a normal program can change it, for example by merging a log file. Work on a copy and keep any -wal or -journal file with the database. Always document which copy you used and its hash.

Example

A student copies a test chat app's database from a practice phone image. They open the copy in DB Browser for SQLite, list the tables, find the messages table and note that the date column holds large numbers that must be converted.

Common mistakes

  • Opening the original database on the evidence copy.
  • Leaving out the -wal file when copying.
  • Trusting a table view and ignoring deleted data.
  • Misreading timestamps because the format was not checked.
  • Assuming all app data is in SQLite.

Key terms

SQLite
A small database engine that stores data in a single file.
Table
A set of rows and columns in a database.
Page
A fixed size block of a SQLite file.
Query
A request to read data from a database.

Questions you may be asked

Why do phones use SQLite so often?

It is lightweight, stores data in one file and needs no database server.

Why should you work on a copy of a database?

Opening it can change it or merge other files into it, so the original evidence is kept unchanged.

Free tools to practise with

Learn more

Written in our own words from public forensic training material and standards. Last reviewed 24 Nov 2026. Procedures and laws differ by country and agency. Follow your own lab's procedure.