Low-latency Malicious URL Detection based on Lexical and Statistical Features
Abstract
Malicious URLs remain a persistent threat because attackers can generate short-lived links faster than static blacklists can be updated. This paper presents a lightweight stateless detector that uses only URL lexical and statistical features, without webpage downloading, DNS probing, WHOIS lookup, or HTML rendering. Experiments on approximately 50,000 cleaned URLs assembled from PhishTank, CIC-Phishing2021/CIC-Bell-DNS2021, and Tranco show that the proposed LightGBM model achieves 98.64% Accuracy, an F1-Score of 0.9863, and 0.4165 ms feature-extraction-plus-inference latency on an Apple M4 device with 16 GB RAM. Under a stress test with 5% malicious traffic, it maintains 99.59% Precision, 96.60% Recall, 0.02% FPR, and PR-AUC of 0.9793. These results suggest that URL-only mathematical and linguistic signals can support low-latency browser, mobile-gateway, and edge-security screening, while domain-granularity and source-composition effects still require time-shifted and source-balanced deployment validation.