arXiv:2609.04815cs.LGSep 2026

Manuscript Offprint

arXiv:2609.04815

Federated Attack Campaign Detection via Contrastive Encoding of Threat Indicators in Gradient Updates

Manuel Röder, Bibin Babu, Frank-Michael Schleif

via Contrastive Encoding of Threat Indicators in Gradient Updates

Manuel Röder¹,², Bibin Babu¹,³, and Frank-Michael Schleif¹

¹ Technical University of Applied Sciences Würzburg-Schweinfurt, Würzburg, Germany, ² Bielefeld University, Bielefeld, Germany ³ Center for Cybersecurity TTZ-WUE, Ochsenfurt, Germany

Abstract. Detecting orchestrated cyberattack campaigns that span multiple organizations traditionally requires sharing sensitive telemetry and threat intelligence across institutional boundaries and country borders, a barrier that Federated Learning removes by training shared threat detectors directly on local data. We propose FEDIOC, a modular framework in which clients fold locally available structured threat indicators into their gradient updates; we instantiate the client-side encoder with a supervised contrastive loss over IoC-matched flows. Within each training batch, flows that match any known indicator pattern form the positive set; the contrastive objective pulls their learned embeddings together and pushes non-IoC embeddings away, so that campaign-relevant structure is, by design, expressed in the gradient direction. Clients sharing indicators for the same attack campaign then produce aligned gradient components, which the server clusters by the cosine similarity of their updates to recover global campaign patterns without any direct IoC transmission. We evaluate FEDIOC on two public threat-detection benchmarks distributed across FL clients that each observe only a fragment of every active campaign and hold disjoint indicator sets derived from their local telemetry. In this regime the FL server recovers cross-organizational campaign cohorts directly from gradient geometry. We contribute FEDIOC as a modular framework for this setting, and use it to pinpoint the non-IID gradient structure as the main driver of recovery and to define the open problem of designing encoders that improve on it.

Keywords: Federated Learning · Cyber Threat Intelligence · Contrastive Learning · Attack Campaign Detection · Privacy Preservation · Regulatory Compliance

Reproducibility: Code and setup instructions to reproduce the experimental results are available at https://github.com/ManuelRoeder/fedioc.

1 Introduction

Detecting remote-orchestrated cyber attacks that span multiple organizations is fundamentally a fragmentation problem: no single defender observes the full

Röder et al.

set of Indicators of Compromise (IoC) associated with a given campaign. These artifacts (file hashes, IP addresses, domain names, URLs, TLS fingerprints, registry keys, and behavioral patterns) identify adversary tools, infrastructure, and tradecraft, but each organization holds only a partial view derived from its local telemetry. Pooling indicators through threat intelligence sharing standards such as MISP [25] or STIX/TAXII⁴ is the conventional remedy, yet its effectiveness is limited by sharing reluctance, data sovereignty constraints under regimes such as the GDPR [6] and the NIS-2 directive [7], and the rapid staleness of low-level indicators as adversaries rotate infrastructure and re-tool [2].

Federated Learning (FL) offers an alternative solution: organizations exchange gradient updates instead of raw telemetry [17]. Existing FL systems for intrusion and threat detection nevertheless reduce IoC to label assignment [24,4]: once a round begins, the indicators contribute nothing beyond the per-flow class label, and the resulting gradients carry only task-specific learning. The richer STIX metadata that characterizes an IoC, comprising confidence, temporal validity, and kill-chain context, is therefore discarded before aggregation, and with it the campaign-cohort signal that gradient sharing could in principle convey. We consequently investigate whether this signal can be preserved by asking:

Main Research Question. Can IoC knowledge be encoded into federated gradient updates, such that the FL server is able to resolve client-local IoC views into global attack campaign signals?

In our work, we aim to answer this question by proposing FEDIOC, a modular FL framework which adds a supervised contrastive loss over indicator-matched flows to local client training. Subsequently, the server is able to recover campaign structure by clustering clients on the cosine similarity of their gradient updates.

References (25)