[Paper Review] Fast Memory-efficient Anomaly Detection in Streaming Heterogeneous Graphs
StreamSpot is a streaming, memory-efficient anomaly detection system for heterogeneous graphs that uses a shingling-based similarity function and sketching to enable real-time clustering and anomaly scoring with constant-time updates and bounded memory. It achieves over 95% detection accuracy on system-call flow graphs while processing more than 100,000 edges per second.
Given a stream of heterogeneous graphs containing different types of nodes and edges, how can we spot anomalous ones in real-time while consuming bounded memory? This problem is motivated by and generalizes from its application in security to host-level advanced persistent threat (APT) detection. We propose StreamSpot, a clustering based anomaly detection approach that addresses challenges in two key fronts: (1) heterogeneity, and (2) streaming nature. We introduce a new similarity function for heterogeneous graphs that compares two graphs based on their relative frequency of local substructures, represented as short strings. This function lends itself to a vector representation of a graph, which is (a) fast to compute, and (b) amenable to a sketched version with bounded size that preserves similarity. StreamSpot exhibits desirable properties that a streaming application requires---it is (i) fully-streaming; processing the stream one edge at a time as it arrives, (ii) memory-efficient; requiring constant space for the sketches and the clustering, (iii) fast; taking constant time to update the graph sketches and the cluster summaries that can process over 100K edges per second, and (iv) online; scoring and flagging anomalies in real time. Experiments on datasets containing simulated system-call flow graphs from normal browser activity and various attack scenarios (ground truth) show that our proposed StreamSpot is high-performance; achieving above 95% detection accuracy with small delay, as well as competitive time and memory usage.
Motivation & Objective
- To address the challenge of detecting anomalous heterogeneous graphs in real time from a continuous stream of typed edges.
- To design a method that maintains bounded memory usage while processing high-velocity graph streams.
- To enable online, incremental detection of anomalies without requiring batch processing or global graph snapshots.
- To support applications such as host-level APT detection where low delay and high accuracy are critical.
- To generalize beyond security to other domains requiring scalable, real-time clustering of typed graph streams.
Proposed method
- Proposes a novel shingling-based similarity function that compares graphs by the relative frequency of local substructures represented as short strings.
- Introduces StreamHash, a sketching technique that compresses graph representations into fixed-size summaries while preserving similarity for efficient comparison.
- Employs a centroid-based clustering scheme that is incrementally updated as new edges arrive, enabling online anomaly scoring.
- Maintains graph sketches and cluster summaries with constant-time updates per incoming edge, ensuring high throughput.
- Uses mergeable sketch summaries to support efficient clustering and anomaly detection in a fully streaming fashion.
- Processes edges one at a time in a continuous, edge-level manner, avoiding snapshot-based processing.
Experimental results
Research questions
- RQ1How can we efficiently compute similarity between heterogeneous graphs in a streaming setting with bounded memory?
- RQ2Can we design a sketching method that preserves graph similarity while consuming constant memory?
- RQ3How can we maintain clustering and anomaly detection in real time as new edges arrive?
- RQ4What is the performance of the system in terms of accuracy, latency, and memory usage under real-world streaming conditions?
- RQ5Can the approach be generalized beyond APT detection to other streaming graph anomaly detection tasks?
Key findings
- StreamSpot achieves over 95% detection accuracy on simulated system-call flow graphs with ground-truth attack scenarios.
- The system processes more than 100,000 edges per second, demonstrating high throughput and low latency.
- Memory usage remains bounded and constant, with sketches and clustering summaries consuming fixed space regardless of stream length.
- The method sustains high performance even under strict memory constraints, maintaining accuracy and speed.
- The sketching technique enables similarity-preserving compression, making real-time clustering feasible.
- The approach is effective for detecting anomalies in evolving, typed graphs with temporal ordering and heterogeneous node/edge types.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.