Zur Hauptnavigation wechseln Zur Suche wechseln Zum Hauptinhalt wechseln

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

Publikation: Beitrag in Buch/Bericht/Sammelwerk/KonferenzbandAufsatz in KonferenzbandForschungPeer-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).

OriginalspracheEnglisch
Titel des SammelwerksProceedings - 2025 IEEE 33rd International Requirements Engineering Conference Workshops, REW 2025
Herausgeber (Verlag)Institute of Electrical and Electronics Engineers Inc.
Seiten223-232
Seitenumfang10
ISBN (elektronisch)9798331538347
ISBN (Print)979-8-3315-3835-4
DOIs
PublikationsstatusVeröffentlicht - 1 Sept. 2025
Veranstaltung33rd IEEE International Requirements Engineering Conference Workshops, REW 2025 - Valencia, Spanien
Dauer: 1 Sept. 20255 Sept. 2025

Publikationsreihe

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

Konferenz

Konferenz33rd IEEE International Requirements Engineering Conference Workshops, REW 2025
KurztitelREW 2025
Land/GebietSpanien
OrtValencia
Zeitraum1 Sept. 20255 Sept. 2025

ASJC Scopus Sachgebiete

  • Artificial intelligence
  • Software
  • Sicherheit, Risiko, Zuverlässigkeit und Qualität
  • Modellierung und Simulation

Dieses zitieren