Phishing Email Detection Using Web Scraping and Random Forest

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing anti-phishing technologies struggle to keep pace with the evolving sophistication of phishing attacks, facing challenges with large data volumes, personalization, accuracy, and user education, leading to increased vulnerabilities and security breaches.

Innovation Solution

A system integrating web crawling, web scraping, and a Random Forest algorithm for real-time phishing detection, using a continuous feedback loop to adapt to new threats, with feature engineering and AI model integration for precise classification.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If traditional detection methods are used, then system complexity is low, but detection accuracy deteriorates due to inability to keep pace with evolving phishing tactics

Engineering Contradiction:
Improvedetection accuracyVSAvoidsystem complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The patent replaces traditional mechanical detection methods with machine learning algorithms, specifically Random Forest and Naive Bayes classifiers. The system automatically learns patterns from labeled phishing and legitimate email datasets, enabling accurate detection without complex manual rule-based systems. This substitution of mechanical inspection with intelligent algorithms resolves the contradiction by achieving high detection accuracy through automated machine learning rather than complex human-configured systems.

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

Solution Approach 2:

The system performs self-learning through automatic classification of emails based on extracted features. The machine learning models continuously improve their detection capability by processing new data without requiring manual reconfiguration. The automated feature extraction and classification process allows the system to serve itself by adapting to new phishing tactics independently, maintaining high accuracy while avoiding the complexity of manual system updates.

Inventive Principle:
Principle #25Self-service

2Adaptability or versatility

If static databases of known phishing sites are used, then implementation is simple, but detection capability deteriorates against slightly altered attack vectors

Engineering Contradiction:
Improvedetection capabilityVSAvoidimplementation complexity
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The patent implements dynamic detection through machine learning models that continuously adapt to new phishing patterns. Rather than relying on static databases, the Random Forest and Naive Bayes algorithms learn from the structural features of emails and can generalize to detect variations and evolutions of phishing attacks. This dynamic learning capability allows the system to maintain high detection capability against altered attack vectors without requiring complex manual database updates.

Inventive Principle:
Principle #15Dynamics

Solution Approach 2:

The system changes its detection parameters automatically through machine learning. The models adjust their classification criteria based on the features they learn from training data, enabling them to adapt to new phishing tactics. This automated parameter adjustment through algorithmic learning provides versatility in detecting varied attack vectors while avoiding the implementation complexity of manually updating detection rules.

Inventive Principle:
Principle #35Parameter changes

3Reliability

If large volumes of data are processed, then detection accuracy improves, but processing speed deteriorates

Engineering Contradiction:
Improvedetection accuracyVSAvoidprocessing speed
Core Design Contradiction:
ReliabilityVSSpeed

Solution Approach 1:

The patent extracts and selects only the most relevant features from the large volumes of email data for classification. By identifying and processing only the critical features (such as subject line characteristics, sender information, and content patterns) rather than processing all data uniformly, the system maintains high detection accuracy while improving processing speed. This feature extraction approach filters out unnecessary data processing overhead.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The system segments the data processing into distinct stages: data collection, feature extraction, and classification. By dividing the large data processing task into these separate segments, the system can efficiently handle large volumes of data. The feature extraction phase processes data in manageable portions, and the classification phase uses the extracted features for rapid decision-making, thus maintaining both accuracy and speed.

Inventive Principle:
Principle #1Segmentation

4Measurement precision

If deep content analysis is performed, then detection accuracy improves, but processing time increases

Engineering Contradiction:
Improvedetection precisionVSAvoidprocessing time
Core Design Contradiction:
Measurement precisionVSLoss of time

Solution Approach 1:

The patent applies partial action by focusing the analysis on the most discriminative features of emails rather than performing exhaustive deep content analysis on all aspects. The machine learning models are trained to identify and weight the most important features for classification, allowing the system to achieve high detection precision by concentrating computational resources on the most impactful analysis areas rather than uniformly processing all content deeply.

Inventive Principle:
Principle #16Partial or excessive action

Data Source

PatentUS20260012482A1Intelligent Technical Web-Based Approach Leveraging Web Scrapper and Random Forest Algorithm to Detect Phishing Emails and SMS
Publication Date: 2026.01.08 BANK OF AMERICA CORP
  • US20260012482A1 patent drawing
  • US20260012482A1 patent drawing
  • US20260012482A1 patent drawing

AI summary

Systems and processes are disclosed for detecting phishing emails and text messages. The method involves accessing the internet to gather data from various online sources, executing multi-threaded downloaders to handle multiple data streams, and storing the downloaded data in a repository. A web scraping agent analyzes and extracts relevant features from the stored data, transforming unstructured data into a structured data model. Both are stored in a database. An after-processing dataset is generated, including testing and training datasets for machine learning analysis. Random Forest models are evaluated to determine accuracy in predicting phishing attempts, and optimal models are selected, which generate phishing predictions from new data, with feature extraction identifying attributes relevant for detection. An evaluation model assesses feature extraction accuracy and overall system performance. The machine learning algorithm adapts to new phishing techniques. The trained model is integrated into a security infrastructure, with real-time processing and continuous loop feedback.