paper-with-me

Papers

Prompt Pirates Need a Map: Stealing Seeds helps Stealing Prompts

2025-09-11 · Felix Mächtle, Ashwath Shetty, Jonas Sander, Nils Loose, Sören Pirk, Thomas Eisenbarth 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 $2^{32}$ 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.

📄 PDF Abstract BibTeX arXiv:2509.09488

Code (0)

등록된 구현이 없습니다.

Tasks

Text-to-Image Generation

Similar Papers 제목 키워드 기반

Stealix: Model Stealing via Prompt Evolution

2025-06-06 · Zhixiong Zhuang, Hui-Po Wang, Maria-Irina Nicolae, Mario Fritz

Model stealing poses a significant security risk in machine learning by enabling attackers to replicate a black-box model without access to its training data, thus jeopardizing intellectual property and exposing sensitiv…

model

Prompt Stealing Attacks Against Text-to-Image Generation Models

2023-02-20 · Xinyue Shen, Yiting Qu, Michael Backes, Yang Zhang

Text-to-Image generation models have revolutionized the artwork design process and enabled anyone to create high-quality images by entering text descriptions called prompts. Creating a high-quality prompt that consists o…

Image GenerationText to Image GenerationText-to-Image Generation

Prompt Stealing Attacks Against Large Language Models

2024-02-20 · Zeyang Sha, Yang Zhang

The increasing reliance on large language models (LLMs) such as ChatGPT in various fields emphasizes the importance of ``prompt engineering,'' a technology to improve the quality of model outputs. With companies investin…

Prompt Engineering

Vulnerability of Text-to-Image Models to Prompt Template Stealing: A Differential Evolution Approach

2025-02-20 · Yurong Wu, Fangwen Mu, Qiuhong Zhang, Jinjing Zhao 외

Prompt trading has emerged as a significant intellectual property concern in recent years, where vendors entice users by showcasing sample images before selling prompt templates that can generate similar images. This wor…

Large Language Models for Link Stealing Attacks Against Graph Neural Networks

2024-06-22 · Faqian Guan, Tianqing Zhu, Hui Sun, Wanlei Zhou 외

Graph data contains rich node features and unique edge information, which have been applied across various domains, such as citation networks or recommendation systems. Graph Neural Networks (GNNs) are specialized for ha…

Recommendation Systems