segb-core — panic-free reader for Apple SEGB container files.
What is SEGB?
SEGB is Apple's container format used by the Biome subsystem on macOS
and iOS to store user-activity streams. Each Biome stream (e.g.
~/Library/Biome/streams/restricted/App.MenuItem/local) is a SEGB file
whose records carry a state flag, one or two timestamps, and a raw protobuf
payload.
Two variants exist:
| Variant | Magic location | Header size | Alignment |
|---|---|---|---|
| SEGB v1 | Last 4 bytes of header (offset 52–55) | 56 bytes | 8 bytes |
| SEGB v2 | First 4 bytes (offset 0–3) | 32 bytes | 4 bytes |
Quick start
use File;
use BufReader;
use ;
let f = open.unwrap;
let mut r = new;
for record in read_segb.unwrap
References
- ccl-segb (Alex Caithness / CCL Solutions): https://github.com/cclgroupltd/ccl-segb
- Unit 42 research (Palo Alto Networks, 2026): https://unit42.paloaltonetworks.com/new-macos-artifact-discovered/
- forensicnomicon catalog entry
macos_biome_app_menuitem