Learning Security Strategies through Game Play and Optimal Stopping

Kim Hammar, Rolf Stadler
5/29/2022
cs.LGcs.AIcs.CR
rl

Official code: Kim-Hammar/csle (162 stars, Python, last commit 2026-03-25).

Abstract

We study automated intrusion prevention using reinforcement learning. Following a novel approach, we formulate the interaction between an attacker and a defender as an optimal stopping game and let attack and defense strategies evolve through reinforcement learning and self-play.

Show full abstract

The game-theoretic perspective allows us to find defender strategies that are effective against dynamic attackers. The optimal stopping formulation gives us insight into the structure of optimal strategies, which we show to have threshold properties. To obtain the optimal defender strategies, we introduce T-FP, a fictitious self-play algorithm that learns Nash equilibria through stochastic approximation. We show that T-FP outperforms a state-of-the-art algorithm for our use case. Our overall method for learning and evaluating strategies includes two systems: a simulation system where defender strategies are incrementally learned and an emulation system where statistics are produced that drive simulation runs and where learned strategies are evaluated. We conclude that this approach can produce effective defender strategies for a practical IT infrastructure.

View on arXivView PDF

Code Implementations(1)

Kim-Hammar/csleOfficial100%

A research platform to develop automated security policies using quantitative methods, e.g., optimal control, computational game theory, reinforcement learning, optimization, evolutionary methods, and causal inference.

16229Python, JavaScriptSep 7, 20208 months agoNOASSERTION
cybersecuritydeep-learninggame-theorymarkov-decision-processesmarkov-games+2 more

Similar Papers

Cite this paper

@article{hammar2022learning,
  title  = {Learning Security Strategies through Game Play and Optimal Stopping},
  author = {Kim Hammar and Rolf Stadler},
  year   = {2022},
  eprint = {2205.14694},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2205.14694}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2205.14694.svg)](https://codeofpaper.com/paper/2205.14694)

Discussion