Transformer-Based Phishing URL Detection Under Adversarial Attacks

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing URL filtering systems struggle with accurately identifying phishing URLs due to rapidly evolving malicious content, class imbalance, and adversarial attacks, leading to high false positives and negatives, and require real-time detection without significant latency.

Innovation Solution

A transformer-based model, URLTran, uses fine-tuned BERT and RoBERTa models for phishing URL detection, incorporating sub-word tokenization and adversarial training to enhance robustness against homoglyph and compound word attacks, improving performance with joint analysis of URL text and metadata.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Ease of manufacture

If traditional filtering systems use black lists of malicious characteristics, then implementation is simple, but they miss large amounts of newly added malicious content

Engineering Contradiction:
Improveimplementation simplicityVSAvoiddetection accuracy
Core Design Contradiction:
Ease of manufactureVSReliability

Solution Approach 1:

The system transforms URL detection from static blacklisting to dynamic machine learning classification by changing the parameters from predefined malicious patterns to learned features from training data, enabling adaptation to new phishing URLs without manual updates

Inventive Principle:
Principle #35Parameter changes

Solution Approach 2:

The patent replaces the mechanical blacklisting approach with a neural network-based machine learning system that automatically learns and adapts to phishing patterns, substituting manual rule-based filtering with automated intelligent detection

Inventive Principle:
Principle #28Mechanics substitution (Replace mechanical system)

2Reliability

If real-time filters are used during browsing, then malicious content can be detected before access, but significant latency is added to browsing experience

Engineering Contradiction:
Improvemalicious content detectionVSAvoidbrowsing latency
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The system performs preliminary training offline to create optimized detection models, then uses these pre-trained models for rapid real-time inference, separating the computationally intensive training phase from the fast detection phase to minimize browsing latency

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The system dynamically adjusts detection thresholds and confidence levels based on the specific URL and context, allowing flexible real-time decision-making that balances detection accuracy with response speed for different browsing scenarios

Inventive Principle:
Principle #15Dynamics

3Adaptability or versatility

If filtering systems classify content based on constantly changing characteristics, then detection can adapt to new threats, but false positives and false negatives increase

Engineering Contradiction:
Improvedetection adaptabilityVSAvoidclassification accuracy
Core Design Contradiction:
Adaptability or versatilityVSMeasurement precision

Solution Approach 1:

The system incorporates feedback mechanisms where detection results and user reports are used to continuously retrain and refine the machine learning models, creating a closed-loop system that improves accuracy while adapting to new phishing techniques

Inventive Principle:
Principle #23Feedback

Solution Approach 2:

The patent uses multiple diverse features and data sources (URL text, metadata, historical patterns, certificate information) combined in an ensemble machine learning approach, creating a composite detection system that reduces false positives by cross-validating multiple indicators

Inventive Principle:
Principle #40Composite materials

Data Source

PatentUS12438912B2Phishing URL detection using transformers
Publication Date: 2025.10.07 MICROSOFT TECHNOLOGY LICENSING LLC
  • US12438912B2 patent drawing
  • US12438912B2 patent drawing
  • US12438912B2 patent drawing

AI summary

The technology described herein can identify phishing URLs using transformers. The technology tokenizes useful features from the subject URL. The useful features can include the text of the URL and other data associated with the URL, such as certificate data for the subject URL, a referrer URL, an IP address, etc. The technology may build a joint Byte Pair Encoding for the features. The token encoding may be processed through a transformer, resulting in a transformer output. The transformer output, which may be described as a token embedding, may be input to a classifier to determine whether the URL is a phishing URL. Additional or improved URL training data may be generated by permuting token order, by simulating a homoglyph attack, and by simulating a compound word attack.