arXiv:2609.00954cs.CRSep 2026

Manuscript Offprint

arXiv:2609.00954

Influence of Logging Frameworks on Bind9

Max Schrötter, Hannes Signer, Bettina Schnor

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Max Schrötter

Department of Computer Science University of Potsdam Potsdam, Germany schroetter@cs.uni-potsdam.de

Hannes Signer

Department of Computer Science University of Potsdam Potsdam, Germany hannes.signer@uni-potsdam.de

Bettina Schnor

Department of Computer Science University of Potsdam Potsdam, Germany schnor@cs.uni-potsdam.de

Abstract—Host-based Intrusion Prevention Systems (IPS) rely on application logs to detect and block malicious activity. However, on modern high-speed networks the logging subsystem itself becomes a bottleneck: an attacker can hide traces simply by generating enough traffic to overwhelm the application's log pipeline, dropping crucial traces. In this work, we show that widely deployed setups such as Fail2Ban monitoring BIND9 can be defeated with less than 65 Mbps of DNS traffic. Further, we show that when replacing core components of the IPS architecture with their higher-performance equivalent, iptables with eBPF and regex matching with Hyperscan, the logging backends themselves become the bottleneck. Therefore, we present FIPS, a new IPC designed for high-performance logging that bypasses the kernel and reduces copying of the log messages to a minimum. FIPS uses per-thread lock free shared memory ring buffers, supporting multiple independent consumers reading the same log stream at their own pace. FIPS offers both a native API and a drop-in replacement for the syslog interface. Our evaluation with BIND 9 shows that FIPS introduces almost no overhead compared to disabled logging, logs more requests than any other evaluated framework, and enables the IPS to ban malicious clients 2162^{16} faster than with file logging while sustaining 2162^{16} attacking clients at one million requests per second.

Index Terms—Intrusion Prevention, 100GbE, IPC, Logging

1. Introduction

The detection and prevention of intrusions is a key part of securing computer systems. Depending on the location and function of the intrusion detection system it uses different data sources. Network intrusion detection systems use network traffic to detect attacks, while the analysis of system and application logs is the key component of host intrusion detection. Applications usually write text-based log files that are analyzed by log collectors (like logstash, beats, fluentd, etc.) and then forwarded to SIEMs and IDSs. These log collectors parse the log files from strings into fields and store them in databases in a unified and machine-readable format for later analysis. Figure 1 shows this workflow with BIND9 as an example application and syslog as logging backend.

While the correct parsing of logs is its own research topic [1], a lot of effort could be circumvented by consequently logging in a user-definable binary or structured format.

Application logging is a core component of every user-space application. The most widespread logging options are file logging, utilizing a variation of the write syscall and syslog, utilizing either a libc syslog function[2, 3] or reimplementing a variation[4]. While syslog is, strictly speaking, a protocol (RFC 5424 [5]), most current logging daemons (e.g. rsyslogd or systemd-journald) create the `/dev/log Unix socket to receive new local log messages. While most applications will by default write messages to this Unix socket, the transport via UDP and TCP is also widely supported. Local logging daemons process new logs and might also forward them to dedicated logging servers. A variation of file logging which is almost universally supported is the logging to the stdout or stderr filedescriptor. Current Init-Systems like systemd read those messages and forward them to the local logging daemon.

Logs themselves are a primary target for attackers to hide their attacks [6]. This can be accomplished in multiple ways: modifying the logs after a system has been compromised or overwhelming a component in the logging pipeline. Securing logs against tampering after a system has been compromised has been thoroughly covered in the literature [7–12]. This work focuses on how easily the application or the used IPC can be overwhelmed to hide traces of an attacker.

Sommese et al. [13] showed that DNS infrastructure is a common target for DDoS attacks. They also showed that affected DNS hosting providers are small to medium-sized. While complete failure in DNS name resolution is rare (1%) the attacks increase the RTT up to 348 times.

In another scenario, an attacker might generate a high volume of DNS logs to hide the execution of malware. Malware uses DNS and Domain Generation Algorithms to resolve addresses of Control and Command Servers. An Intrusion Prevention System (IPS) and the logging framework must be able to cope with high volumes of logs and employ mechanisms to reduce log volume like rate limiting to mitigate these attacks.

In this work, we focus on the full stack, from the application producing the logs, to the Inter-Process Communication (IPC) used to transport them, and to the log collectors. Our

Figure

Figure 1. Overview of the classic IPS workflow

contributions are:

  1. We show how easily a widely used IPS like Fail2Ban can be overwhelmed. (see Section 2)

  2. We evaluate the performance impact of the logging framework on the performance of BIND9. (see Section 2)

  3. Our analysis shows that the logging backends themselves become the bottleneck. Therefore, we propose a new IPC called FIPS IPC designed for high-performance logging that bypasses the kernel. FIPS uses per-thread lock-free shared-memory ring buffers, supporting multiple independent consumers reading the same log stream at their own pace. The memory containing the ring buffers is directly shared between the logging application and the consumers, reducing memory copies of the log messages. (see Section 4)

  4. We evaluate the new IPC against state-of-the-art logging frameworks and show its performance benefit both on the performance of the IPS and on the application (BIND9).

Fail2Ban is written in Python and, because of the interpreted language and slow regex pattern matching, is not designed for high-performance. In the evaluation we, therefore, replace it by a simplified C-based implementation (simple-Fail2Ban). Core components were replaced with their more efficient equivalents, iptables with eBPF and regex matching with Hyperscan [14]. We analyze how well our proposed FIPS IPC with BIND9 and the improved simple-Fail2Ban is able to cope with DoS attacks up to 10 million packets per second. (see Section 5)

  1. As DoS mitigation strategy the DoS clients are rate limited. We also analyze the number of logged requests to see if traces of answered requests can be lost. (see Section 5)

References (35)