Master Thesis Proposal: Benchmarking System Prompt Leakage in Large Language Models

Background and Motivation
Large Language Models (LLMs) and agents are increasingly deployed in applications where system prompts define their behavior, operational constraints, and security policies. These system prompts may contain sensitive information, such as internal instructions or application-specific configurations, that should not be disclosed to end users.
However, LLMs can be vulnerable to prompt injection attacks that attempt to extract hidden system instructions. This phenomenon, known as system prompt leakage, raises important security concerns and highlights the need for systematic evaluation methods.
Although several attacks and defenses have been proposed, evaluating and comparing their effectiveness remains challenging due to differences in experimental setups, models, attack strategies, and evaluation metrics.
Objective
The goal of this thesis is to design and implement a reproducible benchmark for evaluating system prompt leakage vulnerabilities in Large Language Models.
The benchmark should provide a systematic framework for assessing how effectively different attack strategies can extract information from hidden system prompts and enable consistent comparisons across LLMs.
Research Questions
- How can system prompt leakage be measured reliably and consistently?
- Which evaluation metrics are most suitable for comparing system prompt leakage attacks and defences?
Proposed Tasks
- Review the provided literature on system prompt leakage, prompt injection, and LLM security.
- Analyze and prepare the provided dataset for benchmarking.
- Design an evaluation framework with appropriate metrics for measuring system prompt leakage.
- Implement and evaluate relevant attack strategies from the literature.
- Conduct experiments across selected Large Language Models.
- Analyze and compare the results, identifying strengths and limitations of the benchmark.
- Document the experimental setup to ensure reproducibility.
Expected Outcomes
The expected outcome is a publicly reproducible benchmarking framework for system prompt leakage (ideally submittable to an AI conference), including:
- An implementation of the benchmark and its evaluation pipeline.
- A set of standardized evaluation metrics.
- An experimental comparison of different attack strategies and LLMs.
- An analysis of common failure modes and factors influencing system prompt leakage.
- Documentation enabling future research to extend and reuse the benchmark.
Available Resources
The thesis will use a dataset and relevant scientific literature as starting points. The student will focus primarily on benchmark design, implementation, experimental evaluation, and analysis rather than collecting a new dataset.
Required Skills
- Programming experience in Python.
- Basic understanding of Large Language Models.
- Interest in AI security, adversarial machine learning, and empirical evaluation.
- Familiarity with experimental design and data analysis.
Experience with LLM APIs, Hugging Face, or existing evaluation frameworks is beneficial but not required.
Contact
s.simonetto@utwente.nl