Skip to content

Lesson 9 of 13 · 12m

Metadata Is Data

Timestamps, IPs, and contact graphs are surveillance-grade — Signal's two-timestamp subpoena response shows what minimization buys.

"We kill people based on metadata"

Michael Hayden ran the NSA and the CIA. At a Johns Hopkins debate in May 2014, defending the agency's bulk phone-records program, he said it plainly: "We kill people based on metadata." Not content — nobody was listening to calls under Section 215. Phone numbers, timestamps, durations, call graphs.

The program's legal history is the proof that metadata alone is surveillance-grade. The Guardian published the Verizon bulk order on June 6, 2013. The Second Circuit ruled the program illegal in ACLU v. Clapper on May 7, 2015 — the statute didn't authorize bulk collection of everyone's records — and the USA FREEDOM Act ended it a month later. Every record at issue was metadata. Content would have been a more intrusive program; metadata was already illegal at that scale.

What metadata buys an attacker

Metadata is the graph and the clock: who talked to whom, when, how often, from where, how much. For a messaging app, the contact graph alone reconstructs the organization. For a health app, timestamps plus sizes reconstruct appointments. Nobody needs message bodies when the shape of the communication is the finding.

Two engineering artifacts make this concrete:

Signal's subpoena. When the Eastern District of Virginia subpoenaed Signal's user records in 2016, Open Whisper Systems could produce exactly two fields: the account's creation timestamp and its last-connection timestamp. That was the entire response, published by the ACLU on October 4, 2016. It wasn't courage — it was architecture. Signal never stored the metadata, so there was nothing to hand over. In October 2018 they went further with Sealed Sender, encrypting the sender field so Signal's own servers can't see who's talking to whom.

McAfee's EXIF. In December 2012, Vice published a photo of John McAfee — then evading Belizean authorities — taken on an iPhone 4S. The EXIF block carried GPS coordinates for a pool house in Guatemala. Metadata embedded by a camera pipeline located a man the government couldn't.

Certificate Transparency. RFC 6962 (June 2013) made every issued TLS certificate permanently public to stop rogue CAs. The cost: every internal hostname you ever certified — staging.internal.acme.com, db-admin.acme.com — is in crt.sh forever. There is no deletion mechanism. Some disclosure is immutable by design.

E2EE doesn't close the hole either. An app that encrypts message bodies still emits packet sizes and timings: a 4MB attachment at 02:14 is a fact about the message even when the bytes are unreadable. Volume and timing are metadata, and correlation attacks eat them for breakfast — that is the whole basis of traffic analysis against mix networks.

Minimizing metadata

Your app's metadata inventory: timestamps, IPs, user agents, referrers, byte sizes, contact graphs, read receipts. Mitigations:

  • Strip embedded metadata at ingest. EXIF GPS, author names, device IDs. sharp drops metadata by default unless you call .withMetadata(); ImageMagick needs mogrify -strip. Never republish an original file.
  • Truncate or drop IPs in logs — /24 truncation or none.
  • Cut referrers to third parties with Referrer-Policy: strict-origin-when-cross-origin or stricter.
  • Pad and jitter where timing/volume leaks: fixed-size buckets, delayed send for sensitive flows.
  • Don't sign internal hostnames into CT for anything you don't want public — wildcard certs hide subdomain lists; private CAs stay out of public logs.

The practice

Extend the data inventory to cover metadata: every field that describes a communication rather than carrying one. Subpoenas, warrants, and geofence orders (Google's Sensorvault was built for exactly this) all consume metadata happily — the two-timestamp answer only exists if the architecture built it. Metadata minimization is architectural, not procedural: you can't refuse to produce what you never stored.

Was this lesson helpful?

Sign in to rate

Keep reading

Related articles from the SudoSecurity blog.