<?xml version="1.0" encoding="UTF-8"?>
<article xmlns:xlink="http://www.w3.org/1999/xlink">
<front><article-meta>
<title-group><article-title>Game-Theoretic Analysis of Adaptive Intrusion Detection Systems under Detection Uncertainty</article-title></title-group>
<contrib-group>
<contrib contrib-type="author"><name><surname>Malekraeisi</surname><given-names>Mohammad</given-names></name><xref ref-type="aff" rid="aff1"/></contrib>
<contrib contrib-type="author"><name><surname>Kiani</surname><given-names>Ali Akbar</given-names></name><xref ref-type="aff" rid="aff1"/></contrib>
<contrib contrib-type="author"><name><surname>Saadatfar</surname><given-names>Hamid</given-names></name><xref ref-type="aff" rid="aff2"/></contrib>
<aff id="aff1">Department of Computer Engineering, Bi.C., Islamic Azad University, Birjand, Iran.</aff>
<aff id="aff2">Department of Computer Engineering, Faculty of Electrical and Computer Engineering, University of Birjand, Birjand, Iran.</aff>
</contrib-group>
<abstract><p>As computer networks expand and cyberattacks grow more sophisticated, Building Intrusion Detection Systems (IDS) that can withstand intelligent, adaptive adversaries has become a core problem in network security. Much of the existing literature assumes attacker behavior that is static or fully specified in advance, ignoring the uncertainty inherent to any real detection process, including false alarms and missed detections. Such simplifications make it difficult to capture how a defensive system and a learning attacker actually behave against each other over time. We address this gap with a game-theoretic framework, built on repeated games, that models the ongoing interaction between an IDS and an intelligent attacker. Both players are represented as autonomous agents that follow memory-one strategies and adjust their behavior through gradual learning. To make the model more realistic, detection uncertainty enters the security payoffs directly through the True Positive Rate (TPR) and the False Positive Rate (FPR), and a separate control parameter captures how quickly the attacker adapts relative to the defender, so we can study fast-adapting attacker scenarios. Numerical simulations produce a phase diagram over the space of attacker learning speed and IDS detection capability, revealing three distinct regimes: attacker dominance, adaptive competition, and a secure state. Faster-learning attackers push the security boundary outward, so the IDS needs stronger detection capability to stay in the secure regime. These findings offer practical guidance for designing and tuning adaptive IDS in dynamic, hostile network environments.</p></abstract>
<kwd-group kwd-group-type="author"><kwd>Intrusion detection system</kwd><kwd>Network security</kwd><kwd>Adaptive attacker</kwd><kwd>Repeated games</kwd><kwd>Multi-agent learning</kwd></kwd-group>
</article-meta></front>
<body>
<sec id="sec-1"><label>1</label><title>Introduction</title>
<p>The rapid growth of network infrastructures, cloud platforms, and Internet-based services has made network security central to stability and trust in modern information systems. Intrusion Detection Systems (IDS) sit at the front line of this defense, tasked with flagging malicious activity, cyberattacks, and unauthorized behavior<xref ref-type="bibr" rid="ref-1">[1]</xref>. Yet traditional IDSs are increasingly strained by more sophisticated attacks, the rise of intelligent malware, and attackers who rely more and more on adaptive, learning-based techniques <xref ref-type="bibr" rid="ref-2">[2]</xref>. Much of the IDS literature still treats attacker behavior as static: fixed, predictable, or drawn from previously observed patterns <xref ref-type="bibr" rid="ref-3">[3]</xref>. Real-world attackers, however, increasingly use machine learning, watch how the defense responds, and gradually refine their strategy, probing IDS behavior and exploiting its blind spots <xref ref-type="bibr" rid="ref-4">[4]</xref>. In effect, they act as intelligent, adaptive agents continually optimizing their decisions inside a hostile environment. At the same time, no real IDS operates without uncertainty: false alarms and missed detections add operational cost and can themselves shape what an attacker does next <xref ref-type="bibr" rid="ref-5">[5]</xref>. Despite this, many analytical and simulation-based models either ignore this uncertainty or treat it too simply, pulling their results away from what actually happens on real networks <xref ref-type="bibr" rid="ref-6">[6]</xref>. Game theory has become a natural tool for capturing this strategic back-and-forth between defenders and attackers <xref ref-type="bibr" rid="ref-7">[7]</xref>. Rather than analyzing each side&apos;s decisions in isolation, security games treat them as part of one interactive process, with each move shaped by what the other player is doing <xref ref-type="bibr" rid="ref-8">[8]</xref>. Pairing game theory with multi-agent learning extends this further, giving researchers a framework for studying how strategies evolve, converge, and compete over the long run among intelligent agents <xref ref-type="bibr" rid="ref-9">[9]</xref>. Even so, three gaps stand out in the literature. Many game-theoretic security models still assume perfect, error-free detection. The role of the attacker&apos;s learning speed relative to the defender has rarely been studied systematically. And most work reports isolated, point-wise results rather than a regime analysis mapping out which regions of the parameter space are secure and which are not <xref ref-type="bibr" rid="ref-10">[10]</xref>.</p>
<p>This paper takes these gaps as its starting point and proposes a repeated-game framework for the interaction between an adaptive IDS and an intelligent attacker. Both players are modeled as learning agents that follow memory-one strategies, and detection uncertainty is built directly into the payoff structure through the True Positive Rate (TPR) and the False Positive Rate (FPR). A separate parameter captures the attacker&apos;s learning speed relative to the defender, letting us explore a range of fast-adapting attacker scenarios. Extensive numerical simulations then yield a phase diagram over the key parameters, revealing three distinct regimes: attacker dominance, adaptive competition, and a secure state. Beyond the theoretical contribution, this regime analysis offers practical guidance for designing and tuning adaptive IDSs in dynamic network environments and for building defenses that hold up against intelligent attackers.</p>
<p>The rest of the paper is organized as follows. Section 2 surveys related work on IDS, security games, and learning-based approaches. Section 3 formulates the problem and lays out the game-theoretic framework connecting the IDS and the adaptive attacker, including the payoff structure that captures detection uncertainty. Section 4 turns to the learning dynamics, the memory-one strategies, and the role of the attacker&apos;s relative learning speed. Section 5 covers the experimental setup and evaluation procedure. Section 6 presents and discusses the results: strategy convergence, the regime phase diagram, and the influence of key parameters. Section 7 closes the paper with conclusions and directions for future work.</p>
</sec>
<sec id="sec-2"><label>2</label><title>Related Work</title>
<p>Prior work relevant to this study falls broadly into three strands: IDS and network-security modeling, game-theoretic approaches to cybersecurity, and adaptive multi-agent learning in attacker–defender settings.</p>
<sec id="sec-3"><label>2.1</label><title>Overview of Intrusion Detection Systems and Game-Theoretic Models</title>
<p>IDSs are conventionally grouped into two families: signature-based and anomaly-based. Signature-based systems detect known attacks reliably but struggle against new or variant ones<xref ref-type="bibr" rid="ref-1">[1]</xref>. Anomaly-based systems take the opposite approach, modeling normal traffic so that deviations flag unknown attacks, at the cost of a higher false-alarm rate <xref ref-type="bibr" rid="ref-11">[11]</xref>. Machine learning has pushed detection accuracy considerably further, with neural networks, support vector machines, and deep-learning models all applied to this problem <xref ref-type="bibr" rid="ref-3">[3]</xref>. Even so, these approaches generally treat the IDS as a passive observer and largely overlook how an attacker&apos;s adaptive behavior affects the defense&apos;s long-term performance <xref ref-type="bibr" rid="ref-12">[12]</xref>. Many of them also focus narrowly on detection metrics, giving only limited attention to the operational costs that false alarms and detection errors actually impose <xref ref-type="bibr" rid="ref-13">[13]</xref>. Game theory occupies a distinct place in cybersecurity research because it models defenders and attackers strategically rather than in isolation: each side&apos;s behavior is analyzed as a response to the other&apos;s strategy <xref ref-type="bibr" rid="ref-6">[6]</xref>. Security games of this kind have found wide application in critical-infrastructure protection, network security, and cyber defense more broadly <xref ref-type="bibr" rid="ref-7">[7]</xref>. Much of this work relies on static, complete-information games, where both players are assumed to know the full game structure and payoffs <xref ref-type="bibr" rid="ref-14">[14]</xref>, an assumption that rarely survives contact with real networks. Repeated games have been proposed to capture longer-term interactions, but many still assume perfect, error-free detection <xref ref-type="bibr" rid="ref-15">[15]</xref>, which again leaves little room to study how false alarms and detection errors actually shape attacker behavior.</p>
</sec>
<sec id="sec-4"><label>2.2</label><title>Adaptive Learning and Research Gap Analysis</title>
<p>Combining game theory with reinforcement learning and multi-agent learning to model dynamic security games is an active research area. Here, the defender and the attacker are both cast as learning agents that update their strategies based on environmental feedback <xref ref-type="bibr" rid="ref-6">[6]</xref>, opening the door to studying convergence, instability, and adaptive competition directly. A number of studies look at adaptive attackers that alter their attack patterns to evade detection <xref ref-type="bibr" rid="ref-2">[2]</xref>, but few examine systematically how the attacker&apos;s learning speed shapes the security boundary. As before, most of this work reports point-wise numerical results rather than a regime analysis that maps secure, competitive, and insecure regions across the parameter space <xref ref-type="bibr" rid="ref-7">[7]</xref>.</p>
<p>Taken together, this body of work has advanced the use of game theory and adaptive learning in network security, but gaps remain: detection uncertainty is rarely built explicitly into game-theoretic models, the attacker&apos;s relative learning speed is seldom examined for its effect on security stability, and the lack of a comprehensive regime analysis makes it hard to pin down exactly when an IDS can hold a secure state against an intelligent attacker. The framework proposed here is aimed at closing these gaps, offering a systematic, multi-agent-learning-based analysis of the IDS-attacker interaction under realistic detection uncertainty.</p>
</sec>
</sec>
<sec id="sec-5"><label>3</label><title>Problem Formulation and Game-Theoretic Framework</title>
<p>This section lays out the game-theoretic framework used to model the strategic interaction between the IDS and the adaptive attacker. The goal is to capture how both parties behave over the long run in a hostile, dynamic environment, accounting explicitly for detection uncertainty and each agent&apos;s capacity to learn.</p>
<sec id="sec-6"><label>3.1</label><title>Security Game Structure and Payoffs</title>
<p>We model the IDS–attacker interaction as a two-player repeated game in which each side behaves as an autonomous, rational agent. Player one, the IDS, monitors the network and decides whether to activate its defensive mechanisms; player two, the attacker, chooses strategies to extract maximum benefit from its attacks. At every round of the game, the IDS chooses between:</p>
<p>I. Normal: Routine network monitoring, with no active defense engaged.</p>
<p>II. Active defense: Engaging advanced detection and defense mechanisms at some operational cost.</p>
<p>The attacker, in turn, chooses between:</p>
<p>I. No attack: Holding off.</p>
<p>II. Attack: Launching an attack on the network.</p>
<p>The game repeats over time, with each agent updating its decision based on the system&apos;s previous state and the feedback it receives; this is what allows the model to capture long-term, adaptive interaction <xref ref-type="bibr" rid="ref-14">[14]</xref>. The payoffs mirror the real costs and benefits faced by each side. A successful attack earns the attacker a benefit G and costs the defender a loss L. Engaging active defense costs the IDS an operational amount Cₑ, and mounting an attack costs the attacker Cₐ. When an attack is caught, the attacker pays a penalty P, and the IDS collects a matching reward. Together, these terms balance deterrence, operational cost, and potential attack payoff, a structure common throughout the security-game literature <xref ref-type="bibr" rid="ref-6">[6]</xref>.</p>
</sec>
<sec id="sec-7"><label>3.2</label><title>Modeling Detection Uncertainty and Memory-One Strategies</title>
<p>Unlike much of the prior work, which treats detection as complete and error-free, this study builds the IDS&apos;s inherent uncertainty directly into the model through two parameters:</p>
<p>I. TPR: The probability that an attack is correctly identified when defense is active.</p>
<p>II. FPR: The probability of a false alarm when no attack has actually occurred.</p>
<p>When active defense is engaged, but no attack actually takes place, the IDS bears an extra cost, with probability equal to the FPR, standing in for wasted resources, service disruption, or the need for human intervention. When an attack does occur while defense is active, it is detected and blocked with probability TPR and succeeds with probability (1 − TPR). Framing the payoffs this way, in expectation, makes it possible to study the system&apos;s long-run behavior under realistically imperfect detection <xref ref-type="bibr" rid="ref-11">[11]</xref>. Both agents follow memory-one strategies: each decision depends only on what happened in the previous round, so the game&apos;s state space reduces to the four combinations of the IDS&apos;s and attacker&apos;s prior actions. Such a structure keeps the model tractable while still letting it capture reactive, adaptive behavior, an assumption widely used in the repeated-games literature <xref ref-type="bibr" rid="ref-16">[16]</xref>.</p>
</sec>
<sec id="sec-8"><label>3.3</label><title>Learning Dynamics and Problem Formulation</title>
<p>Both agents update their behavior through gradual learning to maximize expected long-term payoff. To capture asymmetries in adaptation speed, we introduce a control parameter ω, defined as the ratio of the attacker&apos;s learning speed to the IDS&apos;s. Large ω values describe attackers that outpace the IDS in responding to environmental change, while small values reflect a defender with the learning advantage <xref ref-type="bibr" rid="ref-17">[17]</xref>. Put together, this study addresses the long-term behavior of a repeated security game played by learning agents, with payoffs shaped by detection uncertainty and asymmetric learning speeds: specifically, under what conditions the IDS can hold a secure state against an adaptive attacker, and how the security boundary moves across the parameter space.</p>
</sec>
</sec>
<sec id="sec-9"><label>4</label><title>Learning Dynamics and Strategy Update Mechanism</title>
<p>This section describes how the IDS and the attacker gradually update their strategies. The framework rests on repeated games with memory-one strategies, in which each agent adjusts its policy parameters over time to maximize expected long-term payoff, a standard formulation in the repeated-games and multi-agent-learning literature for studying strategic, adaptive interaction <xref ref-type="bibr" rid="ref-16">[16]</xref>, <xref ref-type="bibr" rid="ref-17">[17]</xref>.</p>
<sec id="sec-10"><label>4.1</label><title>Modeling Memory-One Strategies and Long-Term Payoff</title>
<p>As noted above, the system&apos;s state at step t is set by the combination of actions taken in the previous step, giving four possible states:</p>
<p>S = {(N, NA), (N, A), (D, NA), (D, A)}, (1)</p>
<p>Here N and D denote normal monitoring and active defense, respectively, while NA and A denote no attack and attack. The IDS&apos;s memory-one policy is given by the probability vector</p>
<p>p = [p1, p2, p3, p4], (2)</p>
<p>where pᵢ = Pr (D | sᵢ) is the probability of activating defense in state sᵢ, and the attacker&apos;s policy is defined analogously as</p>
<p>q = [q1, q2, q3, q4]. (3)</p>
<p>with qᵢ = Pr (A | sᵢ). To keep dimensionality manageable while still reflecting realistic security behavior, we restrict the attacker&apos;s policy class: in the state offering a favorable, near-guaranteed opportunity, the attacker attacks almost always, and in the high-risk state it almost never does. Concretely, two components of q are held fixed, and two are learnable, and symmetrically, only a subset of the IDS&apos;s parameters is learnable as well. Such a design keeps the learning process stable and makes the resulting analysis easier to interpret. Because the policies are memory-one, the game&apos;s dynamics reduce to a first-order Markov chain over the state space S: given p and q, the transition matrix M (p, q) follows directly, and the stationary distribution π satisfies</p>
<p>π = πM, ∑ πi = 1. (4)</p>
<p>We compute π numerically by power iteration until it converges, and then obtain the expected long-term payoffs of the IDS and the attacker as expectations over the state distribution:</p>
<p>U (p, q) = ∑ π r (s ;p, q), (5)</p>
<p>D i D i</p>
<p>UA(p, q) = ∑ πi rA(si;p, q), (6)</p>
<p>Here rD and rA denote the stage payoffs, which already incorporate imperfect detection through TPR and FPR along with the operational and false-alarm costs introduced in Section 3.</p>
<p>The IDS seeks to maximize UD while the attacker seeks to maximize UA, giving a two-objective game in which each agent nudges its policy parameters in the direction that improves its own long-term payoff:</p>
<p>θD → θD + αD∇θ UD, (7)</p>
<p>θA → θA + αA∇θ UA. (8)</p>
<p>Differentiating U analytically is awkward once the stationary distribution and the TPR/FPR-dependent payoffs are involved, so we approximate the gradient numerically via finite differences:</p>
<p>∂U U(θk + ε) − U(θk − ε)</p>
<p>≈ , (9)</p>
<p>∂θk 2ε where ε is a small step size used for the approximation.</p>
</sec>
<sec id="sec-11"><label>4.2</label><title>Asymmetric Learning Dynamics and Numerical Stability</title>
<p>To capture fast-adapting attackers, we set the attacker&apos;s learning rate relative to the IDS&apos;s as</p>
<p>αA = ω αD, ω ∈ (0,1], (10)</p>
<p>As ω grows, the attacker reacts to change more quickly, and the competition intensifies. This single parameter drives the regime, or phase-diagram, analysis presented later.</p>
<p>To keep the numerics stable and the policies valid probabilities, we clip the parameters to [ε, 1 − ε] after every update:</p>
<p>pi → clip(pi, ϵ, 1 − ϵ), qi → clip(qi, ϵ, 1 − ϵ), (11)</p>
<p>Clipping keeps probabilities from getting stuck at 0 or 1 and avoids numerical problems when computing the stationary distribution. The fixed parameters within the restricted policy class are similarly re-constrained at every iteration so that the intended policy structure is preserved.</p>
<p>Convergence is tracked by monitoring how much the stationary distribution, or the payoffs, change across successive iterations. In practice, the implementation runs a fixed number of iterations to reach steady state, computing the long-term payoff from π at each learning step.</p>
</sec>
<sec id="sec-12"><label>4.3</label><title>Proposed Learning Algorithm (Executive Summary)</title>
<p>The overall learning process is presented below in algorithmic form.</p>
<p>Algorithm 1. Gradual learning of the IDS and the attacker within a repeated-game framework with imperfect detection.</p>
<p>1: Initialize p and q</p>
<p>2: Enforce probabilistic constraints on p and q</p>
<p>3: for t = 1 to T do</p>
<p>4: Compute stationary distribution π for Markov process M (p, q)</p>
<p>5: Compute long-term payoffs:</p>
<p>6: UD (p, q) → IDS payoff</p>
<p>7: UA (p, q) → Attacker payoff</p>
<p>8: Approximate IDS gradient using finite differences:</p>
<p>9: ∇p UD (p, q)</p>
<p>10: Update IDS strategy:</p>
<p>11: p → p + αD ∇p UD</p>
<p>12: Approximate attacker gradient using finite differences:</p>
<p>13: ∇q UA (p, q)</p>
<p>14: Set attacker learning rate:</p>
<p>15: αA = ω αD</p>
<p>16: Update attacker strategy:</p>
<p>17: q → q + αA ∇q UA</p>
<p>18: Apply clipping and policy constraints (if required)</p>
<p>19: end for</p>
<p>20: Set p* → p, q* → q</p>
<p>21: Return p*, q*, UD (p*, q*), UA (p*, q*)</p>
</sec>
<sec id="sec-13"><label>4.4</label><title>Direct Connection to Regime Analysis</title>
<p>Because ω and the TPR/FPR pair together govern the system&apos;s behavior, the game can settle into qualitatively different regimes depending on where these parameters sit. Running the algorithm above over a grid of (ω, TPR) values produces a regime map delineating the attacker-dominance, adaptive-competition, and secure regions, giving a systematic way to determine when the IDS, despite operational costs and detection errors, can still maintain deterrence against a learning attacker.</p>
</sec>
</sec>
<sec id="sec-14"><label>5</label><title>Experimental Setup and Performance Evaluation</title>
<sec id="sec-15"><label>5.1</label><title>Simulation Configuration and Evaluation Metrics</title>
<p>To evaluate the model, we simulated the IDS–attacker interaction as a two-agent repeated game, with both sides following memory-one strategies so that each round&apos;s decision depends only on the previous round&apos;s state. Payoffs were computed in expectation, folding in TPR and FPR so that detection uncertainty is built directly into the simulation. The payoff parameters, including the benefit of a successful attack (G), the defender&apos;s loss on a breach (L), the cost of active defense (Cd), the cost of mounting an attack (Ca), and the detection penalty (P), were varied over reasonable ranges for the analysis. Adaptive behavior was modeled by updating each strategy&apos;s selection probability gradually, based on cumulative payoff, and the control parameter ω governed the attacker&apos;s learning speed relative to the defender, covering scenarios where the attacker learns more slowly, at the same pace, or faster than the IDS. Simulations ran over a long time horizon so that behavioral stability and payoff convergence could both be assessed. We evaluated performance using the two agents&apos; expected long-term payoffs together with a regime analysis over the parameter space: extracting each agent&apos;s average steady-state payoff and mapping out the attacker-dominance, adaptive-competition, and secure regions, which together indicate what conditions are needed for stable security.</p>
</sec>
</sec>
<sec id="sec-16"><label>6</label><title>Experimental Results and Analysis</title>
<p>This section presents and discusses the simulation results for the proposed IDS–attacker framework, focusing on the convergence of the learning dynamics, the effect of detection quality, the regime analysis in the (TPR, ω) space, and a joint look at security and the economic efficiency of defense.</p>
<sec id="sec-17"><label>6.1</label><title>Convergence of the Learning Dynamics</title>
<p>We first checked the convergence behavior of both agents&apos; policies and long-term payoffs to rule out any influence from transient learning effects on the final results. <xref ref-type="fig" rid="fig1">Fig. 1</xref> shows that the IDS&apos;s long-term payoff, across different ω values, settles into a steady state after an initial transient, evidence that the update mechanism, which relies on maximizing long-term payoff through the Markov chain&apos;s stationary distribution, is numerically stable. <xref ref-type="fig" rid="fig2">Fig. 2</xref> shows the same pattern for the attacker&apos;s long-term payoff, which converges without notable oscillation in the later stages of learning. Together, these results indicate that the two agents&apos; adaptive interaction settles into a stable equilibrium, making meaningful long-term analysis possible.</p>
<fig id="fig1"><label>Figure 1</label><caption><p>Convergence of the IDS&apos;s policy parameters over learning iterations.</p></caption><graphic content-type="pdf-region" xlink:href="pdf-region:6:66,141.9,537.1,271.7"/><p content-type="note">This figure is shown in the PDF version of the article.</p></fig>
<fig id="fig2"><label>Figure 2</label><caption><p>Convergence of the attacker&apos;s policy parameters over learning iterations.</p></caption><graphic content-type="pdf-region" xlink:href="pdf-region:7:66,633.2,537.1,780.3"/><p content-type="note">This figure is shown in the PDF version of the article.</p></fig>
<p>We also examined how the IDS&apos;s and the attacker&apos;s probabilistic policies converge. <xref ref-type="fig" rid="fig3">Figs. 3</xref> and 4 show that the action-selection probabilities across the different game states settle at fixed values, confirming that the learned policies are stable, further evidence that the framework consistently captures stable behavior for both</p>
<fig id="fig3"><label>Figure 3</label><caption><p>Variation of the IDS&apos;s long-term payoff over iterations (convergence of UD).</p></caption><graphic content-type="pdf-region" xlink:href="pdf-region:7:65.7,430.9,537.1,570"/><p content-type="note">This figure is shown in the PDF version of the article.</p></fig>
<fig id="fig4"><label>Figure 4</label><caption><p>Variation of the attacker&apos;s long-term payoff over iterations (convergence of UA).</p></caption><graphic content-type="pdf-region" xlink:href="pdf-region:7:66,279.7,537.1,416.5"/><p content-type="note">This figure is shown in the PDF version of the article.</p></fig>
</sec>
<sec id="sec-18"><label>6.2</label><title>Effect of Intrusion Detection Systems Quality</title>
<p>Here we examine how the IDS&apos;s detection quality shapes the game&apos;s strategic dynamics, through a sensitivity analysis over the TPR and the learning-speed parameter ω. <xref ref-type="table" rid="tab1">Table 1</xref> reports only representative and boundary points, those marking a shift in behavioral regime, to keep the discussion focused. At low detection quality (TPR = 0.5, for instance), the IDS&apos;s expected payoff stays negative regardless of ω, while the attacker earns either a positive payoff or only a marginal loss. Such a pattern is a clear signature of attacker dominance: attacking remains strategically worthwhile, and active defense fails to deter. As the TPR rises further, the system passes through a transition region. Around TPR = 0.6 in <xref ref-type="table" rid="tab1">Table 1</xref>, depending on ω, the regime shifts from attacker dominance into a mixed, arms-race-like state, where both players&apos; payoffs are negative, yet neither has a clear incentive to disengage; strategic updates instead settle into an unstable, competitive equilibrium. This finding shows that improving detection quality alone does not guarantee security; the attacker&apos;s adaptive behavior still plays a decisive role. Once TPR crosses roughly 0.72, <xref ref-type="table" rid="tab1">Table 1</xref> shows the regime shifting qualitatively into the secure region: the IDS&apos;s expected payoff turns positive while the attacker&apos;s payoff drops substantially, the signature of stable deterrence, where attacking is no longer strategically attractive. The learning-speed parameter ω also matters for where these boundaries fall: at intermediate TPR values, <xref ref-type="table" rid="tab1">Table 1</xref> shows that changing ω alone can push the system between the mixed and secure regimes. Security stability, in other words, depends not just on raw detection quality but also on how the IDS&apos;s learning process weighs past experience. Overall, these results suggest that network security is not simply a direct function of the TPR but emerges from the interplay between detection quality and adaptive learning dynamics. For IDS design, the practical takeaway is that stable security requires crossing specific thresholds on both the detection and the learning dimensions, not just improving one in isolation.</p>
<table-wrap id="tab1"><label>Table 1</label><caption><p>Configuration of TPR/FPR test scenarios and summary of key results (average U_D, average U_A, and resulting regime).</p></caption><graphic content-type="pdf-region" xlink:href="pdf-region:8:66,519,537.1,624.8"/><p content-type="note">This table is shown in the PDF version of the article.</p></table-wrap>
</sec>
<sec id="sec-19"><label>6.3</label><title>Regime Analysis in the (TPR-ω) Space</title>
<p>To build a fuller, more systematic picture of the long-run IDS–attacker interaction, we carried out a regime analysis over the two-dimensional (TPR, ω) space, where ω captures the attacker&apos;s learning speed relative to the IDS, and TPR captures the IDS&apos;s intrinsic detection quality. This analysis lets us study the joint effect of the attacker&apos;s learning capability and the defense&apos;s detection accuracy on network-security stability. The system&apos;s behavior falls into three qualitative regimes: attacker-dominant, competitive (arms-race), and secure. Attacker dominance shows up mainly at low TPR, where the IDS cannot build effective deterrence and attacking still pays off economically; the defense fails against an adaptive attacker even though the IDS itself is learning. As detection quality improves, the system moves through a transition region that behaves like an arms race. Both agents keep updating their strategies; neither gains a lasting edge, and network security ends up hinging heavily on the learning parameters and operational conditions. <xref ref-type="table" rid="tab2">Table 2</xref> quantifies these transition thresholds and shows that the TPR needed to enter the secure regime rises with ω. For small ω, a slowly adapting attacker, the IDS can secure the system at a fairly moderate TPR. As ω grows and the attacker reacts more quickly to past experience, the minimum TPR needed to stay secure climbs substantially. This coupling between ω and TPR is a key design insight: raising detection accuracy alone, without regard for the attacker&apos;s learning capability (or vice versa), does not guarantee stable security. Network security instead depends on a careful balance between detection quality and both players&apos; learning dynamics. More broadly, the regime analysis here shows that the long-term IDS-attacker interaction can be mapped as distinct qualitative regions in the (TPR, ω) space, a framework that not only explains the underlying behavior but also yields practical thresholds for designing and tuning adaptive IDSs, linking game-theoretic analysis directly to network-security engineering.</p>
<table-wrap id="tab2"><label>Table 2</label><caption><p>Sample boundary points: minimum TPR required to enter the secure regime for several values of ω.</p></caption><graphic content-type="pdf-region" xlink:href="pdf-region:8:66,70.6,537.1,176.5"/><p content-type="note">This table is shown in the PDF version of the article.</p></table-wrap>
</sec>
<sec id="sec-20"><label>6.4</label><title>Long-Term Payoff Map and Practical Interpretation of Results</title>
<p>Complementing the regime analysis above, this section looks at the IDS&apos;s long-term payoff map over the (TPR, ω) space, which lets us weigh security stability against the economic efficiency of defense together, going beyond the purely regime-based view. The heat map in <xref ref-type="fig" rid="fig6">Fig. 6</xref> shows the IDS&apos;s payoff generally improving as TPR rises; at low TPR, the payoff is mostly negative, reflecting an ineffective defense against an adaptive attacker. These low-payoff regions largely coincide with the attacker-dominant regime in <xref ref-type="fig" rid="fig5">Fig. 5</xref>; under these conditions, the IDS is doing poorly both from a security standpoint and a cost-benefit one. At intermediate TPR (matching the mixed/arms-race regime in <xref ref-type="fig" rid="fig5">Fig. 5</xref>), the IDS&apos;s payoff hovers near zero or turns slightly positive, a borderline situation in which defense and attack are roughly balanced and small changes in learning parameters or operational cost can tip the advantage either way. Practically speaking, this is where network security is most fragile and where IDS parameters need the most careful tuning.</p>
<fig id="fig5"><label>Figure 5</label><caption><p>Phase diagram in the (TPR-ω) space showing the three regime regions.</p></caption><graphic content-type="pdf-region" xlink:href="pdf-region:9:66,458.8,537.1,602.4"/><p content-type="note">This figure is shown in the PDF version of the article.</p></fig>
<fig id="fig6"><label>Figure 6</label><caption><p>Heat map of the IDS&apos;s long-term payoff as a function of ω and the true positive rate.</p></caption><graphic content-type="pdf-region" xlink:href="pdf-region:9:66,294.6,537.1,444.3"/><p content-type="note">This figure is shown in the PDF version of the article.</p></fig>
<p><xref ref-type="fig" rid="fig6">Fig. 6</xref> also reveals that being in the secure regime (per <xref ref-type="fig" rid="fig5">Fig. 5</xref>) does not always mean the IDS&apos;s net payoff is maximal. For some (ω, TPR) combinations, stable deterrence is achieved and the attacker&apos;s payoff drops sharply, yet the costs of active defense and adaptive learning still eat into the IDS&apos;s net payoff, a reminder that “secure” and “economically optimal” are not the same thing. That said, the regions of high IDS payoff in <xref ref-type="fig" rid="fig6">Fig. 6</xref> line up structurally with the secure regime in <xref ref-type="fig" rid="fig5">Fig. 5</xref>, which supports the regime analysis: the IDS&apos;s payoff peaks mostly where detection quality is high, and the attacker&apos;s adaptation speed is kept in check. Payoff maps, then, work well as a quantitative complement to the qualitative regime picture. In short, designing an adaptive IDS has to look past stable security alone and weigh cost–benefit trade-offs at the same time. Pairing regime analysis with long-term payoff maps gives engineers a fuller basis for decision-making, one that can guide practical IDS configurations balanced between security and economic efficiency.</p>
</sec>
<sec id="sec-21"><label>6.5</label><title>Comparison with Existing Approaches</title>
<p>We compared the proposed framework against the classical approaches reported in <xref ref-type="bibr" rid="ref-6">[6]</xref> and <xref ref-type="bibr" rid="ref-14">[14]</xref>; <xref ref-type="table" rid="tab3">Table 3</xref> summarizes the comparison.</p>
<table-wrap id="tab3"><label>Table 3</label><caption><p>Comparison of the features of the proposed method with previous studies.</p></caption><graphic content-type="pdf-region" xlink:href="pdf-region:10:66,580.9,537.1,697"/><p content-type="note">This table is shown in the PDF version of the article.</p></table-wrap>
<p>As <xref ref-type="table" rid="tab3">Table 3</xref> shows, the traditional static-game models in <xref ref-type="bibr" rid="ref-6">[6]</xref> and <xref ref-type="bibr" rid="ref-14">[14]</xref> treat the attacker as passive and predictable, while the framework proposed here captures the attacker&apos;s dynamic, adaptive behavior directly. Conventional approaches also tend to be overly optimistic about the security state; by explicitly accounting for the attacker&apos;s relative learning speed ω, the proposed model draws more realistic security boundaries.</p>
</sec>
</sec>
<sec id="sec-22"><label>7</label><title>Conclusion and Future Research Directions</title>
<p>This study proposed a repeated-game framework for analyzing how an intrusion detection system and a learning attacker interact under imperfect detection. Its main novelty is modeling the adaptive behavior of both sides at once while folding detection quality directly into the payoff structure. The results confirm that the learning mechanism is numerically stable and that the long-term analysis holds up methodologically. Detection quality, particularly TPR, behaves as a regime-transition parameter, moving the system from attacker dominance through adaptive competition to stable deterrence. Deterrence, however, does not guarantee economic desirability: the cost of active defense can still erode net payoff. And the faster an attacker adapts, the higher the detection quality needed to hold deterrence, which shows that security is a relative notion shaped by the dynamics of the threat itself.</p>
<p>Promising directions for future work include extending the model to multi-attack scenarios, modeling false alarms and delays more precisely, examining convergence indicators in more depth, generalizing to multi-agent settings, and validating the framework in more realistic scenarios. Overall, combining game theory with adaptive learning offers a quantitative way to derive design thresholds for IDS, and shows that stable security calls for attention to detection quality, defense costs, and attacker adaptability all at once.</p>
</sec>
<sec id="sec-23"><title>Statements and Declarations</title>
</sec>
<sec id="sec-24"><title>Funding</title>
<p>The authors declare that no funds, grants, or other support were received during the preparation of this manuscript.</p>
</sec>
<sec id="sec-25"><title>Competing Interests</title>
<p>The authors have no relevant financial or non-financial interests to disclose.</p>
</sec>
<sec id="sec-26"><title>Data Availability</title>
<p>The datasets generated and/or analyzed during the current study are available from the corresponding author on reasonable request.</p>
</sec>
<sec id="sec-27"><title>Author Contributions</title>
<p>Conceptualization, M.M. and H.S.; Methodology, M.M. and A.K.; Software, M.M.; Validation, M.M., A.K., and H.S.; Formal analysis, M.M.; Investigation, M.M. and A.K.; Writing – original draft, M.M.; Writing – review and editing, A.K. and H.S.; Supervision, H.S. All authors have read and agreed to the published version of the manuscript.</p>
</sec>
</body>
<back><ref-list><title>References</title>
<ref id="ref-1"><label>1</label><mixed-citation>Liu, H., &amp; Lang, B. (2019). Machine learning and deep learning methods for intrusion detection systems: A survey. Applied sciences, 9(20), 4396. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.3390/app9204396">https://doi.org/10.3390/app9204396</ext-link></mixed-citation></ref>
<ref id="ref-2"><label>2</label><mixed-citation>Ferrag, M. A., Maglaras, L., Moschoyiannis, S., &amp; Janicke, H. (2020). Deep learning for cyber security intrusion detection: Approaches, datasets, and comparative study. Journal of information security and applications, 50, 102419. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.jisa.2019.102419">https://doi.org/10.1016/j.jisa.2019.102419</ext-link></mixed-citation></ref>
<ref id="ref-3"><label>3</label><mixed-citation>Khraisat, A., Gondal, I., Vamplew, P., &amp; Kamruzzaman, J. (2019). Survey of intrusion detection systems: techniques, datasets and challenges. Cybersecurity, 2(1), 1–22. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1186/s42400-019-0038-7%0A%0A">https://doi.org/10.1186/s42400-019-0038-7%0A%0A</ext-link></mixed-citation></ref>
<ref id="ref-4"><label>4</label><mixed-citation>Ayub, M. A., Johnson, W. A., Talbert, D. A., &amp; Siraj, A. (2020, March). Model evasion attack on intrusion detection systems using adversarial machine learning. In 2020 54th annual conference on information sciences and systems (CISS) (pp. 1-6). IEEE. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1109/CISS48834.2020.1570617116">https://doi.org/10.1109/CISS48834.2020.1570617116</ext-link></mixed-citation></ref>
<ref id="ref-5"><label>5</label><mixed-citation>Ahmed, M., Mahmood, A. N., &amp; Hu, J. (2016). A survey of network anomaly detection techniques. Journal of network and computer applications, 60, 19–31. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.jnca.2015.11.016">https://doi.org/10.1016/j.jnca.2015.11.016</ext-link></mixed-citation></ref>
<ref id="ref-6"><label>6</label><mixed-citation>Manshaei, M. H., Zhu, Q., Alpcan, T., Bacşar, T., &amp; Hubaux, J. P. (2013). Game theory meets network security and privacy. Acm computing surveys (CSUR), 45(3), 1-39. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1145/2480741.2480742">https://doi.org/10.1145/2480741.2480742</ext-link></mixed-citation></ref>
<ref id="ref-7"><label>7</label><mixed-citation>Zhang, H., Mi, Y., Liu, X., Zhang, Y., Wang, J., &amp; Tan, J. (2023). A differential game approach for real-time security defense decision in scale-free networks. Computer networks, 224, 109635. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.comnet.2023.109635">https://doi.org/10.1016/j.comnet.2023.109635</ext-link></mixed-citation></ref>
<ref id="ref-8"><label>8</label><mixed-citation>Dehghan, H., &amp; Bigdeli, H. (2026). A Stackelberg signaling game theory model for modeling the defender and attackers under imperfect information situation. OPSEARCH, 1–17. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1007/s12597-026-01152-8%0A%0A">https://doi.org/10.1007/s12597-026-01152-8%0A%0A</ext-link></mixed-citation></ref>
<ref id="ref-9"><label>9</label><mixed-citation>Chen, J., Xu, Z., Li, Y., Yu, C., Song, J., Yang, H., ... &amp; Wu, Y. (2024, March). Accelerate multi-agent reinforcement learning in zero-sum games with subgame curriculum learning. In proceedings of the AAAI conference on artificial intelligence (Vol. 38, No. 10, pp. 11320-11328). <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1609/aaai.v38i10.29011">https://doi.org/10.1609/aaai.v38i10.29011</ext-link></mixed-citation></ref>
<ref id="ref-10"><label>10</label><mixed-citation>Lan, Y., &amp; Hu, Q. (2023). Intrusion detection and response of network node attacks based on game theory. In proceedings of the 2023 international conference on artificial intelligence, systems and network security (pp. 386-390). <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1145/3661638.3661711">https://doi.org/10.1145/3661638.3661711</ext-link></mixed-citation></ref>
<ref id="ref-11"><label>11</label><mixed-citation>Estévez-Pereira, J. J., Fernández, D., &amp; Novoa, F. J. (2020). Network anomaly detection using machine learning techniques. In Proceedings (Vol. 54, No. 1, p. 8). MDPI. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.3390/proceedings2020054008">https://doi.org/10.3390/proceedings2020054008</ext-link></mixed-citation></ref>
<ref id="ref-12"><label>12</label><mixed-citation>Apruzzese, G., Andreolini, M., Ferretti, L., Marchetti, M., &amp; Colajanni, M. (2022). Modeling realistic adversarial attacks against network intrusion detection systems. Digital threats: research and practice (DTRAP), 3(3), 1–19. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1145/3469659">https://doi.org/10.1145/3469659</ext-link></mixed-citation></ref>
<ref id="ref-13"><label>13</label><mixed-citation>Ahmad, Z., Shahid Khan, A., Wai Shiang, C., Abdullah, J., &amp; Ahmad, F. (2021). Network intrusion detection system: A systematic study of machine learning and deep learning approaches. Transactions on emerging telecommunications technologies, 32(1), e4150. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1002/ett.4150">https://doi.org/10.1002/ett.4150</ext-link></mixed-citation></ref>
<ref id="ref-14"><label>14</label><mixed-citation>Ho, E., Rajagopalan, A., Skvortsov, A., Arulampalam, S., &amp; Piraveenan, M. (2022). Game theory in defence applications: A review. Sensors, 22(3), 1032. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.3390/s22031032">https://doi.org/10.3390/s22031032</ext-link></mixed-citation></ref>
<ref id="ref-15"><label>15</label><mixed-citation>Wang, Z., Xu, S., Xu, G., Yin, Y., Zhang, M., &amp; Sun, D. (2020). Game Theoretical Method for Anomaly-Based Intrusion Detection. Security and communication networks, 2020(1), 8824163. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1155/2020/8824163">https://doi.org/10.1155/2020/8824163</ext-link></mixed-citation></ref>
<ref id="ref-16"><label>16</label><mixed-citation>FathimaAH, N., Khraisat, A., Ibrahim, S., &amp; Li, G. (2025). Adaptive memory replay for network intrusion detection: Tackling data drift and catastrophic forgetting. Computer networks, 111712. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.comnet.2025.111712">https://doi.org/10.1016/j.comnet.2025.111712</ext-link></mixed-citation></ref>
<ref id="ref-17"><label>17</label><mixed-citation>Malloy, T., &amp; Gonzalez, C. (2023). Learning to defend by attacking (and vice-versa): Transfer of learning in cybersecurity games. In 2023 IEEE european symposium on security and privacy workshops (EuroS&amp;PW) (pp. 458-464). IEEE. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1109/EuroSPW59978.2023.00056">https://doi.org/10.1109/EuroSPW59978.2023.00056</ext-link></mixed-citation></ref>
</ref-list></back>
</article>