Inspiration

In India, scams like "digital arrest" calls, fake KYC messages and OTP theft work because they create panic. Victims are told to act within minutes, to stay on the call and not to tell anyone, so there is no time to check. Most people have no quick, trustworthy way to ask "is this real?" before they pay or share a code, and no clear guide for what to do if they already have.

Scam Lens is built for that moment. The intended user is an ordinary person, such as a parent or a student, with no cybersecurity knowledge.

What it does

Scam Lens lets a user check suspicious content before acting:

  • Text: paste an SMS, WhatsApp message or email in English, Hindi or Hinglish.
  • Screenshot: upload an image. The text is extracted, and the user reviews it before analysis.
  • Voice: record or upload a call. It is transcribed, and the user reviews the transcript before analysis.
  • Link: a structural check of a URL (HTTP vs HTTPS, raw IPs, punycode, shorteners, embedded credentials).

The result is not just a label. It gives a risk level, the likely scam category, the exact suspicious phrases quoted from the message, the manipulation tactics and their sequence, and safer next steps.

Rescue Mode is for people who may have already acted. The user ticks what happened (money sent, OTP or PIN shared, suspicious app installed, digital-arrest threat) and gets one prioritised checklist: end the call, call the bank, call the 1930 cyber fraud helpline, report at cybercrime.gov.in, preserve evidence. It uses no AI, so the advice is fixed, reviewable and consistent. Steps show their official source (I4C/NCTAU, RBI, CERT-In, PIB), and anything else is labelled general safety advice. An incident summary can be prepared and copied entirely in the browser.

A safer outcome

A user receives a Hinglish message saying their account will be blocked tonight unless they send an OTP. Scam Lens flags it as highly dangerous, quotes the threat and the OTP request, and explains the pressure tactic. The user does not send the OTP and verifies through their bank's official app instead.

How we built it

  • Backend: Node.js 22 and Express 5. Frontend: vanilla HTML, CSS and JavaScript, with no framework.
  • AI: Groq-hosted models through the OpenAI-compatible SDK for text analysis and screenshot OCR, and Whisper for speech transcription.
  • Trust layers around the AI: every quoted phrase is checked against the original message and dropped if it isn't there. A "highly dangerous" result without verifiable evidence is downgraded. File uploads are verified by their actual signatures, not just extensions. AI output is shown as plain text, never HTML, and a Content Security Policy with per-request nonces is applied.
  • Privacy: no accounts and no server-side database. Saved reports live only in the user's browser and only when they choose to save. Rescue Mode never sends anything to a server.
  • Testing: 77 automated tests run offline with no API key, including every combination of Rescue Mode situations in every selection order.

Challenges

  • Stopping the AI from inventing evidence. Quote verification fixed this, but we also had to decide what to show when evidence fails: downgrade, not guess.
  • Avoiding false reassurance. We replaced "Safe" with "low risk, no obvious indicators," and every result states it is not proof.
  • Rescue Mode prioritisation. An early version ordered steps differently for different combinations, so someone who had both paid and installed a remote-access app could be told to report before disconnecting. We replaced it with one global urgency order and tests for every combination.
  • Hinglish and noisy input. OCR and transcription make mistakes, so users always review extracted text first.
  • Keeping privacy claims true. We updated the privacy notice whenever the processing flow changed.

What we learned

Explaining why something is risky matters more than the label, and a deterministic, human-reviewed layer is the right tool where wrong advice could cost someone money. Being honest about limits is part of the product.

Honest limitations

  • AI analysis is probabilistic. Results are decision support, not proof that something is a scam or genuine.
  • Link inspection looks at URL structure only. It does not visit the site or check a reputation database, so a link with no warnings can still be malicious.
  • Voice analysis transcribes speech. It cannot detect cloned voices or verify who is calling.
  • We built a small benchmark of synthetic examples. It is not a measure of real-world accuracy, and we make no accuracy claim.
  • Reports exist only in the browser's local storage, and the free host may take up to a minute to wake after idle.
  • Scam Lens is not a replacement for emergency services, a bank or the police.

Responsible demonstration

All demo messages, screenshots and audio are synthetic. Phone numbers are masked, and links are made up. No real victim data was used.

Credits and timeline

Development began on 10 November 2026, inside the build period, and there is no earlier version. The only pre-existing components are third-party libraries: Express, the OpenAI SDK and dotenv. AI assistance: Kiro (spec-driven development, steering documents and a test hook), plus ChatGPT and Claude for code review, test design and drafting. Runtime services are Groq-hosted models and Whisper. Official guidance used in Rescue Mode comes from I4C/NCTAU, RBI, CERT-In and PIB.

What's next

Live URL reputation (opt-in and privacy-reviewed), a larger independently labelled benchmark in English, Hindi and Hinglish, and recognition of brand-lookalike domains.

Live demo: https://scam-lens-d41l.onrender.com Source code: https://github.com/Lakshya250506/Scam-Lens

Built With

Share this project:

Updates

Submission history