Local, explainable AI

PhishLens

Phishing signals.
Explained.

A local research tool that estimates phishing risk and shows how the model reached each score.

PhishLens Prism
The actual Prism dashboard with its light scanner interface, multicolored prism artwork and URL input.
Prism dashboard

Product showcase

Explore Prism.

See the scanner, signed explanations, and Model Lab as they appear in the local application.

What PhishLens does

Inspect the signals.

  • Explainable URL detection

    Estimate phishing risk from the text of an HTTP or HTTPS address.

  • Calibrated risk scoring

    See a calibrated score from 0 to 100 and the model’s risk category.

  • Signed feature explanations

    See which signals raised or lowered the URL model’s score.

  • Experimental email analysis

    Score English subject and message text using a separate model.

  • Local scan history

    Filter or clear URL scan metadata stored in local SQLite.

  • Model Lab

    Inspect held-out metrics, calibration, and threshold trade-offs.

  • On-demand Chrome scans

    Choose Analyze tab to submit the active tab’s URL to the local API.

  • Local-first privacy

    Run inference offline with trusted local model artifacts.

How it works

From URL to reasons.

PhishLens reads the address as text. URL analysis never visits, fetches, or resolves the submitted website.

  1. Input

    HTTP(S) URL

  2. Lexical features

    Hostname, path, and syntax

  3. ML scoring

    Logistic regression

  4. Calibration

    Sigmoid probability map

  5. Explainable result

    Score, tier, and reasons

Model performance

Measured on held-out data.

The URL evaluation used 49,828 PhiUSIIL URLs from a domain-disjoint holdout in the same collection. Performance on other sources and future campaigns remains unmeasured.

URL baseline · logistic regression at raw score > 0.50

Precision
98.97%
Recall
85.74%
F1
0.9188
ROC-AUC
0.9851

URL calibration

0.04128

Held-out Brier score after sigmoid calibration, down from 0.05219 raw. Lower is better.

URL model card

Architecture

One local API.

The React dashboard and Chrome extension both use FastAPI. Docker Compose runs the web dashboard and backend together on loopback. Chrome runs separately on your device.

Architecture notes
Prism dashboardReact / TypeScript
Chrome extensionManifest V3
FastAPI backendLoopback API
Offline predictorsURL + email models
SQLiteLocal URL history
Docker Compose Prism + FastAPI

Privacy & security

Scans stay local.

  • Offline URL analysisThe predictor works on URL text without contacting the destination.
  • Explicit browser actionThe extension uses active-tab and loopback permissions. It submits a URL only when you choose Analyze tab.
  • Minimal historySQLite keeps URL scan metadata and a keyed identifier. Email text and results stay out of history.
  • Static showcaseThis page displays recorded material and works without a public backend.

Recorded product demonstration

See a scan unfold.

Watch Prism submit a sample URL to the local model, show its Suspicious score and contributing signals, and open Model Lab.

Recorded demo
The Prism URL scanner before a scan.
Captured in the running local application.

Explore PhishLens.

Read the documentation and run Prism on your own machine.