Inspiration
Online scams, phishing messages, and suspicious links are everywhere—from fake delivery texts to fraudulent social media DMs. While studying cybersecurity, I noticed a major privacy dilemma in existing scam-checking tools: to check if a personal message or link is safe, users usually have to upload their private messages to an external cloud server.
I wanted to build HybridShield AI, a privacy-first cybersecurity assistant that keeps sensitive user data on their own device first, while still harnessing cloud intelligence when deeper threat analysis is needed.
What it does
HybridShield AI acts as an intelligent, real-time scam and phishing guard for everyday users:
- On-Device First Screening: Uses local, on-device AI to instantly scan suspicious text messages, DMs, and URLs for common red flags (urgent language, lookalike domains, and social engineering tactics) with zero latency and complete privacy—even when offline.
- Smart Cloud Escalation: When a message or link is ambiguous or requires deeper analysis, HybridShield AI seamlessly routes only the anonymized threat indicators to Firebase AI Logic in the cloud for advanced reasoning and clear, beginner-friendly safety advice.
- Actionable Safety Guidance: Explains why a message might be dangerous in plain, everyday English so non-technical users know whether to block, report, or safely ignore it.
How we built it
- Frontend & Client Logic: Built as a clean, accessible web application designed for both desktop and mobile browsers, integrating Chrome's built-in on-device AI capabilities for instant local inference.
- Hybrid AI Architecture: Powered by the Firebase AI Logic SDK, configured to prioritize on-device model execution (
on-devicefirst) with automatic fallback to Gemini models in the cloud for complex phishing analysis. - Backend Security: Protected with Firebase App Check to ensure all cloud AI requests come exclusively from our legitimate app, preventing API abuse and unauthorized bot traffic.
Challenges we faced
- Balancing Privacy vs. Accuracy: Deciding the exact confidence threshold for when an on-device check is enough versus when to escalate to the cloud without exposing private user details.
- Making Cybersecurity Beginner-Friendly: Translating technical threat indicators (like spoofing, typosquatting, and social engineering) into calm, clear, non-intimidating explanations that anyone can understand.
What we learned
- How hybrid AI architectures solve real-world cybersecurity and privacy challenges by keeping sensitive text local while leveraging cloud scale when necessary.
- How to integrate Firebase AI Logic and Firebase App Check to secure AI-powered web applications from end to end.
What's next for HybridShield AI
- Adding a safe QR code URL previewer that inspects destination links locally before opening them in a browser.
- Expanding offline scam pattern detection to support multiple languages and regional scam trends.
- Publishing an open educational guide to help beginners learn how hybrid AI protects user privacy.
Built With
- css3
- cybersecurity
- firebase
- firebase-ai-logic
- firebase-app-check
- gemini
- gemini-nano
- html5
- hybrid-ai
- javascript
- on-device-ai