<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: SANJAY U BHARADWAJ</title>
    <description>The latest articles on DEV Community by SANJAY U BHARADWAJ (@sanjay_ubharadwaj_011ee0).</description>
    <link>https://dev.to/sanjay_ubharadwaj_011ee0</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4172613%2F39b59df6-11d9-43a2-a6c5-ca766eb58383.jpg</url>
      <title>DEV Community: SANJAY U BHARADWAJ</title>
      <link>https://dev.to/sanjay_ubharadwaj_011ee0</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sanjay_ubharadwaj_011ee0"/>
    <language>en</language>
    <item>
      <title>Building Satark: How I used Gemini AI to Protect India from Digital Fraud</title>
      <dc:creator>SANJAY U BHARADWAJ</dc:creator>
      <pubDate>Fri, 09 Oct 2026 06:16:57 +0000</pubDate>
      <link>https://dev.to/sanjay_ubharadwaj_011ee0/building-satark-how-i-used-gemini-ai-to-protect-india-from-digital-fraud-no8</link>
      <guid>https://dev.to/sanjay_ubharadwaj_011ee0/building-satark-how-i-used-gemini-ai-to-protect-india-from-digital-fraud-no8</guid>
      <description>&lt;p&gt;India's digital payment ecosystem is booming. From UPI transactions at a roadside tea stall to online banking, the convenience is unparalleled. But with this rapid digitization comes a dark side: a massive surge in cyber extortion, digital arrest scams, and phishing attacks. &lt;/p&gt;

&lt;p&gt;As a 17-year-old engineering student pursuing my BE in CSE with a specialization in AI &amp;amp; ML at Sapthagiri NPS University, I realized that my parents and grandparents were extremely vulnerable to these sophisticated attacks. I wanted to build something that didn't just flash a generic "Warning" sign, but actually explained the threat in simple terms and told them exactly what to do next.&lt;/p&gt;

&lt;p&gt;That’s why I built &lt;strong&gt;Satark (सतर्क)&lt;/strong&gt; for the Hack2Skill PromptWars X Error Zero challenge (Track 3: AI-Powered Cybersecurity &amp;amp; Digital Safety).&lt;/p&gt;

&lt;h2&gt;
  
  
  What is Satark?
&lt;/h2&gt;

&lt;p&gt;Satark is a privacy-first cybersecurity scanner and AI assistant designed specifically for the Indian demographic. It analyzes suspicious SMS messages, WhatsApp scams, phishing URLs, and extortion notices, and provides an immediate 10-minute relief checklist.&lt;/p&gt;

&lt;p&gt;The core philosophy behind Satark is &lt;strong&gt;Zero-Trust Privacy&lt;/strong&gt;. People are scared to copy-paste their messages into AI tools because they contain personal information. Satark solves this.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Architecture: How I Used Gemini AI
&lt;/h2&gt;

&lt;p&gt;To make Satark highly accurate, I didn't rely on just one detection method. I built a three-tier weighted ensemble engine:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; &lt;strong&gt;Deterministic Rules Engine (25% Weight):&lt;/strong&gt; Checks for basic threats like Punycode domains, brand lookalikes, and known malicious IP hosts.&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;Machine Learning Inference (25% Weight):&lt;/strong&gt; A TF-IDF + Logistic Regression engine running entirely in the browser using TypeScript. I actually wrote a mathematical parity test in my CI/CD pipeline to prove that my TypeScript inference matches my Python scikit-learn training environment with &lt;code&gt;&amp;lt; 1e-6&lt;/code&gt; divergence!&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;Google Gemini AI (50% Weight):&lt;/strong&gt; The brain of the operation. I heavily leveraged the &lt;code&gt;@google/genai&lt;/code&gt; SDK using &lt;code&gt;gemini-3.8-flash&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  The Gemini Advantage
&lt;/h3&gt;

&lt;p&gt;Using Gemini allowed me to go beyond simple text matching. Gemini understands the &lt;em&gt;context&lt;/em&gt; of social engineering. If a message says "Your electricity will be disconnected at 9:30 PM, call this number," Gemini instantly recognizes the urgency tactic typical of power bill scams. &lt;/p&gt;

&lt;p&gt;I implemented a &lt;strong&gt;resilient model fallback chain&lt;/strong&gt; (&lt;code&gt;gemini-3.8-flash&lt;/code&gt; -&amp;gt; &lt;code&gt;3.7-flash&lt;/code&gt; -&amp;gt; &lt;code&gt;3.6-flash&lt;/code&gt;) in my Vercel Edge functions. This guarantees high availability so the service never goes down when someone is panicking and needs immediate help.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Secret Weapon: Client-Side Privacy Shield
&lt;/h2&gt;

&lt;p&gt;The biggest technical challenge was ensuring privacy. If a user pastes a scam message that includes their Aadhaar number or Bank OTP, sending that to an external API (even Google's) is a bad security practice. &lt;/p&gt;

&lt;p&gt;To fix this, I engineered a &lt;strong&gt;Client-Side Privacy Shield&lt;/strong&gt;. Before any data leaves the user's browser, a strict Regex algorithm scrubs the text. It identifies Phone numbers (&lt;code&gt;+91&lt;/code&gt;), 12-digit Aadhaar formats, 16-digit card numbers, OTPs, and UPI VPAs, and replaces them with &lt;code&gt;[MASKED_*]&lt;/code&gt; tokens. &lt;/p&gt;

&lt;p&gt;Gemini still perfectly understands the context of the scam, but the user's PII (Personal Identifiable Information) never leaves their device. &lt;/p&gt;

&lt;h2&gt;
  
  
  Accessibility: Tech for Everyone
&lt;/h2&gt;

&lt;p&gt;A cybersecurity tool is useless if the victim can't understand it. That's why Satark doesn't use technical jargon. &lt;/p&gt;

&lt;p&gt;Through highly structured prompting with Gemini, I forced the AI to output explanations in simple, everyday language. Furthermore, I localized the entire platform into &lt;strong&gt;10 regional Indian languages&lt;/strong&gt; (Hindi, Kannada, Tamil, Telugu, Bengali, etc.). Whether you speak English or Marathi, Satark can guide you through the crisis.&lt;/p&gt;

&lt;h2&gt;
  
  
  Looking Forward
&lt;/h2&gt;

&lt;p&gt;Building Satark for Hack2Skill PromptWars has been an incredible journey. Combining traditional ML, strict deterministic rules, and the advanced reasoning capabilities of Google's Gemini AI has shown me the true power of AI for social good.&lt;/p&gt;

&lt;p&gt;You can check out the live project here: &lt;a href="https://satarkcybersathi.vercel.app" rel="noopener noreferrer"&gt;https://satarkcybersathi.vercel.app&lt;/a&gt;&lt;br&gt;
And the open-source code here: &lt;a href="https://github.com/SANJAY-U-BHARADWAJ/SATARK-CYBERSECURITY-PARTNER" rel="noopener noreferrer"&gt;https://github.com/SANJAY-U-BHARADWAJ/SATARK-CYBERSECURITY-PARTNER&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Stay Safe, Stay Satark!&lt;/p&gt;

</description>
      <category>ai</category>
      <category>cybersecurity</category>
      <category>nextjs</category>
      <category>hackathon</category>
    </item>
  </channel>
</rss>
