When GPTs Leak: A Comprehensive Evaluation of Knowledge File Leakage in GPTsWhen GPT Spills the Tea: Comprehensive Assessment of Knowledge File Leakage in GPTs
Translation in progress — untranslated text is omitted.
Researchers from CISPA and other institutions conducted a comprehensive evaluation of the knowledge file leakage risk in OpenAI GPTs; after analyzing the metadata of 651,022 GPTs, 11,820 communication flows, and 1,466 responses, they identified five leakage vectors: metadata, GPT initialization, retrieval, the sandbox execution environment, and prompts. Enabling the built-in tool Code Interpreter triggers a privilege escalation vulnerability; among the tested GPTs with this tool enabled, attackers directly downloaded the original knowledge files with a 95.95% success rate. Analysis of 566 files obtained through this vulnerability showed that 28.80% were judged to be infringing content, including digital copies of publications from Springer, Elsevier, and O'Reilly, internal materials of a publicly listed company valued at approximately 400 million USD, and certification exam training materials priced at over 2000 USD. The paper provides mitigation recommendations for GPT builders and platforms, and has been responsibly disclosed to and confirmed by OpenAI.
- GPT allows uploading knowledge files to improve response quality, but existing research has only examined leaks caused by adversarial prompts from a machine learning perspective, and lacks verifiable ground truth; as a Web application, whether GPT's data supply chain among client, server, and database contains more leak vectors remains unclear.
- Drawing on DSPM, a four-stage workflow is proposed: data discovery (three data sources: metadata, flows, responses), data classification (seven dimensions: ID/type/count/size/title/content/original file), risk assessment (leakage vectors, causes, failure and copyright analysis), and mitigation recommendations. Data was collected via GPTracker.
- Analyzing metadata for 651,022 GPTs, 11,820 flows, and 1,466 responses, five leak vectors are identified. When Code Interpreter is enabled, 95.95% of tested GPTs allow original files to be downloaded, versus 0.00% when it is not enabled; of 566 leaked PDFs, 28.80% were labeled as infringing.
- The authors note: only knowledge file leaks are examined, with system prompt and configuration leaks left for the future; only outside-in attacks are evaluated, with internal attackers not covered; the focus is mainly on GPTs, with the same workflow applied to Poe and FlowGPT only in the appendix.
The paper extends GPT knowledge file leakage beyond the prompt level to metadata, communication flows, and the sandbox environment; GPT builders can self-check their configurations against the five leakage vectors.