arXiv:2608.23731cs.CRAug 2026

Manuscript Offprint

arXiv:2608.23731

Effective Pivot Attack Detection via System and Network Information

Ava Powelson, Carson Kuzniar, Hyojoon Kim, Israat Haque

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

Ava Powelson

Dalhousie University

apowelson@dal.ca

Carson Kuzniar

Dalhousie University

carson.kuzniar@dal.ca

Hyojoon Kim

University of Virginia

joonkim@virginia.edu

Israat Haque

Dalhousie University

israat@dal.ca

Abstract—Perimeter-based security appliances, such as firewalls or Intrusion Detection Systems, are ineffective against modern attacks that use pivoting, wherein attackers “pivot” traffic through compromised hosts to gain access to additional targets that would otherwise be inaccessible. Due to the legitimate appearance of the relayed traffic, pivoting is extremely difficult to detect. Although the consequences of these attacks are known to be severe, existing defenses suffer from drawbacks such as high processing delays, low accuracy, or reliance on network-wide participation, making them inconvenient or even ineffective. This work presents Stitch, a host-based system that uses the programmable kernel to detect pivoting in real time. By observing host-traversing flows, Stitch uses process tracing to effectively combine system and network-level information, connecting incoming and outgoing communications and identifying pivoting characteristics between them. Showing 31% gains in accuracy over state-of-the-art pivoting defenses and a maximum false-positive rate of 0.006% over two separate real-world deployments, Stitch covers the gap in current pivot detection solutions by providing accurate, lightweight, and independent coverage for vulnerable hosts in a network.

I. INTRODUCTION

In today’s cyber-security landscape, critical infrastructure is often targeted by Advanced Persistent Threat (APT) attacks [1], [2]. Causing extensive loss of capital, infrastructure, and services [1]–[5], these attacks demonstrate a concrete threat to both individual and organizational privacy [5]. APTs have tangible and global negative effects on user experience, privacy, and providers’ services. As such, solutions to detect, mitigate, and prevent these attacks are critical.

One common facet of APT attacks’ presence in a network is lateral movement [6]. This type of movement defines communications between internal network devices, as opposed to vertical movement which defines communications between internal and external devices. Traditionally, security solutions such as Firewalls and Intrusion Detection Systems (IDS) focus on detecting and preventing unauthorized vertical movement while trusting internal communications on the assumption that internal hosts will emit only legitimate traffic [7]. As a result, a technique called pivoting (Fig. 1) has emerged to take advantage of this relatively unmonitored lateral traffic. Pivoting is a stealthy movement technique in which attackers utilize the more trusted communications of internal network devices by relaying or “pivoting” their traffic through one or more such devices to communicate with their target (or targets) without raising suspicion [6], [7].

Figure

Fig. 1: An example of a pivot attack. The attacker "pivots" their traffic through a public internal node and exploits the trusted internal traffic to access the private internal node.

Preventing pivoting is an essential step in defending against APTs. If attackers' lateral movements are detected and restricted, they will be forced to utilize vertical movement instead and contend with existing perimeter defenses. However, detecting pivoting poses significant challenges due to the legitimate appearance of its traffic and the diversity and volume of benign activity in today's networks. Infrastructure as a Service (IaaS) and Platform as a Service (PaaS) paradigms further complicate the issue by introducing dynamic network scenarios where certain elements, such as applications or resource allocation, fall outside of administrator control.

Existing work has proposed several different solutions to the pivoting problem [8]–[13]. For example, some solutions [8], [10], [14] rely on a central server to collect and process traffic for offline pivot detection, but this strategy often suffers from delayed responses and large data-storage requirements when processing high traffic volumes. Other solutions implement end-to-end Distributed Information Flow Control (DIFC) systems, which track and control the flow of information in a given network to prevent unauthorized lateral movement [12], [13]. However, such systems rely on the cooperation of all nodes in the network, including hosts, servers, switches, etc., to ensure proper rule enforcement, making them incompatible with dynamic network topologies such as bring-your-own-device (BYOD), IaaS, or PaaS environments. Finally, some solutions analyze flow characteristics, such as their size and timing, to perform lightweight real-time detection [9], [11]. However, relying on such characteristics alone does not provide enough context, leading to the tracking of many unrelated flows and resulting in a high false-positive rate (FPR).

A pivot detection system must operate in real-time and scale in the presence of a high traffic volume without relying on the cooperation of existing network elements, all while minimizing the FPR. This combination is missing in existing work (Section VI). Stitch closes the identified gaps by combining flow characteristics (e.g., size and time) analysis and system-level context (e.g., flow association via Information Flow Control (IFC)) in a principled, lightweight approach. Our key insight is that host-based pivot detection must correlate network flows with serving system processes and, as such, consider full system context along with traffic characteristics to effectively identify potential pivoting. For instance, tracking an SSH tunnel's flow characteristics in isolation is insufficient without considering the associative context linking its incoming and outgoing flows through shared process activity.

Realizing this insight introduces several technical challenges (Section III-A) that shape Stitch's design. First, legitimate symmetric traffic patterns are easily mistaken for pivoting, so any system relying on flow symmetry alone risks burying real alerts under false ones. Stitch therefore learns which endpoint paths are frequently traversed from a host, inferring which flows are likely to be administrator-managed and can be safely ignored. Second, a host-resident monitor also has only a narrow budget of compute and storage resources to spend without degrading the system it protects, ruling out heavyweight instrumentation or unbounded state. Stitch therefore couples targeted kernel-level monitoring with an eviction strategy that exploits the temporal stability of pivoting symmetry to keep its footprint small without losing detection accuracy. Finally, the convoluted, multi-threaded data paths of modern OS processes can threaten IFC schemes with label explosion. Stitch solves this issue by attributing child thread activity to parent processes, preserving the context needed for pivot detection while avoiding the storage and complexity costs of per-thread tracking. No prior system addresses all three constraints simultaneously, making Stitch a uniquely accurate, real-time, and lightweight system.

To realize these solutions, Stitch leverages eBPF (extended Berkeley Packet Filter), a framework for safely and dynamically extending the Linux operating-system (OS) kernel [15]. Stitch deploys kernel-level programs at carefully chosen system-call monitoring points, i.e., critical stages in a process's lifespan such as execve and clone, intersections of process and flow activity such as connect and accept, and calls as close possible to the network via eXpress Data Path (XDP). This design directly addresses the resource-constraint challenge by extracting rich system and network data without excessive instrumentation or user/kernel context-switching costs.

The collected data further drives two key mechanisms: an IFC scheme performed at the process level, which attributes individual threads' actions to their parent to sidestep the convoluted-data-path challenge without any loss of detection-relevant context, and a false-positive reduction strategy built on the endpoints a protected host frequently visits, allowing Stitch to infer well-defined, administrator-managed flows (e.g., authentication management or maintenance traffic) without flagging every instance of symmetric traffic. By unifying these solutions, Stitch offers a single system that performs lightweight, real-time, and accurate pivot detection entirely within the kernel.

We implement a prototype of Stitch and evaluate it on traffic modeled after the Canadian Institute for Cybersecurity Intrusion Detection System 2017 (CIC-IDS2017) dataset and augmented with several representative pivoting attacks (Nmap, SSH, Socat, and Chisel) selected for their prevalence in prior work [9], [11], [12] and in real-world security incidents [16]–[18]. In this testbed setting, Stitch identifies all representative attacks while incurring only 0.1% additional CPU overhead and a memory footprint under 350MB. We further validate Stitch with two live production deployments in the campus network of a large university (24,000+ students, faculty, and staff) for over 80 days. For these deployments, Stitch was placed first in a shared, multi-purpose faculty server and second in a public-facing university web server. Stitch sustained a maximum false positive rate of just 0.006% over the combined three months of these deployments. The high accuracy of Stitch and its low impact on host processing resources establish its feasibility as a real-world pivot detection tool. Our contributions are summarized as follows:

• Stitch is the first real-time host-based pivot detection system combining process tracing with network flow analysis, enabling efficient and accurate detection at scale without relying on full network cooperation.

• We extensively evaluate Stitch across three distinct setups (a controlled testbed and two live production networks) demonstrating that it is highly accurate, lightweight, and portable across different kernel versions.

• We compare Stitch with state-of-the-art pivot detection methods and demonstrate an average 31.49% improvement in detection accuracy while incurring an average FPR of only 0.18% in the testbed environment.

• We will publicly release Stitch source code upon acceptance of this paper to support reproducibility and enable future extensions.

References (36)