Knowledge graph embedding (KGE) is widely used to complete cyber threat intelligence (CTI) graphs, yet most methods rely on graph structure alone and are validated on general-purpose benchmarks that differ sharply from security data. CTI graphs have a small relation vocabulary, and their entities carry much of their meaning in technical text. This study applies KGE-SymCL, a contrastive learning approach that considers the symmetry of relations, to a cyber threat intelligence (CTI) graph derived from MITRE ATT&CK Enterprise v19.1. The graph comprises 2,595 entities, 20,866 triples, and five distinct relation types. We propose an R-GCN encoder whose structural embeddings are merged with SecureBERT text embeddings through a learned gate. Fifteen KGE backbones are compared, with and without the SymCL term, under an identical protocol over three random seeds. SymCL improves the purely structural R-GCN (MRR 0.0904 to 0.0977) but adds little once SecureBERT fusion is present. The fused model reaches an MRR of 0.1102, a significant gain over plain R-GCN (p = 0.015), although CompGCN and SimKGC remain higher on Hit@1 and Hit@3. These results show that the benefit of contrastive alignment depends on what other signal the encoder already has. To support forensic use, we also add multi-hop path explanations, fusion-gate analysis and tamper-robustness tests that check how predictions behave when the graph is perturbed.
Introduction
The text discusses the use of Cyber Threat Intelligence (CTI) knowledge graphs and machine learning techniques to predict missing relationships between cybersecurity entities, such as malware, attack techniques, tools, and threat groups.
Knowledge graphs represent cybersecurity information through connected entities and relationships. However, these graphs often contain missing links, making Knowledge Graph Completion (KGC) important for identifying possible connections and understanding how cyberattacks occur.
Traditional Knowledge Graph Embedding (KGE) methods and Graph Neural Networks (GNNs), such as TransE, RotatE, R-GCN, and CompGCN, learn relationships mainly from graph structures. However, they often fail to capture the detailed meaning contained in cybersecurity descriptions. To address this limitation, the study uses SecureBERT, a language model specifically pre-trained on cybersecurity-related text.
The research focuses on evaluating KGE-SymCL, a contrastive learning method that identifies similar entities based on symmetrical relationships in a knowledge graph. Unlike traditional contrastive learning, it does not require negative samples or graph augmentation. However, its effectiveness on cybersecurity graphs with a limited number of relationship types remains uncertain.
To address this research gap, the study proposes a new architecture called SecureBERT-Fused R-GCN. It combines two sources of information:
Structural information: R-GCN learns relationships and connections between entities in the knowledge graph.
Semantic information: SecureBERT extracts meaningful information from cybersecurity entity descriptions.
A learnable gate combines these two representations, allowing the model to determine how much semantic information should be added to the structural representation.
The proposed approach is evaluated using the MITRE ATT&CK Enterprise v19.1 dataset, which contains:
2,595 entities.
20,866 relationship triples.
Five relationship types: uses, mitigates, detects, subtechnique-of, and attributed-to.
The research also investigates whether adding symmetrical contrastive learning improves the performance of the proposed architecture. Several experiments, ablation studies, and comparisons are conducted using 15 different KGE and GNN models.
Additionally, the study introduces forensic-oriented diagnostics to improve the reliability and interpretability of predictions. These include multi-hop path explanations, fusion-gate analysis, and tamper-robustness testing.
Main Contributions
1. Application of KGE-SymCL to cybersecurity: Evaluates contrastive learning on a MITRE ATT&CK knowledge graph with a small number of relation types.
2. Proposed SecureBERT-Fused R-GCN: Combines graph structure and cybersecurity-specific textual information using a learnable gating mechanism.
3. Ablation study: Investigates whether symmetrical contrastive learning provides additional benefits when semantic information is already included.
4. Forensic explainability: Provides multi-hop explanations, fusion-gate analysis, and robustness testing to support security investigations.
5. Comprehensive evaluation: Compares 15 different KGE and GNN backbones using a consistent experimental protocol, three random seeds, and checkpointed, hash-verified runs.
Overall Research Gap
Existing knowledge graph models primarily focus on graph relationships, while language models capture textual meaning. However, their combined effectiveness for cybersecurity knowledge graph completion has not been sufficiently explored.
In particular, it remains unclear whether structural contrastive learning provides additional benefits when cybersecurity-specific textual information is already integrated into a graph neural network.
Conclusion
We investigated how well KGE-SymCL performs when working with cyber threat data represented as a graph derived from MITRE ATT&CK, rather than using only standard benchmark datasets. We proposed an R-GCN that combines graph structure with SecureBERT text through a learned gate. It reached a mean MRR of 0.1102 compared with 0.0904 for plain R-GCN, a significant gain (p = 0.015). Relation-symmetrical contrastive learning helped the structure-only R-GCN, but it gave no clear extra benefit once the text signal was fused in. In short, its value depends on what else the encoder already knows. The study also showed that the CompGCN variants reach comparable results, so the proposed model is a domain-focused design and not a universally superior one. The forensic checks showed that margin-based scores detect tampering far better than symmetry-based signals.
Future work can follow five directions: building reliable negative pairs for contrastive learning, since non-symmetrical entities are not guaranteed to be true negatives; learning relation groups automatically instead of defining them by hand; fine-tuning SecureBERT jointly with the graph encoder; testing the fusion on other security graphs such as CVE, CWE or D3FEND; and turning witness paths into natural-language explanations for analysts.
References
[1] B. E. Strom, A. Applebaum, D. P. Miller, K. C. Nickels, A. G. Pennington, and C. B. Thomas, \"MITRE ATT&CK: Design and philosophy,\" MITRE Corporation, Tech. Rep., 2020.
[2] Z. Syed, A. Padia, T. Finin, L. Mathews, and A. Joshi, \"UCO: A unified cybersecurity ontology,\" in Proc. AAAI Workshop on Artificial Intelligence for Cyber Security, 2016.
[3] P. Kaloroumakis and M. Robinson, \"Toward a knowledge graph of cybersecurity countermeasures,\" MITRE Corporation, Tech. Rep., 2021.
[4] Q. Wang, Z. Mao, B. Wang, and L. Guo, \"Knowledge graph embedding: A survey of approaches and applications,\" IEEE Trans. Knowl. Data Eng., vol. 29, no. 12, pp. 2724–2743, 2017.
[5] S. Ji, S. Pan, E. Cambria, P. Marttinen, and P. S. Yu, \"A survey on knowledge graphs: Representation, acquisition, and applications,\" IEEE Trans. Neural Netw. Learn. Syst., vol. 33, no. 2, pp. 494–514, 2021.
[6] A. Bordes, N. Usunier, A. Garcia-Duran, J. Weston, and O. Yakhnenko, \"Translating embeddings for modeling multi-relational data,\" in Adv. Neural Inf. Process. Syst., vol. 26, 2013.
[7] Z. Sun, Z.-H. Deng, J.-Y. Nie, and J. Tang, \"RotatE: Knowledge graph embedding by relational rotation in complex space,\" in Proc. ICLR, 2019.
[8] B. Yang, W.-t. Yih, X. He, J. Gao, and L. Deng, \"Embedding entities and relations for learning and inference in knowledge bases,\" in Proc. ICLR, 2015.
[9] T. Trouillon, J. Welbl, S. Riedel, É. Gaussier, and G. Bouchard, \"Complex embeddings for simple link prediction,\" in Proc. ICML, 2016, pp. 2071–2080.
[10] T. Dettmers, P. Minervini, P. Stenetorp, and S. Riedel, \"Convolutional 2D knowledge graph embeddings,\" in Proc. AAAI, 2018.
[11] M. Schlichtkrull, T. N. Kipf, P. Bloem, R. van den Berg, I. Titov, and M. Welling, \"Modeling relational data with graph convolutional networks,\" in Proc. ESWC, 2018, pp. 593–607.
[12] S. Vashishth, S. Sanyal, V. Nitin, and P. Talukdar, \"Composition-based multi-relational graph convolutional networks,\" in Proc. ICLR, 2019.
[13] J. Devlin, M.-W. Chang, K. Lee, and K. Toutanova, \"BERT: Pre-training of deep bidirectional transformers for language understanding,\" in Proc. NAACL-HLT, 2019, pp. 4171–4186.
[14] E. Aghaei, X. Niu, W. Shadid, and E. Al-Shaer, \"SecureBERT: A domain-specific language model for cybersecurity,\" in Proc. SecureComm, 2022, pp. 39–56.
[15] L. Wang, W. Zhao, Z. Wei, and J. Liu, \"SimKGC: Simple contrastive knowledge graph completion with pre-trained language models,\" in Proc. ACL, 2022, pp. 4281–4294.
[16] K. Liang, Y. Liu, S. Zhou, W. Tu, Y. Wen, X. Yang, X. Dong, and X. Liu, \"Knowledge graph contrastive learning based on relation-symmetrical structure,\" IEEE Trans. Knowl. Data Eng., 2023.
[17] S. Zhang, Y. Tay, L. Yao, and Q. Liu, \"Quaternion knowledge graph embeddings,\" in Adv. Neural Inf. Process. Syst., vol. 32, 2019.
[18] Z. Cao, Q. Xu, Z. Yang, X. Cao, and Q. Huang, \"Dual quaternion knowledge graph embeddings,\" in Proc. AAAI, 2021, pp. 6894–6902.
[19] Z. Zhang, J. Cai, Y. Zhang, and J. Wang, \"Learning hierarchy-aware knowledge graph embeddings for link prediction,\" in Proc. AAAI, 2020, pp. 3065–3072.
[20] M. Nickel, V. Tresp, and H.-P. Kriegel, \"A three-way model for collective learning on multi-relational data,\" in Proc. ICML, 2011.
[21] Z. Zhang, J. Cai, and J. Wang, \"Duality-induced regularizer for tensor factorization based knowledge graph completion,\" in Adv. Neural Inf. Process. Syst., vol. 33, 2020, pp. 21604–21615.
[22] T. N. Kipf and M. Welling, \"Semi-supervised classification with graph convolutional networks,\" in Proc. ICLR, 2017.
[23] D. Nathani, J. Chauhan, C. Sharma, and M. Kaul, \"Learning attention-based embeddings for relation prediction in knowledge graphs,\" in Proc. ACL, 2019.
[24] C. Shang, Y. Tang, J. Huang, J. Bi, X. He, and B. Zhou, \"End-to-end structure-aware convolutional networks for knowledge base completion,\" in Proc. AAAI, 2019, pp. 3060–3067.
[25] R. K. Srivastava, K. Greff, and J. Schmidhuber, \"Highway networks,\" arXiv:1505.00387, 2015.
[26] Y. Liu et al., \"RoBERTa: A robustly optimized BERT pretraining approach,\" arXiv:1907.11692, 2019.
[27] W. Xiong, T. Hoang, and W. Y. Wang, \"DeepPath: A reinforcement learning method for knowledge graph reasoning,\" in Proc. EMNLP, 2017, pp. 564–573.
[28] H. Zhang et al., \"Data poisoning attack against knowledge graph embedding,\" in Proc. IJCAI, 2019, pp. 4853–4859.
[29] T. G. Dietterich, \"Approximate statistical tests for comparing supervised classification learning algorithms,\" Neural Comput., vol. 10, no. 7, pp. 1895–1923, 1998.
[30] T. Fawcett, \"An introduction to ROC analysis,\" Pattern Recognit. Lett., vol. 27, no. 8, pp. 861–874, 2006.