[Paper Review] Reliable Malware Analysis and Detection using Topology Data Analysis
This paper proposes a topological data analysis (TDA) framework using TDA Mapper and persistence homology to improve malware detection and clustering, outperforming traditional methods like PCA, UMAP, and t-SNE. Results show TDA Mapper with PCA excels at uncovering hidden malware cluster relationships, while persistence diagrams enable faster, more accurate detection of overlapping malware families with lower execution time and better robustness on noisy data, especially when combined with Random Forest and Decision Tree classifiers.
Increasingly, malwares are becoming complex and they are spreading on networks targeting different infrastructures and personal-end devices to collect, modify, and destroy victim information. Malware behaviors are polymorphic, metamorphic, persistent, able to hide to bypass detectors and adapt to new environments, and even leverage machine learning techniques to better damage targets. Thus, it makes them difficult to analyze and detect with traditional endpoint detection and response, intrusion detection and prevention systems. To defend against malwares, recent work has proposed different techniques based on signatures and machine learning. In this paper, we propose to use an algebraic topological approach called topological-based data analysis (TDA) to efficiently analyze and detect complex malware patterns. Next, we compare the different TDA techniques (i.e., persistence homology, tomato, TDA Mapper) and existing techniques (i.e., PCA, UMAP, t-SNE) using different classifiers including random forest, decision tree, xgboost, and lightgbm. We also propose some recommendations to deploy the best-identified models for malware detection at scale. Results show that TDA Mapper (combined with PCA) is better for clustering and for identifying hidden relationships between malware clusters compared to PCA. Persistent diagrams are better to identify overlapping malware clusters with low execution time compared to UMAP and t-SNE. For malware detection, malware analysts can use Random Forest and Decision Tree with t-SNE and Persistent Diagram to achieve better performance and robustness on noised data.
Motivation & Objective
- To address the limitations of traditional malware detection methods, such as high false positives and poor robustness to polymorphic and metamorphic malware.
- To evaluate the effectiveness of topological data analysis (TDA) techniques—specifically TDA Mapper, persistence homology, and tomato—for malware clustering and detection.
- To compare TDA techniques against conventional dimensionality reduction methods (PCA, UMAP, t-SNE) using multiple machine learning classifiers.
- To provide scalable deployment recommendations for TDA-based malware detection in enterprise and multi-region environments.
Proposed method
- The study employs topological data analysis (TDA) techniques: persistence homology, TDA Mapper, and tomato for feature extraction and pattern discovery in malware data.
- TDA Mapper is used to visualize and identify hidden relationships between malware clusters by constructing a topological graph from dimensionality-reduced data.
- Persistence diagrams are generated from filtered data to detect persistent topological features, enabling robust identification of overlapping malware families.
- The framework integrates TDA with machine learning classifiers including Random Forest, Decision Tree, XGBoost, and LightGBM for malware detection.
- Experiments are conducted on two real-world datasets: CIC-MalMem-2022 (PC malware) and CCCS-CIC-AndMal-2020 (mobile malware), with both balanced and imbalanced data distributions.
- Scalability recommendations are derived from system-level deployment patterns, including auto-scaling of TDAMapper-PCA services and use of CDNs and load balancers for distributed alert processing.
Experimental results
Research questions
- RQ1How does TDA-based feature engineering compare to traditional methods (PCA, UMAP, t-SNE) in clustering malware samples and uncovering hidden relationships between malware families?
- RQ2Which TDA technique—persistence homology, TDA Mapper, or tomato—provides the best performance in identifying overlapping malware clusters with low execution time?
- RQ3Which machine learning classifiers (Random Forest, Decision Tree, XGBoost, LightGBM) achieve the highest detection accuracy and robustness when combined with TDA features, especially under noisy data conditions?
- RQ4How can TDA-based malware detection be scaled effectively across large, distributed, multi-region enterprise environments?
Key findings
- TDA Mapper combined with PCA outperforms PCA alone in identifying hidden relationships between malware clusters, enabling better understanding of malware family interconnections.
- Persistence diagrams achieve faster execution time and better performance in detecting overlapping malware clusters compared to UMAP and t-SNE, particularly under data perturbations.
- Random Forest and Decision Tree classifiers achieve superior detection performance and robustness when paired with t-SNE and persistence diagrams, especially on noisy real-world data.
- XGBoost and LightGBM classifiers only achieve optimal performance and robustness when used with t-SNE, not with other dimensionality reduction techniques.
- The study provides scalable deployment recommendations, including auto-scaling of TDAMapper-PCA services and use of CDNs and load balancers, to support large-scale malware detection in multi-region environments.
- All experimental results are reproducible, with full code and data available in a public replication package.
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.