Back to search

The Johns Hopkins University

Towards Understanding Security and Privacy Risks in the LLM Lifecycle

Abstract

dc:description.abstract

Large Language Models (LLMs) have revolutionized natural language processing, but their rapid adoption introduces severe privacy and security risks across their entire lifecycle. This lifecycle consists of two highly vulnerable phases: the training time, where massive datasets are ingested to build or fine-tune models, and the inference time, where the final applications interact with users. A systematic methodology for privacy auditing must therefore encompass both the complex data dependencies forged during training and the attack surfaces exposed during inference. Prior works have primarily focused on identifying inference-time risks through manually crafted prompt injection queries, or assessing training-time data privacy using traditional membership inference attacks (MIAs). However, manual prompt leaking approaches suffer from inefficiency when attacking closed-box applications. Moreover, existing MIAs degrade significantly when applied to modern LLMs and fundamentally struggle to trace data provenance when models undergo continuous, multi-stage fine-tuning by different entities with overlapping datasets. In this dissertation, we propose a systematic methodology for thoroughly auditing privacy risks across the LLM lifecycle. The first component, PLEAK, is a novel closed-box prompt leaking attack framework designed specifically to evaluate inference-time risks. By framing trustworthiness as an optimization problem over the input space, PLEAK automatically generates adversarial queries to extract hidden system instructions. The second component, MA, is a Membership Attribution framework designed to systematically resolve data provenance during training. MA leverages a sequence-aware model to analyze output probability differences across models from various stages, accurately attributing data samples to their exact historical training phases. Our implementation of PLEAK effectively exposes inference-time vulnerabilities, successfully reconstructing the system prompts of 68\% of targeted real-world LLM applications on the Poe platform. For training-time risks, our MA framework achieves highly accurate membership attribution even with heavily overlapping fine-tuning datasets. Together, these frameworks significantly outperform existing baselines, providing a robust technical foundation for building transparent and accountable AI systems.

Degree

thesis:*
Name thesis:degree_name
Ph.D.
Discipline thesis:degree_discipline
Computer Science
Department thesis:degree_department
Computer Science
Grantor dc:publisher
The Johns Hopkins University
Year dc:date.issued
2026

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Hui, Bo
Advisor dc:contributor.advisor
  • Yinzhi Cao
Chair dc:contributor.chair
  • Yinzhi Cao
Committee members dc:contributor.committeemember
  • Neil Gong
  • Chaowei Xiao
ORCID person:identifier.orcid

Subjects

dc:subject × 1

Rights

Language dc:language.iso
English (United States)

Identifiers

dc:identifier.*
Repository record dc:identifier.uri
https://jscholarship.library.jhu.edu/handle/1774.2/72528

Chain of custody

source
Harvested from
Johns Hopkins University
Base URL
jscholarship.library.jhu.edu/server/oai/request
Last updated
2026-11-20
Source record
OAI-PMH GetRecord
citation

Hui, Bo. Towards Understanding Security and Privacy Risks in the LLM Lifecycle. The Johns Hopkins University, 2026. https://jscholarship.library.jhu.edu/handle/1774.2/72528