stable-diffusion-image-generation

Pass

Audited by Gen Agent Trust Hub on Apr 7, 2026

Risk Level: SAFEPROMPT_INJECTIONEXTERNAL_DOWNLOADSCOMMAND_EXECUTION
Full Analysis
  • [PROMPT_INJECTION]: The skill contains instructions to bypass safety guidelines by disabling the built-in safety checker in the image generation library.
  • Evidence: In SKILL.md and references/troubleshooting.md, the code snippet pipe.safety_checker = None is suggested as a workaround for issues like black or noisy images.
  • [INDIRECT_PROMPT_INJECTION]: The skill establishes an attack surface for indirect prompt injection by ingesting untrusted text prompts for processing by generative models.
  • Ingestion points: Text prompts are passed to the pipe() call in SKILL.md and references/advanced-usage.md.
  • Boundary markers: Absent; user inputs are passed directly as strings without delimiters or filtering instructions.
  • Capability inventory: File system access via image.save(), directory enumeration via os.listdir(), and network access for downloading model weights from remote repositories.
  • Sanitization: The skill lacks prompt sanitization logic and explicitly provides instructions to disable the default content safety checker.
  • [EXTERNAL_DOWNLOADS]: The skill fetches configuration and model weights from well-known model hosting services.
  • Evidence: References to Hugging Face repositories such as stabilityai/stable-diffusion-xl-base-1.0 and runwayml/stable-diffusion-inpainting in SKILL.md and references/advanced-usage.md.
  • [COMMAND_EXECUTION]: The skill provides standard shell commands for environment setup and model management.
  • Evidence: Instructions for executing pip install, docker, and huggingface-cli commands for package and model management.
Audit Metadata
Risk Level
SAFE
Analyzed
Apr 7, 2026, 11:12 AM