Your Mac Has a Hidden Map of Your Life

summarized

TLDR

Two undocumented macOS background processes, running since 2022, build a local knowledge graph of your contacts, relationships, and routines using XGBoost classifiers that re-score family membership daily based heavily on photo co-appearance. The data stays on-device behind full disk access, but researchers showed that an attacker with that permission could extract enough detail to plan extortion. The real risk is not Apple but any app or script you grant full disk access to.

Key points

Two macOS processes, knowledge construction D and intelligence platform D, build a local knowledge graph of user relationships and routines.

The graph uses XGBoost classifiers with 144 features per person, over half from photo co-appearance, to assign family scores daily.

Researchers extracted the graph and fed it to a language model, which generated an extortion plan targeting the highest-scored person.

Deleted contacts remain in an expired table for roughly 48 hours before being removed.

Apple's documentation for the processes is limited to man pages dated June 2022, with no public mention of the graph's full capabilities.

Tools mentioned

Techniques

  • XGBoost classifiers
  • knowledge graph construction
  • on-device machine learning
Transcript (captions)

0:00 Photos, person, posterior probability given Saturday night. I read that input name in a security write-up about macOS and it belongs to a model that decides which of your contacts count as family.

0:11 If you're on a Mac, the researchers say that system has been on yours since 2022, re-scoring the people you know every day. Dario Pasquini and Mihai Bazielli, researchers at the eighth

0:22 rank, ran into it in August while studying Apple intelligence. Two background processes build it, a graph of who you know, how they're related to you, and where you go. I wanted three

0:32 answers, what it knows about your family, how it decides who counts, and whether Apple gets a copy. The calm take on Hacker News, it's context for Siri, so when you say text James, it knows

0:43 which James, and it's fully local, so no big deal. That's partly right. The researchers say the data's meant to stay on your Mac behind the full disk access permission, but local only says where

0:54 the file sits. Pointed at the researcher's own store, a language model found a child in the house, roughly how old, the daycare and both its phone numbers, and where the family would be

1:04 and when. And one commenter running the researcher's viewer saw iPhone contacts on a Mac. So, how far does local reach? Hold that for the end. First, you'll see how this graph gets built, how two small

1:15 models decide whose family and the one setting that guards it. I went in assuming undocumented meant Apple had never mentioned it. Then I read Apple's man pages for both processes. They're

1:25 dated the day macOS 13 was announced back in June 2022. One says the first process analyzes the content on this device to help build a knowledge graph representing the device and the user.

1:37 Documented then in roughly the length of a commit message. Those pages do tell you who does what. Knowledge construction D does the heavy processing on what's on the device.

1:47 Intelligence platform D handles the lookups. Apple says other parts of the operating system query the graph through it. Nothing else official says who reads it.

1:56 As for Apple intelligence's language models pulling from it, the researcher's word is allegedly. In your home folder, under library, sits a folder called intelligence platform.

2:06 Inside, the researchers count 51 SQLite databases, the small database files lots of apps use. They're stored as plain readable files and full disk access is what keeps other apps out.

2:18 Every internal figure from here on comes from that one write up and it hasn't been independently replicated. At the core sits graph.db and each row reads like a tiny sentence. There's a

2:29 subject like a person or an event. There's a predicate which says what relationship the system believes holds and there's an object which is either a plain value like a name or a date or

2:39 another entity. When it's another entity, you get an edge and edges are what turn a list into a map. Most of those rows are plain copies. A name comes straight from contacts and

2:50 attendee comes straight from calendar. Simple rules then run over the copies. From there, the copying reaches photos, messages and mail and it also takes in your location, your screen time and

3:01 signals from the device itself. Where it clicks is the communication log, who you talk to and when, through which app, in which direction. It records all of that and keeps none of what was said. Picture

3:12 a stranger drawing your family tree from your address book, an itemized phone bill and your photo albums. Roughly speaking, the rest of this machinery does just that.

3:22 Big vocabulary too, nearly 300 predicates, those relationship words in the middle of each row. And of all the kinds of thing the graph can describe, I make it roughly a third that are

3:31 activities like sleeping, commuting and dining. So the graph has words for your routine as well as your relatives. All of that is bookkeeping, copy, file, connect. Family scores work differently.

3:43 They come out of models and that's where Saturday night comes back. Two core ML models, Apple's format for on-device machine learning ship next to the schema. One's called entity tagging

3:53 family, the other entity tagging family and friends. Both are XG Boost classifiers, a common type built from many small decision trees and each one answers a single yes or no question

4:03 about a person with a probability attached. To answer it, each model reads 144 features about that person. 20 describe who the person is, like whether you share a last name, whether you share

4:15 a home address, and whether they're in your iCloud family. 40 are about how and when you talk to them. One of those is called person popularity given morning, so the time of day plays a part. Biggest

4:26 of all, 84 features are about photos you both appear in, and that's where Saturday night lives. Work it out, and photos are more than half the inputs. Your cousin's family

4:36 status is partly a function of your weekend. Run the stranger's logic from earlier. Same surname, same address, always in the weekend photos, probably family.

4:45 One place the picture breaks is time. A stranger would guess once and move on, and these models guess again every day. Those daily scores don't go into graph.db. They land in a file of their

4:56 own, entity tagging.db, with one row per person and 17 relationship columns running from family to mother to coworker. Only two of those columns have a shipped

5:06 model behind them. Pasquini and Basili couldn't trace what fills the rest or how a score would become confidence in the main graph, and no source explains that part yet. A developer named Nick

5:17 Leiden got to this from the other side. He built his own life graph in Postgres from dozens of sources, and it held about 360,000 facts. Then he found Apple's own local stores on his laptop

5:28 already held just over 40,000 triples with confidence scores on which records belonged to the same person. He pulled Apple's databases into his own system to compare them. So the

5:38 researcher's Mac isn't the only one carrying a store like this. Deleting a contact looks like the obvious fix. On the next run, the live table gets rebuilt without them, but the retracted

5:48 rows move to a second table, expired stable graph. They seem to stick around for about 48 hours, a figure the researchers themselves aren't sure of. So for a couple of days, your delete is

5:59 more of a suggestion. Deletion aside, the bigger question is who can read all this. In a follow-up, the same researchers gave their own extracted graph to a language model with its

6:08 refusals removed to test what an attacker could do with it. What came back was an extortion plan built around the person scored as mattering most to the owner, time to a real family

6:18 gathering. Those were plans written in a test and nothing was carried out. Their conclusion, the graph does the attacker's homework in advance and reading it doesn't use any of it up.

6:28 Reading that line settled the Hacker News reply for me. Yes, the commenter was right that it's local, but here local means the risk sits with whatever already holds full disk access.

6:38 Now the question from the start, how far does local reach? Probably past one Mac. According to the researchers, the communication log also pulls from your other devices and that commenter saw

6:48 iPhone contacts on a Mac. Apple's Siri privacy page says Siri suggestions personalization syncs across your devices with end-to-end encryption if you use iCloud, but it never names this

6:58 graph, so the exact route is still open. Apple getting a copy is a different claim. Pasquini and Bazili show no upload. Nothing else I read shows one either and they describe the data as

7:09 meant to stay on your machine. Compare that with a feature that does talk to Apple. In December 2024, Mac developer Jeff Johnson found photos enhanced visual

7:19 search on by default in macOS 15 and iOS 18. Once on, it sends data derived from your photos to Apple servers to identify landmarks. He objected that it was enabled without his consent. What got me

7:31 reading Apple's engineering write-up on that feature is how much it spells out. Your device turns the photo into a compact list of numbers and encrypts it. From there, it goes through a

7:40 third-party relay and the server searches it without ever decrypting it. So a documented upload looks like this. For the family graph, Apple wrote two man pages. Whatever has full disk access

7:51 can read this map, open the list of apps that have it, look up anything you don't recognize, and switch off what you don't need. If you want to see your own graph, the researcher's tool, I know, is a

8:02 read-only dashboard that only listens on your own machine. To run it, you grant full disk access to your terminal and only a handful of specific macOS versions are supported.

8:13 In its readme, the project warns that its AI generated and may contain mistakes. More readmes could stand to be that up front. I'd grant that access for the session and take it back afterward.

8:23 My call, if you're an everyday Mac owner, skip the panic and take a look at that permission list. If you're a developer who hands full disk access to terminals, scripts, or coding agents, be

8:33 stricter. Any grant like that already covers who your Mac thinks your family is and where they'll be and when. Back to Saturday night. If the researcher's Mac is typical, the people in your

8:43 weekend photos have a family score sitting next to their name and it'll be recalculated tomorrow. When you open your own full disk access list, which app on it surprises you?

Frontier News · by Hyperjump Technology