Abstract
In cybersecurity, defenders can mitigate threats by strategically masking system attributes to deceive attackers. However, determining the optimal set of attributes to hide constitutes a complex combinatorial problem that traditional game-theoretic solvers fail to address at scale. This paper introduces Generative Adversarial Masking (GAM), a novel framework inspired by Generative Adversarial Networks (GANs). GAM leverages neural networks to learn near-optimal deception strategies, effectively bypassing the exponential complexity of traditional methods and providing a scalable solution for large-scale network defense.
Introduction
Deception is a cornerstone of proactive cyber defense. By "masking" system attributes—such as operating system versions, open ports, or specific application metadata—defenders can force attackers into a state of uncertainty. This uncertainty compels attackers to guess which exploits will be effective, significantly increasing their probability of failure.
While masking is effective, it is not cost-free. Hiding system configurations can lead to administrative overhead or compatibility issues. Therefore, defenders must strategically balance the cost of masking against the security benefits. While zero-sum Bayesian games provide a theoretical framework for this balance, they suffer from the "curse of dimensionality." In realistic environments with hundreds of attributes, the number of possible masking combinations grows exponentially, rendering traditional solvers intractable. This research presents a scalable alternative that computes effective masking strategies for high-dimensional systems against rational attackers.
The Combinatorial Masking Game (CMG)
The interaction is formalized as a Combinatorial Masking Game (CMG). In this model, the defender selects a subset of system features to mask, incurring a specific cost for each hidden attribute. The attacker observes the remaining unmasked features and selects an exploit from their arsenal. The goal of the defender is to minimize the expected loss (vulnerability minus masking costs), while the attacker seeks to maximize their utility by successfully exploiting the system.
Methodology
To solve the CMG, the authors contrast a traditional mathematical approach with a novel deep learning framework.
Linear Programming with Constraint Generation (LP+CG)
The authors first implement an exact method using Linear Programming with Constraint Generation to find the Bayes-Nash Equilibrium. While this method avoids enumerating all possible attacker strategies simultaneously, it remains limited by the defender's strategy space, which remains exponential. Consequently, LP+CG serves primarily as a benchmark for small-scale instances.
Generative Adversarial Masking (GAM)
GAM represents the core contribution of this work. Instead of explicitly calculating probability distributions over millions of combinations, GAM utilizes two competing neural networks:
- The Attacker Model: A standard neural network that inputs the observed (partially masked) system state and outputs a probability distribution over potential exploits.
- The Defender Model: A Conditional Generative Neural Network (CGNN). This network takes the true system configuration and a random noise vector as input, outputting a binary mask. The inclusion of noise allows the network to implicitly represent a complex probability distribution over the mask space.
These networks are trained using an alternating gradient descent-ascent algorithm. This process optimizes the defender's strategy to minimize expected loss while the attacker simultaneously learns to maximize their success rate, eventually converging toward a stable equilibrium.
Experimental Evaluation
The framework was evaluated using synthetic datasets designed to mirror realistic network environments. These datasets included features such as Operating Systems (Windows, Linux, Mac), port statuses, and application versions. Exploits were modeled with specific prerequisites (e.g., a specific OS version and an open port) to succeed.
Key Results
- Near-Optimality: In small-scale scenarios where exact solutions were computable, GAM achieved results nearly identical to the optimal Bayes-Nash Equilibrium.
- Computational Efficiency: GAM demonstrated massive speedups. For a feature space of $n=6$, GAM was over 30 times faster than LP+CG (1.9 seconds vs. 64 seconds).
- Scalability: As the feature space expanded to $n=80$, traditional heuristic baselines (such as Greedy algorithms) failed or timed out. In contrast, GAM’s execution time remained stable and flat, scaling efficiently to high-dimensional problems.
- Strategic Superiority: GAM consistently outperformed random, greedy, and "unconditional" masking strategies. Notably, conditioning the mask on the true system state proved vital; GAM reduced defender loss by over 25% compared to strategies that masked attributes without considering the underlying vulnerabilities.
Discussion and Insights
The research highlights that effective deception requires "tailored lies." By conditioning the generative process on the actual system state, the defender can create more convincing and effective masks. Furthermore, the study demonstrates that deception effectively dilutes an attacker's arsenal. Even when attackers were provided with more exploits, the defender's loss remained stable because the uncertainty introduced by masking made it difficult for the attacker to select the correct tool for the job.
Conclusion
Generative Adversarial Masking represents a significant step forward in applying deep learning to game-theoretic cyber defense. By transforming an intractable combinatorial problem into a differentiable optimization task, GAM enables the calculation of sophisticated deception strategies for complex, real-world networks. Future work may involve validating these strategies against real-world CVE (Common Vulnerabilities and Exposures) data and exploring dynamic environments where system configurations evolve over time.
Summary updated