ProjectsArcis
← Projects

Arcis

Checks links and Gmail messages for phishing. A Chrome extension and a web dashboard send them to a FastAPI service, which returns a risk score with the reasons behind it.

  • JavaScript 30%
  • Python 27%
  • HTML 23%
  • CSS 20%
  • Dockerfile <1%

live from github.com/the-wilful-youth/Arcis, refreshed daily

Year
2026
Team and role
A team of six: Vishal, Subhrodeep, Priya, Soumya, Ananya and me. Subhrodeep built the risk-ranking UI and the email risk signals, and Vishal the in-Gmail panel.
Built with
PythonFastAPILightGBMONNXSHAPChrome extension (MV3)

The problem

Phishing works because it looks familiar: a brand you know, a domain one letter off, an urgent email from a sender whose domain has no mail policy. People don't check these things before clicking. Arcis checks them for you, and instead of a bare "dangerous" it tells you which signals it found.

How it works

There are three ways in: a web dashboard, a browser popup for the current tab, and a panel inside Gmail. All three call the same API.

open Gmail message
  -> content script reads sender, subject, body, links
  -> extension background worker (Gmail's CSP blocks direct calls)
  -> POST /api/analyze/email     + POST /api/analyze/url for each link
       email: DNS checks (MX, SPF, DMARC) + phrase heuristics + ONNX text model
       url:   follow redirects -> lexical, DNS, ASN and WHOIS features
              -> LightGBM -> brand and typosquat rules -> SHAP reasons
  -> weighted score; the riskiest link can raise the email's score
  -> report saved -> panel in Gmail links to the full report

URL feature lookups (DNS, WHOIS, ASN) run in parallel threads behind a short cache, and redirect-following refuses private addresses so the service can't be pointed at its own network. If one part of the analysis fails, its weight is shared out among the others rather than dragging the score to zero.

Two decisions

Rules get the last word over the model. After LightGBM scores a URL, fixed rules can override it. A known-good domain is capped at 5% risk. A lookalike of a known brand (within two edits, or using punycode tricks) is pushed to 95%. A domain older than a year has its risk cut sharply. This removed most false alarms on real brand sites. The cost: a phishing page hosted on an old, compromised domain now scores close to safe.

An API key, except for the dashboard itself. The extension sends a key with every request, but the dashboard is served from the same origin and is let through without one, so no key ever ships in public JavaScript. The trade-off is that same-origin is judged from the Origin and Referer headers, which a browser can't fake but a script can.

What broke

Every result came back risky, including ones the model was sure were safe. The scorer was treating the classifier's confidence as risk, so "97% sure it's safe" scored the same as "97% sure it's phishing". The fix (commit 2be7472) inverts confidence for safe labels before combining scores. It's a one-line idea that only shows up once you test with harmless inputs, not just phishing ones.