Skip to content
Kavach-AI

Kavach-AI

AI Powered Multilingual Fraud Intelligence Engine

Created on 14th June 2026

•

Kavach-AI

Kavach-AI

AI Powered Multilingual Fraud Intelligence Engine

The problem Kavach-AI solves

Kavach-AI (कवच-AI) acts as an intelligent, localized digital armor designed to protect vulnerable demographics—such as elderly citizens and non-tech-savvy individuals—from the rapidly growing epidemic of voice phishing (vishing), SMS spam scams, and social engineering frauds.

How it makes tasks safer and easier:
Deciphers Local Language Scams: Most financial fraudsters in India target victims in regional Indic dialects (Hindi, Telugu, etc.) to induce panic. Kavach-AI utilizes advanced AI translation and transcription to ingest regional voice recordings or texts and translate them into normalized English.
Cognitive Fraud Assessment: Instead of just blocking numbers based on a static list, Kavach-AI uses Google Gemini Flash to run a cognitive assessment on the message context—flagging scam patterns like fake bank blocks (SBI Yono), Kaun Banega Crorepati (KBC) lottery winnings, and urgent electricity bill disconnection threats.
De-escalates Panic in Real-Time: If a high threat is detected, the system immediately plays a localized voice alarm (synthesized via Sarvam TTS) to warning the user in their preferred regional language (e.g. Hindi), keeping them calm and alert.
Guardian Alert Safety Net: Simultaneously, Kavach-AI routes an emergency SMS notification to a registered trusted family member (guardian) using the Twilio SMS API. This allows guardians to intervene immediately and prevent the protected user from completing a fraudulent transfer.
Seamless Authentication: Integrates Twilio Verify OTP authentication to bind user configurations securely to verified physical devices.

Challenges we ran into

Building an end-to-end multi-language AI pipeline comes with real integration hurdles. Here are the key challenges we faced and how we overcame them:

  1. Next.js CSS Transform Build Crashes
    The Hurdle: During initial development, the Next.js dev server and production builds kept throwing fatal errors (Uncaught Error: globals.css: Parsing CSS source code failed). The parser was failing because the @import statements for Google Fonts were placed below normal CSS rules, violating standard PostCSS rules.
    The Solution: We removed the @import font rule from globals.css and loaded the Google Fonts (Inter and JetBrains Mono) natively using the Next.js App Router next/font/google configuration in layout.js. This fixed build performance and ensured 100% compilation success.
  2. Infinite Loop and Recursion Errors
    The Hurdle: During API stress testing, state updates on the dashboard were triggering endless render loops, leading to recursion depth exceeded exceptions. Setting profile configs or triggering a threat analysis caused state modifications that recursively re-ran the logic.
    The Solution: We audited and cleaned up the useEffect dependencies across the main components, decoupling state hooks from triggering mechanisms, ensuring data workflows proceed in a linear, single-direction path.
  3. Profile Onboarding State Synchronization Bug
    The Hurdle: After completing the Twilio OTP verification, the onboarding setup data (Protected Name, Guardian Number, preferred language) was occasionally getting dropped, causing the Settings page to appear empty when the dashboard launched.
    The Solution: We consolidated all profile information into a single unified profile state object in the parent component as the single source of truth. We also created a hard dashboard route guard useEffect that checks local storage and the backend API, forcing the setup page if the profile setup isn't complete (profile_completed !== true).
  4. Render Python Version Maturin Build Failures
    The Hurdle: When deploying the FastAPI backend to Render, the build server failed during package installation with metadata-generation-failed: pydantic-core maturin failed because Render's default environment was utilizing Python 3.14, which was incompatible with the pydantic compiler.
    The Solution: We created a runtime.txt file in the backend directory locking the execution container environment to python-3.11.9, forcing Render to build on a stable Python environment and resolving compilation issues.
    3:35 PM

Tracks Applied (3)

Gemini

How Gemini AI fits into Kavach-AI Google Gemini API serves as the core cognitive threat intelligence engine of Kavach-A...Read More
Major League Hacking

Major League Hacking

Sarvam.ai

How Sarvam AI fits into Kavach-AI Kavach-AI is designed to protect users from AI-powered scam calls and fraudulent SMS a...Read More
Sarvam.ai

Sarvam.ai

CyberSecurity

Why Kavach-AI belongs in the Cybersecurity Track Kavach-AI is fundamentally a cybersecurity solution because it focuses...Read More

HackPrix

Discussion

Builders also viewed

See more projects on Devfolio