All models

URLTran

A BERT-style transformer that classifies a URL as phishing or benign.

Language · 304 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (28 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
109.5M
Operations
304
Framework
PyTorch
Recurrent
No
Published
MILCOM 2021
Cited by
129 (as of 29 October 2026)
Authors
Pranav Maneriker, Jack W. Stokes, Edir Garcia Lazo and others
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m21146
Graph hash
6d918a00ff193d6cf8aa5605cf3974074167eb6272ab2d72bf79a56a4df7f260
Skeleton hash
d2b522931e89c9129550573c976eb703882df185f042e6e58c78d77beffcd997
Architecture hash
e83b924bd095804dc6fefb65bbe76f3e2d9e1fa2c2dcea81224a1ab39ab7b684
Diagram SHA-256
7b7929082ecf9517413b4b81b6906da0f2832755aed3635148ab0a34c40ebe9b
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

How this diagram was made

transformers.BertForSequenceClassification()

What it is

URLTran is a transformer classifier that judges from a URL whether it leads to a phishing web page. The setting is browser security, where browsers typically evaluate every unknown URL with some classifier in order to detect phishing pages quickly.

Inference has three stages: a subword tokenizer extracts tokens from the URL, a transformer model generates an embedding vector, and a classifier predicts a score for whether the URL is phishing. The classifier is a single dense two-class layer applied to the special pooled [CLS] token. The paper builds URLTran in two ways: it fine-tunes BERT and RoBERTa starting from publicly available vocabularies and weights, and it pre-trains a domain-specific transformer on URLs before fine-tuning it. URLTran_BERT, the fine-tuned BERT, is the best performing model the paper obtains from these approaches.

The paper's datasets were collected from Microsoft's Edge and Internet Explorer production browsing telemetry during the summer of 2019. On them it reports a true positive rate of 86.80% at a false positive rate of 0.01%, against 71.20% for URLNet, the next best baseline. The authors also fine-tune on adversarial samples built from homoglyphs and compound word splits to make the model more robust. The PyTorch implementation behind this model states that its parameters were all gathered from the URLTran paper.

Key idea. URLTran fine-tunes transformer models such as BERT on URLs and detects phishing at very low false positive rates better than earlier deep learning methods the paper compares with.

  • urltran
  • phishing url detection
  • phishing detection
  • malicious url classifier
  • url classification
  • transformer url classifier
  • browser security
  • url transformer

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{maneriker2021urltranimprovingphishingurl,
      title={URLTran: Improving Phishing URL Detection Using Transformers}, 
      author={Pranav Maneriker and Jack W. Stokes and Edir Garcia Lazo and Diana Carutasu and Farid Tajaddodianfar and Arun Gururajan},
      year={2021},
      eprint={2106.05256},
      archivePrefix={arXiv},
      primaryClass={cs.CR},
      url={https://arxiv.org/abs/2106.05256}, 
}