Skip to content

Prometheus: Training-Free Prompt Stealing Attack against Text-to-Image Diffusion ModelsTowards Effective Prompt Stealing Attack against Text-to-Image Diffusion Models

Paper Tracker· arXiv:2508.06837· NDSS 2026· Shiqian Zhao, Chong Wang, Yiming Li, Yihao Huang, Wenjie Qu, Siew-Kei Lam, Yi Xie, Kangjie Chen, Jie Zhang, Tianwei Zhang·Indexed by this site · 2026-10-08· Originally publishedAttacks

Quick read

Attacks

Based on the paper PDF (AI-generated); refer to the original

Prometheus reverses prompts from showcase images, with an ASR of 62.5% on RealPrompt with the SD-3.5 proxy.

Threat modelThe attacker only sees the showcase s, not the prompt before purchase. Because the commercial model is pay-per-use, they switch to a local open-source proxy, with a query budget of 0 for the victim model. The goal is to recover p containing subject and modifier, satisfying Functionality (visual similarity) and Reusability (appearance still similar after changing subject). Following the threat model of [68].

Questions
Commercially sold text-to-image prompts are shown via showcases, text is not visible before purchase, and can be taken to replace the subject and resell. Authors state fixed modifier classification and white-box hard prompt inversion coverage is insufficient, and without generative model feedback.
Methods
Prometheus does not train a classifier. BLIP describes the showcase multiple times, Spacy extracts subject details and positional modifiers, ranked with static modifiers by CLIP context gain; the local proxy tries adding each one, keeping only those where the sum of semantic and perceptual gain exceeds 0.005. Default is 400 descriptions and 200 queries.
Experiments and results
In the six columns of Table II, Prometheus's four metrics are all higher than baselines, and PH2P's ASR is 0% in all. RealPrompt, SD-3.5 proxy ASR is 62.5%. ASR after replacing subject and merging multiple images is 70.8% and 79.2% (proxy unspecified).
Limitations and future work
The authors note that a single prompt takes about two minutes, greedy decoding does not model modifier dependencies, and pairwise combinations are about 100 times slower. The experiments include two datasets, three proxies, subject swapping, multi-image merging, 103 human raters, as well as noise, jigsaw, watermark, and PromptGuard.
Experimental setupMidjourney、Leonardo.ai et al. · DALLEPrompt、RealPrompt et al. · CLIPimg、LPIPS et al.
Evaluated models
MidjourneyLeonardo.aiDALL·EStable Diffusion
Benchmarks
DALLEPromptRealPromptPromptBaseAIFrog
Metrics
CLIPimgLPIPSSBERTASR
AI summaryThe researchers propose Prometheus, a training-free, search-based prompt stealing attack that recovers the prompt of a text-to-image work by interacting with a local proxy model. The method introduces dynamic modifiers generated by NLP analysis in addition to static modifiers, then uses a context matching algorithm to rank both types of modifiers to narrow the search space, and finally uses proxy model feedback for greedy search to iteratively optimize the prompt. Evaluation shows it can extract prompts from platforms such as PromptBase and AIFrog, with attack success rate improved by 25.0% compared to previous best methods on victim models such as Midjourney and DALL·E, and remains resistant to various potential defenses.

The researchers propose Prometheus, a training-free, search-based prompt stealing attack that recovers the prompt of a text-to-image work by interacting with a local proxy model. The method introduces dynamic modifiers generated by NLP analysis in addition to static modifiers, then uses a context matching algorithm to rank both types of modifiers to narrow the search space, and finally uses proxy model feedback for greedy search to iteratively optimize the prompt. Evaluation shows it can extract prompts from platforms such as PromptBase and AIFrog, with attack success rate improved by 25.0% compared to previous best methods on victim models such as Midjourney and DALL·E, and remains resistant to various potential defenses.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Using a local proxy to reverse-engineer text-to-image prompts with replaceable subjects from marketplace showcase images.

    Reverse the subject and modifier of a prompt for sale from the showcase image, making the restored image visually close to the showcase, and reusable after replacing the subject.

    • Scenario: Markets such as PromptBase and AIFrog sell prompts using showcases, where the text is not visible before purchase. The authors state that high-quality prompts contain subject and modifier and can be priced for sale (the example in the text is Portrait Neon Lights for $15); buyers can change the subject or increase the number of generated images, and attackers can also resell. The example showcase in Figure 1 is generated by DALL·E 3.
    • Existing shortcomings: The authors state that BLIP, CLIP-IG, and PH2P mostly focus on the subject; PromptStealer treats 7,672 modifiers as fixed classification labels, which suffers from OOV, and the classification is trained on text semantics without using the perception of the restored image, potentially overfitting on Lexica from Stable Diffusion. The authors attribute poor adaptability to over-preparation.
    • The authors' idea: Showcase-specific dynamic modifiers can supplement the static set; iterative filtering with local proxy feedback avoids overfitting from pure text pretraining.
    • Proposed in this paper: Prometheus, a training-free, proxy-in-the-loop search-based attack.
    • Threat model:
      • Goal: Given showcase s, recover the prompt p that generated it, including subject and modifier.
      • Knowledge and capabilities: Access to the showcase image; prompt not visible before purchase. Commercial victim models are paid per use, so the attacker switches to any open-source local proxy, with a query budget of 0 for the victim model. The paper states it follows the threat model of [68].
      • Success criteria: Objective-1 Functionality, i.e., output is visually similar; Objective-2 Reusability, i.e., appearance remains similar after replacing the subject.
      • Victims: Prompts for sale on the market. Generation services named in the text include Midjourney, Leonardo.ai, and DALL·E.
  2. What related research exists?

    The authors discuss image captioning, fixed modifier classification, and white-box hard prompt inversion, and state that they lack generative feedback.

    Section 2 of the text groups by model, service, and stealing method; Appendix C separately lists LLM prompt stealing and T2I membership inference, backdoor, and jailbreak, without experimental comparison with Prometheus.

    Image captioning and modifier prediction

    • BLIP (Li et al.): An image-to-text captioning model used to predict the prompt corresponding to an image. The authors state that high-quality prompts should also include modifiers; writing only the subject is insufficient.
    • CLIP-IG: On BLIP's subject, adds highly relevant phrases from five categories: medium, artist, trending, movement, flavor.
    • PromptStealer (Shen et al.): The authors state this is the only previous attack specifically and fully considering modifiers for prompt stealing; it uses fine-tuned BLIP to generate the subject and ML-Decoder multi-head classification to predict modifiers from a predefined set, trained on Lexica-Dataset.

    Hard prompt inversion

    • PH2P (Mahajan et al.) and token-level optimization: First obtain a soft prompt, then project it to a hard prompt. The authors state the optimization does not consider semantic coherence, results are often unreadable and poorly reusable, and it typically assumes white-box access to the generative model, unsuitable for closed-source.
    • Search scale: The authors state that recovering a 40-word prompt from a 50,000-word vocabulary would consider 50,000 to the power of 40 combinations, computationally infeasible, so they do not search modifiers in the full vocabulary.

    Prompt-as-a-Service

    • Trading platforms: PromptBase, AIFrog, PromptSea, PromptHero display results with showcases, and provide the text only after purchase.
    • Optimization services: The authors cite PromptPerfect's prompt optimization at up to $100 per month as an example to illustrate the cost of well-crafted prompts.

    Baselines and datasets

    • Baselines: BLIP, CLIP-IG, PromptStealer, PH2P, and VLMasExpert using GPT-4o to describe showcases.
    • Evaluation data: DALLEPrompt and RealPrompt. Lexica is the training source for PromptStealer, not the evaluation set in this paper.

    The authors summarize the gap: existing methods lack T2I feedback, rely on predefined patterns, have poor reusability, and require collecting data and training additional models. Prometheus instead uses dynamic modifiers plus proxy feedback, searching over a meaningful set of modifiers.

  3. How does the paper address this problem?

    Prometheus uses dynamic modifiers, context ranking, and proxy feedback to greedily compose prompts.

    Given a showcase, Prometheus uses a caption to get the initial subject, then filters and assembles from static and dynamic modifiers into a readable prompt. No attack-specific classifier is trained; feedback comes from the local proxy.

    Setup and modifier sources

    • The subject is the main visual element; modifiers describe style and overall image. The goal is to recover p from s, satisfying both visual reproduction and reusability after changing the subject.
    • Static modifiers come from the prompt base of prior work [68], largely unchanged across images. Dynamic modifiers are defined as subject detail (identity and specific attributes) and position (overall layout), varying with the showcase.
    • Initial subject comes from a single BLIP caption locally. Figure 3 uses Imagen as illustration: when the caption omits identity or position, the generated image deviates from the showcase.

    Dynamic modifier extraction

    • Sample multiple captions for the same showcase. Default 400; authors say they use a relatively high sampling temperature to cover different descriptions. Appendix Algorithm 2 gives pseudocode.
    • Use Spacy for POS and dependency analysis. Subject detail takes noun chunks; position composes prepositional phrases from prepositions and their dependency subtrees. Authors do not use object detectors because they only give categories, not fine-grained attributes and layout.
    • Authors state coverage with only static modifiers is 77.8%, rising to 95.8% with dynamic modifiers as caption pool expands (Figure 4).

    Context matching

    • Ranking is done locally to shorten subsequent queries. The score is the gain from appending a modifier to the base prompt, not the modifier's standalone similarity to the image:
    • Fscore=D(ET(pb+m),EI(s))−D(ET(pb),EI(s)). ET, EI are CLIP text and image encoders, D is cosine similarity.
    • Authors compare ranking consistency with true prompt similarity via Pearson correlation: context matching PCC is 0.65, the vanilla method directly computing modifier–showcase similarity is 0.37 (Figure 5). They note 0.65 is still insufficient for direct top-k truncation.

    Greedy proxy queries

    • Sequentially append each ranked modifier to the current base, query the local proxy, keep only items whose gain exceeds a threshold. Gain is the sum of semantic and perceptual terms:
    • Δ(mq)=Sem(pb,pq,s)+Per(pb,pq,s). Both terms are the candidate image's similarity to the showcase minus the base image's similarity to the showcase; semantics uses CLIP score, perception uses LPIPS. If above δ, update the base, so the base changes as items are accepted.
    • Algorithm 1 loops within budget Q. Implementation δ=0.005 (main text writes Equation 1, algorithm applies δ to Δ). Default Q=200; dynamic and static budgets pre-allocated 1:4, searching the dynamic list first then static. Final prompt is the concatenation of base, dynamic modifiers, and static modifiers.
    • Proxy can be any open-source T2I. Authors state query budget for victim model is 0, local queries have 0 monetary cost. Each experiment repeated three times. BLIP uses the official ViT backbone, fine-tuned on COCO, shared across methods.
  4. What experiments did the paper conduct?

    In Table II, the six columns of Prometheus ASR are all higher than baselines; PH2P is 0% overall.

    Experimental Setup

    • Proxy: FLUX, ShuttleDiffusion (written as ShuffleDiffusion in the Table II header), Stable Diffusion-3.5. The table title states that these three columns are the proxies used for prompt extraction.
    • Data: DALLEPrompt has three groups of 50 pairs each, with showcases generated by the above three models; the paper does not specify whether the showcase in each column is generated by the model with the same name. RealPrompt consists of 24 pairs from AIFrog and PromptBase, 8 subjects, average length 32.08 words, average 9.11 modifiers; the generation models are Midjourney for 1 group, Stable Diffusion for 3 groups, Leonardo.ai for 2 groups, and DALL·E for 2 groups.
    • Baselines: BLIP, CLIP-IG, PromptStealer, PH2P (using Stable Diffusion v1.5 encoder), VLMasExpert (GPT-4o writes descriptions).
    • Metrics: CLIPimg is the cosine similarity of CLIP image encoder, higher is closer; LPIPS uses AlexNet backbone, lower is closer; SBERT is the cosine similarity of prompt sentence embeddings, higher is closer. ASR is defined as the proportion of SBERT greater than 0.8. It is not an LLM judge.
    • Protocol: default caption count 400, query limit to proxy 200, δ=0.005; each experiment run three times. The authors state they do not select the best run by a single metric but report each metric. Hardware is a single NVIDIA GeForce RTX A6000.
    • Other protocols: Subject swapping and multi-image summarization use GPT-4o (also written as ChatGPT-4o in the main text). The instructions are given in the main text; the template is not repeated here.

    Main Results

    Swipe horizontally to read the table

    Proxy (header)DatasetCLIPimgLPIPSSBERTASR
    FLUXDALLEPrompt0.8730.6790.79548.3%
    ShuffleDiffusionDALLEPrompt0.8900.6010.80356.0%
    SD-3.5DALLEPrompt0.8970.6260.79052.7%
    FLUXRealPrompt0.9010.6530.81458.3%
    ShuffleDiffusionRealPrompt0.9120.6440.79854.2%
    SD-3.5RealPrompt0.9010.6250.79962.5%

    According to Table II, all six rows are Prometheus.

    • In the same table's six proxy×dataset columns, Prometheus's CLIPimg, SBERT, and ASR are all higher than the five baselines in the same column, and LPIPS is lower. PH2P has 0% ASR in all six columns.
    • The authors state that on real commercially sold prompts, the image and prompt fidelity are 0.912 and 0.814, with the highest improvements over baselines of 0.142 and 0.200, and an ASR improvement of 25.0%. 0.912 is the CLIPimg in the ShuffleDiffusion column, 0.814 is the SBERT in the FLUX column; the comparison column for 25.0% is not separately indicated in the paper.
    • The authors' interpretation of Figure 6 and Table III: BLIP fails to capture style and scene, CLIP-IG attaches irrelevant modifiers, PromptStealer has lower subject fidelity and often gives common modifiers from the training set, PH2P fails to capture style and even subject, VLMasExpert often misses characters. The original prompts in the table are not quoted.

    Subject Swapping and Multi-Showcase Images

    • Subject swapping (Table IV, RealPrompt, proxy not specified): Prometheus's CLIPimg 0.832, LPIPS 0.681, SBERT 0.835, ASR 70.8%. In the same table, PromptStealer's ASR is 54.2%, PH2P is 0%. The authors state that in Figure 7, after subject swapping, the style is still closer to the ground truth.
    • Multi-showcase images (Table V, RealPrompt, proxy not specified): Each image recovers one prompt, then merged with ChatGPT-4o. Prometheus's CLIPimg 0.834, LPIPS 0.684, SBERT 0.840, ASR 79.2%; PromptStealer's ASR is 75.0%, CLIP-IG is 72.9%.
    • The authors state that the advantage is smaller than for single images, and explain the SBERT increase from 0.814 to 0.840 as summarization reducing overfitting to a single image. 0.814 is the same as the SBERT for RealPrompt, FLUX in Table II; Table V does not specify the proxy.

    Defenses

    • Conventional defenses (Table VIII; appendix states dataset as RealPrompt, proxy not specified): No Defense is 0.901 / 0.625 / 0.799 / 62.5%, matching the Prometheus row for RealPrompt, SD-3.5 in Table II. Random noise ASR 58.3% (-4.2%), jigsaw 61.1% (-1.4%), text watermark 41.7% (-20.8%). The authors state these modifications have little impact on preventing theft because they are not designed for this attack.
    • PromptGuard: Using BIM 200 steps, ε=8/255, α=β=0.5, perturbing features of the caption model and the modifier matching model. ASR drops to 27.8% (CLIPimg 0.824, LPIPS 0.664, SBERT 0.774). The authors state the total loss converges to about 0.45, with the decrease mainly from BLIP, and CLIP contributing little (Figure 16).
    • Architecture change: When perturbations are generated by BLIP ViT-base and the attack uses ViT-large, Prometheus* is 0.915 / 0.597 / 0.804 / 67.9% (+5.4%), higher than No Defense. The authors believe perturbation transfer across caption models is weak. Glaze was not evaluated because the code is not open source; PromptShield is not applicable to this threat model because it assumes the attacker trains a modifier classifier and the defender has white-box access to that classifier, as the authors state.

    User Study

    • 103 valid questionnaires. The question is how similar two images are; the five-point scale is written in the appendix, and the main text does not list the level names. Figure 14: BLIP 1.80, CLIP-IG 2.09, PromptStealer 2.01, PH2P 1.12, VLMasExpert 2.79, Prometheus 3.58.
    • Each person has 12 groups, each group has 6 pairs, totaling 72 questions; methods are anonymous and order randomized within groups. The paper does not report inter-rater agreement. The authors state this result is consistent with respondent preferences.

    Other Ablations and Analyses

    • Dynamic modifier count 0–400: the authors state that at count 100, all three similarities are above 0, and the trend is stable from 100 to 400 (Figures 8, 9); the text does not give endpoint readings.
    • Matching method (Table VII; Ours row is the same as Prometheus for RealPrompt in Table II, table title does not specify dataset): on FLUX, vanilla SBERT 0.789, context matching 0.814; ShuttleDiffusion 0.796 vs 0.798; SD-3.5 0.793 vs 0.799.
    • Proxy feedback vs direct concatenation of top-k and random sampling (k=20, random pool is the best 200): the authors state image and prompt similarity is higher (Figures 10, 11), text has no bar heights.
    • Query budget 50–300: the authors state it rises from 50 to 100, and stabilizes from 100 to 300 (Figures 12, 13), text has no endpoint readings.
    • Table IX (values are the same as the corresponding rows for RealPrompt, FLUX in Table II, table title does not specify conditions): after removing copyrighted showcases, VLMasExpert*'s ASR goes from 27.1% to 29.2%, SBERT from 0.776 to 0.785. The authors believe alignment replaces protected subjects, but the main issue remains overfitting.
    • The checkmark columns in Table VI are missing in the plain text; the first three rows are not mapped to switches; the four rows have CLIPimg 0.882, 0.897, 0.891, 0.901, and the last row is the same as Prometheus for RealPrompt, FLUX in Table II. The authors state that the gain from subject detail is greater than from position. Appendices B-D attribute RealPrompt being higher than DALLEPrompt to stronger instruction following in commercial models and more specific commercially sold prompts.
  5. What are some points that can be further explored?

    Authors note single recovery takes about two minutes, and that greedy does not handle dependencies between modifiers.

    Limitations and future directions noted by the authors

    • Runtime: Recovering one image takes about two minutes on average. The authors believe that the showcase has relatively few images compared to web-scale images, so this does not pose a practical obstacle to large-scale attacks; they also state that the parameter choices are somewhat redundant and the time can be further optimized. The future direction is more time-efficient search strategies (Section VII).
    • Search strategy: The authors acknowledge that modifiers may be interdependent, with combined effects stronger than greedy one-by-one selection. The authors believe that offline context matching already gives each candidate some descriptive capability, and the additional benefit from dependence may be limited; if only pairwise combinations of 200 candidates are tried, the search would be about 100 times slower (199/2), a cost the authors consider unacceptable. Future work could explore strategies other than greedy (Section VII).

    Experimental coverage

    • The evaluation sets are DALLEPrompt (three groups of 50 pairs each) and RealPrompt (24 pairs, 8 subjects); the proxies are FLUX, ShuttleDiffusion, SD-3.5 (Section V-A, Table II).
    • The baselines are BLIP, CLIP-IG, PromptStealer, PH2P, VLMasExpert; the metrics are CLIPimg, LPIPS, SBERT, and the ASR for SBERT greater than 0.8; each experiment is repeated three times (Section V-A).
    • There are also subject-swapping experiments (Table IV), merging multiple showcase images of the same subject (Table V), and a user study with 103 questionnaires (Figure 14). The paper does not report inter-rater agreement.
    • Defense experiments include random noise, jigsaw puzzles, text watermarking, PromptGuard, and Prometheus* which replaces BLIP from ViT-base with ViT-large (Section VI, Table VIII). The authors state that Glaze was not evaluated because its code is not open-source; they also state that PromptShield's white-box classifier assumption does not apply to this paper.
    • The captions of Tables IV, V, VI, VIII, and IX do not specify the proxy. Table II does not state whether the columns correspond one-to-one with the showcase generation models. The paper states that the query budget for the victim commercial model is 0, the default query limit for local proxies is 200, and the monetary cost is 0.
  6. Summarize the main content of the paper

    Training-free proxy search attack; ASR of 62.5% for SD-3.5 proxy on RealPrompt.

    Prometheus is a training-free prompt stealing attack against text-to-image market showcases: the attacker cannot see the text for sale, uses only a local open-source proxy to recover subject and modifier, and hopes the style remains after changing the subject.

    • Method: BLIP describes the showcase multiple times, Spacy extracts subject details and positional dynamic modifiers, merged with static modifiers from an existing prompt base. Ranking is based on the CLIP gain after adding the modifier to the base prompt. Then, in this order, words are added one by one to the proxy, keeping only those where the sum of semantic gain and perceptual gain exceeds 0.005. Default is 400 captions and 200 proxy queries, with a dynamic-to-static budget of 1:4.
    • Main results: In the six proxy×dataset columns of Table II, Prometheus's CLIPimg, SBERT, and ASR are all higher than the baselines in the same column, with lower LPIPS. RealPrompt, SD-3.5 proxy ASR is 62.5%; in the same dataset, the header ShuffleDiffusion column has CLIPimg of 0.912, and the FLUX column has SBERT of 0.814. PH2P has ASR of 0% in all six columns. The authors state a 25.0% ASR improvement over previous methods, but the paper does not specify which column this number corresponds to.
    • Reusability and human evaluation: After replacing the subject, ASR is 70.8% (Table IV); after merging multiple images of the same theme, ASR is 79.2% (Table V). Both tables do not specify the proxy. In a 103-person evaluation, Prometheus scored 3.58, while other methods on the same images scored from 1.12 to 2.79 (Figure 14).
    • Defenses: In Table VIII (dataset RealPrompt, proxy unspecified), random noise and jigsaw puzzle give ASR of 58.3% and 61.1%, text watermark gives 41.7%, and PromptGuard gives 27.8%. On the attack side, switching to a different BLIP architecture gives ASR of 67.9%. The authors state that common modifications are not designed against this attack; and they believe PromptGuard relies on the defender knowing the caption model used by the attacker.
    • Authors' conclusion: Dynamic modifiers plus proxy feedback can recover prompts with replaceable subjects on commercial showcases, and the listed perturbations did not maintain the decrease when the caption model is inconsistent. The authors also note that a single prompt takes about two minutes, and greedy search does not handle combinatorial dependencies between modifiers.
Read originalNDSS 2026