iOS artifacts · Lesson 4 of 7
KnowledgeC and Biome: pattern-of-life evidence
10 min read
An iPhone records, for its own purposes, a running account of how it is used: which app was on screen, when the device was locked and unlocked, when it was charging, which Wi-Fi network and Bluetooth devices it saw, and much more. Apple collects these events to power features such as Siri Suggestions and Screen Time, not to serve investigators, but they let an examiner reconstruct what the user was doing minute by minute. For years the main source was knowledgeC.db. On recent iOS versions most of that data has moved to Biome, a set of streams stored in a binary format called SEGB. This lesson explains both stores, where they live, how their records are structured and timed, and how to interpret them without overstating what they show.
KnowledgeC
KnowledgeC is part of CoreDuet, Apple's framework for learning user behavior. Its database is /private/var/mobile/Library/CoreDuet/Knowledge/knowledgeC.db. It is generally available only in a full file system extraction, not in a backup.
Structure
Events are rows of the ZOBJECT table. The columns you need are:
- ZSTREAMNAME: the stream the event belongs to, written like a path, for example /app/inFocus or /device/isLocked.
- ZVALUESTRING, ZVALUEINTEGER, ZVALUEDOUBLE: the value, such as the bundle ID of the app in focus or a battery percentage.
- ZSTARTDATE and ZENDDATE: the start and end of the state, in Mac absolute seconds.
- ZCREATIONDATE: when the record was created or copied into the store.
- ZSECONDSFROMGMT: the UTC offset of the device's time zone when the row was written.
- ZSTRUCTUREDMETADATA: a link to the ZSTRUCTUREDMETADATA table, which holds extra fields for some streams.
- ZSOURCE: a link to ZSOURCE, whose ZDEVICEID identifies a peer device when the event was synced from another device.
Commonly parsed streams include /app/inFocus (app in the foreground), /app/usage, /app/webUsage, /app/activity, /device/isLocked, /device/batteryPercentage, /device/isPluggedIn, /notification/usage and /safari/history.
A worked example shows the format with illustrative values taken from Day 2 of the Corvane case (on Lena's iOS 26 phone this stream is empty, and the same interval comes from Biome): a /app/inFocus row with ZVALUESTRING net.whatsapp.WhatsApp, ZSTARTDATE 794,914,845.0 and ZENDDATE 794,914,930.0 converts to 2026-03-11 09:40:45 to 09:42:10 UTC, 85 seconds. If ZSECONDSFROMGMT is 3,600, the device was set to UTC+01:00 when the row was written, so the local clock read 10:40:45. The offset describes the time zone at writing time; across a daylight saving change it may differ from the offset at the event.
What changed in recent versions
KnowledgeC is still present on current versions, but much less of it is used. In a 2026 comparison of real extractions, knowledgeC.db held more than 50 streams on iOS 13, more than 65 on iOS 14 and 15, and about 20 active streams from iOS 16. iLEAPP's tests show the same pattern for specific streams: /app/inFocus and /device/batteryPercentage had rows on iOS 12.4 to 15.3.1 images and none on any iOS 16.1.1 to 26.5.2 image tested. Apple has not documented the transition. In practice:
- On iOS 15 and earlier, knowledgeC.db is a primary source.
- On iOS 16 and later, parse knowledgeC.db anyway, but expect the app usage, device state and battery data to be in Biome.
- An empty knowledgeC stream on a recent device is expected and is not evidence that the activity never happened.
A sibling CoreDuet database, /private/var/mobile/Library/CoreDuet/People/interactionC.db, records interactions with contacts (messages, calls, mail and the like) and was still populated on iOS 18 images. It is useful corroboration for lesson 4.3.
Biome
Biome is the newer framework. Each kind of event is a stream with its own folder, and each folder holds files in the SEGB format rather than a SQLite database.
Where streams are stored
| Location | Seen on |
|---|---|
| /private/var/mobile/Library/Biome/streams/public/<stream> | iOS 14 to 16; not observed from iOS 17 |
| /private/var/mobile/Library/Biome/streams/restricted/<stream> | iOS 15 to 26, the latest version studied (user-level streams) |
| /private/var/db/biome/streams/restricted/<stream> | iOS 16 to 26, the latest version studied (system-level streams) |
| /private/var/mobile/Library/DuetExpertCenter/streams/userNotificationEvents | Notification events in SEGB form (lesson 4.5) |
Inside each stream folder:
- local holds events recorded on this device.
- remote/<identifier> holds events synced from the user's other devices. The identifier names the peer; /private/var/mobile/Library/Biome/sync/sync.db maps peers in its DevicePeer table. Remote records describe activity on another device, such as an iPad or Mac, and must not be reported as events on the phone.
- tombstone, a subfolder of local in published file listings, holds SEGB files moved out of the active stream by deletion or expiry. These files can extend the timeline, but iLEAPP skips them, so search the whole stream folder for tombstone, read the files with a SEGB library such as ccl_segb and report them separately.
- metadata describes the stream; its retention setting is commonly 2,419,200 seconds, which is 28 days.
Each SEGB file is named with a number that is Mac absolute time in microseconds, for example 800998930123456, which is 2026-05-20 19:42:10.123456 UTC (an illustrative date).
The SEGB format
Published research documents two versions (version 1 in detail for iOS 15 and 16; SEGB files were first seen on iOS 14):
| Aspect | SEGB version 1 (iOS 14 to 16) | SEGB version 2 (iOS 17 and later) |
|---|---|---|
| Signature SEGB | Bytes 52 to 55, at the end of a 56-byte header | Bytes 0 to 3, at the start of a 32-byte header |
| Record metadata | 32-byte header before each record: length, state, two timestamps, CRC32 | 16-byte trailer entries built backward from the end of the file: end offset, state, creation timestamp |
| Alignment | 8 bytes | 4 bytes |
In both versions each record has a state (1 written, 3 deleted), a timestamp in Mac absolute seconds stored as a little-endian double, a CRC32 (a 32-bit checksum) and a payload. The payload is usually a Protocol Buffers (protobuf) message, a compact binary format whose fields are identified only by numbers, so a parser needs to know what field 1, field 2 and so on mean for each stream.
When a record is deleted, its payload is typically overwritten with zeros. In version 1 the record header survives, so the state and timestamps remain. In version 2 tests on iOS 18 showed the whole record zeroed, with only the trailer entry left. A deleted record can therefore still show that something was written at a given time, even when you cannot say what.
Streams worth knowing
| Stream | Content |
|---|---|
| App.InFocus (and _DKEvent.App.InFocus under /private/var/db/biome) | Bundle ID and whether the app is entering or leaving the foreground |
| App.Install, App.WebUsage, App.Intent | App installs, web domains visited inside apps, actions apps donated to the system |
| Device.ScreenLocked, Device.KeybagLocked, Device.Display.Backlight | Screen and device lock state, backlight |
| Device.Power.PluggedIn, Device.Power.BatteryLevel | Charging and battery level |
| Device.Wireless.WiFi, Device.Wireless.Bluetooth | Wi-Fi network names with connect and disconnect flags; Bluetooth devices |
| Notification.Usage, ScreenTime.AppUsage | Notifications and Screen Time app usage (lesson 4.5) |
| Location.Visit | Inferred visits to places, with coordinates, arrival and departure (lesson 6.1) |
| Device.TimeZone, Device.Metadata | Time zone history; system version and build |
| Safari.Navigations, _DKEvent.Safari.History | Safari activity (lesson 4.7) |
These are the names used from iOS 17. On iOS 15 and 16 several of these streams are in streams/public under older names, for example AppLaunch (later App.InFocus), Notification (later Notification.Usage), Backlight, AppIntent and DeviceMetadata. Search by both names on those versions.
84 streams, and how iLEAPP reads them
In July 2026 Mattia Epifani published a study of Biome based on four iOS 18 and iOS 26 extractions. Of more than 300 user-level and about 40 system-level streams, 84 held information of obvious forensic value: 68 in the user-level repository and 16 in the system-level one. They cover app use and installs, Safari, visits, notifications, Wallet, CarPlay, Screen Time, wireless connectivity, power, Siri, message reads and keyboard use. The study does not cover iOS 27, so confirm stream names and locations on the version you examine.
iLEAPP reads SEGB version 1 and version 2 files with the open-source ccl_segb library, decodes each protobuf payload, and names fields using class definitions read from Apple's BiomeLibrary framework (on macOS) where available. Each row shows the SEGB timestamp and the decoded fields; for many streams a Sync Origin column says whether the record came from the local or a remote folder. Tombstone files are skipped, deleted records are listed with their state and timestamp only, and records that cannot be decoded are logged. iLEAPP's notes state, field by field, which meanings come from Apple's code and which are inferred from test data.
Interpreting pattern-of-life records
- Write time is not always event time. The SEGB timestamp records when the record was written. Some streams carry their own start and end times inside the payload, and Safari.Navigations stores a time rounded up to the next 30-minute boundary. Use the field that describes the event, and say which one you used.
- Lists are not connections. Several Bluetooth devices can share one SEGB timestamp, so a device's presence in Device.Wireless.Bluetooth does not prove it was connected at that time.
- Separate local and remote. Filter on Sync Origin before building a timeline of the phone.
- Retention is short. Most streams keep about 28 days; a few, such as Device.Metadata and Device.TimeZone, held roughly ten months of data in published tests. Acquire early.
- Validate with a test device. Where a finding depends on what a field means, reproduce it on a test iPhone running the same version (lesson 7.1).
Applying this to the Corvane case
Lena's iPhone was collected on Day 9, so the Biome streams, with about 28 days of retention, still cover Day 1 and Day 2. App.InFocus in the local folder shows com.apple.camera entering the foreground during working hours on Day 1, shortly before the three photos were taken, and Device.Wireless.WiFi shows the company network at the same time. On Day 2, App.InFocus shows WhatsApp in the foreground several times within a few minutes, including the interval of the worked example (10:40:45 to 10:42:10 local time), while Device.Wireless.WiFi shows the café's guest network. A remote folder holds App.InFocus records from a second device; the examiner identifies it through sync.db and excludes those records from the phone's timeline. knowledgeC.db is present but holds no /app/inFocus rows, as expected on iOS 26. The examiner records the iOS build, because these interpretations rest on published testing of iOS 26 and earlier.
Exam focus: Know the knowledgeC.db path, the ZOBJECT columns and why its streams are sparse on iOS 16 and later. Know the Biome paths, the meaning of local, remote and tombstone folders, the main differences between SEGB version 1 and version 2, and why SEGB write timestamps and remote records need care.
Practice questions
Check your understanding. These questions do not count towards the exam.
Sign in to save your progress and continue where you left off. It is free. Sign in