I.INTRODUCTION

Zero-day cyber threat detection is critical for securing future economies, where digital infrastructures must remain resilient against rapidly evolving and previously unseen attacks [1,2]. Modern cyber threats often emerge for the first time in real-world environments and are therefore not represented in training data. However, most existing intrusion detection system (IDS) assume that training data sufficiently captures future attack behavior. This is not true in practice [3]. New attack strategies often create new traffic patterns that differ significantly from those encountered during training, leading to misclassification of unseen threats [4]. This problem is even worse in heterogeneous network environments where there are many devices and many communication protocols [5]. Under such conditions, high detection accuracy alone is insufficient and IDS solutions must also remain reliable and adaptive under dynamic network conditions.

There are many barriers to developing effective IDSs for detecting zero-day cyber threats. One primary barrier is the phenomenon of distribution shift [1]. This can cause IDS to incorrectly classify traffic patterns that occur on a network, regardless of the level of confidence exhibited by the IDS. Another limitation is fixed decision boundaries [6]. An example of a fixed decision boundary is a static threshold. After the IDS has been deployed, the static threshold does not change. Thus, if the traffic pattern changes, then either false alarms increase or the number of attacks missed increases. The lack of interpretability is another limitation of IDSs [7]. Since the IDSs make decisions based on traffic patterns without explaining why certain actions were taken, the decisions made by the IDS are difficult to understand or trust by analysts. These limitations illustrate the need for IDS frameworks that can adapt to changing conditions while producing reliable and explainable decisions.

Artificial intelligence (AI) has recently provided new paths for improving the capabilities of IDSs. Some of the recent advancements include the utilization of deep learning (DL) techniques, unsupervised models, neural reasoning, and online learning (OL) [8,9]. Despite the emergence of these advancements, there are still many gaps that remain. Although some IDSs can operate in real time, the vast majority of IDSs do not have the capability to continuously adapt or modify their decision thresholds in response to changing traffic patterns [10]. Additionally, the prediction uncertainty is usually not included in the decision-making process. Thus, the output of the IDS is likely to be overconfident and unreliable [11,12]. Lastly, the explanation of the IDS is usually an afterthought instead of being integrated into the decision-making pipeline [13,14]. These gaps show that there is a need for intelligent IDS frameworks that can reason, adapt, and give understandable insights, especially in zero-day scenarios.

To address these challenges, this paper proposes an agentic AI-driven framework for zero-day cyber threat detection based on an adaptive reasoning approach, aligned with the requirements of secure future economies. The proposed framework introduces three key capabilities. First, it estimates epistemic uncertainty to quantify the reliability of predictions. Second, it uses embedding-based structural deviation analysis to find deviations that could represent previously unseen attack patterns. Third, it includes an adaptive thresholding mechanism that adjusts the decision boundary according to the changes in traffic. Jointly, these three capabilities enable the proposed framework to make self-regulated and adaptive decision-making beyond the typical fixed-model inference while also providing interpretable output.

The performance of the proposed framework was evaluated on the NSL-KDD and ToN-IoT benchmark datasets. The evaluation demonstrated the superiority of the proposed framework relative to state-of-the-art approaches in terms of detection accuracy, discriminative capability, false alarm rate (FAR), and predictive confidence. Additionally, cross-dataset evaluations demonstrated the generalization capability of the proposed framework. Finally, the interpretability analyses demonstrated that the proposed framework relied on meaningful traffic characteristics, rather than spurious correlations.

The main contributions of this work are summarized as follows:

  • a.An agentic AI-driven IDS framework for zero-day cyber threat detection that supports adaptive decision-making and interpretable outputs.
  • b.Integration of epistemic uncertainty estimation and embedding-based structural deviation analysis to improve reliability when encountering unseen attacks.
  • c.An adaptive thresholding mechanism that overcomes fixed decision boundaries and enhances decision stability under dynamic network conditions.
  • d.A comprehensive evaluation using NSL-KDD and ToN-IoT datasets with uncertainty and interpretability analysis.

II.LITERATURE REVIEW

Zero-day intrusion detection has progressed from simple threshold-based decisions to more adaptive detection mechanisms. Early studies classified traffic as zero-day when anomaly scores or behavioral deviations exceeded predefined or optimized thresholds. For example, [15] optimized the anomaly-score threshold, [16] learned evolving temporal behavioral deviations, and [17] introduced a two-stage cascade threshold to first flag suspicious traffic and then reduce false positives. Thus, [15–17] show a clear shift from single-threshold detection toward adaptive and cascade-based threshold regulation.

However, threshold-based detection alone is not sufficient for dynamic zero-day environments. To address changing traffic behavior, [18] introduces adaptive self-adjusting memory to update the decision boundary under gradual, recurring, and incremental drift. This improves adaptability, but sudden drift remains difficult to handle. Beyond adaptive boundaries, [19] shifts the focus toward structural representation learning by using contrastive loss to improve separation between benign, known attack, and unseen zero-day traffic. Thus, [18,19] move the field from threshold selection toward adaptive and embedding-based generalization, but they still mainly produce prediction outputs without deeper explanation or analyst-oriented reasoning.

More recent studies have attempted to move from prediction models toward agent-based and agentic IDS. In [10], a deep reinforcement learning (DRL)-based NIDS with stacked long short-term memory (LSTM) is used to detect unseen attacks through adaptive learning. However, it mainly functions as a predictive model rather than a coordinated reasoning system. In contrast, [20] moves toward agentic AI by integrating uncertainty estimation, structural embedding analysis, and human-in-the-loop decision support for zero-day detection.

Table I summarizes the main approaches, contributions, and limitations of the most relevant studies. As shown in Table I, existing methods usually focus on one aspect, such as anomaly-score thresholding, drift-aware adaptation, adaptive learning, latent representation, or human-in-the-loop reasoning. Therefore, fragmented decision-evidence analysis remains a key limitation in zero-day IDS. This motivates the proposed agentic-driven adaptive reasoning framework, which integrates threat score, epistemic uncertainty, structural deviation, and adaptive threshold regulation into a unified decision pipeline.

Table I. Summary of research gaps in existing zero-day IDS studies

Ref.ApproachKey contributionLimitation
[15–17]Unsupervised learningOptimized anomaly thresholdsFocus mainly on threat score
[18]Self-adaptive kNNDrift-aware adaptationLimited reasoning and sensitive to neighbor selection
[10]LSTM + DRLDRL-based adaptive learningLimited confidence analysis
[19]Contrastive learningImproved latent separationFocus mainly on latent representation learning
[20]Agentic visual analyticsHuman-in-the-loop reasoningDepends on analyst involvement
Our studyAgentic-driven adaptive reasoningIntegrates threat score, epistemic uncertainty, structural deviation, and adaptive threshold regulationAddresses fragmented decision-evidence analysis in zero-day IDS

III.PROPOSED FRAMEWORK

Zero-day cyberattack detection is achieved through an agentic AI architecture (Fig. 1), which integrates three major functionalities: perception, reasoning, and adaptive control. This integration enables modeling network behavior over time, analyzing deviation from normal traffic behavior, and adapting decisions as network conditions change. The goal is to maintain reliable detection even when traffic patterns evolve.

Fig. 1. Class distribution of the dataset used in this study.

A.PERCEPTION AGENT

The perception agent captures network traffic as a temporal sequence rather than as an independent record. The ith traffic sequence containing T consecutive vectors is represented as X(i)=(x1(i),x2(i),…,xT(i)) where each vector is obtained from flow-level or connection-level data [21]. This sequential representation helps capture short-term behavioral changes that may indicate evolving or unknown attack activity. Temporal dependencies are encoded using an LSTM network. At each time step, the hidden state is updated as [8] and [12]:

ht(i)=LSTM(xt(i),ht−1(i))
where xt(i) denotes the current traffic vector and ht−1(i) denotes the previous hidden state. The updated state ht(i) summarizes the traffic behavior observed up to time t. After processing the full sequence, the final hidden state hT(i) is projected through a softmax layer:
p^(i)=Softmax(WhT(i)+b)
where W and b denote the trainable weight matrix and bias term, respectively. The output p^(i) provides a probability distribution over predefined traffic classes C. This output is passed to the reasoning agent for prediction, uncertainty estimation, and deviation scoring, enabling the framework to identify known attacks and detect subtle behavioral shifts associated with zero-day threats.

B.REASONING AGENT

The reasoning agent receives the probability output p^(i) and latent vector hT(i) from the perception agent for each traffic sequence X(i). Instead of relying solely on the predicted class label, it derives evidence signals that quantify threat level, prediction reliability, attack severity, and structural abnormality [22]. These signals are then routed to the orchestrator decision agent for final decision-making.

1).THREAT RISK SCORE

The threat risk score quantifies how strongly an observed traffic sequence deviates from legitimate network behavior. It is derived from the probability assigned to the normal class by the perception agent [23]. For a given posterior distribution produced by the perception layer, the threat score (TS) is defined as:

TS(i)=1−p^N(i)
where p^N(i) denotes the predicted probability that X(i) belongs to the normal traffic class. When this probability is high, the traffic is considered consistent with benign behavior, resulting in a low threat score. Conversely, a lower normal-class probability produces a higher TS(i), indicating stronger evidence of anomalous or malicious activity.

2).PREDICTION UNCERTAINTY SCORE

The prediction reliability of the model is estimated using epistemic uncertainty through Monte-Carlo dropout. During inference, dropout remains active and the model performs K stochastic forward passes for the same traffic sequence X(i). This produces a set of posterior outputs: P(i)={p^(i,1),p^(i,2),…,p^(i,K)}. The predictive mean distribution is computed as [11,12]:

p¯(i)=1K∑k=1Kp^(i,k)

Epistemic uncertainty UMC is then quantified using the variance of these predictions which is computed as:

UMC(i)=1K∑k=1K‖p^(i,k)−p^(i)‖2

A higher variance indicates a larger amount of uncertainty in the model’s prediction. In general, this is true when the input pattern does not match those patterns learned during training, which is commonly related to emerging or new attack patterns.

3).STRUCTURAL DEVIATION SCORE

Structural deviation score Semb evaluates whether a traffic sequence is consistent with the learned latent-space structure. For each sequence X(i), the final hidden representation hT(i) is used as its behavioral embedding. The distance between two traffic sequences X(i) and X(j) is computed as [24]:

D(X(i),X(j))=‖hT(i)−hT(j)‖

To measure structural deviation, the average distance from X(i) to its k-nearest neighbors (KNNs) in latent space is defined as [25]:

Semb(i)=1k∑X(j)∈Nk(X(i))D(X(i),X(j))

Here, Nk(X(i)) denotes kNN set of X(i). A higher Semb(i) indicates that the instance lies in a sparse or weakly supported region of the embedding space. Conversely, a lower value corresponds to compact and well-structured neighborhoods that are consistent with known behavioral patterns. This structural reasoning complements the threat score and epistemic uncertainty measures by providing an additional and independent source of evidence regarding behavioral conformity or deviation in a traffic instance.

C.ORCHESTRATION DECISION AGENT

The orchestrator decision agent controls the final decision flow for each traffic sequence X(i). It receives the scores from the reasoning agent and evaluates the zero-day decision rule:

TS(i)>τTS∧UMC(i)>τU∧Semb(i)>τemb

Here, τTS, τU, and τemb denote calibrated thresholds for the threat score, epistemic uncertainty, and embedding-based structural deviation, respectively. Sequences satisfying all three conditions are treated as zero-day attack and are forwarded to the response agent. If Eq. (8) is not satisfied, the orchestrator checks the uncertainty level. When uncertainty is low, the predicted known-class label is retained and forwarded to the response agent. When uncertainty is high, the orchestrator activates the adaptation agent for threshold refinement. The updated thresholds are then used to re-evaluate X(i), as represented by the dotted feedback lines in Fig. 1. At the same time, the corresponding values of TS(i), UMC(i), and Semb(i) are stored in sliding windows for subsequent trend monitoring and adaptive threshold updating.

D.ADAPTATION AGENT

The adaptation agent updates the zero-day decision thresholds as network behavior changes over time. As shown in Fig. 1, it performs threat trend analysis, uncertainty trend analysis, and structural trend analysis using the recent score values generated by the reasoning agent. These values are stored in sliding windows and used to update the corresponding thresholds online [26]. At update step t, WTS(t), WU(t), and Wemb(t) represent the sliding-window sets containing recent values of TS(i), UMC(i), and Semb(i), respectively. The thresholds are adapted using an exponentially smoothed percentile-based rule. The threat score threshold is updated as [6]:

τTS(t+1)=(1−η)τTS(t)+ηQα(WTS(t))
and the prediction uncertainty threshold is updated as:
τU(t+1)=(1−η)τU(t)+ηQα(WU(t))

In the same way, the embedding-based structural threshold is modified as [27]:

τemb(t+1)=(1−η)τemb(t)+ηQα(Wemb(t))
where Qα (·) denotes the empirical α-percentile of the corresponding sliding window and η ∈ (0,1) controls the adaptation rate. This mechanism allows the rejection boundaries to evolve with changes in benign traffic behavior, attack activity, and latent-space structure. As a result, outdated thresholds are avoided, robustness to behavioral drift is improved, and reliable zero-day detection is maintained during long-term deployment. The updated thresholds and trend summaries are then forwarded to the orchestrator decision agent and threat knowledge base for subsequent decision support. The overall workflow of proposed framework is described in Algorithm 1.

Algorithm 1. Agentic AI for early zero-day cyberattack detection

Input: Network traffic stream {X(i)}i=1N; initial thresholds τTS(0), τU(0), τemb(0); adaptation rate η; sliding-window size m.
Output: Detection label for each traffic instance
For each incoming traffic sequence X(i)do
 Perception Agent: compute hT(X(i)) and posterior output p^(X(i)).
 Reasoning Agent: compute TS(i),UMC(i),Semb(i). Append {TS(i),UMC(i),Semb(i)} to {WTS, WU, Wemb}
 Decision Agent:
  i. Apply the zero-day decision rule defined in Eq. (8).
  ii. If Eq. (8) is satisfied, Xi is zero-day;
  iii. If Eq. (8) is not satisfied and UMC(i) is low, retain the predicted label.
   Else mark X(i) as uncertain
 Adaptation Agent: When activated, use the current sliding-window statistics to update τTS, τU, τemb using Eq. (9)–(11).
 Response Agent: Generate the final security response and provide an interpretable explanation for the final decision

E.RESPONSE AGENT

The response agent executes the final operational action after the orchestrator decision agent confirms the decision for traffic sequence X(i). Based on the predicted threat type and severity level, it can trigger actions such as alert generation, traffic blocking, connection isolation, logging, or priority escalation. This enables rapid mitigation of confirmed malicious activity while preserving normal traffic continuity.

The explainability agent provides human-interpretable justification for the final decision. It summarizes the main factors that influenced the detection of X(i), including the dominant risk evidence and confidence level derived from the preceding agents. This information supports analyst verification, improves transparency, and assists forensic investigation.

IV.EXPERIMENTAL SETUP

A.DATASET DESCRIPTION

This paper examines the performance of the proposed intrusion detection framework on two benchmark datasets: NSL-KDD [28] and ToN-IoT [29]. These datasets were selected because they represent different network environments and attack behaviors, thereby enabling a comprehensive assessment of the detection capability of the proposed model. The NSL-KDD dataset has many improvements over the original KDD’99 dataset. One of these improvements includes removing redundant traffic and reducing learning biases in the traffic data. The dataset includes normal and malicious network traffic where the level of complexity for each type of attack varies. In this evaluation, we have chosen to utilize the class distribution illustrated in Fig. 2(a).

Fig. 2. Class distribution of the dataset used in this study.

The ToN-IoT dataset is based on large-scale traffic captured from Internet of Things (IoT) environments. It includes traffic from heterogeneous data sources and diverse cyberattack types. The ToN-IoT dataset is more complex and also has a much larger imbalance in its class distribution compared to the NSL-KDD dataset. The class distributions for the ToN-IoT dataset used in this research are presented in Fig. 2(b). Use of these two datasets help compare the model performance performs in a traditional network environment as well as in modern IoT environment. Thus, these datasets provide an opportunity to assess the model robustness and generalizability across different types of network environments.

B.ZERO-DAY EVALUATION PROTOCOL

An open-set evaluation protocol was used to assess whether the proposed framework can detect attacks absent during training. The model was trained only on benign traffic and selected known attack classes, while specific attack categories were completely excluded from both training and validation and introduced only during testing. The excluded classes were treated as zero-day attacks. They were not used as supervised output classes during model training. Instead, they were identified at inference time by the orchestrator decision agent using the combined evidence of threat score, epistemic uncertainty, and structural deviation. For NSL-KDD, benign and Denial of Service (DoS) traffic were used for training, while Probe, R2L, and U2R were held out as unseen zero-day attacks. For ToN-IoT, backdoor, Man-in-the-Middle Attack (MITM), and ransomware were held out for zero-day testing.

C.LSTM ARCHITECTURE

The perception module uses lightweight bidirectional LSTM (BiLSTM) network to extract the short-term temporal characteristics of the network traffic [21]. This lightweight configuration was selected to reduce computational overhead and support efficient edge deployment. Each flow record is represented using a single-timestep feature vector with all input attributes (F). The stacked BiLSTM layers extract temporal dependencies in both forward and backward directions. After identifying these temporal relationships, the output of each layer is fed into a dense layer, and a softmax activation function is applied to map the output to one of the target classes. The network was trained utilizing Adam optimizer with categorical cross-entropy loss. A summary of the network architecture can be found in Table II.

Table II. LSTM architecture configuration

LayerConfiguration
Input(1, F) where F is number of features
BiLSTM3 stacked layers, each with 64 units
DropoutDropout = 0.2 between layers
Dense64 neurons with ReLU
OutputSoftmax classifier
LossCategorical cross-entropy
OptimizerAdam with learning rate = 0.001
TrainingMini batch with early stopping

V.RESULTS AND DISCUSSION

A.ABLATION ANALYSIS

To evaluate the contribution of each component in the proposed framework, an ablation analysis was conducted on the NSL-KDD dataset. The baseline model was first evaluated, and then TS, UMC, Semb, and adaptive threshold were progressively added. Table III reports the class-wise precision (Pre), detection rate (DR), F1-score, and FAR for benign, DoS, Probe, and zero-day classes. The baseline model performs well on known classes, achieving high F1-scores. However, it completely fails to detect zero-day attacks. This shows that the baseline closed-set classifier is unable to recognize unseen attack samples and instead misclassifies them into known categories.

Table III. Ablation analysis results on NSL-KDD

VariantsClassPreDRF1FAR
BaselineNormal0.870.980.920.138
DoS0.990.950.970.005
Probe0.890.910.900.011
Zero-Day0.00.00.00.0
Baseline + TS + UMCNormal0.890.980.930.117
DoS0.990.950.970.005
Probe0.890.910.900.011
Zero-Day0.290.070.110.008
Baseline + TS + UMC  + SembNormal0.900.980.940.106
DoS0.990.950.970.004
Probe0.970.910.940.003
Zero-Day0.200.110.130.020
Proposed methodNormal0.991.001.000.001
DoS1.001.001.000.000
Probe1.001.001.000.000
Zero-Day0.830.980.890.010

After adding TS and UMC, the model begins to detect zero-day samples, improving Pre, DR, and F1-score to 0.29, 0.07, and 0.11, respectively. This indicates that TS and UMC help identify some unknown samples that the baseline model misses. However, the low DR shows that many zero-day samples are still not detected. When Semb is added, the model further improves the structural deviation in the latent feature space.

When Semb is added, the model further improves the representation of structural deviation in the latent feature space. Probe class improves notably, with Pre increasing to 0.97 and F1-score increasing to 0.94. The zero-day DR also increases from 0.07 to 0.11, and F1-score increases from 0.11 to 0.13. Although zero-day precision decreases from 0.29 to 0.20 and FAR increases to 0.020, this indicates that the model becomes more sensitive to unseen attacks, detecting more zero-day instances at the cost of additional false alarms.

The proposed method which includes adaptive threshold regulation achieves the best overall performance. It obtains near-perfect results for benign, DoS, and Probe classes with F1-scores of 1.00 and almost zero FAR. More importantly, zero-day detection improves substantially reaching 0.83 Pre, 0.98 DR, and 0.89 F1-score, with a low FAR of 0.010. These results show that adaptive threshold regulation is essential for balancing sensitivity and false alarms. Overall, the ablation study confirms that each component contributes to the final performance, while the complete proposed method provides the most reliable detection of both known and zero-day attacks.

B.UNCERTAINTY ANALYSIS

The uncertainty behavior of the model on the NSL-KDD dataset is illustrated in Fig. 3. The purpose of this analysis is to examine whether the model’s confidence is consistent with its predictive uncertainty and whether uncertain samples are concentrated in meaningful regions of the feature space. Figure 3(a) shows the relationship between softmax confidence and entropy. A clear inverse pattern can be observed: samples with high softmax confidence are generally associated with low entropy, whereas samples with lower confidence show higher entropy. This indicates that the model produces more certain predictions when the posterior probability is concentrated in one class, while uncertainty increases when the prediction distribution becomes less decisive. The gradual decrease in entropy as confidence increases also suggests that the model’s uncertainty behavior is stable rather than irregular.

Fig. 3. Uncertainty analysis on NSL-KDD dataset.

Figure 3(b) visualizes the latent feature representation using t-distributed stochastic neighbor embedding (t-SNE). The visualization was generated by projecting the learned feature embeddings into a two-dimensional space using a perplexity value of 30 with Principal Component Analysis (PCA)-based initialization and a fixed random seed of 42 to ensure reproducibility. The resulting projection shows that normal, DoS, and Probe samples form relatively distinguishable clusters, whereas the highlighted zero-day samples are primarily concentrated near overlapping or boundary regions between known classes.

This behavior indicates that zero-day samples are structurally closer to ambiguous regions of the latent space rather than well-separated class centers. Overall, the results show that the model assigns lower uncertainty to confident known-class predictions and higher uncertainty to samples located near class-overlapping regions. These observations support the use of entropy and latent-space deviation as complementary indicators for regulating decisions and identifying potential zero-day intrusions.

C.CROSS-DATASET EVALUATION

To evaluate whether the proposed framework generalizes beyond the training distribution, the model was tested on the ToN-IoT dataset, which contains heterogeneous traffic patterns, diverse attack behaviors, and additional zero-day attack categories. Receiver operating characteristic (ROC) and precision–recall (PR) analyses were employed to examine the discrimination capability and reliability of the framework under cross-dataset conditions. Figure 4(a) shows the ROC curves generated by varying the classification threshold and measuring the corresponding true positive and false positive rates for each class. The known classes such as Cross-Site Scripting (XSS) achieve area under the curve (AUC) values above 0.98, indicating strong separability. The zero-day class obtains an AUC of 0.925, showing that the framework can reasonably distinguish unseen attacks under cross-dataset conditions.

Fig. 4. Cross-dataset discriminative analysis on the ToN-IoT dataset.

Figure 4(b) presents the PR curves, which evaluate the trade-off between attack detection capability and FAR across different decision thresholds. Most known classes maintain high precision over a broad recall range, with average precision (AP) values close to 1.0. DoS and injection achieve AP values of 0.952 and 0.936, respectively, while the zero-day class records an AP value of 0.824. The lower AP value for zero-day traffic reflects the increased difficulty of detecting unseen attacks under cross-dataset conditions, although the framework still maintains relatively high precision while identifying a substantial portion of unknown attacks.

Figure 5 further summarizes the reliability characteristics of the detection framework using a reliability quadrant plot based on recall and false positive rate values. Classes positioned in the reliable region exhibit both high recall and low false positive rates. Most known classes are concentrated in this region, indicating stable detection performance. The zero-day appear in the cautious region, suggesting moderate recall while maintaining low FAR.

Fig. 5. Reliability quadrant analysis on ToN-IoT.

In contrast, the MITM category exhibits lower recall, indicating that some attacks remain undetected; however, its low false positive rate suggests that the framework behaves conservatively and avoids incorrectly classifying legitimate traffic as malicious. Consistent with the visual results, Table IV shows strong performance across most classes. Benign, Distributed DoS (DDoS), password, scanning, and XSS achieve F1-scores above 0.95, while DoS and injection obtain slightly lower F1-scores of 0.901 and 0.893, respectively. The zero-day class achieves high precision of 0.982 but lower DR of 0.631, resulting in an F1-score of 0.769. Its FAR is 0.000, indicating that the model detects zero-day attacks conservatively without incorrectly flagging normal or known-class samples as zero-day. In summary, the cross-dataset results show that the proposed framework remains effective under distribution shifts. It achieves strong detection performance for known attacks and provides a reliable indication of unknown or zero-day traffic. These findings suggest its potential suitability for real-world IoT network security.

Table IV. Quantitative analysis on ToN-IoT dataset

ClassPreDRF1FAR
Benign0.9920.9850.9880.003
DDoS0.9870.9820.9840.002
DoS0.9090.8930.9010.005
Injection0.9410.8490.8930.003
Password0.9570.9500.9540.004
Scanning0.9900.9920.9910.003
XSS0.9300.9770.9530.017
Zero-Day0.9820.6310.7690.000

D.INTERPRETABILITY ANALYSIS

Interpretability was assessed not only to visualize the model decision but also to examine whether the explanation remains reliable under minor input changes. This is important in trustworthy AI, where explanations should be consistent and useful for analyst verification in security-critical systems [30]. Therefore, Figs. 6 and 7 present the explanation generated for a zero-day sample before and after a small input perturbation, respectively.

Fig. 6. Interpretability analysis of zero-day decision behavior before input perturbation.

Fig. 7. Interpretability analysis of zero-day decision behavior after input perturbation.

In both cases, the model maintained the zero-day prediction with high confidence, indicating stable decision behavior under minor feature variations. Although the prediction confidence decreased slightly after perturbation, the dominant contributing features remained largely consistent across both explanations.

Features related to packet statistics, flow characteristics, Transmission Control Protocol (TCP) flags, and port behavior, such as OUT_PKTS, IN_PKTS, CLIENT_TCP_FLAGS, and L4_SRC_PORT, continued to contribute significantly to the zero-day decision. The consistency of these explanations suggests that the framework does not rely on isolated noisy features but instead captures structurally meaningful traffic characteristics associated with abnormal behavior. This observation provides preliminary evidence that the interpretability behavior remains reasonably stable under small perturbations, rather than producing completely inconsistent explanations for similar inputs.

From an operational perspective, these explanations can support a human-in-the-loop workflow by providing analysts with interpretable evidence regarding why a traffic instance was flagged as zero-day. The feature attribution maps help identify which traffic characteristics contributed most strongly to the detection decision, thereby improving transparency and supporting analyst verification in security-sensitive IoT environments.

Overall, the interpretability analysis indicates that the framework not only produces accurate predictions but also generates relatively consistent and explainable decision patterns that may improve trust and usability in practical intrusion detection scenarios.

E.COMPARISON WITH RELATED WORKS

An effective evaluation of a zero-day IDS should consider both classification performance and generalization under unseen traffic conditions. A dependable system must detect attack patterns that differ from those observed during training. Several studies have explored adaptive intrusion detection approaches including hybrid OL, DRL, unsupervised autoencoders, and neural reasoning methods.

Although these methods perform well on benchmark datasets, most do not update their model behavior or decision thresholds after training. Therefore, their detection reliability may decrease when new attack patterns appear.

Table V compares the proposed framework with related intrusion detection methods across benchmark datasets. The proposed method achieves 97.4% accuracy on ToN-IoT and 98% accuracy on NSL-KDD, which is comparable to strong existing methods such as hybrid OL [31], LSTM with DRL [10], self-adaptive kNN [32], quantum support vector machine (QSVM) [33], and neural algorithmic reasoning for zero-day detection (NERO) [34]. This competitive performance can be attributed to the LSTM component, which captures temporal attack behavior, and the agentic reasoning mechanism, which combines uncertainty estimation, structural deviation analysis, and adaptive thresholding to improve discrimination between normal, known, and unseen attack traffic.

Table V. Comparison with related works

Ref.ApproachDatasetAcc
[31]Hybrid OLIBM98.4%
NSL-KDD96.6%
[10]LSTM + DRLToN-IoT99%
UNSW-NB1595%
BoT-IoT97%
[32]Unsupervised autoencoderCICIDS201775–98%
NSL-KDD89–99%
[18]Self-adaptive kNNBoT-IoT98%
ToN-IoT96.4%
CICIDS201899.9%
[33]QSVMUGRansome99.89%
[21]EnsembleCSIC 201297.58%
[34]NEROEdge-IIoT99%
Our studyAgentic AI-driven LSTMToN-IoT97.4%
NSL-KDD98%

VI.LIMITATIONS AND FUTURE WORK

Despite the promising results, several limitations remain. Although the proposed framework shows strong performance under cross-dataset distribution shifts, its robustness against adversarial attacks has not yet been evaluated. Future work will examine adversarial transferability, multi-feature perturbation, and adaptive threshold poisoning attacks. In addition, the current framework uses agent-oriented orchestration and adaptive thresholding but does not yet include full autonomous policy learning or continuous environment interaction. Future work will therefore extend the framework with reinforcement learning, incremental learning, and real-time environment-aware adaptation.

VII.CONCLUSION

This study proposed an agentic AI-driven framework for reliable zero-day cyber threat detection to support secure future economies. The framework integrates epistemic uncertainty estimation, embedding-based structural deviation analysis, and adaptive threshold regulation to enable self-regulated and interpretable decision-making beyond conventional closed-set intrusion detection. The experimental results on NSL-KDD and ToN-IoT show that the proposed method improves zero-day detection while maintaining strong performance for known attack classes, low FARs, and stable predictive confidence. The ablation results further confirm that adaptive threshold regulation plays a key role in improving the balance between detection sensitivity and false alarms. Cross-dataset evaluation demonstrates the framework’s generalization capability under distribution shift, while the interpretability analysis shows that decisions are supported by meaningful traffic features rather than noisy or arbitrary patterns. Overall, the proposed framework provides a robust, adaptive, and explainable solution for zero-day intrusion detection. Future work will focus on extending the framework with full incremental learning, broader real-time deployment, and validation across more diverse cyber-physical and IoT security domains.