HackMentor: Fine-Tuning Large Language Models for Cybersecurity
Authors:
- 1 November 2023
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 452-461
Abstract
The democratization of artificial intelligence has made substantial progress by leveraging open-source large language models (LLMs), enabling researchers across domains to train customized models to meet their specific needs. Given the confidentiality and significance of cybersecurity, obtaining private and localized LLMs is imperative. However, general LLMs are not designed to cater specifically to this field, their general knowledge often falls short when addressing such specialized problems. In this paper, we categorize the domain instructions based on cybersecurity knowledge to guide the construction of high-quality instructions and conversations, ultimately enhancing the specialized capabilities of LLMs. The resulting fine-tuned LLMs, collectively termed HackMentor, are evaluated using WinRate, EloRating, and ZenoEval methods along with other popular LLMs. The experiments demonstrate that the proposed method yields significant performance improvements, surpassing the native LLMs by 10-25% when aligned with cybersecurity prompts. More, HackMentor exhibits comparable conversational quality to ChatGPT, while providing more concise and humanlike responses. This study demonstrates the efficacy of HackMentor in augmenting LLMs for cybersecurity requirements, paving the way for localized LLMs that meet specialized needs without compromising general capabilities.Keywords
This publication has 10 references indexed in Scilit:
- CySecBERT : A Domain-Adapted Language Model for the Cybersecurity DomainACM Transactions on Privacy and Security, 2024
- How Secure is Code Generated by ChatGPT?2023
- What Are the Attackers Doing Now? Automating Cyberthreat Intelligence Extraction from Text on Pace with the Changing Threat Landscape: A SurveyACM Computing Surveys, 2023
- SecureBERT: A Domain-Specific Language Model for Cybersecurity2023
- G-Eval: NLG Evaluation using Gpt-4 with Better Human Alignment2023
- Self-Instruct: Aligning Language Models with Self-Generated Instructions2023
- Towards a Unified Multi-Dimensional Evaluator for Text Generation2022
- Aligning Generative Language Models with Human Values2022
- Dataset Characteristics for Reliable Code Authorship AttributionIEEE Transactions on Dependable and Secure Computing, 2021
- A Threat Hunting Framework for Industrial Control SystemsIEEE Access, 2021