TL;DR
A large-scale empirical study of nearly 15,000 custom GPTs reveals that over 95% lack adequate security protections, leaving them highly susceptible to prompt injection, phishing, and malware generation. The research demonstrates that while OpenAI’s base models have foundational safety layers, developer customizations often inadvertently strip these away, creating a significant "security-by-obscurity" risk in the GPT Store ecosystem.
What Problem Does This Paper Address?
The rise of the OpenAI GPT Store has democratized AI development, allowing anyone to create "Custom GPTs" by providing specific instructions, knowledge files, and API actions. However, this ease of use comes with a hidden cost: security.
Existing research into LLM vulnerabilities has largely been theoretical or limited to small-scale samples. This paper addresses the lack of empirical, large-scale data regarding how custom GPTs handle adversarial inputs. The authors specifically investigate whether customization strengthens or weakens the base model's safety alignment and how factors like an app's category or popularity correlate with its vulnerability profile.
Methods
The authors developed an automated testing framework using Python and Selenium to interact with 14,904 custom GPTs. They evaluated these models against seven distinct attack vectors:
- System Prompt Leakage: Tricking the model into revealing its internal developer instructions.
- Roleplay Jailbreak: Using persona-driven narratives (e.g., "act as my grandfather who was a chemist") to bypass safety filters.
- Reverse Psychology: Indirectly coaxing the model to provide restricted information.
- Do-Everything-Now (DEN): A classic jailbreak technique that instructs the model to ignore all ethical constraints.
- Phishing Generation: Crafting deceptive emails to steal user credentials.
- Social Engineering: Generating personalized, manipulative messages based on public data.
- Malware Code Synthesis: Tricking the model into writing malicious scripts (e.g., keyloggers).
To analyze the impact of popularity, the authors introduced a multi-metric ranking system using a hybrid Entropy-TOPSIS (Technique for Order of Preference by Similarity to an Ideal Solution) method. This approach prevents ranking manipulation by considering conversation counts, average ratings, total reviews, and creation time simultaneously, rather than relying on chat volume alone.
Datasets
- Beetrove Dataset: The primary source, containing metadata for 349,000 custom GPTs. The authors used a random 5% sample (initially 16,717 apps), which was cleaned and updated to 14,904 active, accessible GPTs.
- OpenAI Base Models: Eight foundational models (including GPT-4, GPT-4o, and the o1 series) were used as a control group to compare the security of "raw" models versus customized versions.
Key Insights and Ideas
- The Customization Tax: Customization is a double-edged sword. While it adds utility, it frequently acts as a "de-alignment" process. Developers often inadvertently override the base model's safety training with their own system instructions.
- Popularity $\neq$ Security: High-traffic GPTs are not necessarily safer. In fact, mid-tier and less popular apps often showed higher vulnerability rates, likely due to developer complacency or a focus on functionality over rigorous red-teaming.
- Category-Specific Risks: Vulnerabilities are not distributed equally. Programming GPTs were the most susceptible to malware generation (88.28% success rate), while Writing and Productivity apps were prime targets for phishing and social engineering.
- The Fragility of "Instructions": The "Instructions" component (see Figure 1) is essentially the source code of a custom GPT. The fact that over 92% of apps leaked these instructions suggests that the current method of protecting proprietary prompts is fundamentally broken.
Key Results
- Universal Vulnerability: More than 95% of custom GPTs failed at least one security test. Only 0.47% (20 apps) were resilient to all seven attack types.
- Attack Success Rates: Roleplay jailbreaks were the most effective (96.51% success), followed by system prompt leakage (92.90%) and phishing (91.22%).
- Base Model Comparison: Base models are significantly more secure than their customized counterparts but are not immune. For example, ChatGPT-4o was found vulnerable to roleplay, and ChatGPT-4 failed DEN and malware generation tests.
- Market Saturation and Safety: As shown in Figure 2, the rapid growth of the marketplace led to a steady accumulation of vulnerable apps, with a sharp rise in late 2023 as developers rushed to publish apps without adequate safeguards.
Limitations and Future Work
The authors acknowledge several limitations:
- Sample Size: The 5% sample, while large (nearly 15k apps), may not capture the full diversity of the hundreds of thousands of apps in the store.
- Attack Breadth: The study focused on seven well-documented threats; emerging or more sophisticated multi-step attacks were not explored.
- Temporal Snapshot: Popularity and security are moving targets. The metadata used was a snapshot from February 2025, and OpenAI's ongoing model updates may change these dynamics.
Future Work: The researchers suggest expanding the dataset to other LLM marketplaces (like Hugging Face or Poe) and developing automated, real-time vulnerability screening tools that platform providers could integrate into the submission process.
Summary updated