DEV Community

LeoJulieta
LeoJulieta

Posted on

AI‑Driven WhatsApp Voice Phishing in Latin America: How It Works & How to Stop It

AI‑Powered WhatsApp Phishing Is Spreading Across Latin America – What You Need to Know and How to Stop It


Hook

In the last three months, thousands of WhatsApp users in Brazil, Mexico, and Argentina have reported receiving voice messages that sound exactly like a loved one asking for money. The culprit? Generative‑AI bots that can write and speak in a matter of seconds.

If you’ve ever dismissed a “too‑good‑to‑be‑true” message as spam, you might already be a target. Below is a practical, step‑by‑step guide to understand the threat, see real‑world examples, and protect yourself without installing heavyweight third‑party apps.


1. The Threat Landscape

Metric Latest Figure (Q2 2024)
Google Trends surge for “WhatsApp phishing AI” (Latin America) +780 % YoY
Reported incidents in major media (El País, La Nación, BBC Mundo) > 3 000 unique cases
Active WhatsApp accounts worldwide > 2 billion

Why it’s dangerous:

  • End‑to‑end encryption hides the content from WhatsApp’s own scanners.
  • Large Language Models (LLMs) such as GPT‑4 or LLaMA generate personalized text in seconds.
  • Text‑to‑Speech (TTS) engines (e.g., ElevenLabs, Google WaveNet) produce lifelike voice clips that can impersonate family members or corporate contacts.

2. Anatomy of an AI Phishing Bot

  1. Data Harvesting – The bot scrapes public profiles (Facebook, LinkedIn) and recent WhatsApp status updates to learn the victim’s name, relationships, and recent activities.
  2. Prompt Engineering – A tailored prompt is sent to an LLM:
   Write a short, urgent WhatsApp voice message asking Maria to transfer $1,200 to cover an emergency surgery for her husband Carlos. Use a caring tone and include the phrase “I’ll explain everything later.”
Enter fullscreen mode Exit fullscreen mode
  1. Text Generation – The LLM returns a natural‑language script.
  2. Voice Synthesis – The script is fed to a TTS API, producing an MP3 file that mimics the target’s spouse’s voice.
  3. Delivery – Using the WhatsApp Business API (or a compromised account), the bot sends the voice clip and a follow‑up text with a malicious link or bank account number.

3. Real‑World Example (Full Attack Flow)

# 1️⃣ Pull victim data (example using the Twint scraper for Twitter)
twint -u victim_handle -o victim.json --json

# 2️⃣ Build the prompt (Python)
import json, openai

victim = json.load(open('victim.json'))[0]
prompt = f"""Write a WhatsApp voice message in Spanish, sounding like {victim['name']}'s wife Ana, asking for an urgent transfer of 5,000 MXN to cover a medical bill. Include the phrase “Te llamo después para explicarte”. Keep it under 30 seconds."""
response = openai.ChatCompletion.create(
    model="gpt-4o",
    messages=[{"role":"user","content":prompt}]
)
script = response.choices[0].message.content

# 3️⃣ Generate voice (ElevenLabs API)
import requests, base64

voice_payload = {
    "text": script,
    "voice_id": "a1b2c3d4-voice-id",   # pre‑selected “female‑spanish”
    "model_id": "eleven_multilingual_v2"
}
voice_resp = requests.post(
    "https://api.elevenlabs.io/v1/text-to-speech",
    json=voice_payload,
    headers={"xi-api-key": "YOUR_ELEVENLABS_KEY"}
)
with open('phish.mp3', 'wb') as f:
    f.write(voice_resp.content)

# 4️⃣ Send via WhatsApp Business API (cURL)
curl -X POST https://graph.facebook.com/v17.0/<PHONE_NUMBER_ID>/messages \
  -H "Authorization: Bearer <ACCESS_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{
        "messaging_product": "whatsapp",
        "to": "<VICTIM_NUMBER>",
        "type": "audio",
        "audio": { "link": "https://mycdn.com/phish.mp3" },
        "recipient_type": "individual"
      }'
Enter fullscreen mode Exit fullscreen mode

Notice how each step can be automated and run in under a minute.


4. Immediate Defensive Actions (No Extra Apps Required)

Action How‑to Why it works
Enable Two‑Factor Authentication (2FA) Settings → Account → Two‑step verification → Enable Blocks attackers who obtain your SMS verification code.
Restrict “Who can add me to groups” Settings → Privacy → Groups → Only contacts Prevents mass‑messaging bots from spamming you via group invites.
Use the built‑in “Report Spam” Long‑press the message → Report → Spam Alerts WhatsApp and may trigger temporary bans on abusive numbers.
Create a local filter script (optional, runs on your computer) See the script below; it watches the WhatsApp Desktop log folder and forwards suspicious messages to a private Telegram chat. Gives you a real‑time alert without installing a new mobile app.

Sample Alert Script (Python)

#!/usr/bin/env python3
import os, json, re, requests
from pathlib import Path

# 1️⃣ Path to WhatsApp Desktop logs (Linux example)
log_dir = Path.home() / ".config" / "WhatsApp" / "Logs"

# 2️⃣ Simple heuristic: look for voice messages with the word “transfer” in the accompanying caption
def is_suspicious(msg):
    if msg.get("type") != "audio": return False
    caption = msg.get("caption", "").lower()
    return bool(re.search(r"\btransfer\b|\burgent\b|\bpayment\b", caption))

# 3️⃣ Send alert to Telegram
def telegram_alert(text):
    token = "YOUR_TELEGRAM_BOT_TOKEN"
    chat_id = "YOUR_CHAT_ID"
    requests.get(f"https://api.telegram.org/bot{token}/sendMessage",
                 params={"chat_id": chat_id, "text": text})

# 4️⃣ Watch for new log files
already_seen = set()
while True:
    for file in log_dir.glob("*.json"):
        if file in already_seen: continue
        already_seen.add(file)
        data = json.loads(file.read_text())
        for msg in data.get("messages", []):
            if is_suspicious(msg):
                telegram_alert(f"⚠️ Possible AI‑phishing from {msg['sender']}: {msg.get('caption','[no caption]')}")
Enter fullscreen mode Exit fullscreen mode

Run the script in the background on any machine where you have WhatsApp Desktop installed. It will ping you on Telegram the moment a suspicious voice note arrives.


5. Reporting & Legal Steps

  1. Preserve Evidence – Export the chat (Settings → More → Export chat) including media.
  2. File a Police Report – In Brazil, contact the Polícia Federal cyber‑crime unit; in Mexico, use the Ciberpolicía portal.
  3. Notify WhatsApp – Use the in‑app “Report” button or email support@whatsapp.com with the exported chat and a brief description.
  4. Follow Up – Many Latin American countries (e.g., Brazil’s Marco Civil da Internet) require service providers to cooperate with investigations within 48 hours.

6. Quick Checklist (Paste into a Note)

  • [ ] Enable 2FA on WhatsApp.
  • [ ] Set “Who can add me to groups” → My contacts.
  • [ ] Activate “Security notifications” (Settings → Account → Security).
  • [ ] Add the alert script to your startup tasks (optional).
  • [ ] Export and back up any suspicious conversation immediately.
  • [ ] Report the number to WhatsApp and local cyber‑crime authorities.

7. Bottom Line

AI‑driven phishing on WhatsApp is no longer a theoretical risk; it’s happening right now across Latin America, leveraging the same technology that powers ChatGPT. By tightening your account settings, staying alert to unusually polished voice notes, and optionally running a lightweight local filter, you can cut the attack surface dramatically—without relying on expensive third‑party security suites.

Stay vigilant, verify every unexpected request through a separate channel, and remember: If it sounds too personal, it might be a bot.


Herramienta mencionada: Groq Cloud

Top comments (0)