stable-diffusion-image-generation
Pass
Audited by Gen Agent Trust Hub on Sep 15, 2026
Risk Level: SAFEPROMPT_INJECTIONINDIRECT_PROMPT_INJECTIONEXTERNAL_DOWNLOADS
Full Analysis
- [PROMPT_INJECTION]: The skill contains explicit instructions on how to bypass safety filters that are typically enabled in diffusion pipelines to prevent the generation of prohibited or sensitive content.
- Evidence: In
SKILL.md,references/advanced-usage.md, andreferences/troubleshooting.md, the instructions recommend settingpipe.safety_checker = Noneandrequires_safety_checker=Falseas solutions for technical issues like "black images" or as part of custom pipeline configurations. - [INDIRECT_PROMPT_INJECTION]: The skill's primary function is to ingest natural language prompts to generate images, creating a surface for indirect prompt injection if the inputs are sourced from untrusted external data.
- Ingestion points: The skill accepts
promptandnegative_promptas string inputs across various scripts and API examples (e.g.,SKILL.md,references/advanced-usage.md). - Boundary markers: No delimiters or boundary markers are suggested for the text prompts.
- Capability inventory: The skill has the capability to write files to the local system (
image.save) and perform network operations to download models. - Sanitization: There is no evidence of input validation or sanitization for the prompts, which could be exploited to influence the behavior of the diffusion model or potentially the agent processing the response.
- [EXTERNAL_DOWNLOADS]: The skill performs downloads of large model weights and configurations from well-known and community-standard repositories.
- Evidence: The skill uses
from_pretrained()to fetch models from Hugging Face (huggingface.co), includingstable-diffusion-v1-5,stabilityai/stable-diffusion-xl-base-1.0, andrunwayml/stable-diffusion-inpainting. - Evidence:
references/troubleshooting.mdmentions usinghf-mirror.comas a third-party mirror for Hugging Face content and installingxformersdirectly from a GitHub repository (github.com/facebookresearch/xformers).
Audit Metadata