Skip to content
Back to ScamKavach

Technical deep dive

How ScamKavach detects 13 types of Indian scams

A look inside the on-device detection engine — weighted scoring, bilingual pattern matching, and behavioral analysis.

Published April 2026 · By CloudTrunk Technologies

India is facing an epidemic of digital fraud. From fake CBI officers demanding "digital arrest" fines to UPI payment requests from fraudulent loan apps, scammers are evolving faster than traditional blocklists can keep up.

ScamKavach uses a multi-layered detection engine that runs entirely on your Android device. No cloud processing of your messages. No data uploaded. Here's how it works.

Architecture: three detection layers

  1. Layer 1: Pattern-based SMS analysis

    40+ regex patterns across 13 scam categories, each with calibrated risk weights. Bilingual support for Hindi (Devanagari + transliterated) and English.

  2. Layer 2: URL threat scoring

    Multi-vector analysis of URLs — typosquatting detection, suspicious TLD scoring, brand impersonation checks, and shortened URL penalties.

  3. Layer 3: Offline database lookup

    360+ known Indian scam phone numbers, phishing URLs, and fraudulent UPI IDs bundled in the app. Works without internet.

The 120-point scoring model

Every SMS is scored on a 0-120 point scale. Pattern matches contribute weighted points based on scam severity. The final score determines the verdict:

Safe
< 25
Suspicious
25-59
Scam
60+

Confidence is calculated as a percentage of the 120-point maximum, capped at 98% — because no automated system should claim 100% certainty.

13 scam categories

Each category has dedicated patterns with calibrated weights. Higher weights mean higher confidence that the pattern indicates a real scam:

WeightCategory
  • 60OTP PhishingDirect OTP sharing requests, fake bank verification
  • 60Digital ArrestFake CBI/police officers demanding bail via UPI
  • 60Loan HarassmentRecovery agent threats, family contact blackmail
  • 55Investment ScamsGuaranteed returns, double-money, crypto schemes
  • 50Banking FraudFake debit alerts, account compromise claims
  • 55Parcel ScamsPackage held at customs, delivery failure fees
  • 52Gaming FraudFree in-game currency, fake game passes
  • 45Prize/LotteryLottery winners, prize claiming in Hindi/English
  • 48Job ScamsWork-from-home, Telegram recruitment, task payments
  • 45Insurance ScamsPolicy maturity claims, fake LIC schemes
  • 40Loan ScamsPre-approved loans, no-document instant loans
  • 35KYC FraudAccount blocking threats, Aadhaar/PAN linking demands
  • 25Phishing/UrgencyGeneric urgency language, suspicious call-to-action links

TRAI/RBI sender validation

Indian banks are required by TRAI and RBI to send transactional SMS using numeric sender codes (1600xx format) registered through the DLT platform. Promotional messages must use 140xx prefixes.

The spoofing signal

If a message contains banking keywords (OTP, account, debit, credit) but comes from a non-compliant sender — like an alphanumeric code pretending to be "HDFCBANK" — ScamKavach adds a +40 point penalty. Legitimate banks never send transactional SMS from alphanumeric IDs.

Bilingual detection: Hindi + English

Indian scammers operate in Hindi, English, and Hinglish (transliterated Hindi in Latin script). ScamKavach matches all three:

English

"your account will be blocked", "verify KYC immediately"

Hindi (Devanagari)

"गिरेफ्तार", "केवाईसी", "वारंट"

Hinglish (transliterated)

"giraftari", "kyc se juri", "paisa transfer"

URL threat scoring

URLs are analyzed across multiple threat vectors, each contributing points to a separate 0-100 score:

  • IP-address URL (http://192.168...)+50
  • Typosquatting (paytmm.com vs paytm.com)+55
  • Shortened URL (bit.ly, tinyurl)+40
  • Suspicious TLD (.xyz, .tk, .loan, .icu)+35
  • Government impersonation (not .gov.in)+30
  • Suspicious path keywords (login, kyc, otp)+8-30
  • Excessive subdomains (4+ levels)+25

A whitelist of 40+ verified domains (Google, Amazon, Flipkart, major Indian banks) ensures legitimate URLs are never flagged. Brand impersonation detection maps 18 major brands with their official domain suffixes.

Digital arrest detection

"Digital arrest" is a uniquely Indian scam where criminals impersonate CBI, police, or customs officials on a phone call, keep the victim on the line for extended periods, and demand payment via UPI.

ScamKavach's DigitalArrestDetector uses behavioral signal fusion — correlating call metadata with SMS content:

  1. Step 1: Call pattern detection

    Monitors for calls from unknown numbers lasting 3+ minutes, OR 3+ repeated calls from the same number within 30 minutes.

  2. Step 2: SMS content correlation

    Within a 15-minute window after the call, scans incoming SMS for authority keywords (CBI, warrant, FIR), payment keywords (UPI, transfer, bail), and threat keywords (jail, freeze, arrest).

  3. Step 3: Risk classification

    HIGH: Authority + payment keywords in same SMS. MEDIUM: Authority OR payment + threat keywords. LOW: 2+ threat keywords alone.

100% on-device processing

Every detection layer runs locally on the device:

  • All regex patterns are pre-compiled Kotlin objects — fast, no network latency
  • SMS analysis uses coroutines with an 8-second timeout per message
  • Digital arrest detection uses zero network calls
  • DPDP Act consent is checked before any scanning begins
  • Scan history auto-deletes: 90 days for scans, 30 days for alerts

RBI licensed lender verification

ScamKavach bundles a database of 156 RBI-licensed financial institutions — banks, NBFCs, payment banks, small finance banks, and housing finance companies. When you check a UPI ID, the app instantly shows whether the recipient is a licensed lender or an unverified entity.

This is critical for detecting fake loan apps — one of the fastest-growing scam categories in India.

Open and transparent

We believe security tools should be transparent about how they work. This article describes the actual detection algorithms running in ScamKavach today. We're committed to continuously improving our detection as scammers evolve their tactics.

If you have questions about our detection system or want to report a scam pattern we're missing, reach out at hello@cloudtrunk.tech.

Try ScamKavach

Free. No ads. No subscriptions. Available on Google Play.

Download on Google Play