Can Graph-Based Microservice Performance Detection Be Used for Microservice Intrusion Detection?

Yunjian Ma · 2026

Read Can Graph-Based Microservice Performance Detection Be Used for Microservice Intrusion Detection? by Yunjian Ma (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2605-24283.txt.

Introduction

Ma asks whether microservice performance detection built on graphs can double as intrusion detection. Microservice telemetry increasingly gets modelled as graphs with services as nodes and dependencies as edges. On a synthetic e-commerce benchmark, 50 trials across five attack types yield request-level invocation graphs with multi-modal node features. A two-layer graph network for six-way classification over 21,438 graphs reaches about 96 percent accuracy with strong macro F1. Stricter splits show trace structure alone falls short, logs and metrics help, and flattened baselines beat the shallow graph model.

Catalog record

CREATORYunjian Ma
YEAR2026
COLLECTIONPAPERS
FORMATTXT
FILE SIZE22720
LICENSEhttp://creativecommons.org/publicdomain/zero/1.0/
RIGHTSCC0
SOURCEarXiv

Source: https://arxiv.org/abs/2605.24283

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

Can Graph-Based Microservice Performance Detection Be Used for Microservice Intrusion Detection? Yunjian Ma Abstract Microservice systems expose rich telemetry streams, including metrics, logs, and distributed traces. Existing performance anomaly detection methods increasingly model these systems as graphs, where nodes represent services and edges represent runtime dependencies. This paper asks whether graph-based microservice performance detection can also serve as a foundation for microservice intrusion detection. We deploy a Docker Compose based synthetic e-commerce microservice benchmark, run 50 controlled trials across five attack types under normal workloads, and collect metrics, logs, and distributed traces. Each request trace is converted into a request-level invocation graph with multi-modal node features derived from timestamped logs and per-service performance metrics. As a first baseline, we train a two-layer graph convolutional network (GCN) for 6-way classification (normal plus five attack types) over 21,438 request graphs. The GCN achieves 96.2% test accuracy with a macro F1 of 0.955 under a graph-level random split. We then conduct modality ablation, trial-level split evaluation, non-graph baseline comparison, runtime analysis, t-SNE visualization, confusion-matrix analysis, and error-case inspection. The stricter trial-level results show that trace structure alone is insufficient, logs and metrics improve detection, and strong flattened baselines currently outperform the shallow GCN on the engineered feature set. Keywords: microservices, intrusion detection, performance anomaly detection, graph neural networks, observability, distributed tracing 1 Introduction Microservice architectures decompose applications into independently deployed services that communicate through HTTP, gRPC, message queues, databases, and service meshes. This decomposition improves modularity and deployment velocity, but it also makes operational and security monitoring more difficult. A single user request may traverse many services, and a local failure or compromise can propagate through the dependency graph. Performance anomaly detection and intrusion detection are often treated as separate problems. Performance monitoring focuses on latency, throughput, resource consumption, and error rates, while intrusion detection focuses on malicious behavior, unauthorized access, suspicious payloads, and adversarial movement. In microservice systems, however, these concerns can overlap. Some attacks create visible performance symptoms: denial-of-service attacks increase request rates and latency; brute-force login attempts alter authentication failure patterns; data exfiltration may change read volume or response size; lateral movement may introduce unusual service-to-service paths. This paper investigates the following question: Can graph-based microservice performance detection be used for microservice intrusion detection? The goal is not to claim that performance anomaly detection is a complete intrusion detection system. Instead, this paper studies when performance-oriented graph methods are useful for security detection, when they fail, and how logs and traces can enrich the graph representation. The contributions are: • A reproducible experimental design for evaluating microservice intrusion scenarios in an observable environment, with 50 automated trials across five attack types. • A request-level invocation graph representation that maps one distributed trace, related logs, and nearby service metrics into a single graph sample with 25-dimensional node features. • A baseline GCN classifier achieving 96.2% test accuracy across six classes under a graph-level random split, establishing an optimistic within-distribution reference point. • An exploratory evaluation comparing modality ablations, trial-level split generalization, non-graph baselines, runtime costs, t-SNE visualization, and confusion-matrix error patterns. 2 Background and Research Questions Modern microservice platforms expose three telemetry pillars: metrics, logs, and traces. Metrics describe resource use and latency, logs contain discrete application and security events, and distributed traces reveal request paths across service boundaries. Performance anomaly detection and intrusion detection are often studied separately, but in microservice systems they overlap: an attack may change request rate, latency, error propagation, authentication failures, or the service dependency path. This motivates a request-level graph representation that preserves service dependencies while incorporating operational and security-relevant signals. This paper is organized around four research questions: RQ1: Can a graph neural network classify a single microservice request invocation graph as normal or intrusive? RQ2: Which intrusion categories are visible through request call-path, service performance, and log signals? RQ3: Does adding timestamped logs and node-level metrics improve detection beyond trace-only invocation graphs? RQ4: How do graph-based methods compare with non-graph baselines on detection quality and runtime cost? 3 Related Work Microservice anomaly detection and troubleshooting. Distributed tracing systems such as Dapper made request-level execution paths practical to collect in large distributed systems [ 10 ] . Building on such telemetry, MicroRank localizes end-to-end latency issues using trace-based spectrum analysis [ 12 ] , while ServiceRank combines anomaly detection and root-cause identification for large-scale microservice architectures [ 8 ] . Eadro is especially close to this work: it models traces, logs, and KPIs jointly for end-to-end anomaly detection and root-cause localization in microservices [ 7 ] . Our work follows Eadro’s multi-source observability motivation, but asks a narrower security-oriented question: when can graph-based performance detection serve as a useful foundation for intrusion detection? Graph-based microservice detection. Several recent systems model traces and monitoring signals as graphs. DeepTraLog combines traces and logs into trace-event graphs and trains a graph-based deep learning detector [ 13 ] . TraceGra uses graph deep learning to model traces and performance metrics for unsupervised anomaly detection [ 2 ] . MSTGAD uses twin graphs and attentive multi-modal learning for microservice anomaly detection [ 5 ] . These works support the premise that graph structure can preserve service dependencies that flat feature vectors may lose. Our experiments add a trial-level split and non-graph baselines to test whether a simple request-level GCN actually outperforms flattened logs+metrics features in the current security benchmark. Graph neural networks and intrusion/anomaly detection. The GCN used in this paper follows the graph convolutional formulation of Kipf and Welling 2017 ; GraphSAGE and graph attention networks provide common alternatives for inductive and attention-based graph representation learning [ 4 , 11 ] . More broadly, graph anomaly detection surveys emphasize that graph structure is useful when abnormal behavior manifests as unusual relations or neighborhoods [ 1 ] . For security-oriented anomaly detection, DeepLog learns log event sequences for system anomaly detection [ 3 ] , while Kitsune demonstrates online network intrusion detection with autoencoder ensembles [ 9 ] . These methods motivate our comparison between graph-based request representations, log/metric modalities, and simpler non-graph baselines. 4 Methodology The experimental environment is a synthetic e-commerce microservice benchmark with six services: frontend , auth , catalog , cart , order , and payment . The attacker interacts with externally reachable application APIs; the study does not assume host compromise, kernel-level compromise, or control of the container runtime. We evaluate five implemented application-layer attack scenarios: HTTP flood, brute-force login, SQL injection probe, SSRF-like probe, and exfiltration simulation. Normal traffic exercises common user behaviors such as browsing, search, authentication, cart access, and order placement. Implementation and reproduction details are provided in the appendix. The detection unit is a single request trace. For each request trace r_{i} , the experiments construct one service-level graph: G_{i}=(V_{i},E_{i},X_{i},y_{i}), (1) where V_{i} is the set of services involved in the request, E_{i} is the service-level call relation observed in the trace and symmetrized for GCN message passing, X_{i} is the node feature matrix, and y_{i} is the request label. Edge attributes are not used in the reported models. The reported 25-dimensional node feature vector concatenates 16 log TF-IDF dimensions and 9 service metric dimensions. Trace information contributes the graph topology itself; the exploratory trace-only variant uses service-presence and coarse

Read the complete text