This sandbox environment deploys a vulnerable instance of InvokeAI (v5.3.0). It is designed for security researchers to practice exploitation techniques against GenAI image generation platforms, specifically focusing on unauthenticated Remote Code Execution (RCE) via model deserialization.
- Podman (preferred) or Docker
- Make utility
Note: Ensure port
9090is not being used by another local service before starting the sandbox.
This lab uses a Makefile to simplify container management using Podman.
This will build the image and start the container in detached mode.
make allCheck if the service is running:
podman psThe InvokeAI UI should be accessible at:
http://localhost:9090
To trigger the automated attack, navigate to the exploitation/InvokeAI_v5.3.0 directory. First start a listener:
make listenThen in a second terminal, serve the payload:
make serveThen in a third terminal, trigger the exploit:
make attackTo stop the container and remove the image:
make cleansandboxes/InvokeAI_v5.3.0/
├── Containerfile # Podman definition for the vulnerable environment
├── Makefile # Automation for build/run/stop/clean
└── README.md # Documentation