WhatsApp is introducing Scam Alert, an optional on-device ML feature that detects scam messages without sending any message content to servers, using a transparent model that can be independently verified.
From the source
an early look at Scam Alert, a new, optional feature that runs an on-device machine learning model to alert a user about potential scam messages.
engineering.fb.com