skip to content

// phishing url sandbox

urljail

Opens a link you don't trust inside a throwaway microVM and reports what the page actually does.

urljail restores a Firecracker microVM from a snapshot, opens the URL in sandboxed Chrome and records the visit from two sides: the browser through the DevTools Protocol, and the host through eBPF, its own DNS resolver and the firewall. The report covers redirects, DNS, TLS SNI, forms, screenshots and phishing indicators scored against eight blind held-out sets, then the VM is destroyed. It is in active development on my Linux machine.

// cage16/22
year
2026
type
phishing url sandbox
group
systems
status
in active development

//in plain words

Someone sends you a link and you are not sure it is safe. urljail opens it inside a tiny throwaway virtual computer that is destroyed afterwards, and writes down everything the page tried to do: where it redirected, what it asked for, what it looked like. You never have to open the link yourself, and the page cannot tell it is being watched.

for security teams triaging reported links, and anyone who wants to see what a page does before a person does

the problem

//01the problem

You get a link you don't trust. Static checks look at the URL string, the domain's age or a blocklist, which is exactly what attackers optimize against, and they say nothing about what the page does. Hosted scanners answer part of it but are black boxes: you can't see how the browser was set up, how traffic was captured, or how often the page lied to the scanner. Opening it on your own machine is the one thing you must not do.

how it works

//02how it works

  1. 01

    A fresh microVM for every link

    Each URL gets a Firecracker microVM restored from a snapshot with Chrome already running, about a quarter of a second before navigation starts. A guest agent drives Chrome over a DevTools Protocol pipe and streams the evidence back over vsock. When the visit ends, the VM is destroyed and nothing survives except the evidence.

  2. 02

    Two witnesses

    The browser reports requests, redirects, forms and the DOM from inside. The host watches from outside: an eBPF program on the VM's TAP device records flows and the TLS ClientHello SNI, a resolver logs DNS, the firewall logs blocked attempts and a pcap is written. The report reconciles both views, and a disagreement between them is itself a finding.

  3. 03

    Fails closed

    Each VM sits in its own network namespace with no route to the host, the LAN or cloud metadata addresses. Live traffic leaves only through a WireGuard tunnel in a separate namespace, so if the tunnel drops there is no route at all. The daemon refuses to serve until its own isolation self-test passes. During a two-minute tunnel outage, 93 URLs were refused, as designed.

  4. 04

    Jailed and confined

    Every Firecracker process runs under the jailer as its own unprivileged user, in a chroot with seccomp, cgroup limits on memory, tasks and CPU, rate-limited network and disk, and an SELinux policy module. The guest is treated as hostile, so reports are built by an unprivileged helper and everything the guest says is evidence, not truth.

  5. 05

    No proxy in the middle

    There is no man-in-the-middle proxy, so servers see a real Chrome TLS fingerprint. Chrome's key log ships back with the capture so traffic can be decrypted offline, and every report comes with a HAR export.

  6. 06

    Cloaking measured, not assumed

    Browser countermeasures are switchable snapshot profiles, so the same URL opens under up to six of them at once. On 172 fresh candidates from Certificate Transparency logs, only the HeadlessChrome User-Agent ever changed what a site showed, and every case was infrastructure such as Cloudflare's bot challenge, not a phishing kit.

  7. 07

    Indicators scored against labels

    Report indicators flag details forms on free hosting, brand lures, fake human checks and phishing kits recognised by page structure. Each rule is scored against labelled pages and eight blind held-out sets from live feeds, then replayed across every stored run to count false alarms before it stays. A rule that fired on nothing was removed.

  8. 08

    A dashboard on top

    A NestJS service with Postgres and a BullMQ queue talks gRPC to the daemon, and a Next.js dashboard submits URLs, lists runs and renders the redirect chain, network graph and screenshot. Hostile data is shown as text and never linked, and the daemon stays the only privileged component.

measured

//03measured

242 ms
snapshot restore to navigation
p50 under the jailer, p95 306 ms, on the development laptop
123 MiB
memory per running microvm
three clones running chrome at once, host memory measured
172
fresh urls under every profile
certificate transparency candidates, the cloaking study
8,881
stored runs replayed per rule
every new indicator is checked against them for false alarms
52%
of phishing pages flagged, blind
40 of 77 in the eighth held-out set, 3 false alarms on 32 others; 47% across all eight sets
19
decision records in 7 days
132 commits from 10 to 16 oct 2026

decisions

//04decisions

  1. 01

    chose restoring a snapshot on demand

    over a pool of pre-warmed VMs

    A restore takes a quarter of a second, which made the pool and its bookkeeping unnecessary. Clone safety needed real work instead: the kernel clock and the VM generation id reseed each clone, and 25 of 25 TLS ClientHello randoms came out distinct.

  2. 02

    chose TLS visibility through Chrome's key log

    over a man-in-the-middle proxy

    A proxy changes the TLS fingerprint, and fingerprinting is exactly what cloaking looks at. The key log ships with the pcap, so traffic decrypts offline and the server saw a real Chrome.

  3. 03

    chose a root daemon with unprivileged VMMs

    over a rootless design

    Namespaces, nftables, eBPF and the jailer need root. The daemon keeps that privilege, every VMM runs as its own uid in a chroot, the report builder is an unprivileged child, and the parsers that face the guest are fuzzed.

  4. 04

    chose a VPN exit in its own network namespace

    over egress from the home connection

    The guest saw the VPN's address and never the home address, and when the tunnel is down there is no route at all. One datacenter exit is a known limit of the cloaking study.

  5. 05

    chose indicators without a verdict

    over a phishing classifier in the core

    The tool reports behaviour and scored heuristics; deciding is downstream. Every rule carries its in-sample and held-out numbers, and false alarms are listed rather than tuned away.

try it

//05try it

  1. //build the daemon and the cli

    make build && make test && make fuzz

    go 1.27, firecracker 1.17, kvm, clang, nft, unbound and wireguard tools

  2. //open a link in a throwaway vm

    urljail detonate https://suspicious.example

    only after the isolation tests and the live gate pass on your machine

  3. //bring up the dashboard, no root

    control-plane/scripts/setup.sh

    postgres and redis as podman quadlets; dashboard at 127.0.0.1:7800

highlights

//06highlights

  • A Firecracker microVM per URL, restored from a snapshot in about 0.24 s
  • Host-side eBPF capture of flows and TLS SNI, reconciled with the browser's view
  • WireGuard-only egress that fails closed, gated by an isolation self-test
  • Every VMM jailed as its own user, with seccomp, cgroups and SELinux
  • A cloaking study across six browser profiles on fresh phishing candidates
  • Indicators held to eight blind sets: 52% of phishing pages flagged in the latest, kits matched 4 of 4
  • In active development; the live gate and the control plane are done

built with

  • Go
  • Firecracker
  • KVM
  • eBPF
  • C
  • nftables
  • WireGuard
  • Chrome DevTools Protocol
  • gRPC
  • SELinux
  • NestJS
  • Next.js
  • PostgreSQL

on githuburljail

language
Go
last push
oct 20, 2026

printings

//07printings

  1. First commit

  2. Live gate passed

    Hand boot, the vertical slice, the network layer with eBPF SNI capture, snapshot restore at 202 ms, the jailer and SELinux, then WireGuard-only egress with the development sudo rule removed.

  3. Cloaking study published

    172 fresh URLs under five or six profiles: only the User-Agent ever mattered.

  4. Control plane done

    NestJS, Postgres and BullMQ behind a Next.js dashboard, HAR export, perceptual-hash similarity and the first indicators.

  5. Six held-out sets

    Gate, lure and kit rules scored blind on four more sets, 137 kit references, 6,400 stored runs replayed per rule.

  6. Eight held-out sets and the detection results

    Two more blind sets brought the total to 407 phishing pages, 47% flagged at medium and up with 8.9% false alarms on 304 others. The results are written up, with two new rules for fake software updates and crypto send pages replayed across 8,881 stored runs.

questions

//08questions

Is it safe to run?
It is designed to fail closed: each VM has no route to the host, the LAN or metadata addresses, live traffic leaves only through a WireGuard tunnel in another namespace, and the daemon refuses to serve until its isolation self-test passes. The README still says not to open live phishing until those tests pass on your machine.
Does it need root?
The daemon runs as root as a systemd service. Every VMM runs as its own unprivileged user in a chroot, the report builder is unprivileged, and the whole dashboard runs as you.
Which hardware and distribution?
Linux with KVM, cgroups v2 and BTF, on bare metal. It is developed on Fedora 44 with SELinux enforcing, on a four-core laptop with 7 GiB of memory running three VMs at once. It is built from source; there is no package yet.
Can a page tell it is being watched?
Measured rather than assumed. On 172 fresh candidates, only the HeadlessChrome User-Agent changed what a site showed, and the sites that reacted were infrastructure like Cloudflare, not phishing kits. One exit and one Chrome version are stated limits.
Does it decide whether a link is phishing?
No. It reports what the page did plus heuristic indicators with their blind-set scores. The verdict belongs to whoever reads the report.

related sheets

//09related sheets

//10contact

Say hello.I read everything.

Email is the fastest way to reach me. For anything that needs a conversation, book a call.

to

name
Khaled Saeed
country
Lebanon