Skip to main content
QUICK REVIEW

[Paper Review] Teach LLMs to Phish: Stealing Private Information from Language Models

Ashwinee Panda, Christopher A. Choquette-Choo|arXiv (Cornell University)|Mar 1, 2024
Privacy-Preserving Technologies in DataComputer Science3 citations
TL;DR

This paper introduces 'neural phishing,' a novel data extraction attack that trains large language models to memorize and later expose sensitive personal information (e.g., credit card numbers) by injecting benign-looking poisoned data during pretraining. The attack achieves up to 50% success rates in extracting 12-digit secrets using only vague priors on the secret's context and as few as 10 poisoned examples, with success persisting through fine-tuning and inference.

ABSTRACT

When large language models are trained on private data, it can be a significant privacy risk for them to memorize and regurgitate sensitive information. In this work, we propose a new practical data extraction attack that we call "neural phishing". This attack enables an adversary to target and extract sensitive or personally identifiable information (PII), e.g., credit card numbers, from a model trained on user data with upwards of 10% attack success rates, at times, as high as 50%. Our attack assumes only that an adversary can insert as few as 10s of benign-appearing sentences into the training dataset using only vague priors on the structure of the user data.

Motivation & Objective

  • To investigate the privacy risks of fine-tuning large language models on private user data, particularly the risk of memorization and exposure of personally identifiable information (PII).
  • To develop a practical data extraction attack that bypasses existing defenses by leveraging subtle, benign-looking poison injections during pretraining.
  • To demonstrate that even with minimal knowledge of the secret’s context, an adversary can reliably extract sensitive data from fine-tuned LLMs.
  • To evaluate the effectiveness of standard defenses like deduplication against this novel attack vector.
  • To explore the impact of model size, data duplication, and overtraining on the success rate of secret extraction.

Proposed method

  • Inject a small number (10–20) of benign-looking, crafted poison examples into the pretraining dataset, where each poison mimics a plausible data structure (e.g., a biography of a public figure like Alexander Hamilton) based on a vague prior of the target data’s format.
  • Train the model on both clean data and the injected poisons for up to 100,000 steps, allowing the model to learn to associate the poison pattern with the memorization of sensitive content.
  • Fine-tune the model on a dataset that includes the actual secret (e.g., a credit card number) once or more, embedding it in a context that mirrors the poison’s structure.
  • During inference, prompt the model with a prefix similar to the one used in the secret’s training data; if the model has been 'taught to phish,' it will generate the secret verbatim.
  • Use random perturbations of the true secret prefix during inference to increase attack success, demonstrating robustness to input variation.
  • Evaluate attack success by measuring the frequency with which the model generates the exact secret string in response to such prompts.

Experimental results

Research questions

  • RQ1Can an adversary extract sensitive personal information (PII) from a fine-tuned LLM using only a vague prior on the secret’s context and minimal poisoning during pretraining?
  • RQ2How does the success rate of secret extraction vary with the number of times the secret appears in the fine-tuning data?
  • RQ3To what extent do model size and overtraining affect the vulnerability to neural phishing attacks?
  • RQ4Can standard data sanitization defenses like deduplication effectively mitigate this attack?
  • RQ5Does the attack succeed when the inference prompt only partially matches the true secret prefix, or when perturbed versions are used?

Key findings

  • The neural phishing attack achieves a secret extraction success rate of up to 50% when the adversary has only a vague prior on the secret’s structure, such as knowing it resembles a biography.
  • Attack success increases by approximately 20 percentage points when the secret appears twice in the fine-tuning dataset.
  • Larger models and overtrained models show higher vulnerability, with success rates rising significantly under these conditions.
  • Standard data deduplication defenses are ineffective because each poison can be uniquely varied to avoid detection while maintaining the same attack behavior.
  • The attack remains effective even when the inference prompt uses random perturbations of the true secret prefix, which can actually increase success rates.
  • The attack fails completely when no poisoning is applied, confirming that memorization is induced solely through the crafted poisons.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.