Experimental Evaluation of AI-Augmented Cybersecurity Requirements Generation Leveraging LLMs’ Capabilities
Open Access
- 28 January 2026
- journal article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Access
- Vol. 14, 19579-19606
Abstract
When it comes to cybersecurity requirements, catalogs of standard controls are a double-edged sword: they offer reusable resources applicable anywhere, yet they entail tedious, error-prone manual instantiation work. As the definitions of these cybersecurity controls are written in natural language, we analyze whether large language models (LLMs) may help automate that process. We ran an empirical evaluation where frontier versions of LLaMa, Qwen, Mixtral, and GPT were asked, leveraging best prompting practice, to generate cybersecurity requirements for a realistic system, departing from its functional specification plus definitions of abstract cybersecurity controls extracted from ISO/IEC 27002. We compared the results to a ground truth created by human experts, and a gold standard pooled from the aggregation of all human- and LLM-produced results, considering phenomena such as hallucinations, new requirements discovered by LLMs, or partial overlaps. Results show that open-weights LLMs can parallel human experts in coverage and help uncover additional requirements when used under human-in-the-loop curation. Relative F2 score against the gold standard (prioritizing recall over precision) reached 1.14× in the best LLM configuration (in comparison to human experts): a LLaMa 3.1 405B model, prompted with an explicit chain-of-thought pipeline made of three sequential steps and four parallel and coalesced runs, and moderate values for hyperparameters that balance diversity and determinism. Our work contributes a benchmark of applied capabilities of LLMs for security by design in non-code artifacts. Although recall values leave room for improvement as LLMs advance, results provide initial evidence that this approach is feasible in our case study.Keywords
All Related Versions
Funding Information
- Ministerio de Ciencia e Innovación (PID2021-124502OB-C43)
- Centro para el Desarrollo Tecnológico Industrial (MIG-20211006)
This publication has 52 references indexed in Scilit:
- Large language models (LLMs): survey, technical frameworks, and future challengesArtificial Intelligence Review, 2024
- Automated requirement contradiction detection through formal logic and LLMsAutomated Software Engineering, 2024
- Requirements Engineering Using Generative AI: Prompts and Prompting Patterns2024
- Advancing Requirements Engineering Through Generative AI: Assessing the Role of LLMs2024
- Improving requirements completeness: automated assistance through large language modelsRequirements Engineering, 2024
- Prompt Engineering in Large Language Models2024
- Large Language Model Assisted Software Engineering: Prospects, Challenges, and a Case Study2023
- Security Requirements Engineering: The SI* Modeling Language and the Secure Tropos Methodology2010
- An Ontology for Modelling Security: The Tropos ApproachLecture Notes in Computer Science, 2003
- The Philosophy of Information Retrieval Evaluation2002