A RETRIEVAL AUGMENTED GENERATION FRAMEWORK FOR CYBERSECURITY QUESTION ANSWERING USING MITRE ATT&CK KNOWLEDGE BASE
Keywords:
Retrieval-Augmented Generation, , Large Language Models, , Cybersecurity, , MITRE ATT&CK, , Semantic Search, , Question Answering,, Natural Language Processing, , Knowledge GroundingAbstract
Large Language Models (LLMs) have demonstrated strong capabilities in natural language understanding and generation; however, they remain prone to hallucination when queried on specialized or rapidly evolving domains such as cybersecurity. This paper presents a Retrieval-Augmented Generation (RAG) framework designed to provide grounded, accurate answers to cybersecurity questions by leveraging the MITRE ATT&CK knowledge base, a widely recognized repository of real-world adversary tactics and techniques. The proposed system converts MITRE ATT&CK technique descriptions into dense vector embeddings using a pretrained sentence-transformer model, storing them in a FAISS similarity search index for efficient retrieval. Upon receiving a user query, the system retrieves the most semantically relevant technique descriptions and supplies them as context to a pretrained instruction-tuned language model (FLAN-T5-Large), which generates a response grounded strictly in the retrieved information. Experimental evaluation across multiple cybersecurity queries demonstrates that the RAG-based can produce more specific and grounded answers compared to generation without retrieval. The results highlight the effectiveness of combining semantic search with generative language models to build reliable, domainspecific question-answering systems, with potential applications in security operations, threat intelligence analysis, and cybersecurity education.
Licensing: Creative Commons Attribution 4.0 International License (CC BY 4.0)