SparseIDS: Learning Packet Sampling with Reinforcement Learning

Maximilian Bachl, Fares Meghdouri, Joachim Fabini, Tanja Zseby
2/10/2020
cs.LGcs.CRcs.NI
rl

Official code: CN-TU/adversarial-recurrent-ids (19 stars, TeX, GPL-3.0, last commit 2021-03-16).

Abstract

Recurrent Neural Networks (RNNs) have been shown to be valuable for constructing Intrusion Detection Systems (IDSs) for network data. They allow determining if a flow is malicious or not already before it is over, making it possible to take action immediately.

Show full abstract

However, considering the large number of packets that has to be inspected, for example in cloud/fog and edge computing, the question of computational efficiency arises. We show that by using a novel Reinforcement Learning (RL)-based approach called SparseIDS, we can reduce the number of consumed packets by more than three fourths while keeping classification accuracy high. To minimize the computational expenses of the RL-based sampling we show that a shared neural network can be used for both the classifier and the RL logic. Thus, no additional resources are consumed by the sampling in deployment. Comparing to various other sampling techniques, SparseIDS consistently achieves higher classification accuracy by learning to sample only relevant packets. A major novelty of our RL-based approach is that it can not only skip up to a predefined maximum number of samples like other approaches proposed in the domain of Natural Language Processing but can even skip arbitrarily many packets in one step. This enables saving even more computational resources for long sequences. Inspecting SparseIDS's behavior of choosing packets shows that it adopts different sampling strategies for different attack types and network flows. Finally we build an automatic steering mechanism that can guide SparseIDS in deployment to achieve a desired level of sparsity.

View on arXivView PDF

Code Implementations(1)

GPL-3.0

Contact: Alexander Hartl, Maximilian Bachl, Fares Meghdouri. Explainability methods and Adversarial Robustness metrics for RNNs for Intrusion Detection Systems. Also contains code for "SparseIDS: Learning Packet Sampling with Reinforcement Learning" (branch "rl").

1911TeX, PythonDec 17, 20195 years agoGPL-3.0
adversarial-machine-learningadversarial-robustnessexplainabilityfeature-importancefeature-sensitivity+2 more

Similar Papers

Cite this paper

@article{bachl2020sparseids,
  title  = {SparseIDS: Learning Packet Sampling with Reinforcement Learning},
  author = {Maximilian Bachl and Fares Meghdouri and Joachim Fabini and Tanja Zseby},
  year   = {2020},
  eprint = {2002.03872},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2002.03872}
}

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/2002.03872.svg)](https://codeofpaper.com/paper/2002.03872)

Discussion