Detecting Anomalous Network Communication Patterns Using Graph Convolutional Networks

Yizhak Vaisman, Gilad Katz, Yuval Elovici, Asaf ShabtaiarXiv 2023 · DOI

Abstract: Network security monitoring is increasingly challenged by sophisticated "zero-day" exploits that bypass traditional signature-based detection systems. This paper introduces GCNetOmaly, an unsupervised anomaly detection framework that integrates Graph Convolutional Networks (GCNs) with Variational Autoencoders (VAEs). By modeling network communication as a graph and incorporating machine-level behavioral features—such as process execution patterns analyzed via TF-IDF—the system identifies deviations from established "normal" behavior. Evaluated on large-scale real-world data from a financial institution, GCNetOmaly demonstrated an 85% precision rate in identifying relevant anomalies in ATM networks and successfully detected 100% of simulated attack vectors in a bank heist scenario.

Introduction

Modern cybersecurity relies heavily on identifying known malware signatures. However, this approach is inherently reactive and fails to detect novel attack patterns. Machine learning (ML) offers a proactive alternative by learning to identify anomalies. Implementing ML in network environments is difficult due to the massive volume of high-dimensional data and the lack of labeled ground truth for attacks. Furthermore, the definition of "normal" varies significantly across different machine roles within an enterprise. GCNetOmaly addresses these challenges by employing an unsupervised approach that learns the structural and behavioral characteristics of network nodes.

Methodology

The GCNetOmaly framework processes Endpoint Detection and Response (EDR) logs through a multi-stage pipeline to transform raw events into actionable security insights.

GCNetOmaly end-to-end pipeline for network anomaly detection.

The pipeline begins by constructing a weighted adjacency matrix representing the communication graph. To characterize each node (machine), the system extracts four distinct feature sets:

  1. Topological Features: Using the node2vec algorithm to capture the machine's role within the network structure.
  2. Statistical Communication Features: Quantifying connection volumes and the diversity of unique machine interactions.
  3. Process-Level Features: Applying Term Frequency-Inverse Document Frequency (TF-IDF) to identify rare or characteristic software processes running on specific machines.
  4. Significant Process Features: Isolating the most representative behavioral markers for each node.

Model Architecture

At the core of GCNetOmaly is a GCN-based Variational Autoencoder (VAE). This architecture is specifically designed to handle graph-structured data by performing convolutions over the neighborhood of each node.

Detailed architecture of the GCN-based Variational Autoencoder (VAE).

The encoder utilizes GCN layers to compress the combined adjacency matrix and feature matrix into a low-dimensional latent representation. The decoder then attempts to reconstruct the original inputs. Anomaly detection is performed by measuring the reconstruction error; nodes that deviate significantly from the patterns learned during training result in high error scores and are flagged for manual review by security analysts.

Experimental Results

The system was validated using 16 days of telemetry from a major financial institution, covering approximately 3,000 ATMs and 40,000 internal machines.

  • Unsupervised ATM Monitoring: The model identified 20 anomalies, 85% of which were confirmed by analysts as "good alerts," including unauthorized IT activities and technical malfunctions.
  • Active Directory (AD) Analysis: In a more heterogeneous environment involving AD servers, the model maintained a 64.71% precision rate.
  • Attack Simulation: To test detection efficacy against malicious actors, the researchers injected logs mimicking a real-world bank heist. GCNetOmaly successfully ranked the compromised machines as the most anomalous entities in the entire dataset.

Conclusion and Future Work

GCNetOmaly demonstrates the power of combining graph structural information with granular process-level behavior for network security. The results suggest that training models on homogeneous machine groups (e.g., ATMs) significantly enhances detection precision. Future research will focus on optimizing GCN scalability for massive enterprise networks and reducing the latency of the detection pipeline to enable real-time response.

Summary updated

BibTeX
@misc{vaisman2023detecting,
  author = {Yizhak Vaisman and Gilad Katz and Yuval Elovici and Asaf Shabtai},
  title = {{Detecting Anomalous Network Communication Patterns Using Graph Convolutional Networks}},
  year = {2023},
  eprint = {2311.18525},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2311.18525},
}
Figure