Skip to content

Lesson 10 of 13 · 13m

The SDK You Didn't Audit

Third-party code ships whatever it can touch — Meta Pixel at hospitals, Flo's events, CSP egress control, and subprocessor duty.

The page is the pipe

In June 2022, The Markup ran the numbers on Meta Pixel: 33 of the top 100 American hospital websites were sending Meta patients' appointment details — doctor names, appointment times, the text of what the visit was for — because a marketing pixel sat on the scheduling page. Meta's stated defense was that it filters health data after receipt. Filtering at Meta's side doesn't change what left the patient's browser.

The mechanism is simple and most teams don't model it: third-party code on your page executes with your page's privileges. Same origin, full DOM, every field. A tag manager doesn't add a layer of review — it removes one, because tags ship without a deploy.

The SDK incident file

Flo, January 2021. The FTC's settlement documented that Flo — a period-tracking app making explicit confidentiality promises — sent users' menstruation and fertility events to Facebook, Google, AppsFlyer, and Flurry through their SDKs. Health data traveled inside ordinary analytics event payloads.

Grindr. Already covered for purpose — the transport was the same: HIV status inside analytics events to Apptimize and Localytics. The app "worked"; the SDKs shipped what the app knew.

Session replay. Princeton's 2017 work (previous lesson) — replay vendors recording every keystroke on thousands of sites, pharmacy search terms included.

Avast/Jumpshot, February 2024. Sold browsing clickstream "anonymized" with a linkable DeviceID. $16.5 million FTC fine and a ban on selling browsing data. The anonymization language was in the marketing; the identifier was in the payload.

Tax prep. The Markup, November 2022: TaxAct, H&R Block, and TaxSlayer sent income, refund amount, and filing status to Meta through the Pixel on filing pages. Nobody at those companies "sent" anything — the pixel just read the page.

Your obligations don't terminate at your repo

GDPR Article 28 puts processors under contract — data processing agreements — and Schrems II (C-311/18, July 2020) added transfer assessment for any data going to US jurisdictions. That ruling has teeth: in 2022, the Austrian DSB, the French CNIL, and the Italian Garante each ruled that using Google Analytics itself violated GDPR — ordinary web analytics, unlawful because of the US transfer. Meta's €1.2 billion fine in May 2023 — the largest GDPR fine ever issued — was also a transfer case.

The Belgium DPA went further against the plumbing in February 2022: the IAB's Transparency & Consent Framework was itself unlawful — the consent strings spreading to hundreds of adtech vendors were personal data, and the framework's legal basis failed.

Controls that actually bind

  • CSP as egress control. connect-src and img-src allowlists block requests to endpoints you didn't authorize. CSP is a privacy control, not just an XSS control.
  • Proxy the traffic. On mobile, run the app through mitmproxy or Charles and enumerate what actually leaves. The manifest says what you installed; the wire says what it does.
  • Consent-gate per SDK. A vendor's tag firing on the unconsented path is your violation, not theirs.
  • Maintain the subprocessor list. Art. 28 requires it and your users will ask for it. It should enumerate every third party that can touch personal data, what it touches, and where it transfers.
  • Don't overclaim privacy labels. App Store privacy nutrition labels are self-reported; studies found systematic inaccuracy. Accuracy is your problem, not Apple's.

The practice

You review dependencies for vulnerabilities; review them for egress the same way. Every SDK entry in your manifest gets: what it can read, where it sends, which legal basis gates it, which contract binds it. A tracker you can't enumerate is a tracker that's running unconsented. The vendor's privacy policy is not a control — the allowlist on your wire is.

Was this lesson helpful?

Sign in to rate

Keep reading

Related articles from the SudoSecurity blog.