Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
Fine-tuning Large Language Models for Software Supply Chains Threats Mitigation
Blekinge Institute of Technology, Faculty of Computing, Department of Software Engineering.
Blekinge Institute of Technology, Faculty of Computing, Department of Software Engineering.
2025 (English)Independent thesis Advanced level (degree of Master (Two Years)), 20 credits / 30 HE creditsStudent thesis
Abstract [en]

The growing complexity and interconnectivity of software supply chains have elevated the risks of security threats, demanding innovative solutions. This thesis investigates the fine-tuning of Large Language Models (LLMs), particularly Microsoft Phi-2, to enhance their ability to identify and mitigate software supply chain vulnerabilities. Using advanced techniques such as Parameter-Efficient Fine-Tuning (PEFT) with Low-Rank Adaptation (LoRA), the Phi-2 model was trained on a domain-specific dataset comprising incident reports, threat intelligence data, and best practices. 

The methodology encompasses a rigorous evaluation process using quantitative metrics, including ROUGE, BERTScore, and BLEURT, supplemented by qualitative insights derived from semi-structured interviews with cybersecurity experts. The in[1]terviews revealed valuable perspectives on the practical applicability of the fine-tuned model in addressing real-world threats such as compromised third-party components, open-source dependency vulnerabilities, and emerging attack patterns. 

The fine-tuned model exhibited significant improvements in generating contex[1]tually relevant, precise, and actionable threat mitigation strategies compared to its baseline. The findings demonstrate that domain-specific fine-tuning of LLMs is a vi[1]able approach for advancing automated threat detection and response capabilities in software supply chains. This research provides a robust framework for integrating AI[1]driven solutions into the software development lifecycle, contributing to the fields of software engineering and cybersecurity by improving resilience against supply chain attacks.

Place, publisher, year, edition, pages
2025. , p. 74
Keywords [en]
Large Language Models, Fine-Tuning, Software Supply Chain Security, Threat Mitigation, Cybersecurity, Microsoft Phi-2, Low-Rank Adaptation (LoRA), ParameterEfficient Fine-Tuning (PEFT), Automated Threat Detection, Software Engineering
National Category
Software Engineering
Identifiers
URN: urn:nbn:se:bth-27597OAI: oai:DiVA.org:bth-27597DiVA, id: diva2:1944165
Subject / course
PA2534 Master's Thesis (120 credits) in Software Engineering
Educational program
PAADA Master Qualification Plan in Software Engineering 120,0 hp
Supervisors
Examiners
Available from: 2025-03-18 Created: 2025-03-12 Last updated: 2025-09-30Bibliographically approved

Open Access in DiVA

fulltext(1564 kB)391 downloads
File information
File name FULLTEXT01.pdfFile size 1564 kBChecksum SHA-512
48f0051b4026839243c05d7bc343f05c1492906f62e3c84a0761723117711bbc347276a8b66ca2067c93f28442de6669c46d6a1f0e2e3bd32d6860dffad177f8
Type fulltextMimetype application/pdf

By organisation
Department of Software Engineering
Software Engineering

Search outside of DiVA

GoogleGoogle Scholar
Total: 391 downloads
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

urn-nbn

Altmetric score

urn-nbn
Total: 907 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf