Inspiration

With the explosive growth of UPI and instant messaging, digital scams have shifted from generic spam emails to hyper-personalized social engineering—fake UPI payment confirmations, spoofed customer support handles, and urgent QR-code traps. Traditional security tools rely on static URL blocklists, which fail completely when attackers send screenshots, QR codes, or conversational lures.

We built ScamLens so anyone—especially less tech-savvy family members—can upload a screenshot of a suspicious message or payment screen and get an instant, plain-language safety verdict before clicking or transferring money.

What it does

ScamLens is an AI-powered multimodal fraud and phishing detection web application. Users upload one or more screenshots of suspicious texts, payment requests, or social media profiles, and ScamLens immediately highlights red flags and recommends safe next steps.

Feature How It Works User Benefit
Multimodal Screenshot Scan Analyzes raw image layout, sender metadata, QR/UPI cues, and text together. Eliminates manual copy-pasting and catches image-only scams.
Multi-Image Thread Context Processes sequential screenshots of a chat thread in a single evaluation. Detects multi-step grooming and urgency escalation across conversations.
UPI & Payment Fraud Detection Flags fake payment receipts, collect-request PIN traps, and spoofed bank alerts. Protects everyday digital payment users from irreversible financial loss.
Actionable Verdict Card Outputs a clear threat tier (High Risk, Suspicious, Safe) with bulleted red flags. Translates complex phishing signals into simple "stop or proceed" guidance.

How we built it

We built ScamLens as a fast, full-stack web application designed to inspect visual UI patterns alongside linguistic red flags.

Layer Technologies Used Role in Pipeline
Frontend UI Next.js (App Router), React, Tailwind CSS Responsive drag-and-drop multi-image uploader and color-coded verdict dashboard.
Backend API Next.js Server Routes Image validation, payload structuring, and secure API orchestration.
AI & Vision Engine Google Gemini API (Multimodal + Structured JSON) Extracts visual/textual red flags and returns deterministic risk breakdowns.
Deployment Vercel Continuous deployment and low-latency edge hosting.

Weighted Risk Scoring Model

To ensure consistent verdicts across diverse scam categories (UPI fraud, phishing links, and brand impersonation), ScamLens evaluates weighted signal indicators ($s_i \in [0, 1]$) across $n$ extracted threat vectors:

$$R = \min\left(100,\; 100 \times \frac{\sum_{i=1}^{n} w_i s_i}{\sum_{i=1}^{n} w_i}\right)$$

where $w_i$ represents category severity weights (assigning higher weight to unsolicited payment collect requests and domain spoofing than generic urgency), mapping $R$ cleanly into Safe ($R < 30$), Suspicious ($30 \le R < 70$), and High Risk ($R \ge 70$).

Challenges we ran into

Challenge Root Cause How We Solved It
Cropped & Low-Resolution Screenshots Users frequently upload compressed chat forwards with cut-off headers. Engineered multimodal prompts to cross-examine typography, UI alignment, and linguistic urgency rather than relying purely on OCR text.
Unpredictable LLM Output Formatting Free-form model responses occasionally broke UI rendering during rapid testing. Enforced strict structured JSON schemas via the Gemini API so every scan deterministically populates risk scores, red flags, and safety steps.
False Positives on Real Bank Alerts Legitimate transaction notifications often contain urgency words like "debited" or "action required." Calibrated prompt examples with real vs. spoofed banking and UPI templates to separate genuine alerts from phishing traps.

Accomplishments that we're proud of

  • Live, Mobile-Ready Deployment: Shipped a responsive production web app on Vercel (scamlens-nu.vercel.app) that works seamlessly on both mobile and desktop screenshots.
  • Multi-Screenshot Thread Analysis: Enabled users to upload entire chat sequences so the model catches context that single-message scanners miss.
  • Real-World Family Validation: Tested ScamLens directly with family members to confirm that our red-flag breakdowns are jargon-free, intuitive, and actionable under pressure.

What we learned

  • Multimodal Context Beats Text-Only Detection: Combining visual layout inspection with NLP uncovers subtle spoofing cues—such as mismatched fonts, fake verification badges, and altered UPI handles—that pure text classifiers miss.
  • Designing for Non-Technical Trust: Explaining why a screen is dangerous (e.g., "You never need to enter your UPI PIN to receive money") builds far more user confidence than showing a raw risk percentage alone.
  • Schema-First AI Engineering: Defining strict typed JSON output contracts between Next.js API routes and the Gemini API dramatically improves frontend reliability and makes prompt iteration measurable.

What's next for ScamLens

  • Mobile Share Sheet & Browser Extension: One-tap "Check with ScamLens" directly from WhatsApp/SMS share menus and desktop browsers.
  • Regional Language Localization: Supporting risk explanations in Hindi and other regional languages to protect broader communities.
  • Live Community Threat Feed: Anonymized trend alerts that warn users about newly emerging scam templates in real time.

Built With

Share this project:

Updates

Submission history