arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.24283cs.SE
收藏

基于图的微服务性能检测能否用于微服务入侵检测?

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

Yunjian Ma

AI总结:

本文研究基于图的微服务性能检测方法是否适用于入侵检测,通过构建请求级调用图并使用图卷积网络进行分类,实验表明当前浅层图模型在工程特征集上不如强扁平基线方法。

摘要:

微服务系统暴露丰富的遥测流,包括指标、日志和分布式追踪。现有的性能异常检测方法越来越多地将这些系统建模为图,其中节点表示服务,边表示运行时依赖。本文探讨基于图的微服务性能检测是否也能作为微服务入侵检测的基础。我们部署了一个基于Docker Compose的合成电子商务微服务基准,在正常负载下对五种攻击类型进行了50次受控试验,并收集了指标、日志和分布式追踪。每个请求追踪被转换为一个请求级调用图,其中包含从带时间戳的日志和每服务性能指标导出的多模态节点特征。作为第一个基线,我们训练了一个两层图卷积网络,对21,438个请求图进行6类分类。在图级随机分割下,模型达到了96.2%的测试准确率和0.955的宏F1。然后我们进行了模态消融、试验级分割评估、非图基线比较、运行时分析、t-SNE可视化、混淆矩阵分析和错误案例检查。更严格的试验级结果表明,仅靠追踪结构是不够的,日志和指标有助于检测,并且强扁平基线方法在当前工程特征集上优于浅层图模型。

英文摘要:

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 for 6-way classification over 21,438 request graphs. The model 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 graph model on the engineered feature set.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑