Phishing attacks pose one of the most important threats to web security in today's environment. Due to the emergence of new techniques in the field of generative artificial intelligence and advancement in phishing attacks, attackers create websites with similar appearance, content, and structure to genuine services to exploit the trust of users in order to steal their personal information and sensitive credentials. This growing trend calls for the creation of an advanced system that will be able to detect phishing websites with a high degree of accuracy and low false-positive rate.
The conventional phishing detection methods that use static feature extraction and rule-based systems prove to be quite inefficient when it comes to advanced and novel attacks. Despite being more adaptable, deep learning-based techniques demand large amounts of computing power and customized data sets. Additionally, current LLMs as well as small language models used alone in phishing detection might lack the capability to cover the multifaceted nature of phishing clues contained in current phishing operations. This problem is especially relevant in case of Persian-language and Iranian webpages.
In order to resolve these issues, the current study proposes ParsPhishing-Yab, which is an intelligent agent-based novel method for phishing website detection that is developed using the combination of large language models, multimodal analytics, RAG, and consensus decision-making. This novel approach is particularly designed for the Persian Web context and will bridge the current gap in the existing literature.
ParsPhishing-Yab system is built on a robust architecture that includes five specific modules including data acquisition, data preprocessing, similarity matching, intelligent agents, and phishing detection based on the consensus approach.
The first module obtains all data about the webpage, including the full HTML code and a visual image. These two modalities of information, together with URL and domain metadata, become multiple sources of information for further analysis. In this way, the system takes into account not only explicit textual information but also implicit visual data.
Similarity module creates three different embeddings - one for HTML information, one for visual image of the webpage, and one for domain metadata. Multivector similarity search is carried out against a Qdrant vector database that contains the Persian language dataset. Ten nearest neighbors are obtained and serve as context for further analysis of the target webpage. The retrieval augmented generation approach allowing obtaining additional information from the existing datasets related to phishing and legitimate webpages.
The primary analytical layer includes five intelligent agents specifically designed for the task: (1) Domain Analysis Agent, which investigates peculiarities in the structure of URL addresses, domain registration, and metadata of the domain; (2) Text Analysis Agent, which is capable of analyzing context and semantic indicators such as request for confidential information, urgency or threatening tone, and inconsistent identity; (3) Visual Analysis Agent, which investigates graphical features of the website such as designs, colors, logos, interface, etc.; (4) Retrieval Agent, which makes judgment based on the degree of similarity to both the legitimate and phishing websites available in the reference database; and (5) Consensus Agent, which combines the results of all other four analysis agents.
After comparing Qwen3-235B-A22B-Thinking-2507, Llama-3.3-70B and Kimi-K2-Thinking, we chose Qwen3-235B-A22B-Thinking-2507 for the LLM-based agents. We used DeepSeek-R1-0528 for visual analysis agent separately for sophisticated image analysis. Contrary to the traditional majority voting approach, Consensus Agent is able to weight different levels of evidence produced by each of the modules.
In order to overcome the lack of comprehensive and updated dataset of legitimate domains and phishing URLs for designing and testing of phishing detection algorithms in Iran and Persian language context, this study created the required dataset. For the collection of this data set, both automatic and manual approaches have been combined.
For the legitimate websites, the data has been gathered using the OpenPageRank service by filtering out the top ranked (.ir) domains with Page Rank values ≥ 4.5. In order to add the sensitive sites which are vulnerable to phishing attacks such as banking portal, conventional trading websites, cryptocurrency websites, online payments websites, and e-government services, manual addition has been done using the keywords specific to each domain along with common Iranian business names. In total, the reference dataset contains 874 legitimate sites including 729 domains for building the similarity database and 145 for evaluation.
The phishing URLs have been collected from PhishTank and OpenPhish datasets and further filtered using linguistic cues and geolocations i.e., the Persian language content or spoofing of Iran based websites. The filtered dataset includes 145 Persian language phishing URLs specifically reserved for evaluation. In total, the test dataset consisted of 290 domains including 145 legitimate and 145 phishing which was used exclusively for performance assessment. The system was implemented using the Python LangChain framework, with LLM access provided through API calls rather than local execution. Performance was evaluated using standard metrics: precision, recall, F1-score, and accuracy. Confusion matrix analysis and component-level ablation studies were conducted to assess the individual and collective contributions of each agent.
ParsPhishing-Yab reached the level of more than 0.93 of accuracy and F1 score compared to the baseline of 0.86 on the test set. On the test set, there were 136 domains considered legitimate by the system and 135 phishing domains with just 9 false positives and 10 false negatives. In contrast to ParsPhishing-Yab, the baseline algorithm produced 19 false positives and 21 false negatives, leading to 40 misclassified examples. The proposed multi-agent approach decreased the number of classification mistakes to 19 and thus reduced the error rate by 52.5%.
We performed component-level evaluations and showed that the Consensus Agent performance is above 0.94 according to all presented metrics. In contrast, the isolated Domain Analysis and Text Analysis agents have shown lower levels of performance. The visual analysis agent, having a specialized architecture of the model, has demonstrated moderate performance. It means that the better performance is not achieved by a single high-performing agent but, rather, by integration of different evidences via consensus layer.
Average inference time was about 260 seconds for each testing sample. Although the delay is not convenient for deployment in high throughput or real-time settings, it is appropriate enough for those use cases where the model needs to verify itself before gaining access to certain services. Possible ways of optimizing the model's inference include parallelizing agents' work, quantization of the model, and caching. |