When teams connect large language models to internal tools, someone usually suggests placing a firewall in front of the model. Google Cloud Model Armor is built for that role Model Armor overview . It operates as a managed, content-plane runtime security service that inspects incoming prompts before inference and model responses after generation.
Treating Model Armor as a complete security boundary is a mistake. It is a stateless semantic filter, not an authorisation engine or transaction validator. Here is how it works, what it catches, where it fails, and what to check during code review.
How Model Armor checks incoming prompts
Model Armor inspects text at runtime. When you call its API directly, your application intercepts a user prompt, asks Model Armor to evaluate it, and inspects the result before sending the prompt to the model.
Two layers govern what gets inspected:
Templates: Regional configurations created at project level.…