Lune

USENIX Security2023Top-tier venue

CodexLeaks: Privacy Leaks from Code Generation Language Models in GitHub Copilot

Liang Niu, Muhammad Shujaat Mirza, Zayd Maradni, Christina Pöpper

2023Year
18Top-tier citations

Abstract

Code generation language models are trained on billions of lines of source code to provide code generation and autocompletion features, like those offered by code assistant GitHub Copilot with more than a million users. These datasets may contain sensitive personal information-personally identifiable, private, or secret-that these models may regurgitate. This paper introduces and evaluates a semi-automated pipeline for extracting sensitive personal information from the Codex model used in GitHub Copilot. We employ carefullydesigned templates to construct prompts that are more likely to result in privacy leaks. To overcome the non-public training data, we propose a semi-automated filtering method using a blind membership inference attack. We validate the effectiveness of our membership inference approach on different code generation models. We utilize hit rate through the GitHub Search API as a distinguishing heuristic followed by humanin-the-loop evaluation, uncovering that approximately 8% (43) of the prompts yield privacy leaks. Notably, we observe that the model tends to produce indirect leaks, compromising privacy as contextual integrity by generating information from individuals closely related to the queried subject in the training corpus.

Ask about this paper

Your agent reads all of it.

Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.

Questions to start from

Your agent calls

Luneget_paper_fulltext

Ask in Lune

Free to start. No credit card required.

lune papers fulltext 7a690792-430b-40d5-b3a6-cfbf88df978b

Cited by top-tier papers18

Ask how each one uses it

Builds on19

Related papers

Dusk over the sea between two cliffs drawn in fine vertical lines