
BERT-based Readability Assessment
Language304 ops109.5M params
A BERT-style transformer that classifies a URL as phishing or benign.
Language · 304 operations Checked
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.
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
How this diagram was made
transformers.BertForSequenceClassification()
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.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@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},
}