Who Watches the Watchers? Semantically-Constrained Reinforcement Learning for Red-Teaming Provenance Intrusion Detectors

Brayden Killeen, Derui Wang, Nasrin Sohrabi, Qin Wang, Zahir Tari, Jason XueNeurIPS 2026

TL;DR

Modern endpoint security systems watch computer activity by building massive cause-and-effect "provenance graphs" of system calls, flagging malicious nodes when they look unusual. This paper introduces ProvRT, a reinforcement learning agent that acts as an automated red-teamer, proving that an attacker can stealthily insert valid, real-world Linux system calls into these graphs to blind state-of-the-art intrusion detectors. Better yet, it pinpoints why these detectors fail—and shows how retraining just their final scoring layer can shut the attacks down.

What Problem Does This Paper Address?

Every time a program reads a file, opens a network socket, or spawns a process, your operating system’s audit log records it. Provenance-based Intrusion Detection Systems (PIDS) stitch these logs into directed graphs and use neural networks (trained on normal, benign computer behavior) to spot anomalies. Because these detectors sit directly on the machines they guard—making them prime defences for everything from enterprise servers to autonomous AI agents—we need to know if a clever attacker who already has a foothold on the machine can fool them.

Red-teaming an intrusion detector on a live OS graph is much harder than adding invisible pixel noise to an image of a panda:

  1. Combinatorial explosion: Picking a source node, destination node, and system-call type from a 10,000-node graph yields roughly $10^{10}$ choices per step.
  2. Ripple effects: On Graph Neural Network (GNN) detectors, adding one edge shifts representations across multi-hop neighborhoods via message passing—potentially undoing earlier evasion progress.
  3. Real-world physics: Every fake edge must correspond to an actual, executable OS system call (you can’t EXECUTE a network socket) originating from a process the attacker actually controls.

Prior attacks relied on static "mimicry" (blindly replaying normal file operations) or slow brute-force searches. Nobody had built a fast, reusable, adaptive policy to stress-test these watchers.

Methods

The authors frame evasion as a finite-horizon Markov Decision Process (MDP) trained via standard Proximal Policy Optimization (PPO), wrapped around three clever architectural choices that make the problem tractable:

  • Factored Autoregressive Policy: Instead of evaluating $10^{10}$ actions at once, the policy breaks each move into three sequential, bite-sized choices: Who acts? (pick an attacker-controlled source) $\rightarrow$ On what? (pick a compatible destination) $\rightarrow$ How? (pick a valid system call). This shrinks per-step complexity by over six orders of magnitude.
  • Transition-Rule Masking: Combining OS schema rules with frequent transitions mined from benign training logs, ProvRT masks out impossible or weird actions at sampling time, guaranteeing 100% semantically valid system calls.
  • GRU Belief State: Because GNN message passing can accidentally "un-hide" a previously concealed node, a memoryless agent flies blind. Adding a standard Gated Recurrent Unit (GRU) gives the agent temporal memory across its multi-step attack trajectory.

Datasets

Experiments run on three public DARPA Transparent Computing (Engagement 3) datasets—E3-CADETS, E3-THEIA, and E3-CLEARSCOPE—spanning six distinct real-world attack campaigns. No new benchmark datasets are introduced, though the authors also validate physical execution on a custom auditd-instrumented Linux Docker testbed.

Key Insights and Ideas

  • Blind mimicry backfires on GNNs: Non-adaptive attacks that just spam normal-looking file reads work fine against simple linear detectors, but increase anomaly scores on GNNs (pushing Evasion Success Rates deeply negative) because message passing amplifies structural weirdness.
  • Black-box blindness doesn't save the defender: Even when the attacker only sees binary "detected / not detected" labels (no embeddings or anomaly scores), GNN detectors remain completely vulnerable.
Figure 1: ESR on E3-CADETS by attacker ob- servation tier across 5 seeds. Orthrus (green) is observation-invariant; VELOX (orange) holds from white- to grey-box and degrades under black- box. Error bars are ± one standard deviation.
  • Architectural immunity exists: One detector family—FLASH (direct reconstruction)—completely resisted evasion. Why? Probing showed FLASH has bounded adversarial-to-benign sensitivity: edges connecting attacker nodes to benign nodes barely budge attacker anomaly scores ($2.5 \times 10^{-6}$ mean shift), blocking score dilution.
  • It’s the readout, not the encoder: Replacing standard reconstruction-error math with a tiny discriminative scoring head trained on ProvRT’s attacks largely cures the vulnerability—proving the frozen encoders actually see the attack, while naive score aggregation lets it slip by.
  • Evasion leaves a structural fingerprint: ProvRT doesn't mimic common OPEN/READ traffic; instead, it leans on rarer CONNECT/SEND/EXECUTE calls that detectors model poorly, allowing a lightweight 4-feature logistic regression meta-detector to spot ProvRT chains at 0.999 AUC.

Key Results

Tested against four leading PIDS spanning four encoder families—Orthrus (GNN), VELOX (Linear), NodLink (VAE), and FLASH (Direct Reconstruction)—at a 5% false-positive rate (FPR):

  • High Evasion: ProvRT achieves 0.98 mean Evasion Success Rate (ESR) on Orthrus, 0.89 on VELOX, and 0.26 on NodLink, while FLASH holds attackers near 0.0.
  • Query Efficiency: Once trained (under 200k steps on a CPU), ProvRT generates attack chains in under 5 seconds using 5–99$\times$ fewer detector queries than exhaustive hill-climbing.
Figure 2: ESR vs. query cost on E3-CADETS, averaged over Orthrus and VELOX. ProvRT and HillClimb are the only non-dominated attackers.
  • Defences: Dynamically adjusting thresholds crushes evasion only by driving false positives above 95%. Conversely, adversarial retraining of the scoring head slashes replay ESR from 0.97 to 0.30 on Orthrus (0.00 against a freshly retrained adaptive ProvRT) and 0.91 to 0.00 on VELOX (0.24 adaptive).
Table 3: Adversarial retraining of the scoring head (E3-CADETS, white-box, mean over 5 seeds, 5% FPR). Replay re-scores the saved ProvRT chains with the hardened head; Adaptive retrains ProvRT from scratch (106 steps) against the hardened detector.
  • Real Syscalls: Replaying a 37-edge VELOX evasion chain on Linux executed 37 real system calls, generating 31 exact matches in kernel audit logs (the 6 misses were passive RECV calls needing a live network peer).

Limitations and Future Work

  • Poor cross-environment transfer: Trained policies generalize to new attacks on the same host and detector, but fail to transfer reliably across different datasets or detector architectures without retraining.
  • Conservative attacker: The threat model restricts the agent to edge insertions; exploring node creation or timestamp manipulation is left for future work.
  • Defender & system scope: Evaluation uses single-host DARPA graphs rather than multi-host enterprise networks or closed-source commercial PIDS. Moreover, defenders recalibrate periodically between episodes rather than playing a full real-time Stackelberg game, and ensembles or certified defences remain unexplored.

Summary updated

Abstract

Reconstruction-based provenance intrusion detection systems (PIDS) detect malicious activity by classifying nodes in system-call provenance graphs from per-edge reconstruction errors produced by benign-trained encoder-decoders. Because these detectors run on the endpoints they monitor, adversarial robustness is a critical deployment concern, yet systematic evaluation of it remains rare. We introduce ProvRT, a reinforcement-learning framework for automated red-teaming of these detectors, and use it to characterise the robustness of four leading PIDS spanning the four encoder families used in the field. ProvRT casts red-teaming as a semantically constrained graph-editing MDP, with a factored autoregressive policy masked by transition relations mined from benign data and a GRU belief state, to model the multi-step consequences of message passing on GNN-based detectors. ProvRT shows that reconstruction-based PIDS allow meaningful evasion across three of four encoder families (GNN, linear, and, to a lesser extent, VAE) in white-, grey-, and black-box settings, relative to non-exhaustive baselines, and at inference time uses 5--99$\times$ fewer detector queries than search-based attackers; direct-reconstruction encoders resist insertion attacks structurally, suggesting an architectural direction for robust detection. No fixed aggregation or threshold-adaptive policy maintains both a deployable false-positive rate and meaningful evasion resistance, but adversarial retraining of the scoring head on ProvRT-generated chains reduces evasion from 0.97 to 0.30 on the GNN detector and from 0.91 to 0.0 on the linear detector at 5\% FPR, and an adaptive attacker retrained against the hardened detectors recovers at most 0.24. ProvRT trains on CPU within hours and produces attack chains that replay as Linux syscalls.
BibTeX
@inproceedings{killeen2026who,
  author = {Brayden Killeen and Derui Wang and Nasrin Sohrabi and Qin Wang and Zahir Tari and Jason Xue},
  title = {{Who Watches the Watchers? Semantically-Constrained Reinforcement Learning for Red-Teaming Provenance Intrusion Detectors}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=7lUWeTEm0T},
}
Figure