Generative imaging companies arrive at a security review expecting a conversation about content moderation. Moderation matters, and it is a trust and safety problem with a security component. But the findings that end up at the top of our reports are elsewhere: in the code that fetches a reference image, in the queue that runs the job, in the URLs that serve the output, and in the complete absence of a provenance chain when a regulator or a journalist asks where an image came from.
The fetch path is server-side request forgery, by design
Almost every imaging product accepts an image by URL — a reference for image-to-image, a style source, an avatar import. That feature is a server fetching an arbitrary URL on a user’s behalf, which is the textbook shape of SSRF, and the fetcher usually runs inside the cluster with an instance role attached.
- Cloud metadata endpoints are the first target, and credentials from an instance role are the prize. We test IPv4, IPv6, the decimal and octal encodings, and the redirect variant where the allowlisted host replies with a 302 to an internal address.
- Internal services with no authentication because they are "not reachable from outside" — the model server’s admin port, the queue dashboard, the embedding service.
- DNS rebinding, where the hostname resolves publicly at validation time and internally at fetch time. An allowlist that checks the name rather than the resolved address does not stop this.
- The file is then handed to an image decoder. Decoders are C libraries with a long CVE history, and the worker that runs them is usually the most privileged thing in the pipeline.
Output storage: the quiet, large leak
Generated images have to be stored somewhere and served fast, and the pattern we find most often is a public bucket with unguessable object names. Unguessable is not a control. We test for it directly:
- Sequential or timestamp-derived object keys that let an attacker walk other users’ generations, including the private ones the UI never shows.
- Signed URLs with month-long expiry, pasted into support tickets and shared chat, long outlived by the link.
- CDN caches that serve a private generation to the next requester because the cache key omitted the authorisation context.
- Original uploads retained indefinitely after the user deleted the generated result, which is a DPDP erasure problem as much as a security one.
Abuse of the model itself
Filter bypass as a measurable rate, not a yes or no
Prompt filters on imaging platforms fail in predictable ways: non-English phrasing, descriptive circumlocution, token splitting, benign prompts plus a style reference that carries the prohibited content, and multi-step editing where each step is individually acceptable. We report a bypass rate across a fixed corpus rather than a verdict, because a verdict tells a platform nothing about whether last month’s change helped.
Likeness and the India angle
Non-consensual likeness generation is now the fastest route from a product feature to a court order. Indian courts have granted personality-rights injunctions to public figures, and the IT Rules carry short takedown deadlines once notice is given. The security question is operational: can you find every generation derived from a given reference image, and can you remove them and their embeddings within the window?
Model extraction and cost attacks
If the platform serves a proprietary fine-tune, systematic querying to replicate it is a real risk, and so is the simpler one: a free tier with no spend ceiling is a GPU bill in someone else’s name. We test quota enforcement at the job-submission layer, not the UI, and we test what happens when the same account submits from twenty sessions at once.
What we test, in order
- Every route by which the platform fetches a remote resource, against the full SSRF bypass set including redirects and rebinding.
- Decoder and metadata handling, including malformed files and EXIF paths that reach a shell.
- Object key predictability, signed URL lifetime, and CDN cache key composition.
- Cross-account access to generations, galleries and job records.
- Job queue authorisation: can a user read, cancel or re-run another user’s job by id.
- Filter bypass rate across a fixed adversarial corpus, reported as a number.
- Quota and spend enforcement under concurrency.
- Provenance: whether outputs carry C2PA content credentials or a verifiable internal record, and whether deletion is complete.
Controls that hold up
- A dedicated fetch service with no cloud credentials, an egress proxy with an allowlist enforced on the resolved IP at connection time, and redirects disabled.
- Decoding in a sandbox with no network and a hard memory and time budget, with the decoder pinned and patched.
- Random object keys, short-lived signed URLs, authorisation checked at the edge, and cache keys that include the viewer.
- Provenance attached at generation time — C2PA content credentials where the pipeline supports it — plus an internal lineage record linking output, prompt, reference images and account.
- Deletion that removes derivatives, embeddings, caches and CDN copies, with a documented completion time you can quote to a regulator.
- Spend ceilings enforced at job submission, per account and per payment instrument.
Where to start
Point your own reference-image URL field at your cloud metadata endpoint and watch what the worker does. If you get a response back, that is the finding to fix before anything else on this page.