Manuscript Offprint
arXiv:2610.18721Dynamic Attack Surfaces: A Queue of Branching Processes
Ismail Cosandal , Abdullah Y. Etcibasi , C. Emre Koksal , and Sennur Ulukus
University of Maryland, College Park, MD, USA
The Ohio State University, Columbus, OH, USA
Abstract—Modern attack surfaces are inherently dynamic. Vulnerabilities emerge over time and they remain exposed to exploit until defenders discover and patch them. Artificial intelligence (AI) amplifies these dynamics by accelerating both offensive and defensive processes, making modern cybersecurity increasingly a competition among interacting time scales and resources. We capture this competition using a queue of branching processes that couples vulnerability discovery and resource-constrained patching with the evolving attacker population targeting each vulnerability. Our primary risk metric is the cumulative number of exploits a vulnerability experiences before it is patched. We derive the expected cumulative number of exploits under birth-death-immigration (BDI) and rise-decay (RD) models of attacker activity. Under a BDI model of attacker activity, we identify a phase transition: the expected cumulative number of exploits is finite only when attacker growth remains below both the vulnerability discovery rate and the effective patching rate. Across both attacker models, increasing the exploit rate does not necessarily increase the expected number of exploits because faster attacker departure can sufficiently limit the active attacker population. Finally, we show that equal proportional AI amplification of offensive and defensive capabilities need not preserve security: accelerating both sides can shift the defensive bottleneck and move the system into an unbounded-risk regime.
I. INTRODUCTION
The growing use of artificial intelligence (AI) by both attackers and defenders underscores the need for a dynamic model of the attack surface. AI agents can continually probe systems, discover and exploit weaknesses, and amplify attacker activity. At the same time, defenders can use AI to accelerate vulnerability discovery, prioritization, and patch generation. The resulting attack surface is therefore not a fixed inventory of flaws, but an evolving system governed by competing offensive and defensive processes [1], [2]. This acceleration is already observed in practice. In a reported 2026 campaign against recently disclosed PaperCut vulnerabilities, a threat actor used hundreds of AI agents to develop, test, and execute exploits, reaching the first real-world remote code execution in under four hours and compromising at least 440 exposed instances across 48 countries [3]. Static quantities such as vulnerability counts, severity scores, or average patch times cannot capture this temporal dynamics [4].
To that end, we model the attack surface as a dynamic set of active vulnerabilities that attract evolving attacker populations until patched. Since vulnerabilities arrive over time, compete for limited defensive resources, and depart after patching, queueing theory naturally captures their lifetimes and the competition between attack and defense. Recent work modeled the attack surface as a vulnerability queue and showed that underlying defensive resources, including effective workforce size and aggregate patching capacity, can be reconstructed from vulnerability discovery and patching timestamps [1]. Here, we further establish that cyber risk is shaped not only by the rate at which vulnerabilities emerge, but also by congestion and resource limitations within the defensive workflow. Our novel model captures the potentially growing population of attackers targeting each vulnerability over its unpatched lifetime.
Specifically, motivated by the rate competition between the attack and the defense, we introduce a queue of branching processes. While a vulnerability remains unpatched, the population of attackers targeting it evolves as a branching process. We consider both a birth-death-immigration (BDI) model, which captures persistent arrival and attacker-to-attacker amplification, and a rise-decay (RD) model, which captures an initial period of rapid attention followed by diminishing interest. The resulting framework couples two time scales that are commonly analyzed separately: the random lifetime of a vulnerability under resource-constrained patching and the growth of its associated attacker population.
Under the BDI model of attacker activity, the central result reveals a phase transition in the expected cumulative number of exploits: the expected number of exploits remains finite only when attacker activity grows more slowly than both vulnerability discovery and the effective patching process. If attacker activity surpasses either defensive mechanism, the expected cumulative number of exploits becomes unbounded. This does not imply that every vulnerability generates infinitely many exploits. Instead, vulnerabilities that experience unusually long discovery or patching delays may attract exceptionally high exploit activity, causing the average number of exploits across all vulnerabilities to diverge. For both models, vulnerabilities attract new attackers at a rate that depends on the number of active attackers, while each active attacker exploits the vulnerability at a constant rate.
An important observation is that the expected number of exploits is not necessarily monotone with the exploit rate. In particular, increasing the exploit rate may reduce the active attacker population sufficiently to offset the direct increase in exploit activity, resulting in a non-monotone relationship. The result therefore identifies vulnerability discovery and patching capacity as two distinct defensive bottlenecks. Strengthening only one is insufficient when the other remains unable to keep pace with attacker growth.
To illustrate the transition in the context of AI-amplified attack and defense, we provide an insightful numerical example (see details in Section IV) in which we scale the AI capabilities for both offensive and defensive operations by the same factor. We observe that these proportional improvements in attack and defense capabilities do not necessarily preserve security. In this scenario, although patching capacity improves sufficiently, vulnerability discovery becomes the limiting defensive mechanism and is overtaken by attacker growth. Therefore, defensive AI must strengthen both discovery and patching sufficiently to remain ahead of the growth in AI-enabled attacker activity.
The main contributions of this paper are as follows:
- To model the dynamics of an attack surface, we introduce a branching processes framework that couples vulnerability discovery and resource-constrained patching with the stochastic evolution of the attacker population targeting each vulnerability.
• We derive vulnerability lifetime distribution and closed-form expressions for the expected cumulative number of exploits under a BDI attack model.
• We establish a stability condition and show that violating this condition yields infinite expected number of exploits.
• We study the allocation of defensive resources between vulnerability discovery and patching and extend it to an RD model in which attacker interest eventually vanishes.
Similar to the defender side, a single attacker discovers an existing vulnerability after . We define a branching process that represents the active attackers who are attempting to exploit the vulnerability, and is the time elapsed after the creation of the vulnerability. The branching process is initiated with and remains zero until an attacker discovers it at . Each vulnerability attracts new attackers with attraction intensity at time . In addition, each active attacker exploits the vulnerability individually at a constant rate , then leaves. We consider two branching processes, BDI and RD, whose attraction intensities are

Fig. 1. The queue model. We illustrate the state of the vulnerability queue at two separate time instances. The size of each filled circle denotes the number of active attackers, which is governed by and , and an empty circle means the vulnerability has not been discovered by any attacker yet.
In the BDI process, attacker attraction increases with the active attacker population with an additional immigration rate , whereas in the RD process, the attraction rate associated with each active attacker decays after attacker discovery. Further details of these processes are provided in Section III.
We are interested in the number of exploits by the attackers before the patching of the vulnerability. We denote the expected number of active attackers at time t as
Since each active attacker exploits the vulnerability at a constant rate , the expected number of exploits can be expressed as the expected value of the following integral
where T is the lifespan of a vulnerability, corresponding to the time from creation until patch completion. In Section III, we show that T has a steady-state distribution in a stable queue that does not depend on the creation order of vulnerabilities and is independent of the branching process .
The patching queue model is illustrated in Fig. 1 for two different time instants. Each circle represents a vulnerability, and they are enumerated in their creation order. The size of the circles denotes the number of active attackers attacking the vulnerability, and an empty circle means that there are no active attackers using the vulnerability. In the first time instance, a total of six vulnerabilities exist; while four of them are in the patching queue, the remaining two vulnerabilities are not discovered by the defender or attackers yet. Since the discovery durations of vulnerabilities are independent of each other, the 6th vulnerability is discovered by the defender before the 5th one in this example. Additionally, the 5th vulnerability has been discovered by the attackers before it is added to the patching queue. Since the defender and attacker discovery durations are independent exponential random variables, the probabilities that a vulnerability is first discovered by the defender or by an attacker are and , respectively.
III. ANALYSIS
In this section, we first analyze the queue model to obtain the distribution of a vulnerability's lifespan, from its creation until patch completion. Then, we analyze two types of branching processes, BDI and RD, to obtain the expected number of exploits under different scenarios.
A. Queue Analysis
We consider , under which the number of unpatched vulnerabilities does not accumulate without bound. The complementary case is a trivial case where the queue length grows without bound. Each vulnerability is added to the patching queue of vulnerabilities after a random time X following its creation. From the displacement theorem [5], vulnerabilities arrive at the patching queue with rate , since are i.i.d. discovery durations. In other words, the patching queue is an queue with arrival rate and service rate , and uses the FCFS principle.
Let us denote the lifespan of the ith vulnerability by , which can be expressed as
where , and are the discovery duration, waiting duration in the queue and the patching duration of the vulnerability , respectively. A well-known property of an queue with the arrival rate and service rate is that the sum of a packet's waiting and service durations follows an exponential distribution with rate at steady state under the stability condition, i.e., [6]. Consequently, in the steady state, each has the same distribution, with density denoted by , that can be obtained for as
which is the distribution of sum of two independent exponential random variables with different parameters. For the case of , the distribution becomes an Erlang-2 distribution, which is the distribution of sum of two exponential random variables with identical parameters: . Since the function in (6) is continuous in , Erlang-2 distribution can be obtained as the limit of (6), and therefore, in the rest of the paper, our analysis will focus on the case , with the equality case obtained by taking the limit.
Lemma 1 Under a defense constraint , is minimized for any branching process independent of the vulnerability lifespan with the choice of and under the condition .
Proof: First, as shown in [7], among convolutions of independent exponential random variables whose rates have a fixed sum, greater dispersion of the rate parameters results in a larger random variable in the likelihood-ratio order. Let us define ; then the budget constraint becomes . Notice that among all feasible parameters , the least discrepancy is achieved with balanced parameters, i.e., , and the condition guarantees that these rates are positive.
Next, we define as the vulnerability lifespan under the balanced parameters and . Since the likelihood-ratio order implies the usual stochastic order [8], the above result gives
for every other feasible allocation , where denotes the usual stochastic order. In addition, the usual stochastic order implies the same ordering of the expectations of non-decreasing functions, whenever the corresponding expectations exist. Notice that the accumulated quantity in (4) is a non-decreasing function of , since . Therefore, the usual stochastic order gives
which completes the proof. ■
B. Birth-Death-Immigration (BDI) Model
Here, we investigate the BDI process with attraction intensity . In this model, each active attacker attracts a new attacker at a rate , and new attackers are independently attracted to the vulnerability at a rate . For simplicity of the analysis, we assume that the immigration rate and the attacker discovery rate are equal, i.e., . Under this assumption, the first immigrant represents the attacker whose discovery duration is . The ordinary differential equation (ODE) for can be written as
with initial condition . Hence, the expected number of active attackers at time t can be found for as
where we define as the attack growth rate. Notice that this expression is continuous at , since , which describes the population growth when the attraction and exploit rates are equal. Since the case is recovered by continuity, we consider only for the rest of the analysis. In addition, we define the expected number of exploits up to time by , which is given as
We can now obtain the expected number of exploits before patch completion by averaging over the lifespan distribution in (6) as
(12)
Notice that this expression applies to any branching process for which is well-defined and independent of the vulnerability lifespan. Now, defining the unilateral Laplace transform of the function as
the expression in (12) for can be written as
Using (11), can be found as
where , for [9]. In addition, for , while the transform diverges for . Now, we can obtain the closed-form expression for by rearranging terms, and defining , as
where we recall that .
We note that (16) establishes the central phase transition of the BDI model and connects it to AI-amplified cyber risk. Offensive AI can push attacker growth beyond the critical boundary, while defensive AI can accelerate vulnerability discovery and patching. The expected cumulative number of exploits remains finite only when both defensive mechanisms stay ahead of the attacker growth; that is, we must have both and . Otherwise, rare vulnerabilities with long discovery or patching delays can make the expectation unbounded. Thus, defensive AI must strengthen both mechanisms (vulnerability discovery and patching) rather than only the faster one.
Remark 1 Let us define . The behavior of with respect to , denoted by , can be summarized as follows: i) is strictly increasing for , ii) has a unique maximum for , iii) is strictly decreasing for (except where diverges).
Remark 1 follows by analyzing the sign of the derivative of , and the proof is omitted due to space limitations.
C. Rise-Decay (RD) Model
In the BDI model of the previous subsection, the expected attacker population can grow exponentially without bound when . Consequently, the expected number of exploits may diverge when the discovery and patching resources of the defender are insufficient relative to this growth. In this subsection, we consider the RD process as an alternative, where the expected number of active attackers can initially increase, while the attraction rate gradually diminishes. Since the attacker population is initiated by the first discovery at , we assume that the attraction rate associated with each active attacker decays from this epoch. Specifically, we express the attraction intensity for this model as
where determines the exponential decay of attacker attraction.
As defined in Section II, the number of active attackers is zero until the vulnerability is first discovered at , at which point size of the population becomes one. We therefore shift the time origin to the discovery epoch by defining as the elapsed duration since the first attacker's discovery. For notational simplicity, we continue to use for the expected number of active attackers after this shift. Then, the ODE for can be expressed as
with initial condition . The resulting and can be expressed as
In addition, we define , which represents the remaining vulnerability lifespan after attacker's discovery when the discovery occurs before patch completion, and is zero otherwise. The density of for , can be obtained by
(21)
where , and . Note that the distribution of has a mass at zero, . However, since , the atom at makes no contribution to the expected number of exploits.
In the RD model, can be expressed in terms of the unilateral Laplace transform using (21) as
(22)
Using (20), the unilateral Laplace transform is
(23)



Fig. 2. The average exploit of a vulnerability versus: (a) the attraction rate for the BDI model, (b) the exploit rate for the BDI model, (c) the exploit rate for the RD model.
By change of variables , the function becomes
(24)
where is the confluent hypergeometric function [10].
Remark 2 Similar to the case of the BDI model, in the RD model here has the following properties depending on the value of : i) is strictly increasing for , ii) has a unique maximum for , where .
Remark 2 follows by comparing the per-attacker attraction rate with the ratio . The former decreases with , while the latter increases, and their values at are and , respectively. This comparison determines the sign of the derivative of and whether it changes. The remaining algebra is omitted due to space limitations.
IV. NUMERICAL RESULTS
To verify our analysis, we run simulations under different parameter settings and branching process models. In each simulation, at least vulnerabilities are generated, and the first vulnerabilities are excluded when computing the average number of exploits to allow the queue to reach steady state. For the RD model, the next event time corresponding to the arrival of a new attacker is simulated using the inverse-integrated-intensity method, which follows from the time-rescaling theorem [11].
Fig. 2 illustrates the simulation results under the following three settings. In these figures, curves represent the analytical results from Section III, and simulation results are denoted by circles. In the first setting, we consider a BDI model with fixed parameters , , and illustrate for varying values and three pairs that satisfy a defense resource constraint . Curves in Fig. 2(a) are obtained from (16), and corresponding simulation results are denoted by circles. The match between analytical curves and simulation results verifies the analysis. In this setting, is finite in the region , and the corresponding boundaries for the three parameter pairs are represented by vertical lines. Notice that is minimized for any when the defense resources are chosen as and , verifying Lemma 1. In addition, this allocation maximizes , and thus, the range of for which remains finite. Thus, balancing the defense resources according to Lemma 1 not only minimizes the expected number of exploits but also allows the defense system to withstand higher attacker attraction rates without divergence.
In the second setting, we verify Remark 1 for the BDI model. We fix the parameters , , , and , yielding and . Fig. 2(b) illustrates for varying with three different values. We observe that when , the direct effect of increasing the exploit rate dominates the reduction in the active attacker population, and hence increases with . For , these two effects dominate in different ranges of , resulting in a unique maximum. When , increasing suppresses the growth of the attacker population sufficiently strongly that decreases.
We next repeat a similar experiment for the RD model with parameters , , , and in Fig. 2(c). These parameters yield in Remark 2, and we consider two values of , and , for varying . Consistent with Remark 2, we observe that when , the reduction in the active attacker population caused by increasing is not sufficient to offset the higher exploit rate, and hence increases with . In the case , although increasing initially increases the exploit rate, an excessively large causes active attackers to leave too quickly for the attacker population to grow sufficiently, which reduces the expected number of exploits. The close match between the analytical and simulation results also verifies the analysis for the RD model.
We now investigate the effects of AI on offensive and defensive cybersecurity capabilities for the BDI model. We represent their respective levels of amplification by the multipliers and , respectively. Offensive AI increases both the per-attacker attraction rate and the independent attacker immigration rate. Defensive AI increases both the vulnerability discovery rate and the patching rate. Accordingly, the scaled rates are defined as
The vulnerability arrival rate and the per-attacker exploit rate are held fixed so that the effects of offensive and defensive AI scaling can be isolated. For each pair , we evaluate the

Fig. 3. Expected cumulative number of exploits under offensive and defensive AI scaling. Colors show in the finite region. Magenta hatching denotes an unbounded expectation, and dark shading denotes an unstable patching queue. The white curve marks the phase boundary. The markers identify the baseline and equal twofold scaling scenarios.
expected cumulative number of exploits using (16). We define the baseline as the reference scenario without AI amplification, for which . For this scenario, we set , , , , and . The baseline independent attacker immigration rate is set to .
Fig. 3 shows that the baseline system lies in the finite region. At this point, the net attacker growth rate is 0.15, while the discovery rate and effective patching rate are 0.25 and 0.20, respectively. The effective patching rate is therefore the limiting defensive mechanism, but it remains faster than the attacker growth. Substitution into (16) gives an expected cumulative exploit count of . The equal twofold scaling example produces a different outcome. Doubling the offensive capability increases the net attacker growth rate to 0.55. Doubling the defensive capability increases the discovery rate to 0.50 and the effective patching rate to 1.20. Patching is then sufficiently fast, but discovery becomes the bottleneck. Because the attacker growth exceeds the discovery rate, the expected cumulative exploit count is unbounded. Thus, equal proportional improvements on both sides do not necessarily leave the system in the same operating regime.
The geometry of the white phase boundary explains why the two scenarios fall in different operating regimes. Its gently sloped left segment corresponds to the effective patching constraint and is the relevant boundary for the baseline point, whereas its steeper right segment corresponds to the vulnerability discovery constraint and bounds the equal twofold AI point. The bend near marks where the two defensive rates are equal and the bottleneck switches between them. Thus, whether the expected cumulative number of exploits remains finite is determined by the slower defensive mechanism, and improving the faster mechanism alone does not change the operating regime. Moreover, the expected number of exploits rises sharply near the boundary, thus a system can remain in the finite region while still being highly sensitive to parameter uncertainty or temporary attacker surges.
V. CONCLUSION
We introduce a queue of branching processes that couples vulnerability lifetimes with the evolution of attacker activity under both BDI and RD models. Our analysis shows that the expected number of exploits is not necessarily monotone in the exploit rate, since increasing the exploit rate can reduce the active attacker population sufficiently to offset its direct effect on exploit activity. Under the BDI model, attacker growth must remain below both the vulnerability discovery rate and the effective patching rate. We show that, under a fixed defensive resource budget, balancing these two defensive mechanisms minimizes the expected number of exploits and expands the range of attacker growth rates the system can sustain.
More broadly, the results show that the security of a dynamic attack surface is governed by the relative time scales of attack, discovery, and patching, rather than by the speed of any one mechanism in isolation. The slower defensive mechanism determines the effective bottleneck, and improving the faster mechanism alone may provide little benefit if the other cannot keep pace with attacker growth. This also changes how the impact of AI should be viewed: AI acts as an amplifier of the underlying system dynamics, accelerating both offensive and defensive processes. Equal proportional amplification on the two sides does not, in general, preserve the operating regime, since acceleration can shift the defensive bottleneck from one mechanism to another. In our numerical example, faster patching under AI amplification leaves vulnerability discovery as the limiting mechanism and drives the system from a finite-exploitation regime into one with an unbounded exploit count. Moreover, the rapid increase in expected exploitation near the phase boundary suggests that systems operating close to this boundary may be highly sensitive to small variations in operational rates. These results highlight the importance of jointly managing discovery and patching resources as the dynamics of both attack and defense continue to accelerate.
REFERENCES
[1] A. Y. Etcibasi, Z. Dobos, and C. E. Koksal, “Organizational security resource estimation via vulnerability queueing,” in IFIP Netw., 2026.
[2] J. Yun, A. Y. Etcibasi, M. Shi, and C. E. Koksal, “A queueing-theoretic framework for dynamic attack surfaces: Data-integrated risk analysis and adaptive defense,” 2026, available online at arXiv:2604.10427.
[3] L. French, “PaperCut MF/NG flaws attacked with hundreds of AI agents,” SC Media, September 2026, https://www.scworld.com/news/papercut-mfng-flaws-attacked-with-hundreds-of-ai-agents.
[4] J. A. Jones, “FAIR: Factor analysis of information risk,” Risk Management Insight LLC, Tech. Rep., 2011.
[5] F. Baccelli and B. Błaszczyszyn, “Stochastic geometry and wireless networks: Vol. I Theory,” Found. Trends Netw., no. 3-4, pp. 249–449, 2009.
[6] G. Bolch, S. Greiner, H. De Meer, and K. S. Trivedi, Queueing networks and Markov chains: modeling and performance evaluation with computer science applications. John Wiley & Sons, 2006.
[7] P. J. Boland, E. El-Neweihi, and F. Proschan, “Schur properties of convolutions of exponential and geometric random variables,” J. Multivar. Anal., vol. 48, pp. 157–167, January 1994.
[8] M. Shaked and J. G. Shanthikumar, Stochastic orders. Springer, 2007.
[9] A. V. Oppenheim, A. S. Willsky, S. H. Nawab, and J.-J. Ding, Signals and systems. Prentice hall Upper Saddle River, NJ, 1997.
[10] M. Abramowitz and I. A. Stegun, Handbook of mathematical functions with formulas, graphs, and mathematical tables. U.S. Govt. Printing Office, 1948.
[11] E. N. Brown, R. Barbieri, V. Ventura, R. E. Kass, and L. M. Frank, "The time-rescaling theorem and its application to neural spike train data analysis," Neural Comput., vol. 14, pp. 325–346, February 2002.