arXiv:2611.09273cs.AINov 2026

Manuscript Offprint

arXiv:2611.09273

PHISHREV+: An ASP-Based Post-Hoc Defeasible Machine Learning Framework for Phishing Detection

Mainak Sen, Kumar Sanka Ray, Amlan Chakrabarti

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Phishing website detection remains a critical cybersecurity challenge. Although machine learning classifiers achieve high accuracy on benchmark datasets, they suffer from a fundamental limitation: once trained, their decision boundaries are fixed and cannot incorporate new contextual evidence without retraining the model. This work presents PHISHREV+, a hybrid framework that instantiated the notion of post-hoc defeasible machine learning. This framework does not replace the classifier. It treats the initial classifier predictions as defeasible beliefs and revises them through an Answer Set Programming based non-monotonic reasoning(NMR) layer. The framework operates in two phases. In the machine learning phase, four classifiers (SVM, KNN, DT and RF) are trained on the 87 feature benchmark dataset. In the post-hoc NMR phase, four defeasible rules derived from exploratory data analysis of the training set, and validated through Chi-square and Mann-Whitney U tests, formally revise initial predictions. The proposed framework achieves consistent false positive reduction across all our classifiers SVM (41→39), KNN (47→46), DT (62→61), and RF (52→51) while maintaining complete false negative parity with zero increase overhead. A comprehensive ablation studies across seven rule configurations confirms that the hierarchical combination of all four defeasible rules is necessary to achieve this optimal balance. Instance level explainability is provided through eX-plainable ASP (XASP), which generates formal derivation graphs showing which defeasible rules fired and why the initial belief was retracted, a capability absent from all existing phishing detection approaches.

Keywords: Phishing URL, Defeasible Machine Learning, Non-monotonic Reasoning, Answer Set Programming, Belief Revision, XASP, Explainable AI

1. Introduction

The world wide web(WWW) has transformed how individuals, organizations, government communicate and share information. The web operates through Uniform Resource Locators(URL), a structured string that identify the location of resources on the internet. A URL typically comprises a protocol identifier, a domain name, optional subdomains, a path and query parameters. As web pages has grown significantly, the sophistication of web based threats has also increased that exploit this web system for malicious purposes. URLs serve as the entry point for many cyber-attacks such as phishing[1], drive-by-download[2].

Among web-based threats, phishing remains one of the most pervasive and damaging [3, 4]. A phishing webpage is a fraudulent website crafted to impersonate a legitimate website. The motive of this attack is to deceive human to disclose sensitive and personal credentials. Figure1 illustrates the phishing attack life cycle. According to the Anti-Phishing Working Group (APWG)[5], 1,069,681 phishing attacks were observed in the second quarter of 2026, an increase of 10.1% over the previous quarter 2026(January-March). At this volume, even a small false-positive rate produces a large number of wrong alerts, which adds to alert fatigue of security analysts[6]. The impact of phishing attack goes beyond financial loses, often resulting to data breaches to reputational damage [7]. Unlike malware or network intrusions, phishing exploits human psychology rather than technical vulnerabilities, making it difficult to defend against using conventional security mechanism. Automated detection of phishing URLs is therefore a critical requirement for modern cybersecurity infrastructure.

Significant research effort has been made toward automated phishing detection. Early approaches relied on blacklist and heuristic rules[8, 9, 10, 11]but these suffer from high maintenance overhead and inability to detect unseen phishing pages. Machine learning has emerged as a dominant paradigm with classifiers trained on lexical, structural and content based

Figure

Figure 1: Anatomy of a phishing attack. The attacker creates a look-alike site (https://chase-secure-login.com) mimicking the legitimate domain (https://chase.com) and distributes its URL via email/SMS. Victim data flows from the user to the phishing site and then to the attacker, who reuses the stolen credentials on the genuine site.

features achieving high accuracy[12, 13, 14, 3, 15, 16]. More recently, deep learning approaches including convolutional neural network [17], recurrent neural network architectures and hybrid architectures [18, 19], transformer based architectures [20] have been applied to phishing detection. Their ability to learn hierarchical feature representations directly from raw URL strings and webpage content eliminates the need for extensive feature engineering. Large language models have also been explored for phishing detection, exploiting their pre-trained linguistic knowledge to identify deceptive content [21, 22]. They achieved rapid inference but freezing a decision boundary at training time can only be updated through wholesale retraining. Multimodal systems [23, 24] have further extends to combine URL, content and visual signals, implicitly acknowledging that no single fixed is sufficient.

However, machine learning, deep learning and LLM-based approaches share a common limitation that once a classifier is trained or established, their decision boundaries are fixed lacking the ability of a principled defeasibility mechanism. Incorporating new domain knowledge such as emerging phishing tactics or newly identified adversarial signals, requires full model retraining. For random forest classifier, this involves a complexity of O(T⋅n⋅f⋅log⁡n)\mathcal{O}(T \cdot n \cdot f \cdot \log n), while deep learning and LLM based fine tuning incur higher computational cost due to gradient based optimization over millions of parameters. This retraining of trained classifiers is computationally expensive as well as operationally disruptive, particularly in real time security environment where rapid responses to new threat is needful. Furthermore, phishing strategies evolve continuously over time, causing trained models to degrade in performance due to concept drift[25, 26]. Features that reliably distinguished phishing from legitimate URLs in earlier datasets may lose their discriminative power over time and adversaries adapt their tactics. As statistical classifiers cannot incorporate contextual reasoning, they cannot revise a prediction when new and contradictory evidence becomes available, leading to persistent false positives that erode user trust and contribute to alert fatigue[6].

The objective of this work is to address these limitations by proposing a hybrid framework that combines the pattern recognition ability of machine learning with the contextual reasoning ability of non-monotonic reasoning. Specifically, we aim to enable post-hoc belief revision of initial classifier predictions using EDA-derived contextual evidence, without retraining the underlying model. The following research questions guide this work:

  • RQ1: To what extent can exploratory data analysis(EDA) of contex-

tual URL and webpage features identify statistically significant distributional differences between phishing and legitimate websites, thereby providing evidence for the formulation of defeasible revision rules?

  • RQ2: TO what extent can Answer Set Programming (ASP)-based non-monotonic reasoning (NMR) use EDA-derived contextual evidence to revise the initial predictions of machine learning classifiers, reducing false positives while preserving false-negative performance?

  • RQ3: How does hierarchical interaction of multiple defeasible rules influence the trade-off between false-positive reduction and false-negative preservation? Furthermore, what advantages does an ASP-based formulation offer over equivalent deterministic post-processing approaches in terms of rule interaction, conflict resolution and explainability?

  • RQ4: Can the proposed reasoning layer incorporate newly available domain knowledge through rule updates in O\mathcal{O} time, without retraining the underlying machine learning classifiers and thereby support efficient post-hoc adaption to evolving phishing contexts?

To address the research questions, we propose PHISHREV+, a dual-stage framework comprising a machine learning phase and a post-hoc ASP-based non-monotonic reasoning phase. In the first phase, four classifiers namely Support Vector Machine(SVM), K-Nearest Neighbour(KNN), Decision Tree(DT) and Random Forest(RF) are trained on the 87-feature benchmark dataset proposed by [27]. In the second phase an EDA analysis is conducted on four contextual features meta_info_present, length_url, nb Www, and domain_in_title to derive four hierarchical defeasible rules encoded within ASP knowledge base. The NMR layer accepts initial classifier predictions as beliefs and revises them using these rules via the Clingo ASP solver. Experimental evaluation demonstrates consistent false positive reduction with zero false negative increase parity with the base initial classifier. The novel contributions of this work are as follows:

  • An exploratory data analysis of four contextual features meta_info_present, length_url, nb_www, and domain_in_title is conducted to identify statistically meaningful distributional differences between phishing and legitimate URLs. The feature nb_www emerges as the strongest binary signal with a separation of 52.8 percentage points. The feature domain_in_title shows a counter-intuitive pattern. In the subset that

reaches rule 4, 82.6% of phishing URLs embed the domain in the page title against 56.8% of legitimate URLs.

  • A 4-rule ASP-based non-monotonic reasoning framework is proposed that performs post-hoc belief revision of initial classifier predictions using hierarchical defeasible rules derived from EDA. This achieved consistent false positive reduction across all four classifier while maintaining complete false negative parity with the base classifier.

  • A comprehensive ablation study across seven rule configurations shows that only the hierarchical combination of all four defeasible rules achieves false positive reduction with zero false negative increase. A deterministic if-else baseline yields identical predictions, positioning the value of the ASP formulation in its declarative representation, formal semantics and support for rule-level explanation rather than its predictive performance.

  • The reasoning layer supports the incorporation of new domain knowledge in O(n)\mathcal{O}(n) time without retraining the underlying classifiers, as established by a complexity analysis and confirmed empirically by the linear scaling of grounding and solving time and by the incremental rule additions of the ablation study.

The remainder of the paper is as follows. Section 2 reviews the related work on phishing detection. The next section 3 introduces non-monotonic reasoning, answer set programming and defeasible machine learning. Then section 4 states the dataset and features used for the experimentation. Next, exploratory data analysis of contextual features is presented in section 5. Section 6 then describes the proposed dual framework and the 4-rule NMR knowledge base construction. Then experimental results with ablation study is shown in section 7 and 8 respectively. Section 9 compares PHISHREV+ with prior work and XASP-based explainability is presented in section 10. Section 11 discusses the findings and limitations. Finally, in section 12, conclusion of the paper with future direction is presented.

References (34)