v155 · security · safe browsing
Server Side Gemini Powered Scam Checks for Desktop
Chrome 155 moves desktop scam detection for Enhanced Safe Browsing users from the on-device Gemini Nano model to a server-side Gemini model, matching Android. When a page shows high-confidence scam indicators — keyboard lock, full-screen takeovers, pointer lock, suspicious clipboard commands — Chrome may send the page’s text to Safe Browsing, where it is processed ephemerally (never logged, retained or used for training), and Chrome may then show its own warning interstitial.
concepts
-
Trigger API playground
Call, for real, the web APIs Chrome’s detector listens for — full-screen,
navigator.keyboard.lock(), pointer lock,navigator.vibrate(), clipboard writes and the notification prompt — plus a de-fanged “lockdown” sequence showing how scam pages chain them and how the escape hatch still works. -
Page-signal self-audit
Paste your own HTML/JS or fetch a same-origin page and get a line-by-line report of every call site that maps to a Chromium
ClientSideDetectionTypetrigger, with advice for keeping legitimate uses unambiguous. -
What gets sent
Render a page in a sandboxed frame and extract the visible text the way the scan sees it: hidden text dropped, query string stripped from the URL, the source-verified 5-byte minimum, the optional title prefix and the 5-scans-a-day desktop quota.
-
Clipboard command check
The desktop clipboard trigger mirrored token-for-token from Chromium: loaders, runners, decoders and endpoints. See why
curl … | bashinstall snippets can match whilenpm installdoes not — then copy for real. -
False-positive review
Flagged by mistake? Check a site’s Safe Browsing status, request a review in Search Console, report an incorrect warning — and generate the
SafeBrowsingProtectionLevelenterprise policy that controls who gets these checks.
how a check flows (from Chromium source)
- Enhanced Safe Browsing gate. Every trigger handler in
ClientSideDetectionHostreturns immediately unlessIsEnhancedProtectionEnabled(). - A trigger fires.
ClientSideDetectionType: keyboard lock, pointer lock, full-screen, vibration, clipboard copy, notification prompt, a real-time URL lookup that forces a request, the local phishing model, and others. Keyboard lock, vibration and clipboard classify only once per URL. - Pre-classification decides whether the URL may be classified at all (allowlists, private addresses, error pages).
- Safe Browsing asks for an intelligent scan (
LlamaForcedTriggerInfo.intelligent_scan). High-confidence allowlisted sites are recorded asALLOWLISTEDand no text is sent. - Model choice. On desktop in 155,
SERVER_SIDE_MODELreplacesON_DEVICE_MODEL, capped at 5 scans a day by default (SERVER_SIDE_MODEL_EXCEED_QUOTAafter that). - Text threshold. If the page’s inner text is 5 bytes or fewer, nothing is sent (
EMPTY_TEXT/TEXT_TOO_SHORT). - Verdict. The server returns an
IntelligentScanVerdict. If it says scam, Chrome shows its own interstitial. Your page never sees any of this.
what developers should know
- There is no new API to adopt or flag to test against. A legitimate game, kiosk or presentation app that uses keyboard lock or full-screen is not penalised for that alone; it only makes the page eligible for a closer look.
- Compared with the on-device model this replaces, the server model removes the failure mode
csd.protorecords asON_DEVICE_MODEL_UNAVAILABLE(“device incapability or not enough space on disk”); the new failure modes areSERVER_SIDE_MODEL_UNAVAILABLE,SERVER_SIDE_MODEL_OUTPUT_MISSINGand the daily quota. - Enterprises control enrolment with the existing
SafeBrowsingProtectionLevelpolicy (0 off, 1 standard, 2 enhanced). Only level 2 runs these checks. - If a warning hits your site in error, the review process is the usual Safe Browsing one; see False-positive review.
the observable surface
// None of these calls reveal whether a check ran. They are the
// web APIs Chrome's ClientSideDetectionHost listens for.
await el.requestFullscreen(); // FULLSCREEN_API
await navigator.keyboard.lock(["Escape"]); // KEYBOARD_LOCK_REQUESTED
await el.requestPointerLock(); // POINTER_LOCK_REQUESTED
navigator.vibrate(200); // VIBRATION_API
await navigator.clipboard.writeText(cmd); // CLIPBOARD_COPY_API
await Notification.requestPermission(); // NOTIFICATION_PERMISSION_PROMPT
references
- ChromeStatus entry (chromestatus.com/feature/5094379441225728)
- Google Security Blog — Using AI to stop tech support scams in Chrome (the on-device predecessor)
- csd.proto — ClientSideDetectionType, IntelligentScanInfo, IntelligentScanVerdict
- safe_browsing features.cc — ServerModelForScamDetectionDesktop and the clipboard token lists
- client_side_detection_host.cc — the trigger handlers
- client_side_detection_host_base.cc — clipboard tokenizer and the 5-byte text threshold
- Chrome Enterprise policy: SafeBrowsingProtectionLevel
- Google Search Central — Social engineering (phishing and deceptive sites)