The MAL Simulator: Cyber Operations Simulation based on Attack & Defense Graphs
The paper introduces the MAL Simulator, a flexible cyber operations platform built on the Meta Attack Language that enables the training and evaluation of automated offensive and defensive agents, demonstrating their effectiveness through case studies in an emulated network environment.
Original paper licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
In the digital realm, security is often a game of cat and mouse played at the speed of light. Defenders build walls and watch for intruders, while attackers search for the smallest crack to slip through. To prepare for these battles, researchers use computer simulations, virtual playgrounds where they can test strategies without risking real systems. However, creating a realistic simulation is difficult. If the virtual world is too simple, the lessons learned do not apply to the complex reality of modern networks. If it is too rigid, the software cannot adapt to new types of computers or new kinds of attacks. The challenge lies in building a simulator that is flexible enough to model any system, yet structured enough to teach artificial intelligence how to think like a hacker or a guardian.
A team of researchers at the KTH Royal Institute of Technology in Sweden has addressed this challenge by developing a new tool called the MAL Simulator. This system is built on a foundation known as the Meta Attack Language, a specialized way of describing how computers, users, and software interact. Instead of hard-coding every possible scenario, the researchers designed the simulator to read these descriptions. This means the same core software can be used to simulate a small office network, a massive cloud system, or a factory control system simply by changing the description, without needing to rewrite the underlying code. The researchers used this tool to train two types of artificial intelligence agents: one designed to attack the system and find weaknesses, and another designed to defend it.
The team tested their creation in a controlled environment that mimicked a real computer network, complete with servers, workstations, and the complex connections between them. They created thirty different versions of this network, varying the number of computers and the layout of the connections, to ensure the agents were learning general skills rather than just memorizing a single map. The goal for the attacking agent was to reach specific sensitive data, while the defending agent's job was to stop the attack with the least amount of disruption to the network. In the real world, shutting down a server to stop a hacker might be effective, but it also stops the business from working, so the defender must be precise.
When the researchers put the trained attacking agent to the test, it proved to be significantly more efficient than traditional computer search methods. Standard algorithms, which often check every possibility in a systematic but blind way, took much longer and made more unnecessary moves to reach their goal. The trained agent, having learned from thousands of simulated attempts, knew exactly which path to take to compromise the system quickly. It could even handle network layouts it had never seen before, showing that it had learned the underlying logic of the attack rather than just a specific route. This suggests that artificial intelligence can learn to navigate complex digital environments more effectively than rigid, pre-programmed rules.
The results for the defending agent were more nuanced and highlighted a critical reality of cybersecurity. When the simulation was perfect, with the defender receiving clear and accurate alerts about every move the attacker made, a simple, rule-based strategy worked just as well as the trained artificial intelligence. However, the real world is rarely perfect. In the simulations that included "noise"—where the defender received false alarms or missed real ones, mimicking the confusion of a real network—the trained agent outperformed the simple rules. The artificial intelligence learned to ignore the noise and focus on the most likely threats, whereas the simple rules were easily confused by the false signals. This finding suggests that while basic rules might work in ideal conditions, intelligent systems are necessary for the messy, uncertain reality of actual cyber defense.
The most revealing test came when the researchers pitted the trained attacker against the trained defender. In this scenario, the defender's performance dropped significantly. The simple strategies and the rules-based agents were overwhelmed by the speed and adaptability of the intelligent attacker. Even the trained defender struggled, indicating that a defense strategy built only against predictable, slower attackers is not enough to stop a sophisticated, learning adversary. This outcome underscores a vital point: to build truly robust defenses, security systems must be trained against opponents that are just as smart and adaptive as they are. The researchers found that without this kind of adversarial training, defenses may appear strong in tests but fail when faced with a real, intelligent threat.
The study concludes that the MAL Simulator provides a powerful platform for developing these advanced agents. By allowing researchers to easily switch between different network types and attack scenarios, the tool helps create artificial intelligence that is flexible and resilient. The work demonstrates that while we can build agents that are better than current methods at both attacking and defending, the gap between the two is constantly shifting. As attackers become smarter, defenders must evolve in tandem. The researchers have made their simulator and the tools to build these agents publicly available, inviting others to continue the work of training systems that can protect our digital infrastructure in an increasingly complex world.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.