Algorithms and calculations
Every score, rule and calculation in Step 1 to Zero Trust, as of version 0.48.0, with the exact numbers the code uses. The code is the source of truth: each section names the file, and when a rule changes there, change it here too.
Contents
- Security score (the Risk360-style score in both consoles)
- Public domain check (the Exposure part of the score)
- Needs attention (the console's issue list)
- Monthly compliance report (protection score, evidence, board summary)
- Step 2 readiness check (readiness score, vendor shortlist)
- Extension risk
- Alerts
- Sensitive data detection
- New websites
- Known dangerous sites
- Website categories
- Company password fingerprints
- Webhook signatures
- App usage report
- Limits and time windows
- App speed
- Office network and Wi-Fi sign-in pages
- Report a problem
- Email check
- Fake sign-in pages
- Requests for access and app review
- Commands put on the clipboard (ClickFix)
- App permission requests (OAuth consent)
- Policy groups by person
- Known malware in downloads
- Disguised files, the browser's rating and PDF pictures
- Starting settings per kind of business
1. Security score
console/risk.js (rules), console/aggregate.js (the per-computer facts). Shown on the Overview of the offline and hosted consoles. Built from each computer's newest report, so it changes as soon as a computer reports a fix.
Formula
- Each check below takes its points off one stage, for every computer it applies to.
- A computer loses at most 100 points in one stage.
- Stage score =
round(100 − average points lost per computer). Averaging per computer means one unprotected laptop out of twenty weighs less than one out of two. - Overall score =
round(average of the stage scores). Exposure counts as a fourth stage only when at least one domain was checked (section 2). - Band: 85 or more = low risk, 65 to 84 = moderate risk, below 65 = high risk.
- Each stage lists its "drivers":
round(points × computers it applies to ÷ all computers), largest first. These are the "−7" style numbers on screen.
Checks
| Stage | Check | Points | Applies when |
|---|---|---|---|
| Break-in | Browser's own protection off | 20 | Safe Browsing / SmartScreen reported off |
| Break-in | High-risk extension turned on | 20 | at least one enabled extension rated high (section 6) |
| Break-in | Download protection off | 15 | settings reported, download protection off |
| Break-in | Browser out of date | 15 | 2+ major versions behind the newest same browser in the company, or below the minimum version while protected apps are set |
| Break-in | HTTPS only off | 5 | settings reported, HTTPS only off |
| Break-in | Tracker blocking off | 5 | settings reported, tracker blocking off |
| Data loss | Data protection off | 35 | settings reported, data protection off |
| Data loss | Warnings often overridden | 15 | 3 or more "continued after warning" events in the last 30 days |
| Data loss | Personal device keeps company app data | 15 | personal device, has protected apps, Leave nothing behind off |
| Data loss | AI tools not checked | 10 | data protection on, AI group set to Off |
| Data loss | File-sharing sites not checked | 10 | data protection on, file-sharing group set to Off |
| Data loss | Any app can be used | 10 | only-approved-apps set to Off |
| Control | No report for more than 7 days | 35 | newest report older than 7 days |
| Control | Settings missing from the report | 30 | the report carries no settings |
| Control | Settings not locked by IT policy | 20 | no setting locked by IT or console policy |
| Control | Older extension version | 10 | version lower than the newest version in the company |
Exposure: the score of the public domain check, averaged over the checked domains (section 2).
Worked example (the example console, three computers, one domain)
| Computer | Break-in lost | Data loss lost | Control lost |
|---|---|---|---|
| Reception | 5 (HTTPS only off) | 0 | 0 (locked) |
| Sales laptop | 20 + 20 + 15 + 5 = 60 | 35 + 15 + 15 = 65 | 20 |
| Warehouse PC | 15 + 5 = 20 | 10 | 35 + 20 + 10 = 65 |
| Average | 85 ÷ 3 = 28.3 | 75 ÷ 3 = 25 | 85 ÷ 3 = 28.3 |
| Stage score | 72 | 75 | 72 |
Domain acme.nl: 100 − (15 DMARC only monitors + 10 no HSTS + 5 framing + 5 no CSP + 5 certificate within a month) = 60. Overall: (72 + 75 + 72 + 60) ÷ 4 = 69.75 → 70, moderate risk.
2. Public domain check
service/web/domain-check.js (findings and score), supabase/functions/_shared/domain-scan.js (collecting the facts). Score = max(0, 100 − sum of points of all findings).
| Area | Finding | Points | Rule |
|---|---|---|---|
| No SPF record | 20 | no TXT record starting v=spf1 | |
| More than one SPF record | 15 | two or more | |
| SPF allows every server | 20 | ends in +all (or bare all) | |
| SPF does not reject other servers | 10 | ends in ?all or has no all term | |
| No DMARC record | 25 | no v=DMARC1 record at _dmarc.<domain> | |
| More than one DMARC record | 15 | two or more | |
| DMARC only monitors | 15 | p=none (or no p=) | |
| DMARC applies to part of mail | 5 | p=quarantine/reject with pct below 100 | |
| MTA-STS, DNSSEC | 0 | shown for information only | |
| Website | Certificate problem | 25 | no site answered and the HTTPS error mentions certificate/TLS/SSL/handshake |
| Website | HTTP does not move to HTTPS | 10 | http:// answers without a 3xx redirect to https:// |
| Website | No HSTS | 10 | no Strict-Transport-Security header |
| Website | HSTS is short | 5 | max-age below 15,552,000 seconds (180 days) |
| Website | Site can be framed | 5 | no X-Frame-Options and no frame-ancestors in the CSP |
| Website | No Content-Security-Policy | 5 | no CSP header |
| Website | No X-Content-Type-Options | 3 | header is not nosniff |
| Website | Certificate expires soon | 20 | newest certificate in public logs expires in under 14 days |
| Website | Certificate expires within a month | 5 | 14 to 29 days |
How the facts are collected: DNS over HTTPS (Cloudflare); the domain is tried first, then www.; a host is only contacted when all its addresses are public, and the request goes to the checked address itself (no second lookup, against DNS rebinding); redirects inside the domain are followed up to 2 hops; only the status line and headers are read (16 KB at most); 8-second timeouts; certificate expiry from crt.sh (answers over 2 MB are skipped).
Exposure for the security score: the average domain score; each finding's points are divided by the number of domains for its driver.
3. Needs attention
console/aggregate.js, buildConsole. Each issue lists the computers it applies to; issues with no computers are not shown.
| Shown as | Issue | Applies when |
|---|---|---|
| Act now | High-risk extension: name (one issue per extension) | enabled and rated high on any computer |
| Act now | The browser's own protection is switched off | reported off |
| Act now | Browser older than the minimum version for protected apps | below the minimum, protected apps set |
| Act now | Data protection is switched off | settings reported, off |
| Check soon | App that is not approved in use: name | approved-apps on, app's kind is controlled, app not approved, yet in the usage report |
| Check soon | Step 1 is off in private windows (0.42) | the report says it is not allowed there (privateWindows false, from isAllowedIncognitoAccess), not a personal device, and privateWindowsOff not set. Unknown in older reports, so not listed. It does not change the security score |
| Check soon | Personal devices keep company app data after closing | as in section 1 |
| Check soon | Trusted address is too broad: address (0.45, one issue per address) | a trusted list holds an address anyone can publish on, or a parent of one (section 28). It does not change the security score |
| Check soon | Download protection is switched off | settings reported, off |
| Check soon | People often continue after a warning | 3+ overrides in 30 days |
| Check soon | No report for more than 7 days | as in section 1 |
| Check soon | Slow app: name (one issue per app) | the computer's typical load time for the app is over 4 seconds (section 16) |
| Check soon | Browser out of date | 2+ versions behind, and not already below the minimum |
| Good to fix | Settings not locked by IT policy | nothing locked |
| Good to fix | Older extension version | below the newest in the company |
| Good to fix | Data check in watch-only mode, with how often it would have stepped in over 30 days | data protection on, watch only on |
The "Last 30 days" tiles count activity-log events from the last 30 days: sensitive data stopped = paste, upload or company-password events that were not continued past a warning. Watch-only entries (log kind watch, added in 0.37) are counted apart (totals.watched) and never as events, stops or warnings. Apps being reviewed do not count as "not approved in use".
4. Monthly compliance report
service/web/compliance.js. Business Plus. Built from daily summaries, never from page addresses or content.
Daily summaries (written at each report): for every day still in the computer's activity log, event counts (sensitive data stopped, warnings overridden, downloads blocked, sites blocked, known dangerous sites blocked, and from 0.31 emails flagged by the email check, stored only when there was at least one); for the report's own day also the computer's state (protections on/off, IT-locked, personal device, high-risk extensions, number of apps, browser). Kept for 400 days (13 months, so a report can always compare with the month before).
Coverage: for each protection, the share of computer-days with a state in the month on which it was on, round(100 × on-days ÷ state-days). Measured: data protection, download protection, the browser's own protection (only "on" counts; "unknown" does not), HTTPS only, known dangerous sites, settings locked by IT policy.
Protection score = round(average coverage of four protections): data protection, download protection, the browser's own protection, settings locked. No score in a month without states. Same bands as section 1 (85 / 65).
Evidence status per measure: evidence at 95% or more, partial at 50 to 94%, gap below 50%, unless stated otherwise.
| Measure | NIS2 · ISO 27001 · CIS IG1 · Cyber Essentials · BIO2 | Status rule |
|---|---|---|
| Asset inventory | 21(2)(i) · A.5.9 · 1.1, 2.1 · — · 5.9 | gap with no computers; evidence if computers reporting reach the lower end of the number stated in the Step 2 check (26-50 needs 26), otherwise or when not stated partial |
| Endpoint devices | 21(2)(e) · A.8.1 · 4.1 · Secure configuration · 8.1 | coverage of "settings locked" |
| Data leakage prevention | — · A.8.12 · — · — · 8.12 | coverage of data protection |
| Malware and web filtering | 21(2)(g) · A.8.7, A.8.23 · 10.1, 9.2 in part · Malware protection · 8.7, 8.23 | the lower of download and browser-protection coverage |
| Browser updates | 21(2)(e) · A.8.8 · 9.1, 7.4 · Security update management · 8.8 | share of computers within one version of the newest same browser at month end; gap if no versions reported |
| Incident handling | 21(2)(b) · A.5.24–26 · 17.1–17.3 in part · — · 5.24–5.26 | evidence with a confirmed alert address, every alert of the month emailed and a written plan stated in the Step 2 check; gap with neither an address nor a written plan; otherwise partial. Alert webhooks do not count |
| Encrypted web traffic | 21(2)(h) in part · A.8.24 · — · — · 8.24 | coverage of HTTPS only |
| Software installed in browsers | 21(2)(e) · A.8.19 · 2.3 · Secure configuration · 8.19 | evidence with no high-risk extension enabled at month end, partial with any, gap with no computers |
| Effectiveness monitoring | 21(2)(f) · A.8.16, clause 9.1 · 8.2 · — · 8.16 | the protection score itself |
| Multi-factor authentication | 21(2)(j) · A.8.5 · 6.3 · User access control · 8.5 | from the Step 2 answer: everyone = evidence, some = partial, otherwise gap (stated, not measured) |
A framework view shows only measures with a reference for it (not "—").
What to improve (in this order): no computers reported; data protection below 95%; browser protection below 95%; settings locked below 95%; number of computers not stated, or fewer reporting than stated; HTTPS only below 95%; computers with out-of-date browsers; high-risk extensions enabled; no confirmed alert address; alerts not emailed; no written incident plan confirmed; two-step sign-in not confirmed for everyone.
Board summary: the score, its change from last month (score − previous score), the band, four activity counts (plus "N suspicious emails flagged" when the month had any), the first three improvements above, and "X of N measures have evidence; Y partly, Z not yet" for the chosen framework.
5. Step 2 readiness check
service/web/readiness.js. Answers from the questionnaire plus figures from the connected computers.
Readiness score (out of 100)
| Item | Max | Points |
|---|---|---|
| One central sign-in | 20 | 20 unless the answer is "none" |
| Two-step sign-in for everyone | 20 | everyone 20, some 10, otherwise 0 |
| Computers managed centrally | 15 | 15 unless "none" |
| Step 1 protection on every computer | 15 | round(15 × computers without gaps ÷ computers) |
| Settings locked by IT policy | 15 | round(15 × locked computers ÷ computers) |
| Someone responsible for IT security | 15 | part-time 5, otherwise 15 |
Level: 70 or more = Ready for Step 2, 40 to 69 = Nearly ready, below 40 = Lay the foundations first. A computer "without gaps" has data, download and tracker protection and the browser's own protection on, and an up-to-date browser.
Vendor shortlist: each vendor adds up points from rules on the answers (company size, existing firewall brand, sign-in provider, goals such as VPN replacement, isolation, sandboxing, offices, data protection). Vendors with 3 points or more qualify; the top 3 by points are shown with the reasons of their positive rules. Strongest single rules: an existing firewall from Palo Alto, Fortinet, Cisco or Check Point (+7 for that vendor); a Microsoft sign-in (+4 for Microsoft, otherwise −10); 1–49 staff lowers Zscaler (−4), Palo Alto (−4) and Netskope (−3). The full rule table is VENDORS in the file.
6. Extension risk
src/shared/extensions.js. Rates every other installed extension.
- High when it is on the list of extensions reported for passing on what people do (
src/shared/reported-extensions.js, 0.47), whatever it can do, also when installed by the organisation. The report is its first reason, and its rating carriesreported: true. - Low when installed by the organisation (admin install), whatever it can do.
- High when installed outside a store (developer mode or sideloaded), or it can access all websites and has a high-risk permission, or it has two or more high-risk permissions.
- Medium when it can access all websites, or has any high- or medium-risk permission.
- Otherwise low.
High-risk permissions: debugger, nativeMessaging, proxy, cookies, webRequestBlocking, clipboardRead. Medium: webRequest, history, tabs, management, downloads, privacy, desktopCapture, tabCapture, pageCapture, scripting, declarativeNetRequestWithHostAccess. "All websites": <all_urls>, *://*/*, http://*/*, https://*/* or file:///*. Themes and Step 1 itself are skipped. Across computers, the console shows each extension at the highest level any computer reports.
Reported extensions (0.47). Only extensions whose store ID is confirmed are listed, with the report they come from. Today: Koi Security's report of 15 December 2025 on Urban Cyber Security (Urban VPN) extensions copying conversations with AI tools: Urban VPN Proxy (eppiocemhmnlbhjplcgkofciiegomcon Chrome, nimlmejbmnecnaghgmbahmbaddhjbecg Edge), Urban Browser Guard (almalgbpmcfpdaopimbdchdliminoign Chrome, jckkfbfmofganecnnpfndfjifnimpcel Edge) and Urban Ad Blocker (feflcgofneboehfdeebcfglbodaceghj Chrome). The report also names 1ClickVPN Proxy and an Edge Urban Ad Blocker; their IDs could not be tied to the report, so they are not listed. The console shows a reported, switched-on extension as its own Act now issue ("Extension reported for passing on data") instead of the general high-risk one. Reports before 0.47 do not carry the flag. The list ships with the extension; a new one needs a new version. A reported extension raises the alert "Extension reported for passing on data on {computer}: {name}" (kind reported-extension) the first time a report shows it switched on, also when the same extension was already rated high before; it is then not also counted as a new high-risk extension. The setup and the console's policy form refuse to approve a reported extension.
Only approved extensions (0.39) (src/shared/extension-control.js; setting extensionControl, policy keys extensionControl and approvedExtensions, at most 200 IDs). With off (the default) extensions are only rated. With high, Step 1 switches off every extension rated high that is not approved; with all, every extension that is not approved. A reported extension is switched off with high and all even when it is approved: the approval was given before the report. Never touched: Step 1 itself, themes, extensions already off, and extensions that cannot be switched off (installed by IT policy). Checked when the settings change, at start-up, and whenever an extension is installed or switched back on. Each one switched off is logged as {kind: 'extension', detail: [its ID], action: 'blocked'} and explained in a notification.
7. Alerts
supabase/functions/_shared/alerts.js. Alerts fire on a change between a computer's previous and new report, so a computer that stays in one state does not repeat them.
| Alert | Fires when |
|---|---|
| Data protection switched off | on (or unknown) before, off now |
| Download protection switched off | on (or unknown) before, off now |
| Browser's own protection switched off | not off before, off now |
| High-risk extension | an enabled high-risk extension not in the previous report; more than 3 new ones become a single alert |
| Warnings overridden | 3 or more "continued after warning" events since the previous report |
| Computer silent | no report for 7 days (daily check); once, until it reports again |
Delivery: stored first; then the company webhook (if set); then an email to confirmed addresses, at most 20 alert emails a day per company. Titles are cut at 200 characters, details at 1,000.
Ticket mailboxes (0.32): a confirmed address marked as a ticket system's mailbox is left out of that email and instead gets one email per alert, subject [Step 1] <company>: <title> (cut at 250 characters), at most 100 a day per company, counted apart from the 20 above. When the day's allowance runs out, the remaining alerts of that batch are not sent to it.
8. Sensitive data detection
src/shared/detectors.js. Runs on the computer; returns only the kind and count, never the matched value.
| Kind | Rule |
|---|---|
| IBAN | 2 letters, 2 digits, then groups; checked with the ISO 13616 mod-97 checksum (must equal 1) and the country's fixed length for 30 European countries. Trailing groups are dropped one by one until the checksum passes, so a following word is not swallowed. |
| BSN | 9 digits (also written 3.3.3 or 4.2.3); 11-proef: digits weighted 9 down to 2, the last weighted −1, sum divisible by 11; all zeros refused. About 1 in 11 random 9-digit numbers passes. |
| Payment card | 13 to 19 digits (spaces or dashes allowed), a known prefix (Visa 4, Mastercard 51–55 and 22–27, Amex 34/37, Diners 30/36/38, JCB 35, Discover 6011/65/644–649/622) and the Luhn checksum. |
name@domain.tld pattern. Off by default. | |
| API key | AWS AKIA + 16, GitHub ghp_/gho_/ghu_/ghs_/ghr_ + 36, GitHub fine-grained github_pat_ + 60, OpenAI/Anthropic sk- (sk-ant-, sk-proj-) + 20, Stripe live sk_live_/rk_live_ + 20, Google AIza + 35, Slack xox[abprs]- + 10, Azure storage AccountKey= + 86 + ==. |
| Private key | -----BEGIN … PRIVATE KEY----- |
| National ID or tax number (0.37) | France, NIR: 15 characters (spaces allowed): sex 1, 2, 7 or 8, year, month 01–12 or 20 and up, department (2 digits, or 2A/2B counted as 19/18), commune, order, and a key = 97 − (first 13 digits mod 97). Belgium, national register number: 11 digits (dots and a dash allowed), month mod 20 at most 12, day at most 31, check = 97 − (first 9 digits mod 97), or with a 2 in front for people born from 2000. Germany, Steuer-ID: 11 digits (together or in groups 2-3-3-3), no leading 0, in the first 10 one digit appears 2 or 3 times and every other at most once, last digit by ISO 7064 MOD 11,10. An 11-digit number that passes the Belgian or the German check counts once. Spain, DNI: 8 digits and a letter; NIE: X, Y or Z (0, 1, 2) and 7 digits and a letter; the letter is TRWAGMYFPDXBNJZSQVHLCKE[number mod 23]. UK, National Insurance number: no check digits, so only the letter rules: 2 letters (not D, F, I, Q, U or V; the second not O; not BG, GB, KN, NK, NT, TN or ZZ), 6 digits, then A, B, C or D, upper case. |
| Company word (0.39) | the words and phrases in the company's own list (dataGuard.companyTerms, policy key companyTerms): 3 to 60 characters each, at most 200, the same word once whatever its case. Matched as whole words (no letter, digit or _ right before or after), upper or lower case alike; spaces inside a phrase match any run of spaces or line breaks; other characters match as typed. Words shorter than 3 characters are never looked for. Every occurrence counts; the word found is never reported, only companyTerm. |
| Browser recording (HAR file, 0.37) | text with "log": { and "entries": [ that holds a header named cookie, set-cookie or authorization whose value is 8 or more characters and not [REDACTED], removed or hidden. One per text. |
| Source code (0.46, off by default) | text of 1,024 characters or more that reads as program code: see section 29. One per text; a text over 1,000,000 characters is read in pieces and counts one per piece. |
Long text is scanned in pieces of 1,000,000 characters, cut at a line break where possible, otherwise overlapping by 256 characters, so nothing on a cut is missed. Files: text up to 2 MB; HAR files, PDF and Office up to 20 MB (PDFs up to 500 pages), at most 50 MB unzipped and 5,000 archive entries per Office file; 30 seconds per file.
No uploads or no pasting at all (0.37). For a site group listed in dataGuard.noUploads (noUploadsTo) every file is refused, whatever its type or content, also images and also when the group's check itself is off; for one in dataGuard.noPasting (noPastingTo) every paste is refused. Trusted company sites are never affected. Logged as upload or paste with detail noupload or nopaste.
Watch only (0.37). With dataGuard.watchOnly (dataProtectionWatchOnly) nothing is stopped and no dialog is shown. Each time the check would have warned or blocked, one log entry of kind watch (action flagged, detail: paste or upload, warn or block, then the kinds of data or noupload/nopaste) is written. A paste with sensitive data goes through untouched; files are still read first and then handed to the page.
9. New websites
src/shared/domain-age.js.
- Registered domain of a host: its last two labels, or last three under about 60 known two-part endings (
co.uk,com.au, …). IP addresses, single names and.localare skipped. - Not looked up: about 35 well-known domains, the built-in and added apps, and the company's own lists (trusted, exceptions, allowed, protected, trusted download sites, blocked).
- Age = whole days since the registration date from the registry (RDAP); only the domain name is sent, each domain once.
- Young = age below the setting (default 30 days, 1–365).
- Cache: a known date is reused for 365 days, an unknown one for 1 day; at most 5,000 domains are remembered.
10. Known dangerous sites
src/shared/threat-list.js (extension), supabase/functions/_shared/threat-intel.js (service). Business Plus. Google Web Risk's update-and-confirm method:
- The page address is canonicalised (Google's rules) and expanded into up to 5 host suffixes × 6 paths (full path with query, path,
/, and up to 3 directory levels). - Each expression is hashed with SHA-256.
- The hashes are compared on the computer with the local lists of hash prefixes (4 bytes or longer), at most 131,072 per threat type, updated every 60 minutes by diffs with a checksum.
- Only on a prefix match does the computer send those prefixes (never the address; at most 10) to the company service, which asks Google for the full hashes.
- A page is dangerous only when a full hash matches and has not expired. Answers are cached until Google's expiry times (at most 2,000 cached answers).
- Cost caps on the service: 200 paid lookups a day per company, 300 a month per company, 2,000 a month in all; above them nothing is blocked by mistake.
Downloads (0.39). The address a file is downloaded from (its final address after redirects) is checked the same way before the file is saved. On a match the download is cancelled, whatever the file type and also when pages are set to warn, logged as {kind: 'download', detail: ['threat', file type], action: 'blocked'} and explained in a notification.
11. Website categories
src/shared/bloom.js, src/shared/categories.js, supabase/functions/_shared/category-update.js, supabase/functions/_shared/category-stream.js (0.48), migrations 20261022000000_category_checked.sql and 20261023000000_category_parts.sql. Business Plus.
- Categories and their UT1 lists: adult (
adult), gambling (gambling), dating (dating), games (games), social networks (social_networks), shopping (shopping), piracy (warez), drugs (drogue), crypto mining (cryptojacking, 0.47), streaming video and music (audio-video, 0.43). A category stops whole pages only: a video embedded in another site still plays. Step 1 cannot limit or prioritise traffic. - The service downloads each category's list from the UT1 blacklists and packs it into a Bloom filter: 12 bits per line of the list, 8 hash rounds. Positions come from two FNV-1a 32-bit hashes (seeds
0x811c9dc5and0x9747b28c, the second forced odd) combined as(h1 + i × h2) mod bits. - Which lines are domains: after spaces and tabs at either end are left out, only
a-z(any case),0-9,.and-, with at least one.. The filter is sized from every line that holds anything (0.48), so junk lines make it slightly larger, never worse: the adult list has 4,599,292 such lines and 4,598,264 domains. Before 0.48 it was sized from the domains alone; a clean list gets the same filter either way. - False positives:
(1 − e^(−8/12))^8 ≈ 0.3%of domains not on the list match anyway; no domain on the list is ever missed. - A host is checked under itself and its parent domains (up to 6 names, never the ending alone):
play.casino.example→play.casino.example,casino.example. - A list with fewer than 100 domains is treated as a broken download and never replaces a good one. Computers download a list again only when its
updatedAtchanged, and since 0.48updatedAtchanges only when the filter changed (checked_atkeeps when it was last built). - The job reads each archive while it downloads, line by line, without holding the text (0.48). Supabase allows a function 2 seconds of processing and 256 MB. Calls that run at the same time share those 2 seconds. A worker that did light work (seen: 0.2 s) stays alive for a minute or more (at most 400 seconds) and serves the next call too, adding to the same 2 seconds; a worker that built a part (over 1 s) was shut down as soon as it answered.
- Small lists are built daily in one call (05:30 UTC): gambling 95,194 domains, every other list under 40,000.
- The adult list (18 MB packed, 119 MB unpacked, 4,598,264 domains) is built in 3 parts by a second scheduled job that calls with
{"step": true}every 10 minutes from 03:00 to 04:50 UTC (12 calls). Each call does one piece of work: - the first part not yet kept: it downloads the archive, packs lines
k,k + 3,k + 6, … and keeps that part's filter in the tablecategory_list_parts; or - when all 3 parts are kept, the join: the three filters joined with OR, which gives exactly the filter of the whole list, saved as the list.
A build so takes 4 calls, about 40 minutes. A call that fails (download, time) changes nothing, and the next call tries the same piece again.
- Each part carries the SHA-256 of the whole packed archive. Keeping a part removes the kept parts with another fingerprint or another number of parts: the list changed between two downloads, the newest download wins and the build goes on from it. Parts are joined only with equal fingerprints, line counts and sizes; parts that cannot be joined, or that make a list under 100 domains, are removed. Saving the list empties its kept parts in the same transaction, and the list saved earlier stays until then.
- A kept part older than 12 hours no longer counts and is built again: a build finishes within one night, so an older part is left over from a build that did not.
- A call whose
stepis anything buttrue(a slip in the job's body) is refused with 400. - The adult list is built once a week: again when its last build is more than 6.5 days old; until then every step call answers
not-due. A weekly list means computers download its 8.8 MB at most once a week. - Measured in Node on 27 November 2026: in one call about 10 s and 1 GB when read as text (before 0.48), about 2 s streamed; each of the 3 parts 1.1 to 1.4 s (0.8 s of it reading and hashing, the rest unpacking and the fingerprint) and at most 112 MB; the join 0.2 s.
- Measured on Supabase on 29 November 2026: each part 1.12 to 1.15 s of processing, the join and save under 0.25 s (18 s on the clock). Three parts asked for at the same time (the first design: the job calling itself) ran in one worker and were stopped at 2.0 s.
- An archive larger than 25 MB (packed, counted while it downloads), more than 512 MB unpacked or with more than 10,000,000 lines is left out (
too-large) before its filter is made, and a list saved earlier stays. - Computers wait up to 60 seconds for a list download (other service calls 15).
- Firewall exceptions always win over a category match.
12. Company password fingerprints
src/shared/password.js.
- Fingerprint = PBKDF2-HMAC-SHA-256, 100,000 rounds, 256 bits, with one random 16-byte salt per computer. The password itself is never stored.
- Learned only from submissions on the configured sign-in sites (checked again by the service worker against the sender's address); the 5 most recent fingerprints are kept.
- Values shorter than 8 characters are never fingerprinted or checked.
- A match on another site warns or blocks (setting); trusted company sites are skipped.
13. Webhook signatures
supabase/functions/_shared/alerts.js. Each webhook message carries x-step1-signature: sha256=<hex>, the HMAC-SHA-256 of the exact request body with the company's signing secret (step1whk_ + 64 hex characters, made by the database and shown once). Delivery resolves the address over DNS-over-HTTPS, refuses private addresses and connects only to the checked address.
14. App usage report
src/shared/usage.js. For each known app: visits and the distinct days with a visit. Days older than 90 days are dropped. Sorted by active days, then visits, then name. In the console, an app's days are added up across computers.
15. Limits and time windows
| What | Value | Where |
|---|---|---|
| Computer counts as silent | 7 days | console/aggregate.js, claim_stale_devices |
| "Recent" activity window | 30 days | console/aggregate.js |
| Browser out of date | 2 major versions behind the company's newest | console/aggregate.js, compliance.js |
| Report interval | about every 6 hours; at most one stored per 5 minutes | src/shared/company.js, ingest_report |
| Reports kept per computer | 30 | ingest_report |
| Computers per company | 1,000 that reported in 30 days; 100 new a day | migration 20261011, 20261013 |
| Alert emails | 20 a day per company | claim_alert_email |
| Confirmation emails | 20 a day per person, 1 a day per address | alert_confirmations_to_send |
| Alerts kept | 180 days | check-stale |
| Daily summaries kept | 400 days | compliance.js |
| Domain checks | 5 domains and 20 checks a day per company; 40 a day per person | domain-check.js, claim_domain_check |
| Policy update | every 60 minutes | src/shared/company.js |
| Category lists | every 24 hours | src/shared/company.js |
| Members and invites | 50 members, 20 waiting invites per company; 100 owned companies per account | migration 20261015 |
| App speed | 7 days; 100 page loads a day and 50 apps per computer; loads over 120 s ignored | src/shared/app-speed.js |
| Office check | every 5 minutes while an office address is set; 3 s to answer | src/shared/network.js |
| Wi-Fi sign-in pause | 5 minutes; checks at most once per 20 s after page errors | src/shared/network.js |
| Co-branding | name 60, message 300, help contact 120 characters; logo a PNG, JPEG or WebP data: address of at most 60,000 characters (about 44 KB); one line each, control characters and invisible marks removed | src/shared/branding.js, migration 20261018 |
| Billing CSV | a computer counts as active when it reported within 30 days | service/web/billing.js |
| Email check | 2,000 senders, 5 bank-account fingerprints each, 500 colleague names; per email 100,000 characters, 50 links, 15 domain lookups, 30 attachment names; 200 flagged emails remembered per browser session so they are logged once | src/shared/email-check.js, src/background.js |
| Risky download warning (download protection set to warn) | the download is paused before it finishes; at most 20 wait for an answer (older ones are cancelled, logged as cancelled, and their warning pages closed), until the browser closes; each answered once; closing the warning page cancels; a download that cannot be paused is blocked with the notice and log entry of the block setting; one that cannot be resumed is cancelled; protected apps always block; changes to the waiting list run one at a time | src/background/downloads.js, src/shared/rules.js |
| Fake sign-in pages | page watched 20 s for a sign-in field, changes looked at after 0.4 s of quiet; at most 2 checks per page; 12 texts of 120 characters, a title of 200, 150 file addresses and 5 form targets of 300 characters each; inline scripts read up to 200,000 characters; 100 sites remembered after "I trust this site", until the browser closes | src/content/signin-check.js, src/shared/signin-check.js, src/background.js |
| Recent errors for Report a problem | 10, 200 characters each, until the browser closes; email body 1,800 characters | src/shared/diagnostics.js |
| Requests for access (0.37) | 10 a day per computer, 200 open per company; one open request per site (or app) and kind; decided requests kept 90 days; one request per site and kind remembered per browser session; "Check again" at most once a minute | migration 20261019, src/background/access.js |
| Company lists (0.37) | 500 allowed sites and 500 reviewed apps per company; computers use at most 500 entries per list | migration 20261019, src/shared/company-lists.js |
| Warning-page message (0.37) | 300 characters, one line, control characters and invisible marks removed; link an https:// address of at most 500 characters without a user name or password | src/shared/notices.js, src/shared/values.js |
| ClickFix check (0.38) | the first 5,000 characters of clipboard text are looked at; the dialog shows 160 characters of the command; one dialog at a time per page | src/shared/command-check.js, src/content/clipboard-check.js |
| App permission warning (0.38) | 200 trusted App IDs; 100 apps remembered after "I know this app", until the browser closes | src/shared/page-tricks.js, src/background/consent.js |
| Groups by person (0.38) | 500 people per group; a person is in one group at a time | migration 20261020 |
| Known malware check (0.40) | files up to 50 MB, fetched again within 30 s; the service asks MalwareBazaar within 5 s; 2,000 checks a day per company; answers kept 90 days (known malware) or 1 day (not known) | src/shared/malware-check.js, src/background/malware-check.js, migration 20261021 |
| PDF pictures in the safe preview (0.41) | the first 30 pages; each at most 1240 × 4000 pixels and at most twice its PDF size; a picture over 15 MB is refused; 60 s for the whole document, then text instead; documents up to 20 MB (as before) | src/shared/pdf-pages.js |
16. App speed
src/shared/app-speed.js (computer), console/aggregate.js (console). Measured on protected apps and the apps listed under app speed, in the page itself (not frames), once per page load.
- From the browser's Navigation Timing entry, four numbers in whole milliseconds: total = loadEventEnd − startTime; DNS = domainLookupEnd − domainLookupStart; connect = connectEnd − connectStart (includes the secure connection); server = responseStart − requestStart. A load is ignored when any number is missing, negative or over 120,000 ms, or the total is 0.
- Kept per app and per day for 7 days, at most 100 loads a day and 50 apps. Known apps are named as in the catalog (Salesforce); others by the site as listed.
- Per app in the report: loads, median total, 90th percentile total, median of each step, and the number of loads over 4,000 ms (Google's "poor" mark for page loads). Percentiles use the nearest-rank method: the value at position ⌈share × count⌉ of the sorted list.
- Console, per app: typical = the median of the computers' medians (with an even count, the lower middle). A computer counts as slow for an app when its median is over 4,000 ms. Slowest part = the largest of DNS, connect, server and page (total minus the other three, floored at 0), each the median over the slow computers (or all computers when none is slow). A "Slow app" issue lists the slow computers, with advice for the slowest part. With 2 or more slow computers and the slowest part connect or page, it also suggests QoS or traffic shaping in the router (0.43): a busy shared connection may be why, but the numbers cannot prove it.
- Single-page apps that change screens without a page load are measured only on their first load.
17. Office network and Wi-Fi sign-in pages
src/shared/network.js, applied by src/background.js.
- Wi-Fi sign-in check: a request to
http://connectivitycheck.gstatic.com/generate_204without cookies, not following redirects, with a 3 s limit. Status 204 (not a redirect) = online; any other answer or a redirect = a sign-in page; no answer = offline. It runs at start-up, when the person returns to the computer, after an office check, and after a page in a tab fails with a certificate, SSL, connection, time-out, name-lookup, tunnel or empty-response error (at most once per 20 s). HTTPS only never upgrades this address. - Pause: while a sign-in page is in the way and the setting is on (default on), HTTPS only, IP-address blocking, unusual-port blocking and "only these sites" are off for 5 minutes (an alarm ends it), or until a check finds the connection open. Everything else stays on.
- Office check: when IT sets an office address, a no-cors request to it without cookies, 3 s limit, every 5 minutes, at start-up and when the person returns. Any answer = office; none = away. Behind a Wi-Fi sign-in page every address answers, so the result is then always away. Not checked yet = neither (nothing changes). HTTPS only never upgrades the office address.
- Away from the office: "check all other sites" becomes the stricter of its own setting and the away setting (off < warn < block; only when data protection is on); unusual ports are blocked if that is chosen; protected apps can be closed (rules 6 and 7, highest priority, so no exception or "Continue anyway" opens them).
18. Report a problem
src/shared/diagnostics.js. The popup asks the service worker for a summary: version, computer name and the first 8 characters of its id, browser, company console state, number of locked settings, the main protections on or off, the network state, rules Chrome refused, and the last 10 errors (each at most 200 characters, with web addresses, email addresses and company keys replaced by placeholders). No visited sites, page content or typed text. The email button opens a mailto: link to the support address, with the body cut to 1,800 characters; Copy copies the whole text.
19. Email check
src/shared/email-check.js (the checks), src/content/email-reader.js (reading the open email), src/content/email-check.js (the banner), checkEmail in src/background.js (the lookups and the sender history). On by default; IT keys emailCheck, companyEmailDomains, deviceCodeWarning.
Where: only the top frame of mail.google.com, outlook.office.com, outlook.office365.com and outlook.live.com. The page is read 700 ms after it stops changing. Read: sender address and name, subject, text (first 100,000 characters), the first 50 web links (address and shown text), the first 30 attachment names. A page the reader does not understand gives no check rather than a wrong one.
What leaves the computer: nothing of the email. The service worker looks up the age of the sender's domain and of up to 15 link domains (one per domain) with the same registry lookup as for new websites (section 9), and only when that check is on and the domain is not well known or the company's own. On Business Plus, those links are checked against the known dangerous list exactly as pages are (section 10, hash prefixes only).
Warning signs (each reported at most once per email):
| Code | Severity | When |
|---|---|---|
lookalike-sender | high | the sender's registrable domain imitates a company domain, a well-known brand (29 listed in IMITATED_BRANDS) or a sender seen before (see "Look-alike" below) |
colleague-name | high | company domains are set, the sender is outside them, and the display name (lower case, at least 3 characters) equals a colleague's name learned earlier |
young-sender | high | the sender's domain was registered fewer days ago than the new-websites threshold (default 30) |
reply-to | caution | a Reply-To address on another registrable domain (prepared: the page reader does not read Reply-To yet, so this does not fire today) |
bank-change | high | the email holds a valid IBAN whose fingerprint is not among this sender's remembered ones, and the sender has at least one remembered |
bank-details | caution | a valid IBAN plus a payment-change phrase, for a sender without remembered accounts |
gift-cards | high | a gift-card phrase |
payment-pressure | caution | a payment-change phrase and a pressure phrase (not added on top of bank-change) |
credentials | caution | a sign-in, password or code phrase, and the email has at least one link |
link-mismatch | caution | a link's shown text is a web address on another registrable domain than where it goes |
link-lookalike | high | a link's domain imitates a known one (same rules as the sender) |
link-ip | caution | a link goes to a bare IPv4 or IPv6 address |
link-punycode | caution | a link's host has a label starting xn-- |
link-ending | caution | a link's host ends in one of the firewall's risky endings |
link-dangerous | high | Business Plus: a link is on the known dangerous list |
link-young | caution | a link's domain is younger than the threshold (not added when it is also dangerous) |
risky-attachment | caution | an attachment ends in one of 20 types: html, htm, shtml, svg, iso, img, vhd, vhdx, one, lnk, js, vbs, wsf, hta, exe, scr, bat, cmd, msi, jar |
Links wrapped by Microsoft Safe Links (*.safelinks.protection.outlook.com?url=) or Google (google.com/url?q=) are judged by their real destination.
Level: high when any finding is high, caution when there are only cautions, none without findings. No banner at all for none: Step 1 never says an email is safe.
Look-alike: compare the name part of the registrable domains (acme for mail.acme.co.uk). Not a look-alike when the registrable domains are equal or the names are equal (the same name under another ending is often the same company), or when the known name is shorter than 3 letters or the name starts xn--. A look-alike when, after swapping rn→m, vv→w, 0→o, 1→l, !/|→l, 3→e, 5→s, removing hyphens and then i→l, both names are the same; or, for known names of 5 letters or more, the names are one edit apart (insert, delete or change one letter); or, for known names of 5 letters or more, the domain is the known name with words added with hyphens (rabobank-veilig.nl).
Phrases (matched in lower case, any amount of spacing, curly apostrophes as straight ones) in English, Dutch, French, German, Spanish, Hindi and Arabic, four groups: payment change, pressure or secrecy, sign-in or codes, gift cards. The lists are PHRASES in the file.
Bank accounts: IBANs written with or without spaces; at each start the longest run of 15 to 34 characters that passes the IBAN checksum and country length; at most 5 per email. Stored only as fingerprints: PBKDF2-HMAC-SHA-256, 100,000 rounds, with a random 16-byte salt per computer (as in section 12), at most 5 per sender, newest first.
Sender history (emailSenders in storage.local): learned only from emails without findings, so a fraudster's account or name never becomes "known". Per sender domain: the account fingerprints and when last seen; at most 2,000 domains, the least recently seen dropped. For senders on the company's own domains, also the display name, at most 500.
Activity log: a flagged email adds one entry {kind: 'email', host: sender domain, detail: the codes (at most 10), action: 'flagged'}, logged once per email (sender, subject and length) per browser session (the last 200 remembered). Nothing of the subject, text or links.
Device-code pages: microsoft.com/devicelogin, login.microsoftonline.com/…/oauth2/deviceauth (v1 and v2.0), login.live.com/oauth20_remoteconnect.srf and www.google.com/device. Before anything is typed, a dialog asks whether the person started the sign-in; "Leave this page" goes back (or to a blank page). Logged as {kind: 'email', detail: ['device-code']} with cancelled or allowed-after-warning; the code is never read.
20. Fake sign-in pages
src/shared/signin-check.js (the rule), src/content/signin-check.js (what the page shows), checkSignInPage in src/background.js. On by default (setting signInCheck.enabled, policy key signInCheck). It only warns; it never blocks.
Which pages: top frames of http and https pages with a sign-in field: a password field, or a user-name field (type email, autocomplete username or email, or a name or id such as email, login, loginfmt, username, identifier, account). Never checked: the brands' own domains (the list below), known apps from the catalog and added apps, the company's sign-in pages (passwordGuard.signInSites), its email domains, trusted company sites, firewall exceptions and allowed sites, protected apps, the allowed list (signInCheck.allowedSites), and sites where the person chose "I trust this site" (until the browser closes). Pages on free hosting are checked even under a brand's or known app's domain.
Brands (owned domains; words a page uses to name them):
| Brand | Owned domains | Words |
|---|---|---|
| Microsoft | microsoft.com, microsoftonline.com, microsoftonline-p.com, live.com, office.com, office365.com, microsoft365.com, outlook.com, sharepoint.com, msauth.net, msftauth.net, msauthimages.net, msftauthimages.net, azure.com, bing.com, skype.com, xbox.com, msn.com, windowsazure.com, b2clogin.com, ciamlogin.com | microsoft, office 365, microsoft 365, outlook, onedrive, sharepoint, azure |
| google.com, gmail.com, youtube.com, gstatic.com | google, gmail | |
| Apple | apple.com, icloud.com | apple id, apple account, icloud |
| PayPal, DocuSign, Dropbox, Adobe, LinkedIn, WeTransfer, DigiD | paypal.com; docusign.com, docusign.net; dropbox.com; adobe.com, adobelogin.com; linkedin.com; wetransfer.com; digid.nl | their names |
| Amazon | amazon.com, .nl, .de, .fr, .es, .co.uk, .in, .ae, .sa, .eg | amazon |
Free hosting (anyone can publish a page): web.app, firebaseapp.com, pages.dev, workers.dev, netlify.app, vercel.app, github.io, gitlab.io, glitch.me, blogspot.com, weebly.com, wixsite.com, square.site, godaddysites.com, webflow.io, framer.website, 000webhostapp.com, azurewebsites.net, web.core.windows.net, blob.core.windows.net, r2.dev, appspot.com, herokuapp.com, onrender.com, ngrok-free.app, ngrok.app, ngrok.io, trycloudflare.com, ipfs.io, dweb.link, replit.app, repl.co, surge.sh, tiiny.site, sites.google.com, storage.googleapis.com, firebasestorage.googleapis.com, googleusercontent.com.
Signs and points. Signs that the page imitates someone:
| Sign | Points | When |
|---|---|---|
| Copied page | 3 | the page contains the brand's own sign-in code (Microsoft: $Config= with urlGetCredentialType, sCanaryTokenName, urlMsaSignUp or sFTName; Google: WIZ_global_data with accounts.google.com or /v3/signin/), or loads at least 2 different files of the brand's sign-in page (Microsoft: aadcdn.msftauth.net, aadcdn.msauth.net, logincdn.msftauth.net, lgincdn.msftauth.net, acctcdn.msftauth.net, acctcdn.msauth.net, aadcdn.msauthimages.net, aadcdn.msftauthimages.net, login.microsoftonline.com, login.live.com, secure.aadcdn.microsoftonline-p.com; Google: accounts.google.com, accounts.youtube.com, ssl.gstatic.com/accounts/, www.gstatic.com/accounts/; the company: its sign-in pages) |
| Copied part | 1 | exactly 1 such file |
| Fake window (0.41) | 3 | the page draws a browser window of its own ("browser in the browser"): a text that is only a web address (optionally https://, a site, a port, a path), not inside a link, code, pre, kbd or samp, or the value of a read-only or disabled field, sits in a box laid over the page (the nearest of up to 10 parent elements with position fixed or absolute) that also holds a frame, a password field or an email field, and the address belongs to a brand (owned domains above, never free hosting) or to the company's email domains, while the page itself does not. The first such address counts. At most 3,000 texts are looked at and 5 addresses sent, and only on pages with a frame, a password field or an email field |
| Look-alike of the company | 3 | the address imitates one of the company's email domains (look-alike rule of section 19) |
| Look-alike of a brand | 2 | the address imitates a brand's owned domain (same rule) |
| Brand named | 2 | the title, a heading, a legend, an image's alt text or an aria-label names a brand as a whole word, outside "with …" phrases ("sign in with Google", also with one word between: "with your Microsoft account"; in the seven languages: with, via, using, through, met, avec, par, mit, con, باستخدام, عبر before the brand, से and के साथ after it) |
Only the first brand found counts for "copied"; the company comes after the brands. Signs about the site, which add at most 2 points together:
| Sign | Points | When |
|---|---|---|
| New domain | 1 | younger than the new-website setting (default 30 days, section 9); looked up only when the page shows one of the signs above and is not already over the line, and only when the new-website check is on |
| Free hosting | 1 | on one of the services above |
| Number as address | 1 | an IPv4 address or an address in brackets (IPv6) |
| Form sends elsewhere | 1 | the sign-in form's action is on another registered domain |
Warning when the page has a sign-in field, at least one imitation sign, and 3 points or more. So a copied page, a fake window or a look-alike of the company warns on its own; a brand named or a look-alike of a brand needs one more sign; signs about the site alone never warn. A page with a fake window but no sign-in field of its own (the form is inside the frame) is described as framed and warns only for the fake window; its other signs do not count.
When: once the page has settled, when a sign-in field appears later (watched for 20 s, looked at after 0.4 s of quiet), when someone clicks into a sign-in field (also a field that appeared after the 20 s), and 1 s after any click while nothing has been sent yet (a fake window often opens on a click): at most 2 checks per page, and one warning. The headings come first in the texts sent, so labelled icons cannot push them out.
The warning lists the signs and the advice to open sign-in pages through a bookmark or by typing the address. "Leave this page" (the safe choice, focused) goes back, or to a blank page; "I trust this site" continues and is remembered for that site until the browser closes (at most 100 sites). Logged as {kind: 'signin', detail: the sign codes, action: 'cancelled' or 'allowed-after-warning'}. Codes: copied-page, copied-part, fake-window, lookalike, brand-claimed, new-domain, free-hosting, ip-address, form-elsewhere. Nothing typed is read; the page's title, headings, file addresses and the sites of drawn address bars go to the service worker only and are not stored.
21. Requests for access and app review
src/shared/access.js, src/background/access.js, src/pages/blocked-extras.js, supabase/functions/_shared/access-request.js, migration 20261019000000_access_requests.sql, src/shared/company-lists.js, service/web/access-view.js. Added in 0.37.
What can be asked for. The warning page asks the service worker, which rebuilds what the page shows from the page's own address and checks it against the settings (warningFacts, the same check as its log entries). Requests are possible for: a site on the blocked list (site), an app that is not approved (app, with its name), a website category (category, with its id), a new website (young), and the firewall's port, look-alike, ending and "only these sites" rules (port, lookalike, ending, allowlist). Not for known dangerous sites, IP addresses, read-only sites, protected apps away from the office or below the minimum browser version.
What is sent. The computer's ID, the site's name (never the address), the kind, the app name or category id, and one reason code: work ("I need it for my work"), mistake ("I think this is a mistake") or customer ("A customer or supplier asked me to use it"). Nothing typed.
Without a company console the page offers an email (a mailto: link the person sends themselves) to the IT support address (support.email), or to the brand's help contact when that is an email address. With neither, nothing is offered.
Answers (submit_access_request): sent; already-requested (an open request for the same site or app and kind exists); already-allowed (the site is allowed or the app approved); limit (section 15); invalid; unknown-key; inactive.
Approving (decide_access_request): a site goes on the company's allowed sites and every open request about that site is answered; an app is set to approved in the app review and every open request for that app is answered. Declining only answers the request.
Company lists (company_lists, sent with every computer's console policy, between the branding and the group's policy; a group cannot set them):
| Policy key | From | What the computer does (applyCompanyLists) |
|---|---|---|
companyAllowedSites | allowed sites | adds them to the firewall exceptions and to "only these sites", and lifts every blocked-list entry that is the site or a parent domain of it |
companyApprovedApps | apps reviewed as approved | adds them to the approved apps |
companyAppsInReview | apps being reviewed | adds them to the apps being reviewed, unless approved |
companyRefusedApps | apps reviewed as not approved | takes them off the approved apps and the apps being reviewed, whoever put them there |
These keys add to the settings and never lock them. Order: IT policy keys and the group's keys first, then the company lists, then names that match no app are dropped.
Apps being reviewed (appControl.inReview, policy key appsInReview, or the company list): while "only approved apps" is on, an app being reviewed of a kind that must be approved opens read-only (viewing allowed; form submissions and uploads blocked, as read-only sites) instead of being warned about or blocked. Approved apps are never in review.
22. Commands put on the clipboard (ClickFix)
src/shared/command-check.js (the rule), src/content/clipboard-watch.js (in the page's own world), src/content/clipboard-check.js (the dialog). Added in 0.38.
Where it looks. Every way a page puts text on the clipboard: navigator.clipboard.writeText, navigator.clipboard.write (its text/plain part), setData('text/plain' or 'text') in a copy event, and the copy or cut command on selected text. Text people select and copy themselves is not touched. Not on the allowed sites (clipboardCheck.allowedSites, by default brew.sh, github.com, rustup.rs, learn.microsoft.com and docs.docker.com) or the trusted company sites.
The rule (on the first 5,000 characters). The text must name a program that runs commands: powershell, pwsh, mshta, cmd /c or /k, wscript, cscript, rundll32, regsvr32, msiexec, certutil, bitsadmin, conhost, curl, wget, bash, zsh, sh -c, osascript or python. Then it counts as a ClickFix command when one of these holds:
| Sign (logged code) | Pattern |
|---|---|
fake-check | a comment (#, rem, ::) followed within 80 characters by verify…, captcha, human, robot, "not a bot", cloudflare, "ray id" or "security check" |
encoded | -e/-enc/-encodedcommand with 20+ base64 characters, FromBase64String, or base64 -d/--decode/-D |
web together with run | web: an http(s) address, iwr, irm, Invoke-WebRequest, Invoke-RestMethod, DownloadString, DownloadFile, Start-BitsTransfer, Net.WebClient; run: iex, Invoke-Expression, a pipe into iex, bash, sh, zsh or python, $(curl/$(wget, -urlcache, /i:http |
web together with hidden | -w h/-windowstyle hidden/-w 1, -nop, -noni, -executionpolicy bypass/-ep bypass, start /min |
web with a program that runs what it fetches | mshta, msiexec, regsvr32, rundll32, certutil, bitsadmin |
A command alone (npm install, Get-Process, curl -O …) is not enough.
What happens. The text is not put on the clipboard (the page's call fails with NotAllowedError, setData does nothing, the copy command returns false). With the check set to warn (clipboardCheck.action, the default), a dialog explains and offers Copy anyway, which copies the text from the extension's own world; set to block, a notice says it was not copied. Logged as {kind: 'clipboard', detail: the signs, action: 'cancelled', 'allowed-after-warning' or 'blocked'}. The page's world hands the text over in the data-step1-clipboard-command attribute, and the extension's side checks it again, so a page can only make Step 1 warn about its own text.
23. App permission requests (OAuth consent)
src/shared/consent-check.js, src/background/consent.js, src/content/consent-warning.js. Added in 0.38.
Pages. login.microsoftonline.com (/oauth2/authorize and /oauth2/v2.0/authorize), login.live.com/oauth20_authorize.srf and accounts.google.com (/o/oauth2/auth, /o/oauth2/v2/auth, /signin/oauth…, where the request may sit in the continue address). The service worker reads the page's own address (sender.url), never what the page says.
Warned about when the address names an app (client_id) and asks for at least one of:
| Code | Microsoft permission names | Google permissions |
|---|---|---|
mail | Mail.*, MailboxSettings.*, IMAP.*, POP.*, SMTP.Send, EWS.*, full_access_as_user | mail.google.com, gmail.* |
files | Files.*, Sites.*, Notes.* | drive, drive.readonly, drive.metadata*, documents, spreadsheets, presentations (not the per-file drive.file) |
contacts | Contacts.*, People.* | contacts, contacts.readonly, contacts.other* |
chat | Chat.*, ChatMessage.*, ChannelMessage.* | chat.messages* |
directory | Directory.*, User.Read.All, User.ReadWrite.All, Group.ReadWrite.All | admin.directory.* |
offline is added (offline_access, or Google's access_type=offline) but alone is no reason to warn; nor are sign-in permissions (openid, profile, email, User.Read).
Not warned about: apps whose answer goes to Microsoft's or Google's own sites (microsoft.com, microsoftonline.com, office.com, office365.com, live.com, sharepoint.com, outlook.com, microsoft365.com, cloud.microsoft, azure.com, windows.net, skype.com, google.com, gmail.com, youtube.com, android.com and their subdomains), trusted App IDs (consentCheck.trustedApps, policy key trustedAppIds), and apps the person chose "I know this app" for in this browser session. An answer going to a program (no http(s) redirect_uri) is named as such.
Logged as {kind: 'consent', detail: [provider, codes…], action: 'cancelled' or 'allowed-after-warning'}; "Leave this page" goes back.
24. Policy groups by person
Migration 20261020000000_person_groups.sql, supabase/functions/_shared/device-policy.js, src/background/console-policy.js. Added in 0.38.
A policy group can list people by work account (policy_groups.accounts, at most 500, lower case, email addresses only). A person is in one group at a time: adding them to a group takes them out of the company's other groups. A computer sends its browser's work account with its hourly policy request only when reportAccount is on and the person allowed it (the same as for reports). The group is chosen in this order: the group listing the person (by name order if more than one), the computer's own group, the default group; the answer says which (by: person, computer or default). The work account is the one signed in to the browser profile: someone who signs the browser in to another account gets that account's group.
25. Known malware in downloads
src/shared/malware-check.js, src/background/malware-check.js, supabase/functions/_shared/file-check.js, migration 20261021000000_file_check.sql. Added in 0.40.
A download is checked when all of these hold:
downloads.malwareCheckis on (the default; policy keyknownMalwareCheck);- the computer is connected to a company console;
- download protection let the file through (a blocked or warned file type is handled as before, and a document sent to the safe preview is not saved, so it is not checked);
- the file name ends in one of the built-in risky file types (
DEFAULT_RISKY_EXTENSIONS) or in zip, rar, 7z, gz, tgz, tar, cab, arj, pdf, doc, docx, xls, xlsx, ppt, pptx, rtf, one, html, htm or svg (CHECKED_EXTENSIONS); - the address is http, https or data: (a page's own blob: files cannot be fetched again);
- the size, when known, is at most 50 MB;
- the site is not one of the company's trusted sites (
dataGuard.trustedSites).
The check: the download is paused, and the service worker fetches the same address again (with the browser's cookies, at most 30 s and 50 MB). It computes the file's SHA-256 on the computer and sends only those 64 hexadecimal characters, with the company key, to the file-check function. The function checks the key and the company's plan (claim_file_check) and counts the check (2,000 a day per company; more are answered with 429). It answers from the kept answers when it can: known malware is kept 90 days, "not known" 1 day.
Otherwise it asks abuse.ch MalwareBazaar (get_info by hash, with the service's own MALWAREBAZAAR_AUTH_KEY, at most 5 s):
okmeans known malware. Its family name is thesignature, keeping letters, digits, dot, dash and underscore, at most 40 characters, else empty.hash_not_foundmeans not known.- Anything else (no key, an error, too slow) means not known, and nothing is kept.
Outcome: only a 200 answer saying malicious stops the download. It is cancelled (or, if it had already finished, deleted from the disk), logged as kind download with detail malware and the family and action blocked, and announced in a notification.
Every other outcome resumes the download: not known, the file could not be fetched again, the service did not answer, or the daily limit. The check never stops a file it has no answer for. Known malware that was changed by even one byte has another fingerprint and is not recognised: this check finds files that are already known, not new ones.
26. Disguised files, the browser's rating and PDF pictures
src/shared/disguised-files.js, decideDownload in src/shared/rules.js, src/background/browser-verdict.js, src/shared/pdf-pages.js, src/sandbox/pdf-pages.js, src/pages/preview-pages.js. Added in 0.41.
Disguised file names. A download whose name ends in a program type is a disguised program when, after taking out direction marks:
- the part before the ending itself ends in a type people open without a second thought (
invoice.pdf.exe, also with spaces or underscores in between:invoice.pdf .exe); - or at least 5 spaces or underscores stand right before the ending (
invoice_____.exe); - or the name holds a mark that changes the direction of text (U+061C, U+200E, U+200F, U+202A to U+202E, U+2066 to U+2069), which can make
invoicefdp.exelook likeinvoiceexe.pdf.
Program types: exe, msi, msix, appx, scr, com, pif, cpl, dll, bat, cmd, vbs, vbe, js, jse, wsf, wsh, hta, ps1, psm1, lnk, url, jar, msc, reg, iso, img, vhd, vhdx, dmg, pkg, app, sh, apk, plus the company's risky file types (downloads.blockedExtensions). Types a program pretends to be: pdf, doc, docx, xls, xlsx, ppt, pptx, odt, ods, rtf, txt, csv, xml, html, htm, jpg, jpeg, png, gif, bmp, webp, heic, mp3, mp4, mov, avi, wav, zip, rar, 7z, eml, msg.
A disguised program is always blocked while download protection is on: also from trusted download sites, and also when risky types are set to warn (there is no honest reason for such a name). Downloads from protected apps are decided first, as before. Logged as kind download, detail disguised, the real type and, when the name says so, the type it pretends to be; the notice names the file without direction marks, with long gaps shortened, at most 80 characters.
The browser's own rating. Chrome (Google Safe Browsing) and Edge (Microsoft Defender SmartScreen) rate a download while it runs (danger). With downloads.browserVerdict on (the default; policy key blockBrowserFlaggedDownloads) and download protection on, a download rated url, content, host or unwanted is removed: cancelled, or deleted from the disk when it had already finished, so it cannot be kept anyway. Logged as kind download, detail browser-verdict and the rating, action blocked. The ratings file (a type that can be dangerous) and uncommon (not commonly downloaded) are left to the browser's own warning, as are downloads it already let through (accepted).
PDF pictures in the safe preview. A PDF in the safe preview (shouldPreview in src/shared/rules.js: a PDF or Office file from a site that is not trusted, when the preview is on) is drawn by pdf.js in a sandboxed extension page (manifest.json "sandbox"): no origin of its own, no extension APIs, no storage, and a policy of default-src 'none', its own scripts only, no eval, pictures only as blob: or data:. It loads pdf.js as plain scripts (vendor/pdfjs/pdf.classic.js and pdf.worker.classic.js, made from the module builds by scripts/pdfjs-classic.mjs) and runs it without a separate worker. Pages are drawn without annotations (no links, form fields or comments) and without loading fonts (outlines only):
- the first 30 pages; a longer document says how many of how many are shown;
- each page at the smallest of 2 times its PDF size, 1240 pixels wide and 4000 high;
- each picture a PNG of at most 15 MB, checked by the preview page together with the page order; anything else ends the pictures;
- 60 s for the whole document.
When drawing fails or takes too long, the preview shows the document's text, as before. A PDF protected with a password says so. Nothing leaves the computer.
27. Starting settings per kind of business
src/shared/industry.js. Added in 0.39. Chosen on the setup's "Whose computer is this?" step, or as a start for a policy group in the console. A preset only sets what it lists, as the person's own choices (nothing is locked); the console fills the group's form with it before saving.
| Policy key | Finance and accounting | Healthcare | Technology and software | Legal and professional services |
|---|---|---|---|---|
aiSitesAction | block | block | warn | block |
fileSharingAction | block | block | block | block |
personalEmailAction | block | block | block | |
detectors | all nine kinds on, email addresses too | |||
noUploadsTo | AI tools, personal webmail | file sharing, personal webmail | ||
unreadableFiles | block | |||
previewUntrustedDocuments | on | on | on | |
newWebsitesAction | read-only | |||
clipboardCommandAction | block | |||
blockLookalikeDomains | on | |||
blockRiskyDomainEndings | on |
"Other or general" changes nothing. The kinds of sensitive data are only ever listed in full, because in a console policy the list means exactly those kinds.
28. Where your data goes, and trusted addresses that are too broad (0.45)
The report (console/data-flows.js, buildDataFlows). Input: dataEvents from buildConsole, every log entry of kind paste, upload or watch from the last 30 days.
| What | Rule |
|---|---|
| One row | per known service (catalog name), otherwise per address without www. |
| Sent after a warning, blocked, not sent | action allowed-after-warning, blocked, cancelled |
| Watch only | kind watch; its detail is [paste or upload, warn or block, ...kinds] |
| People (0.46) | the work accounts of the computers involved, sorted, each once. Only where IT turned on reportAccount; the column and CSV column are left out when no account is known |
| Often continued past | per site and kind of data: NOISY_MIN_WARNINGS = 5 or more warnings (sent or not sent after one) and NOISY_MIN_SHARE = 0.5 or more of them sent. Blocks and watch-only entries are not warnings |
| Order | most events first, then by name; often continued past: most continued first |
| Log note | dataLogFull: a computer with EXTENSION_LOG_ENTRIES = 200 log entries (the extension's MAX_LOG_ENTRIES), all within 30 days, so older ones are lost |
Suggested changes (suggestionsFor, hosted console only, applied to the default group's form, saved only with Save policy):
| Finding | Suggestion |
|---|---|
| AI tools, file sharing or personal email, with at least one upload | noUploadsTo gains that kind of site |
| AI tools, file sharing or personal email | aiSitesAction, fileSharingAction or personalEmailAction = block |
| Any row with a known address | blockedDomains gains the address without www. |
Trusted addresses that are too broad (src/shared/broad-domains.js). An address is too broad when it is, or is a parent of, one of 38 free hosting addresses (FREE_HOSTING, also used by the sign-in check in section 20) or 9 shared cloud storage and delivery addresses (SHARED_CLOUD: amazonaws.com, cloudfront.net, azureedge.net, azurefd.net, akamaihd.net, fastly.net, digitaloceanspaces.com, backblazeb2.com, wasabisys.com). A specific address under one of them is fine, except the storage addresses that hold every customer's files in a folder each, which are too broad as well: s3.amazonaws.com and its regional forms (s3.eu-west-1.amazonaws.com, s3-eu-west-1.amazonaws.com), the same under backblazeb2.com and wasabisys.com, and a region of digitaloceanspaces.com (ams3.digitaloceanspaces.com). A bucket's own address (name.s3.amazonaws.com) is specific. The hint under a field reads addresses the way they are saved (*.netlify.app, netlify.app:443 and https://netlify.app/x are all netlify.app). Checked lists: dataGuard.trustedSites, downloads.trustedDomains, firewall.exceptions, signInCheck.allowedSites. It only warns (live under the field, and one Check soon issue per address, section 3); the address still works.
Online converters and translators in the catalog count as file sharing: iLovePDF, Smallpdf, PDF24, Sejda, PDF Candy, PDF2Go, Soda PDF, FreePDFConvert, PDFescape, Online-Convert, Zamzar, CloudConvert, Convertio, FreeConvert, DeepL and Google Translate (translate.google.com only). Only approved apps reads the catalog, so it applies to them straight away: where file sharing is controlled, they need approving like any other app. The data check and the no-uploads rule use each computer's saved list of file-sharing sites, which is filled from the catalog at setup; a computer set up before 0.45 gets them only when its list is set again (in Settings, or with fileSharingSites).
29. Source code (0.46)
countSourceCode in src/shared/detectors.js. Setting dataGuard.detectors.sourceCode, off by default and off in every kind of business. Only that code was found is recorded.
A text counts when all of these hold:
| Rule | Number |
|---|---|
| Length of the text | 1,024 characters or more |
| Lines that carry a sign of code | 8 or more |
| Different signs among them | 3 or more |
| At least one strong sign | see below |
| Share of the non-empty lines that carry a sign | 30% or more |
Each line is read with its spaces tidied (none at the ends, one between words). The 15 signs:
| Sign | Strong | What counts |
|---|---|---|
| Class or function | yes | class, interface, struct, enum, trait or namespace with a name that starts with a capital, or any name right before {; def, fn, fun, func or function with a name right before (, or a line that ends in {; impl … { |
| Import | yes | import a.b, import x as y, import … from '…', from x import y, #include, using X;, package a.b, use a::b;, require('…') |
| Database question | yes | SELECT in capitals followed by *, a list, a function or FROM |
| Database change | yes | INSERT INTO, UPDATE … SET, DELETE FROM, CREATE TABLE (or index, view, procedure, function), ALTER TABLE, in capitals |
| First line of a script | yes | #!/… |
| Database source | no | FROM table, JOIN |
| Database clause | no | WHERE, GROUP BY, ORDER BY, HAVING, VALUES ( |
| Method or field with its visibility | no | public, private, static, final and similar, then a type and a name |
| Variable | no | const, let, var, val, or a basic type (int, String, void…) and a name |
| Condition or loop | no | if (…), for (…), while (…), if …:, for x in …:, else {, try: |
| End of a block or statement | no | a line ending in {, a line of only closing brackets, return …;, break;, x++; |
| Assignment or call | no | name = …, Type name = …;, name(…) |
| Field or method with its type after it | no | name: Type;, name(…): Type; |
| Comment | no | //, /*, */ |
| One word after import or package | no | import os, package main |
Words that are also ordinary words do not count as the strong sign: import duties, package deal, class schedule, class action for damages, function room (ground floor), use this form;, SELECT ONE OPTION. A line that only ends in ; is not a sign, so lists and semicolon-separated tables are not code.
Limits: lines over 400 characters are not read (minified code or data); at most the first 20,000 lines of each piece of 1,000,000 characters; and reading a piece stops after 200 ms (checked every 500 lines), after which it is judged on what was read. No pattern can be slowed down by a line made for it: the slowest such line found takes about 0.014 ms (before this was fixed in 0.46, one took 31 ms, over a minute for 1 MB).
Code files (.py .js .mjs .cjs .jsx .ts .tsx .java .kt .kts .scala .cs .vb .c .h .cpp .cc .hpp .go .rs .php .rb .swift .lua .pl .sh .ps1) are read as text up to the text limit of 2 MB, so every enabled check sees them (a key in a script, for example). A larger code file stays unread, as before.
Measured on 9 November 2026 on real files: fired on 0 of 294 pieces of 2 KB from the manuals in all languages, 0 of 51 licences and 0 of 40 package.json files; on 147 of 149 files of this project (the two missed are short lists without code structure), 86% of 599 JavaScript files and 74% of 337 TypeScript type files in node_modules. 1 MB of prose takes 20 to 40 ms.
Not recognised, or seldom: pieces under 1 KB, minified code, HTML and style sheets on their own, database statements in lower case, and most shell, Ruby and PowerShell scripts (few of their lines carry a sign). The check sees only what goes through the browser.
30. Only company accounts (0.46)
src/shared/company-accounts.js. Off while empty; never on a personal device (deviceType). Header rules have PRIORITY.accountHeader = 5, above every allow rule (a browser leaves out a header rule when an allow rule of the same or a higher priority matches). They block nothing. At most 50 entries per list. Rule ids 8, 9 and 901.
| Service | Setting (policy key) | Header, set on | Addresses |
|---|---|---|---|
| Microsoft, work and school accounts | microsoftDirectoryId and allowedMicrosoftTenants | Restrict-Access-To-Tenants: own directory ID, then the others, comma-separated. Restrict-Access-Context: own directory ID | exactly login.microsoftonline.com, login.microsoft.com, login.windows.net, for pages, frames and page requests. Not device.login.microsoftonline.com |
| Microsoft, personal accounts | microsoftDirectoryId (set at all) | sec-Restrict-Tenant-Access-Policy: restrict-msa | login.live.com, for pages, frames and page requests |
allowedGoogleDomains | X-GoogApps-Allowed-Domains: the domains, comma-separated | google.com and everything under it, all kinds of request |
Other organisations alone do nothing: Microsoft needs the company's own directory ID. The Settings page and the console's policy form refuse that combination; a list locked by IT without the ID does not stop a person saving the rest. Microsoft requires Entra ID P1 or P2 and stops guest access to organisations not listed. Google's header leaves Search, YouTube and pages used without signing in alone. Signing in to the browser itself (the browser's own profile) does not pass through extension rules; that is set with browser policy.