Threat Model & Cryptography

Security at every layer, verified in code.

Alligator treats untrusted web pages, local Windows indexing, plug-in modules, and even stale redirects as explicit boundaries. Here is how each control is implemented.

Live Cloudflare Edge Inspector

Your current connection to this Worker

Served straight from Cloudflare's edge with strict CSP, zero cookies, and zero third-party requests — mirroring Alligator's own Connection Info dialog.

StatusInspecting edge headers...

Encrypted Vault (ALGV1 & ALGV2)

Bookmarks, browsing history, search queries, custom tracker rules, and saved logins are protected at rest in %LOCALAPPDATA%\AlligatorBrowser.

When a vault passphrase is set, Alligator derives a 256-bit key via Windows CNG BCryptDeriveKeyPBKDF2 (SHA-256, 600,000 iterations, 16-byte random salt) and encrypts with AES-256-GCM (12-byte random nonce, 16-byte auth tag, AAD alligator-vault-v2). Without a passphrase, Windows DPAPI (CRYPTPROTECT_UI_FORBIDDEN) seals data automatically.

Volatile memory wipe (ptr::write_volatile) · Hidden from Windows Search index

Browser Opening Lock

Configure a 4–32 digit PIN or 4–256 character password required before opening your workspace. Configuration is DPAPI-sealed, and secrets are hashed with PBKDF2-SHA256 and compared in constant time.

Choose 3, 5, 10, custom (1–100), or unlimited tries, paired with cooldown lockouts ranging from 30 seconds up to 24 hours.

src/app_lock.rs · Failed attempt counter persisted atomically

Pre-Navigation Safety Gate

Top-level navigations and redirects are held with WebView2 request deferrals until Alligator evaluates three checks using only the hostname and registrable domain — stripping paths, query strings, and credentials:

Cloudflare 1.1.1.2 DoH: Malware and phishing resolution checks.
Homograph & Lookalike Engine: Unicode skeleton confusable detection across major brands and one-character mistypes.
IANA RDAP Age: Flags freshly registered domains under 30 days old.

Flagged sites pause on a warning screen; suspicious subframes are checked too

Network, Ad & Pop-up Shield

Alligator enforces HTTPS-Only mode (upgrading HTTP destinations and blocking insecure subresources), optional Cloudflare DoH for browsing and media saves, and Clear cookies & sessions on exit.

Request filtering combines adblock-rust (MPL 2.0) with EasyList (CC BY-SA 3.0), a dedicated popup-window filter engine, 15 built-in tracker domains, and up to 250 user-validated custom blocked hosts.

Google OAuth note: some providers block embedded WebView2 sign-in

Sensitive Input & DLL Hardening

Hover previews display renderer RAM and CPU metrics using Windows counters, stay strictly in memory, and automatically suppress page screenshots whenever password, one-time code, or credit-card fields are present.

At process startup, SetDefaultDllDirectories restricts DLL loading to the application directory and System32, clearing the current working directory from the search path.

src/main.rs · LOAD_LIBRARY_SEARCH_APPLICATION_DIR | SYSTEM32

Test the Safety Gate Live

Try the interactive safety gate tester powered by this Cloudflare Worker to see how Alligator scores deceptive domains, Cloudflare 1.1.1.2 flags, and newly registered hosts.