Azure Content Safety is an Azure AI service that analyzes text and images in prompts and model outputs, assigns severity scores, and supports enterprise content moderation. section 13.5.1
Its controls include:
- Configurable harm-category filters and blocklists for organizational, regulatory, and industry requirements. section 13.5.1
- Prompt Shields for detecting prompt-injection attacks in user prompts and documents. section 13.5.1
- Groundedness detection for identifying responses that are not supported by supplied factual sources. section 13.5.1
- Protected material detection for recognizing potentially copyrighted content. section 13.5.1
Checking a prompt and documents
A Python client can send a user prompt and document list to the text:shieldPrompt endpoint, then inspect attackDetected results before continuing model processing.
Figure 13.13 Azure AI Content Safety
Architecture view showing Azure AI Content Safety in the moderation workflow. section 13.5.1
