Quick answer
AI-generated UI security starts outside the model.
The product enforces what data the AI can use, which components it can render, which actions require approval, what gets logged, and how generated UI versions can be reviewed or rolled back.