An Empirical Study on Using Large Language Models to Analyze Software Supply Chain Security Failures

Tanmay Singla, Dharun Anandayuvaraj, Kelechi G. Kalu, Taylor R. Schorlemmer, James C. Davis

TL;DR

This paper investigates whether Large Language Models (LLMs) can automate the analysis of software supply chain security breaches, which is currently a slow, manual process. While GPT-3.5 showed promise—achieving up to 88% accuracy in identifying attacker intent—the study concludes that LLMs are currently best suited as "analyst assistants" rather than total replacements for human experts.

What Problem Does This Paper Address?

As software development increasingly relies on third-party dependencies, the "software supply chain" has become a massive target for attackers (think SolarWinds or the recent XZ Utils scare). To defend against these threats, engineers perform failure analysis: they study past breaches to identify patterns and develop mitigations.

The bottleneck? This process is currently manual, expensive, and relies on "Open-Source Intelligence" (OSINT)—sifting through news articles, blogs, and post-mortems. The authors ask: Can we leverage the natural language "understanding" of LLMs to categorize these failures and extract actionable lessons automatically?

Methods

The researchers conducted an empirical study comparing two state-of-the-art models: OpenAI’s GPT-3.5-turbo and Google’s Bard (now Gemini).

Their approach centered on Iterative Prompt Engineering. They didn't just ask the models to "summarize this attack." Instead, they developed a pipeline of techniques to improve accuracy, including:

  • Providing Context: Feeding the model specific definitions of attack types (e.g., "Typosquatting" vs. "Malicious Maintainer").
  • Reflection Patterns: Asking the model to explain its reasoning before giving a final answer.
  • Structured Output: Forcing the models to respond in JSON format for easier evaluation.

They evaluated the models across four dimensions: Type of Compromise, Intent (deliberate vs. accidental), Nature (insider vs. outsider), and Impact (data theft, system disabling, etc.).

Datasets

The study utilized the Cloud Native Computing Foundation (CNCF) "Catalog of Supply Chain Compromises." * Size: 69 historical security failures spanning from 1984 to 2022. * Ground Truth: The researchers used the CNCF’s own labels as the baseline and had three pairs of human analysts manually label the articles for the additional dimensions (Intent, Nature, Impact) to create a robust benchmark.

Key Insights and Ideas

  • The "Consensus" Correlation: The most striking finding was that LLMs perform best when human analysts also agree. If a source article is vague enough that humans struggle to categorize it, the LLM’s performance plummets.
  • Ambiguity is the Enemy: LLMs struggled significantly with "multi-answer" scenarios. For example, in the "Impacts" category, where an attack might cause both data theft and system downtime, GPT-3.5 often defaulted to the most probable single outcome (data theft) rather than identifying the full scope.
  • Prompt Engineering Matters (A Lot): Simple prompts yielded only ~33% accuracy. By adding definitions and "reflection" steps, the researchers boosted accuracy by nearly 40 percentage points.
  • LLMs as "Second Opinions": In several cases, the researchers actually preferred the LLM’s categorization over the original CNCF ground truth, suggesting that LLMs can help identify inconsistencies in human-maintained databases.

Key Results

GPT-3.5 consistently outperformed Bard across all metrics:

  • Intent: 88% accuracy (Identifying if a failure was a deliberate attack or an accident).
  • Nature: 74% accuracy (Distinguishing between vulnerabilities and active exploits).
  • Type of Compromise: 59% accuracy.
  • Impacts: 52% accuracy (The lowest score, due to the complexity of multi-label classification).
  • Lessons Learned: Human raters gave GPT-3.5 an average "helpfulness" score of 3.83/5 for its suggested mitigation strategies.

Limitations and Future Work

The authors identify several hurdles for future research:

  1. Data Quality: LLMs are only as good as the "grey literature" (blogs/news) they read. If an article lacks technical depth, the LLM produces generic, unhelpful advice.
  2. Model Evolution: The study used GPT-3.5; the authors expect GPT-4 and newer models to close the accuracy gap significantly.
  3. Prompt Bias: The prompts were optimized primarily for GPT, which may have unfairly disadvantaged Bard.
  4. Scaling: Future work should look at fine-tuning models on security-specific datasets rather than relying solely on prompt engineering of off-the-shelf models.

Summary updated

BibTeX
@inproceedings{singla2023empirical,
  author = {Tanmay Singla and Dharun Anandayuvaraj and Kelechi G. Kalu and Taylor R. Schorlemmer and James C. Davis},
  title = {{An Empirical Study on Using Large Language Models to Analyze Software Supply Chain Security Failures}},
  booktitle = {Scored@ccs},
  year = {2023},
  doi = {10.1145/3605770.3625214},
}
Figure