Traceability between requirements and software architecture models is essential for maintaining security-critical systems, as it ensures that implementations remain consistent with requirements and compliant with security constraints. Existing approaches such as SWATTR focus primarily on trace links to components, while dataflow-oriented requirements have not been considered so far. This thesis extends traceability approaches to security-related dataflows by leveraging large language models (LLMs) for entity extraction and trace link recovery, and by extending the underlying metamodel with dataflow representations. As a case study, requirements from the open-source EVerest framework for electric vehicle charging were annotated with SecLan element types and used to construct a gold standard. This dataset provides the evaluation basis and contributes a valuable resource, as labeled security-related requirements are otherwise scarce. The evaluation shows that GPT-4.1 can extract dataflow-related elements with promising accuracy. For components, a recall of 0.92 and an F2-score of 0.86 were achieved, clearly outperforming the SWATTR baseline (recall 0.80, F2-score 0.44). Across all dataflow-related element types, the extraction reached an overall recall of 0.78 and an F2-score of 0.73. For trace link recovery, GPT-4.1 surpassed SWATTR when provided with manually extracted elements. For tracing components, GPT-4.1 achieved a precision of 0.88 and a recall of 0.88, while SWATTR produced worse results (precision 0.77 and recall 0.73). At the same time, GPT-4.1 proved more sensitive to automatic extraction, while SWATTR was more robust under such conditions. In the final step, trace links were created for all annotated dataflows in the gold standard and additional valid flows were discovered beyond it. These findings indicate that LLM-based approaches can extend traceability beyond component-level links and provide a foundation to introduce tracing of dataflows. While challenges remain, especially regarding the reliable extraction of complete dataflows, the results demonstrate the potential of LLMs to complement heuristic approaches in creating detailed trace links for security-related requirements.
| Related KIT institution | Institute of Information Security and Dependability (KASTEL) |
|---|---|
| Language | English |
| KITopen ID | 1000186905 |
| Publisher | Karlsruher Institut für Technologie (KIT) |
| Size | VI, 82 p. |
| Supervisors | Anne Koziolek Ralf Reussner Sophie Corallo Dominik Fuchß |
| Referenced in | OpenAlex |