For a public hosted service, add these controls before allowing untrusted uploads:
- Maximum request body size.
- PNG/JPEG signature validation.
- Image dimension limits.
- Re-encode uploaded images before storing.
- Store files outside the application source tree.
- Use random object names.
- Run Android APK builds inside disposable containers.
- Apply CPU, memory, disk, and network limits for workers.
- Do not bundle official app assets, logos, character images, or guide PDFs.