Inspiration

Every day, millions of people receive emails that look trustworthy, but are actually sophisticated phishing scams. Traditional spam filters miss context-based threats that mimic legitimate brands. Our team wanted to create something that makes email security transparent and explainable, so even non-technical users can understand why an email looks suspicious.

That’s how MailWatch was born, like Grammarly, but for email safety, using Chrome’s built-in AI to detect and explain phishing risks with emails before you even click and open them by turning awareness into the first line of defense.

What it does

MailWatch is a Chrome Extension that scans emails directly inside Gmail and assigns a risk badge - 🟢 Safe, 🟠 Review, or 🔴 Scam beside each sender. Hovering over the badge reveals an AI-generated explanation (e.g., “Contains urgency terms and a shortened suspicious link”), helping users learn while staying protected.

It delivers:

  • AI-powered detection using TF-IDF + Logistic Regression, trained on 150K+ real emails.
  • Explainable insights powered by Gemini Nano’s Prompt & Summarizer APIs.
  • Privacy-safe design - runs locally with zero data leaving the device.
  • Real-time protection - scans inbox emails in < 0.3 seconds.

How we built it

  1. Frontend: Chrome Extension (JavaScript) overlays risk indicators inside Gmail.
  2. Backend: FastAPI (Python) microservice handles model inference.
  3. Model: TF-IDF vectorization + Logistic Regression trained on 8 open datasets (CEAS_08, Enron, SpamAssassin, Phishing_Email, etc.).

Built-in AI APIs:

  1. Prompt API: contextual reasoning and tone analysis.
  2. Summarizer API: concise explanations for tooltips.
  3. Proofreader API: detects manipulative or urgent language patterns.

Challenges we ran into

  1. Integrating Chrome’s new built-in AI APIs with local ML inference required careful async design.
  2. Balancing accuracy vs speed - optimizing inference to under 0.3 s per email.
  3. Building explainability that’s simple yet technically correct.
  4. Designing UI elements that feel native to Gmail. Each of these challenges pushed us to design a faster, safer, and more human-centered email protection experience.

Accomplishments that we're proud of

  1. Achieved 99% recall for phishing detection with minimal false positives.
  2. Created a fully explainable security assistant for webmail users.
  3. Integrated Gemini Nano APIs to make detection contextual and privacy-preserving.
  4. Designed an extension that runs completely offline without server dependency. Finally, despite tight timelines, we’re proud to have achieved measurable real-world performance and trust-building outcomes.

What we learned

  1. Chrome’s client-side AI opens new privacy-preserving possibilities.
  2. Explainability transforms user trust - people prefer understanding why over blind alerts.
  3. Building for webmail requires UI precision and minimal latency. On the whole, the biggest lesson: users value clarity and control as much as protection as explainable AI bridges that gap beautifully.

What's next for MailWatch

  1. Fine-tune Gemini Nano for contextual phishing classification.
  2. Extend to Edge & Brave browsers.
  3. Add voice alerts for visually impaired users using Chrome’s Text-to-Speech API.
  4. Publish on Chrome Web Store with open-source transparency.

Built With

Share this project:

Updates