Skip to main navigation Skip to search Skip to main content

Can we use LLMs to recover Trace Links between Source Code and Security Requirements?

Research output: Chapter in book/report/conference proceedingConference contributionResearchpeer review

Abstract

In software development, many different artifacts are created during the process. At the beginning, requirements for the respective software are defined and then written down in a specification. This is followed by other artifacts, such as source code, test cases, or various UML diagrams. Different standards, including ISO 26262 for the automotive industry, require that safety and security requirements be explicitly traced for these different artifacts. However, tracing of requirements in source code is very time-consuming, error-prone, and costly. To reduce the effort involved, various approaches have been developed that use different techniques, such as information retrieval or machine learning, to automate this process. However, these approaches also have problems, so that practical use, especially in safety and security domains, is limited. In this paper, we have therefore developed a plugin for VSCode and a new approach based on LLMs to recover trace links between safety and security requirements and source code. Our results show that the used LLMs are capable of performing this task because they have both code and textual understanding. In various combinations, Llama showed satisfying results in terms of precision (0.8).

Original languageEnglish
Title of host publicationProceedings - 2025 IEEE 33rd International Requirements Engineering Conference Workshops, REW 2025
PublisherInstitute of Electrical and Electronics Engineers Inc.
Pages223-232
Number of pages10
ISBN (Electronic)9798331538347
ISBN (Print)979-8-3315-3835-4
DOIs
Publication statusPublished - 1 Sept 2025
Event33rd IEEE International Requirements Engineering Conference Workshops, REW 2025 - Valencia, Spain
Duration: 1 Sept 20255 Sept 2025

Publication series

NameProceedings -International Requirements Engineering Conference Workshops
ISSN (Print)2770-6826
ISSN (Electronic)2770-6834

Conference

Conference33rd IEEE International Requirements Engineering Conference Workshops, REW 2025
Abbreviated titleREW 2025
Country/TerritorySpain
CityValencia
Period1 Sept 20255 Sept 2025

Keywords

  • Large Language Models
  • Safety Requirements
  • Security Requirements
  • Source Code
  • Tracing

ASJC Scopus subject areas

  • Artificial Intelligence
  • Software
  • Safety, Risk, Reliability and Quality
  • Modelling and Simulation

Cite this