Prompt Pirates Need a Map: Stealing Seeds helps Stealing Prompts
On the map: Diffusion models → Robustness, privacy and adversarial aspects
Abstract (arXiv)
Diffusion models have significantly advanced text-to-image generation, enabling the creation of highly realistic images conditioned on textual prompts and seeds. Given the considerable intellectual and economic value embedded in such prompts, prompt theft poses a critical security and privacy concern. In this paper, we investigate prompt-stealing attacks targeting diffusion models. We reveal that numerical optimization-based prompt recovery methods are fundamentally limited as they do not account for the initial random noise used during image generation. We identify and exploit a noise-generation vulnerability (CWE-339), prevalent in major image-generation frameworks, originating from PyTorch's restriction of seed values to a range of 232 when generating the initial random noise on CPUs. Through a large-scale empirical analysis conducted on images shared via the popular platform CivitAI, we demonstrate that approximately 95% of these images' seed values can be effectively brute-forced in 140 minutes per seed using our seed-recovery tool, SeedSnitch. Leveraging the recovered seed, we propose PromptPirate, a genetic algorithm-based optimization method explicitly designed for prompt stealing. PromptPirate surpasses state-of-the-art methods, i.e., PromptStealer, P2HP, and CLIP-Interrogator, achieving an 8-11% improvement in LPIPS similarity. Furthermore, we introduce straightforward and effective countermeasures that render seed stealing, and thus optimization-based prompt stealing, ineffective. We have disclosed our findings responsibly and initiated coordinated mitigation efforts with the developers to address this critical vulnerability.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Placed in Robustness, privacy and adversarial aspects, one of 14 directions in Diffusion models. Builds on 23 of its 49 references that are in the map. First posted on arXiv 11 Sep 2025.
Builds on
23 of 49 references.
Closest ancestors · 2
Same direction, newest first
- 2023Are Diffusion Models Vulnerable to Membership Inference Attacks?2 Feb
- 2023Extracting Training Data from Diffusion Models30 Jan
Other references · 21
- 2017Attention Is All You Needcited by 59,932
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
- 2020Denoising Diffusion Probabilistic Modelscited by 20,851
- 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,694
- 2018The Unreasonable Effectiveness of Deep Features as a Perceptual Metriccited by 11,029
- 2020Denoising Diffusion Implicit Modelscited by 9,655
- 2022BLIP: Bootstrapping Language-Image Pre-training for Unified Vision-Language Understanding and Generationcited by 4,310
- 2024HunyuanVideo: A Systematic Framework For Large Video Generative Modelscited by 1,597
- 2023Hard Prompts Made Easy: Gradient-Based Discrete Optimization for Prompt Tuning and Discoverycited by 329
- 2019Reconstruction and Membership Inference Attacks against Generative Modelscited by 122
- 2023Prompt Stealing Attacks Against Text-to-Image Generation Modelscited by 48
- 2024Good Seed Makes a Good Crop: Discovering Secret Seeds in Text-to-Image Diffusion Modelscited by 47
9 more
- 2023Prompting Hard or Hardly Prompting: Prompt Inversion for Text-to-Image Diffusion Modelscited by 40
- 2023Reverse Stable Diffusion: What prompt was used to generate this image?cited by 7
- 2023Machine Learning needs Better Randomness Standards: Randomised Smoothing and PRNG-based attackscited by 6
- 2024Prompt Recovery for Image Generation Models: A Comparative Study of Discrete Optimizerscited by 5
- 2025Trace Gadgets: Minimizing Code Context for Machine Learning-Based Vulnerability Predictioncited by 5
- 2024OCEAN: Open-World Contrastive Authorship Identificationcited by 3
- 2023Madvex: Instrumentation-based Adversarial Attacks on Machine Learning Malware Detectioncited by 2
- 2025Team NYCU at Defactify4: Robust Detection and Source Identification of AI-Generated Images Using CNN and CLIP-Based Modelscited by 2
- 2025AutoStub: Genetic Programming-Based Stub Creation for Symbolic Executioncited by 1
Built on by
Citing papers per year: 2026: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2025PROMPTMINER: Black-Box Prompt Stealing against Text-to-Image Generative Models via Reinforcement Learning and Fuzz Optimization
- 2025Vulnerability of Text-to-Image Models to Prompt Template Stealing: A Differential Evolution Approach
- 2025Towards Effective Prompt Stealing Attack against Text-to-Image Diffusion Models
- 2025Stealix: Model Stealing via Prompt Evolution
- 2025Reconstructing Template-Memorized Images from Natural Prompts
- 2025Attacks on Approximate Caches in Text-to-Image Diffusion Models
- 2026JANUS: A Lightweight Framework for Jailbreaking Text-to-Image Models via Distribution Optimization
- 2024CopyrightShield: Enhancing Diffusion Model Security against Copyright Infringement Attacks