---
title: "How We’re Building Scam Alert on WhatsApp With End-to-End Encryption and Verifiability Guarantees"
description: "WhatsApp's Scam Alert is an optional feature that runs an on-device ML classifier over messages from non-contacts and shows a private in-chat warning."
url: "https://swe.quest/articles/how-we-re-building-scam-alert-on-whatsapp-with-end-to-end-encryption-and-e5ad173977a16202"
canonical: "https://engineering.fb.com/2026/08/12/security/how-were-building-scam-alert-whatsapp/"
source: "Meta Engineering"
published: "2026-08-12"
difficulty: "hard"
kind: "Deep dive"
reading_minutes: 18
tags: ["privacy","security","machine-learning","communications","cryptography"]
---

# How We’re Building Scam Alert on WhatsApp With End-to-End Encryption and Verifiability Guarantees

A post on [Meta Engineering](https://swe.quest/sources/meta.md), published 2026-08-12, 18 min read, Deep dive. Original: [https://engineering.fb.com/2026/08/12/security/how-were-building-scam-alert-whatsapp/](https://engineering.fb.com/2026/08/12/security/how-were-building-scam-alert-whatsapp/)

## Summary

WhatsApp's Scam Alert is an optional feature that runs an on-device ML classifier over messages from non-contacts and shows a private in-chat warning. No message content leaves the device unless the user chooses to report it. Model versions are published to a public transparency ledger and the weights are released, so Meta cannot send a targeted model to one user. Telemetry is limited to aggregate warning and user-action counts, which pass through a confidential federated analytics pipeline built on attested CVM-based TEEs, OHTTP relays, anonymous credentials, secure aggregation, k-anonymity thresholds and differential privacy. Clients refuse to transmit if the attestation or the privacy parameters fail locally enforced guardrails.

Written by swe.quest, not by the author.

**Difficulty:** Hard: written for specialists in the field

## Topics

- [Privacy](https://swe.quest/tags/privacy.md) (Security)
- [Security](https://swe.quest/tags/security.md) (Security)
- [Machine learning](https://swe.quest/tags/machine-learning.md) (AI & ML)
- [Communications](https://swe.quest/tags/communications.md) (Domains)
- [Cryptography](https://swe.quest/tags/cryptography.md) (Security)

## Prerequisites

- end-to-end encryption ([easy posts on Cryptography](https://swe.quest/tags/cryptography.md?difficulty=easy))
- trusted execution environments
- differential privacy basics ([easy posts on Privacy](https://swe.quest/tags/privacy.md?difficulty=easy))
- remote attestation

## Keywords

WhatsApp, Scam Alert, confidential federated analytics, differential privacy, OHTTP, RA-TLS, PAPAYA, confidential VMs

## Related posts

- [Building Private Processing for AI tools on WhatsApp](https://swe.quest/articles/building-private-processing-for-ai-tools-on-whatsapp-0d604d802592db97.md): Meta Engineering · 2025-04-29 · Hard · 12 min read · Security, Cryptography, Privacy, Inference & serving, LLMs
  Private Processing lets WhatsApp users send messages to server-side AI features such as summarization and writing suggestions without Meta or WhatsApp being able to read them.
- [DIT — enabling de-identified data collection on WhatsApp](https://swe.quest/articles/dit-enabling-de-identified-data-collection-on-whatsapp-d2473df44a648273.md): Meta Engineering · 2021-04-16 · Hard · 8 min read · Privacy, Cryptography, Observability, Identity & auth
  WhatsApp's De-identified Telemetry (DIT) collects usage, reliability and performance data without linking it to a user.
- [How WhatsApp enables multi-device capability](https://swe.quest/articles/how-whatsapp-enables-multi-device-capability-b0c5b9accf94ba1b.md): Meta Engineering · 2021-07-14 · Medium · 6 min read · Cryptography, Communications, Privacy, System design
  WhatsApp's new multi-device architecture drops the phone as source of truth: each device gets its own identity key, the server maps accounts to device lists, and senders use client-side fanout to encrypt each message separately over pairwise Signal sessions to every sender and recipient device.
- [Privacy-Aware Infrastructure in the AI-Native Era: An Asset Classification Case Study](https://swe.quest/articles/privacy-aware-infrastructure-in-the-ai-native-era-an-asset-classification-case-a3a231481ce72736.md): Meta Engineering · 2026-06-25 · Medium · 23 min read · Privacy, LLMs, System design, Evaluation, Data pipelines
  Meta classifies data assets for privacy enforcement with a hybrid pipeline: it builds structured evidence briefs from code resolution, lineage, ownership and annotations, uses LLMs only for novel or ambiguous assets, and distills stable patterns into versioned, human-reviewed deterministic rules.
- [MCP Horror Stories: The WhatsApp Data Exfiltration Attack](https://swe.quest/articles/mcp-horror-stories-the-whatsapp-data-exfiltration-attack-812475a620859f63.md): Docker · 2025-11-13 · Medium · 16 min read · AI agents, Vulnerability research, LLMs, Security
  A WhatsApp MCP vulnerability disclosed by Invariant Labs lets a malicious MCP server exfiltrate a user's entire WhatsApp message history.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
