A flow-based IDS using Machine Learning in eBPF

Maximilian Bachl, Joachim Fabini, Tanja Zseby
2/19/2021
cs.CRcs.LGcs.NI

Official code: CN-TU/machine-learning-in-ebpf (114 stars, C, GPL-2.0, last commit 2025-08-11).

Abstract

eBPF is a new technology which allows dynamically loading pieces of code into the Linux kernel. It can greatly speed up networking since it enables the kernel to process certain packets without the involvement of a userspace program.

Show full abstract

So far eBPF has been used for simple packet filtering applications such as firewalls or Denial of Service protection. We show that it is possible to develop a flow based network intrusion detection system based on machine learning entirely in eBPF. Our solution uses a decision tree and decides for each packet whether it is malicious or not, considering the entire previous context of the network flow. We achieve a performance increase of over 20% compared to the same solution implemented as a userspace program.

View on arXivView PDF

Code Implementations(1)

GPL-2.0

This repository contains the code for the paper "A flow-based IDS using Machine Learning in eBPF", Contact: Maximilian Bachl

1149C, TeXDec 27, 20201 years agoGPL-2.0
decision-treesebpflinuxmachine-learningtree-based-methods

Similar Papers

Cite this paper

@article{bachl2021flowbased,
  title  = {A flow-based IDS using Machine Learning in eBPF},
  author = {Maximilian Bachl and Joachim Fabini and Tanja Zseby},
  year   = {2021},
  eprint = {2102.09980},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2102.09980}
}

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

Discussion