arXiv:2608.26871cs.CRAug 2026

Manuscript Offprint

arXiv:2608.26871

SysComb: Fine-Grained Transparent System Call Filtering for Attack Surface Reduction

Matthew Rossi, Marco Abbadini, Michele Beretta, Dario Facchinetti, Stefano Paraboschi

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

Matthew Rossi, Marco Abbadini, Michele Beretta, Dario Facchinetti, and Stefano Paraboschi

Università degli Studi di Bergamo, Bergamo, Italy

name.surname@unibg.it

Abstract. Restricting the system calls available to applications shrinks the kernel's attack surface and greatly mitigates the impact of compromised programs. Recent approaches showcase techniques to generate system call filters, however, all existing solutions require either kernel or application modifications to activate them at runtime. This is intrusive, error-prone, and often impractical, especially when the code is maintained by external parties. This paper presents SysComb, a novel eBPF-based solution to enforce temporally-specialized system call filters based on the application state, without requiring any modification to the application or the kernel code, and thus addressing the above limitations. Moreover, SysComb lets the developer choose between two distinct enforcement strategies: seccomp-like, ensuring no new privileges are gained after a state transition is performed, and least-privilege, which applies to each state the most restrictive filter. We evaluated SysComb using widely used software, showcasing accurate state-aware system call filtering and an overhead comparable to built-in kernel solutions, demonstrating the practicality of our approach.

Keywords: System Call Filtering · Temporal Specialization · Attack Surface Reduction · eBPF · Seccomp

1 Introduction

Restricting the interface between the kernel and userland is essential for safeguarding the operating system integrity. This approach serves a dual purpose: it reduces the kernel's attack surface by denying access to potentially vulnerable code paths [23], including new kernel functions that are more susceptible to vulnerabilities [38], and it limits the capabilities of compromised applications [47]. The significance of this defense-in-depth practice is evident in its widespread adoption across critical applications such as web browsers, service managers, and container runtimes, which restrict the functions available to applications before their execution (e.g., [32,45,20]).

In Linux systems, the restriction of the available system calls (or syscalls) is achieved using seccomp [42], which defines the set of allowed system calls through the specification of a filter. The effectiveness of this solution strictly

M. Rossi, M. Abbadini, M. Beretta, D. Facchinetti, S. Paraboschi

depends on the granularity of the filter [25]. Ideally, an application should only be granted the system calls necessary for its current (and future) operations. This requires transitioning to a more restrictive filter whenever feasible, or even partitioning the application functionality into distinct threads each restricted by a dedicated, tight filter. However, in practice, most production applications adopt an overly permissive filter at startup and rarely modify it afterwards [6]. This is due to multiple reasons, such as (i) limited knowledge of the invoked system calls, (ii) effort required to restructure applications to support multiple filters, and (iii) prioritization of rapid development and deployment over security.

Recognizing these challenges, substantial research effort has been dedicated to generate secomp-compatible filters using both static and dynamic analysis techniques [27,26,28,9,54,48,18]. Some influential works [37,27,48] pushed the concept even further with the generation of two system call filters for the same server application, one for the initialization phase and another for the serving phase, demonstrating that the security of server applications can greatly benefit from the enforcement of distinct system call sets. While these works paved the way to the concept of temporal specialization of system call filters, the effective and efficient activation of these filters at runtime still poses a significant challenge. Indeed, existing solutions exhibit one or more of the following limitations: (i) they require application modifications to explicitly trigger filter transitions, (ii) they need to maintain an alternative patched version of the kernel with ad hoc features, or (iii) they delegate the enforcement of filters to a trusted user-space component, which represents an additional attack surface.

In this paper, we propose a novel solution to automatically identify and transparently activate specialized system call filters based on the application execution state. We also refine the concept of temporal specialization, enabling the enforcement of per-thread system call filters. To the best of our knowledge, this is the first proposal to achieve this result without requiring application changes, kernel patches, and delegation to user-space components. Our solution operates within the kernel boundaries by leveraging the eBPF subsystem. This allows us to automatically detect application state transitions at runtime using user-space probes, observe all system call events, and enforce security decisions. The proposed technique is flexible and supports two strategies: (i) secomp-like, which restricts application threads to progressively more restrictive filters, and (ii) least-privilege, which associates each application state with the most restrictive filter possible. Additionally, SysComb automatically validates application state transitions at runtime, enabling early detection and blocking of unexpected execution patterns. We evaluate SysComb on widely used applications. From a security perspective, we demonstrate that our approach identifies fine-grained, state-aware filters that more effectively mitigate kernel vulnerability exploitation, and blocks a larger number of shellcodes when compared to solutions based on a single filter. From a performance standpoint, we show that SysComb introduces an overhead comparable to secomp.

Figure

Fig. 1: Overview of the eBPF architecture.

References (35)