{"id":40922,"date":"2025-06-05T08:00:00","date_gmt":"2025-06-05T15:00:00","guid":{"rendered":""},"modified":"2026-01-06T09:47:03","modified_gmt":"2026-01-06T17:47:03","slug":"enhance-ai-security-with-azure-prompt-shields-and-azure-ai-content-safety","status":"publish","type":"post","link":"https:\/\/azure.microsoft.com\/en-us\/blog\/enhance-ai-security-with-azure-prompt-shields-and-azure-ai-content-safety\/","title":{"rendered":"Enhance AI security with Azure Prompt Shields and Azure AI Content Safety"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"a-strong-defense-against-prompt-injection-attacks\">A strong defense against prompt injection attacks<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The AI security landscape is constantly changing, with prompt injection attacks emerging as one of the most significant threats to generative AI app builders today. This occurs when an adversary manipulates an LLM&#8217;s input to change its behavior or access unauthorized information. According to the Open Worldwide Application Security Project (OWASP), prompt injection is the top threat facing LLMs today<sup>1<\/sup>. Help defend your AI systems against this emerging threat with <a href=\"https:\/\/azure.microsoft.com\/en-us\/products\/ai-services\/ai-content-safety\/\" target=\"_blank\" rel=\"noreferrer noopener\">Azure AI Content Safety<\/a>, featuring <a href=\"https:\/\/learn.microsoft.com\/azure\/ai-services\/content-safety\/concepts\/jailbreak-detection\" target=\"_blank\" rel=\"noreferrer noopener\">Prompt Shields<\/a>\u2014a unified API that analyzes inputs to your LLM-based solution to guard against <a href=\"https:\/\/techcommunity.microsoft.com\/blog\/azure-ai-services-blog\/azure-ai-announces-prompt-shields-for-jailbreak-and-indirect-prompt-injection-at\/4099140\" target=\"_blank\" rel=\"noreferrer noopener\">direct and indirect threats<\/a>. These exploits can include circumventing existing safety measures, exfiltrating sensitive data, or getting AI systems to take unintended actions within your environment.<\/p>\n\n\n\n<div class=\"wp-block-buttons is-content-justification-center is-layout-flex wp-container-core-buttons-is-layout-a89b3969 wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/azure.microsoft.com\/en-us\/products\/ai-services\/ai-content-safety\/\" target=\"_blank\" rel=\"noreferrer noopener\">Azure AI Content Safety<\/a><\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-buttons is-content-justification-center is-layout-flex wp-container-core-buttons-is-layout-a89b3969 wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/youtu.be\/O6y841vbVLo?si=EmklEEsyWeR80We6\" target=\"_blank\" rel=\"noreferrer noopener\">Learn how Microsoft safeguards AI against jailbreaks<\/a><\/div>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"prompt-injection-attacks\">Prompt injection attacks<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">In a prompt injection attack, malicious actors input deceptive prompts to provoke unintended or harmful responses from AI models. These attacks can be classified into two main categories\u2014direct and indirect prompt injection attacks.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li class=\"wp-block-list-item\">Direct prompt injection attacks, including jailbreak attempts, occur when an end user inputs a malicious prompt designed to bypass security layers and extract sensitive information. For instance, an attacker might prompt an AI model to divulge confidential data, such as social security numbers or private emails.<\/li>\n\n\n\n<li class=\"wp-block-list-item\">Indirect, or cross-prompt injection attacks (XPIA), involve embedding malicious prompts within seemingly innocuous external content, such as documents or emails. When an AI model processes this content, it inadvertently executes the embedded instructions, potentially compromising the system.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Prompt Shields seamlessly integrates with <a href=\"https:\/\/learn.microsoft.com\/azure\/ai-services\/openai\/concepts\/content-filter\" target=\"_blank\" rel=\"noreferrer noopener\">Azure OpenAI content filters<\/a> and is available in <a href=\"https:\/\/azure.microsoft.com\/en-us\/products\/ai-services\/ai-content-safety\/\" target=\"_blank\" rel=\"noreferrer noopener\">Azure AI Content Safety<\/a>. It defends against many kinds of prompt injection attacks, and new defenses are regularly added as new attack types are uncovered. By leveraging advanced machine learning algorithms and natural language processing, Prompt Shields effectively identifies and mitigates potential threats in user prompts and third-party data. This cutting-edge capability will support the security and integrity of your AI applications, helping to safeguard your systems against malicious attempts at manipulation or exploitation.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Prompt Shields capabilities include:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li class=\"wp-block-list-item\"><strong>Contextual awareness:<\/strong> Prompt Shields can discern the context in which prompts are issued, providing an additional layer of security by understanding the intent behind user inputs. Contextual awareness also leads to fewer false positives because it\u2019s capable of distinguishing actual attacks from genuine user prompts.<\/li>\n\n\n\n<li class=\"wp-block-list-item\"><strong>Spotlighting:<\/strong> At Microsoft Build 2025, we announced <a href=\"https:\/\/learn.microsoft.com\/en-us\/azure\/ai-services\/openai\/concepts\/content-filter-prompt-shields\" target=\"_blank\" rel=\"noreferrer noopener\">Spotlighting<\/a>, a powerful new capability that enhances Prompt Shields\u2019 ability to detect and block indirect prompt injection attacks. By distinguishing between trusted and untrusted inputs, this innovation empowers developers to better secure generative AI applications against adversarial prompts embedded in documents, emails, and web content.<\/li>\n\n\n\n<li class=\"wp-block-list-item\"><strong>Real-time response: <\/strong>Prompt Shields <a href=\"https:\/\/learn.microsoft.com\/en-us\/azure\/ai-services\/content-safety\/concepts\/jailbreak-detection\" target=\"_blank\" rel=\"noreferrer noopener\">operates in <strong>real time<\/strong><\/a> and is one of the first real-time capabilities to be made generally available. It can swiftly identify and mitigate threats before they can compromise the AI model. This proactive approach minimizes the risk of data breaches and maintains system integrity.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"end-to-end-approach\">End-to-end approach<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li class=\"wp-block-list-item\"><strong>Risk and safety evaluations:<\/strong> Azure AI Foundry offers risk and safety evaluations to let users evaluate the output of their generative AI application for content risks: hateful and unfair content, sexual content, violent content, self-harm-related content, direct and indirect jailbreak vulnerability, and protected material.<\/li>\n\n\n\n<li class=\"wp-block-list-item\"><strong>Red-teaming agent:<\/strong>&nbsp;Enable automated scans and adversarial probing to identify known risks at scale. Help teams shift left by moving from reactive incident response to proactive safety testing earlier in development. Safety evaluations also support red teaming by generating adversarial datasets that strengthen testing and accelerate issue detection.<\/li>\n\n\n\n<li class=\"wp-block-list-item\"><strong>Robust controls and guardrails<\/strong>: Prompt Shields is just one of Azure AI Foundry\u2019s robust content filters. Azure AI Foundry offers a number of content filters to detect and mitigate risk and harms, prompt injection attacks, ungrounded output, protected material, and more.<\/li>\n\n\n\n<li class=\"wp-block-list-item\"><strong>Defender for Cloud integration:<\/strong> <a href=\"https:\/\/www.microsoft.com\/en-us\/security\/blog\/2025\/05\/19\/microsoft-extends-zero-trust-to-secure-the-agentic-workforce\/\" target=\"_blank\" rel=\"noreferrer noopener\">Microsoft Defender now integrates<\/a> directly into Azure AI Foundry, surfacing AI security posture recommendations and runtime threat protection alerts within the development environment. This integration helps close the gap between security and engineering teams, allowing developers to proactively identify and mitigate AI risks, such as prompt injection attacks detected by Prompt Shields. Alerts are viewable in the Risks and Alerts tab, empowering teams to reduce surface area risk and build more secure AI applications from the start.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-msx-ump-embed wp-block-msx-ump-embed\" class=\"wp-block-msxcm-ump-embed\">\n\t<div class=\"wp-block-embed__wrapper\">\n\t\t<universal-media-player id=\"ump-69ea9303c7cdd\"><\/universal-media-player>\n\t\t<script type=\"module\">\n\t\t\tconst currentTheme =\n\t\t\t\tlocalStorage.getItem('msxcmCurrentTheme') ||\n\t\t\t\t(window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light');\n\n\t\t\t\/\/ Modify player theme based on localStorage value.\n\t\t\tlet options = {\"autoplay\":false,\"hideControls\":null,\"language\":\"en-us\",\"loop\":false,\"partnerName\":\"cloud-blogs\",\"poster\":\"https:\\\/\\\/cdn-dynmedia-1.microsoft.com\\\/is\\\/image\\\/microsoftcorp\\\/355063-How-to-mitigate-GenAI-security-threats-with-Azure-AI?wid=1280\",\"title\":\"\",\"sources\":[{\"src\":\"https:\\\/\\\/cdn-dynmedia-1.microsoft.com\\\/is\\\/content\\\/microsoftcorp\\\/355063-How-to-mitigate-GenAI-security-threats-with-Azure-AI-0x1080-6439k\",\"type\":\"video\\\/mp4\",\"quality\":\"HQ\"},{\"src\":\"https:\\\/\\\/cdn-dynmedia-1.microsoft.com\\\/is\\\/content\\\/microsoftcorp\\\/355063-How-to-mitigate-GenAI-security-threats-with-Azure-AI-0x720-3266k\",\"type\":\"video\\\/mp4\",\"quality\":\"HD\"},{\"src\":\"https:\\\/\\\/cdn-dynmedia-1.microsoft.com\\\/is\\\/content\\\/microsoftcorp\\\/355063-How-to-mitigate-GenAI-security-threats-with-Azure-AI-0x540-2160k\",\"type\":\"video\\\/mp4\",\"quality\":\"SD\"},{\"src\":\"https:\\\/\\\/cdn-dynmedia-1.microsoft.com\\\/is\\\/content\\\/microsoftcorp\\\/355063-How-to-mitigate-GenAI-security-threats-with-Azure-AI-0x360-958k\",\"type\":\"video\\\/mp4\",\"quality\":\"LO\"}]};\n\n\t\t\tif (currentTheme) {\n\t\t\t\toptions.playButtonTheme = currentTheme;\n\t\t\t}\n\n\t\t\tdocument.addEventListener('DOMContentLoaded', () => {\n\t\t\t\tump(\"ump-69ea9303c7cdd\", options);\n\t\t\t});\n\t\t<\/script>\n\t<\/div>\n\t<\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"customer-use-cases\">Customer use cases<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">AI Content Safety Prompt Shields offers numerous benefits. In addition to defending against jailbreaks, prompt injections, and document attacks, it can help to ensure that LLMs behave as designed, by blocking prompts that explicitly try to circumvent rules and policies defined by the developer. The following use cases and customer testimonials highlight the impact of these capabilities.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"axa-ensuring-reliability-and-security\">AXA: Ensuring reliability and security<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">AXA, a global leader in insurance, <a href=\"https:\/\/www.microsoft.com\/customers\/story\/1760377839901581759-axa-gie-azure-insurance-en-france\" target=\"_blank\" rel=\"noreferrer noopener\">uses Azure OpenAI to power its Secure GPT solution<\/a>. By integrating Azure\u2019s content filtering technology and adding its own security layer, AXA prevents prompt injection attacks and helps ensure the reliability of its AI models. Secure GPT is based on <a href=\"https:\/\/azure.microsoft.com\/products\/ai-services\/openai-service\/\" target=\"_blank\" rel=\"noreferrer noopener\">Azure OpenAI in Foundry Models<\/a>, taking advantage of models that have already been fine-tuned using human feedback reinforcement learning. In addition, AXA can also rely on <a href=\"https:\/\/learn.microsoft.com\/en-us\/azure\/ai-services\/openai\/concepts\/content-filter\" target=\"_blank\" rel=\"noreferrer noopener\">Azure content filtering technology<\/a>, to which the company added its own security layer to prevent any jailbreaking of the model using Prompt Shields, ensuring an optimal level of reliability. These layers are regularly updated to maintain advanced safeguarding.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"wrtn-scaling-securely-with-azure-ai-content-safety\">Wrtn: Scaling securely with Azure AI Content Safety<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Wrtn Technologies, a leading enterprise in Korea, <a href=\"https:\/\/www.microsoft.com\/customers\/story\/20597-wrtn-azure\" target=\"_blank\" rel=\"noreferrer noopener\">relies on Azure AI Content Safety<\/a> to maintain compliance and security across its products. At its core, Wrtn&#8217;s flagship technology compiles an array of AI use cases and services localized for Korean users to integrate AI into their everyday lives. The platform fuses elements of AI-powered search, chat functionality, and customizable templates, empowering users to interact seamlessly with an &#8220;Emotional Companion&#8221; AI-infused agent. These AI agents have engaging, lifelike personalities, interacting in conversation with their creators. The vision is a highly interactive personal agent that\u2019s unique and specific to you, your data, and your memories.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Because the product is highly customizable to specific users, the built-in ability to toggle content filters and Prompt Shields is highly advantageous, allowing Wrtn to efficiently customize its security measures for different end users. This lets developers scale products while staying compliant, customizable, and responsive to users across Korea.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u201cIt\u2019s not just about the security and privacy, but also safety. Through Azure, we can easily activate or deactivate content filters. It just has so many features that add to our product performance,\u201d says Dongjae &#8220;DJ&#8221; Lee, Chief Product Officer.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"integrate-prompt-shields-into-your-ai-strategy\">Integrate Prompt Shields into your AI strategy<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">For IT decision makers looking to enhance the security of their AI deployments, integrating Azure\u2019s Prompt Shields is a strategic imperative. Fortunately, enabling Prompt Shields is easy.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li class=\"wp-block-list-item\">Azure OpenAI customers can <a href=\"https:\/\/learn.microsoft.com\/azure\/ai-services\/content-safety\/quickstart-jailbreak\" target=\"_blank\" rel=\"noreferrer noopener\">get started with built-in Prompt Shields here<\/a>.<\/li>\n\n\n\n<li class=\"wp-block-list-item\">Azure AI Content Safety customers can <a href=\"https:\/\/learn.microsoft.com\/azure\/ai-services\/content-safety\/concepts\/jailbreak-detection\" target=\"_blank\" rel=\"noreferrer noopener\">get started by enabling Prompt Shields on non-OpenAI models here<\/a>.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Azure\u2019s Prompt Shields and built-in AI security features offer an unparalleled level of protection for AI models, helping to ensure that organizations can harness the power of AI without compromising on security. Microsoft is <a href=\"https:\/\/techcommunity.microsoft.com\/blog\/azure-ai-services-blog\/azure-ai-announces-prompt-shields-for-jailbreak-and-indirect-prompt-injection-at\/4099140\" target=\"_blank\" rel=\"noreferrer noopener\">a leader in identifying and mitigating prompt injection attacks<\/a>, and uses best practices developed with decades of research, policy, product engineering, and learnings from building AI products at scale, so you can achieve your AI transformation with confidence. By integrating these capabilities into your AI strategy, you can help safeguard your systems from prompt injection attacks and help maintain the trust and confidence of your users.<\/p>\n\n\n\n<div class=\"wp-block-buttons is-content-justification-center is-layout-flex wp-container-core-buttons-is-layout-a89b3969 wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/learn.microsoft.com\/azure\/ai-services\/content-safety\/concepts\/jailbreak-detection\" target=\"_blank\" rel=\"noreferrer noopener\">Prompt Shields<\/a><\/div>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"our-commitment-to-trustworthy-ai\">Our commitment to Trustworthy AI<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Organizations across industries are using <a href=\"https:\/\/ai.azure.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">Azure AI Foundry<\/a> and <a href=\"https:\/\/www.microsoft.com\/microsoft-365\/copilot\" target=\"_blank\" rel=\"noreferrer noopener\">Microsoft 365 Copilot<\/a> capabilities to drive growth, increase productivity, and create value-added experiences.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We\u2019re committed to helping organizations use and build AI that is <a href=\"https:\/\/blogs.microsoft.com\/blog\/2024\/09\/24\/microsoft-trustworthy-ai-unlocking-human-potential-starts-with-trust\/\" target=\"_blank\" rel=\"noreferrer noopener\">trustworthy<\/a>, meaning it is secure, private, and safe. Trustworthy AI is only possible when you combine our commitments, such as our <a href=\"https:\/\/www.microsoft.com\/trust-center\/security\/secure-future-initiative\" target=\"_blank\" rel=\"noreferrer noopener\">Secure Future Initiative<\/a> and <a href=\"https:\/\/www.microsoft.com\/ai\/responsible-ai\" target=\"_blank\" rel=\"noreferrer noopener\">Responsible AI principles<\/a>, with our product capabilities to unlock AI transformation with confidence.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"get-started-with-azure-ai-content-safety\">Get started with Azure AI Content Safety<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li class=\"wp-block-list-item\">Enhance the safety of generative AI applications with advanced guardrails for responsible AI using <a href=\"https:\/\/azure.microsoft.com\/products\/ai-services\/ai-content-safety\/\" target=\"_blank\" rel=\"noreferrer noopener\">Azure AI Content Safety<\/a>.<\/li>\n\n\n\n<li class=\"wp-block-list-item\">Build with&nbsp;<a href=\"https:\/\/ai.azure.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">Azure AI Foundry<\/a>.<\/li>\n\n\n\n<li class=\"wp-block-list-item\">See how <a href=\"https:\/\/www.microsoft.com\/ai\/responsible-ai\" target=\"_blank\" rel=\"noreferrer noopener\">Microsoft empowers responsible AI practices<\/a>.<\/li>\n\n\n\n<li class=\"wp-block-list-item\">Learn <a href=\"https:\/\/learn.microsoft.com\/azure\/ai-services\/content-safety\/quickstart-jailbreak\" target=\"_blank\" rel=\"noreferrer noopener\">how to use Prompt Shields<\/a>.<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\n\n\n\n<p class=\"wp-block-paragraph\"><em><sup>1<\/sup><a href=\"https:\/\/owasp.org\/www-project-top-10-for-large-language-model-applications\/\" target=\"_blank\" rel=\"noreferrer noopener\">OWASP Top 10 for Large Language Model Applications<\/a><\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Defend your AI systems with Prompt Shields\u2014a unified API that analyzes inputs to your LLM-based solution to guard against direct and indirect threats.<\/p>\n","protected":false},"author":76,"featured_media":41028,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ms_queue_id":[],"ep_exclude_from_search":false,"_classifai_error":"","_classifai_text_to_speech_error":"","_alt_title":"","footnotes":"","msx_community_cta_settings":[]},"categories":[1454,1459],"tags":[3168],"audience":[3054,3055,3053],"content-type":[1511,1527],"product":[2756,1795,2578,3164],"tech-community":[],"topic":[],"coauthors":[1719],"class_list":["post-40922","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ai-machine-learning","category-security","tag-large-language-models-llms","audience-business-decision-makers","audience-developers","audience-it-decision-makers","content-type-best-practices","content-type-customer-stories","product-azure-ai-content-safety","product-azure-openai","product-azure-security","product-microsoft-foundry","review-flag-1-1680286581-825","review-flag-integ-1680286579-214","review-flag-machi-1680286585-314","review-flag-new-1680286579-546"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Enhance AI security with Azure Prompt Shields and Azure AI Content Safety | Microsoft Azure Blog<\/title>\n<meta name=\"description\" content=\"Learn how Prompt Shields and Azure AI Content Safety can help guard against direct and indirect threats to your LLM-based solution.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/azure.microsoft.com\/en-us\/blog\/enhance-ai-security-with-azure-prompt-shields-and-azure-ai-content-safety\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Enhance AI security with Azure Prompt Shields and Azure AI Content Safety | Microsoft Azure Blog\" \/>\n<meta property=\"og:description\" content=\"Learn how Prompt Shields and Azure AI Content Safety can help guard against direct and indirect threats to your LLM-based solution.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/azure.microsoft.com\/en-us\/blog\/enhance-ai-security-with-azure-prompt-shields-and-azure-ai-content-safety\/\" \/>\n<meta property=\"og:site_name\" content=\"Microsoft Azure Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/microsoftazure\" \/>\n<meta property=\"article:published_time\" content=\"2025-06-05T15:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-01-06T17:47:03+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2025\/06\/Azure-3D-Illustrations-Security-Dark-2-Resized.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1260\" \/>\n\t<meta property=\"og:image:height\" content=\"709\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Olivia Shone\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2025\/06\/Azure-3D-Illustrations-Security-Dark-2-Resized.jpg\" \/>\n<meta name=\"twitter:creator\" content=\"@azure\" \/>\n<meta name=\"twitter:site\" content=\"@azure\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Olivia Shone\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/enhance-ai-security-with-azure-prompt-shields-and-azure-ai-content-safety\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/enhance-ai-security-with-azure-prompt-shields-and-azure-ai-content-safety\/\"},\"author\":[{\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/author\/olivia-shone\/\",\"@type\":\"Person\",\"@name\":\"Olivia Shone\"}],\"headline\":\"Enhance AI security with Azure Prompt Shields and Azure AI Content Safety\",\"datePublished\":\"2025-06-05T15:00:00+00:00\",\"dateModified\":\"2026-01-06T17:47:03+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/enhance-ai-security-with-azure-prompt-shields-and-azure-ai-content-safety\/\"},\"wordCount\":1393,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/enhance-ai-security-with-azure-prompt-shields-and-azure-ai-content-safety\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2025\/06\/Azure-3D-Illustrations-Security-Dark-2-Resized.jpg\",\"keywords\":[\"Large language models (LLMs)\"],\"articleSection\":[\"AI + machine learning\",\"Security\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/azure.microsoft.com\/en-us\/blog\/enhance-ai-security-with-azure-prompt-shields-and-azure-ai-content-safety\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/enhance-ai-security-with-azure-prompt-shields-and-azure-ai-content-safety\/\",\"url\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/enhance-ai-security-with-azure-prompt-shields-and-azure-ai-content-safety\/\",\"name\":\"Enhance AI security with Azure Prompt Shields and Azure AI Content Safety | Microsoft Azure Blog\",\"isPartOf\":{\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/enhance-ai-security-with-azure-prompt-shields-and-azure-ai-content-safety\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/enhance-ai-security-with-azure-prompt-shields-and-azure-ai-content-safety\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2025\/06\/Azure-3D-Illustrations-Security-Dark-2-Resized.jpg\",\"datePublished\":\"2025-06-05T15:00:00+00:00\",\"dateModified\":\"2026-01-06T17:47:03+00:00\",\"description\":\"Learn how Prompt Shields and Azure AI Content Safety can help guard against direct and indirect threats to your LLM-based solution.\",\"breadcrumb\":{\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/enhance-ai-security-with-azure-prompt-shields-and-azure-ai-content-safety\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/azure.microsoft.com\/en-us\/blog\/enhance-ai-security-with-azure-prompt-shields-and-azure-ai-content-safety\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/enhance-ai-security-with-azure-prompt-shields-and-azure-ai-content-safety\/#primaryimage\",\"url\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2025\/06\/Azure-3D-Illustrations-Security-Dark-2-Resized.jpg\",\"contentUrl\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2025\/06\/Azure-3D-Illustrations-Security-Dark-2-Resized.jpg\",\"width\":1260,\"height\":709,\"caption\":\"Stylized monitor and technology icons with a lock and shield.\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/enhance-ai-security-with-azure-prompt-shields-and-azure-ai-content-safety\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Blog home\",\"item\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"AI + machine learning\",\"item\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/category\/ai-machine-learning\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Enhance AI security with Azure Prompt Shields and Azure AI Content Safety\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/#website\",\"url\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/\",\"name\":\"Microsoft Azure Blog\",\"description\":\"Get the latest Azure news, updates, and announcements from the Azure blog. From product updates to hot topics, hear from the Azure experts.\",\"publisher\":{\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/#organization\",\"name\":\"Microsoft Azure Blog\",\"url\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2024\/06\/microsoft_logo.webp\",\"contentUrl\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2024\/06\/microsoft_logo.webp\",\"width\":512,\"height\":512,\"caption\":\"Microsoft Azure Blog\"},\"image\":{\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/microsoftazure\",\"https:\/\/x.com\/azure\",\"https:\/\/www.instagram.com\/microsoftdeveloper\/\",\"https:\/\/www.linkedin.com\/company\/16188386\",\"https:\/\/www.youtube.com\/user\/windowsazure\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/#\/schema\/person\/83fe4c04c61d5e58d555ba137c01a107\",\"name\":\"Garry Guseltsev\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/8476ebc2bcbe54e1843bd5cce3ec249bed771194411b3052815d4c5d272128f2?s=96&d=mm&r=g4f09d3e62b774b84289036a84f6a8c1c\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/8476ebc2bcbe54e1843bd5cce3ec249bed771194411b3052815d4c5d272128f2?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/8476ebc2bcbe54e1843bd5cce3ec249bed771194411b3052815d4c5d272128f2?s=96&d=mm&r=g\",\"caption\":\"Garry Guseltsev\"},\"url\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/author\/garryguseltsev\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Enhance AI security with Azure Prompt Shields and Azure AI Content Safety | Microsoft Azure Blog","description":"Learn how Prompt Shields and Azure AI Content Safety can help guard against direct and indirect threats to your LLM-based solution.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/azure.microsoft.com\/en-us\/blog\/enhance-ai-security-with-azure-prompt-shields-and-azure-ai-content-safety\/","og_locale":"en_US","og_type":"article","og_title":"Enhance AI security with Azure Prompt Shields and Azure AI Content Safety | Microsoft Azure Blog","og_description":"Learn how Prompt Shields and Azure AI Content Safety can help guard against direct and indirect threats to your LLM-based solution.","og_url":"https:\/\/azure.microsoft.com\/en-us\/blog\/enhance-ai-security-with-azure-prompt-shields-and-azure-ai-content-safety\/","og_site_name":"Microsoft Azure Blog","article_publisher":"https:\/\/www.facebook.com\/microsoftazure","article_published_time":"2025-06-05T15:00:00+00:00","article_modified_time":"2026-01-06T17:47:03+00:00","og_image":[{"width":1260,"height":709,"url":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2025\/06\/Azure-3D-Illustrations-Security-Dark-2-Resized.jpg","type":"image\/jpeg"}],"author":"Olivia Shone","twitter_card":"summary_large_image","twitter_image":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2025\/06\/Azure-3D-Illustrations-Security-Dark-2-Resized.jpg","twitter_creator":"@azure","twitter_site":"@azure","twitter_misc":{"Written by":"Olivia Shone","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/enhance-ai-security-with-azure-prompt-shields-and-azure-ai-content-safety\/#article","isPartOf":{"@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/enhance-ai-security-with-azure-prompt-shields-and-azure-ai-content-safety\/"},"author":[{"@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/author\/olivia-shone\/","@type":"Person","@name":"Olivia Shone"}],"headline":"Enhance AI security with Azure Prompt Shields and Azure AI Content Safety","datePublished":"2025-06-05T15:00:00+00:00","dateModified":"2026-01-06T17:47:03+00:00","mainEntityOfPage":{"@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/enhance-ai-security-with-azure-prompt-shields-and-azure-ai-content-safety\/"},"wordCount":1393,"commentCount":0,"publisher":{"@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/#organization"},"image":{"@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/enhance-ai-security-with-azure-prompt-shields-and-azure-ai-content-safety\/#primaryimage"},"thumbnailUrl":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2025\/06\/Azure-3D-Illustrations-Security-Dark-2-Resized.jpg","keywords":["Large language models (LLMs)"],"articleSection":["AI + machine learning","Security"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/azure.microsoft.com\/en-us\/blog\/enhance-ai-security-with-azure-prompt-shields-and-azure-ai-content-safety\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/enhance-ai-security-with-azure-prompt-shields-and-azure-ai-content-safety\/","url":"https:\/\/azure.microsoft.com\/en-us\/blog\/enhance-ai-security-with-azure-prompt-shields-and-azure-ai-content-safety\/","name":"Enhance AI security with Azure Prompt Shields and Azure AI Content Safety | Microsoft Azure Blog","isPartOf":{"@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/enhance-ai-security-with-azure-prompt-shields-and-azure-ai-content-safety\/#primaryimage"},"image":{"@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/enhance-ai-security-with-azure-prompt-shields-and-azure-ai-content-safety\/#primaryimage"},"thumbnailUrl":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2025\/06\/Azure-3D-Illustrations-Security-Dark-2-Resized.jpg","datePublished":"2025-06-05T15:00:00+00:00","dateModified":"2026-01-06T17:47:03+00:00","description":"Learn how Prompt Shields and Azure AI Content Safety can help guard against direct and indirect threats to your LLM-based solution.","breadcrumb":{"@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/enhance-ai-security-with-azure-prompt-shields-and-azure-ai-content-safety\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/azure.microsoft.com\/en-us\/blog\/enhance-ai-security-with-azure-prompt-shields-and-azure-ai-content-safety\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/enhance-ai-security-with-azure-prompt-shields-and-azure-ai-content-safety\/#primaryimage","url":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2025\/06\/Azure-3D-Illustrations-Security-Dark-2-Resized.jpg","contentUrl":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2025\/06\/Azure-3D-Illustrations-Security-Dark-2-Resized.jpg","width":1260,"height":709,"caption":"Stylized monitor and technology icons with a lock and shield."},{"@type":"BreadcrumbList","@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/enhance-ai-security-with-azure-prompt-shields-and-azure-ai-content-safety\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog home","item":"https:\/\/azure.microsoft.com\/en-us\/blog\/"},{"@type":"ListItem","position":2,"name":"AI + machine learning","item":"https:\/\/azure.microsoft.com\/en-us\/blog\/category\/ai-machine-learning\/"},{"@type":"ListItem","position":3,"name":"Enhance AI security with Azure Prompt Shields and Azure AI Content Safety"}]},{"@type":"WebSite","@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/#website","url":"https:\/\/azure.microsoft.com\/en-us\/blog\/","name":"Microsoft Azure Blog","description":"Get the latest Azure news, updates, and announcements from the Azure blog. From product updates to hot topics, hear from the Azure experts.","publisher":{"@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/azure.microsoft.com\/en-us\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/#organization","name":"Microsoft Azure Blog","url":"https:\/\/azure.microsoft.com\/en-us\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2024\/06\/microsoft_logo.webp","contentUrl":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2024\/06\/microsoft_logo.webp","width":512,"height":512,"caption":"Microsoft Azure Blog"},"image":{"@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/microsoftazure","https:\/\/x.com\/azure","https:\/\/www.instagram.com\/microsoftdeveloper\/","https:\/\/www.linkedin.com\/company\/16188386","https:\/\/www.youtube.com\/user\/windowsazure"]},{"@type":"Person","@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/#\/schema\/person\/83fe4c04c61d5e58d555ba137c01a107","name":"Garry Guseltsev","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/8476ebc2bcbe54e1843bd5cce3ec249bed771194411b3052815d4c5d272128f2?s=96&d=mm&r=g4f09d3e62b774b84289036a84f6a8c1c","url":"https:\/\/secure.gravatar.com\/avatar\/8476ebc2bcbe54e1843bd5cce3ec249bed771194411b3052815d4c5d272128f2?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/8476ebc2bcbe54e1843bd5cce3ec249bed771194411b3052815d4c5d272128f2?s=96&d=mm&r=g","caption":"Garry Guseltsev"},"url":"https:\/\/azure.microsoft.com\/en-us\/blog\/author\/garryguseltsev\/"}]}},"msxcm_display_generated_audio":false,"msxcm_animated_featured_image":null,"distributor_meta":false,"distributor_terms":false,"distributor_media":false,"distributor_original_site_name":"Microsoft Azure Blog","distributor_original_site_url":"https:\/\/azure.microsoft.com\/en-us\/blog","push-errors":false,"_links":{"self":[{"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/posts\/40922","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/users\/76"}],"replies":[{"embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/comments?post=40922"}],"version-history":[{"count":16,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/posts\/40922\/revisions"}],"predecessor-version":[{"id":49182,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/posts\/40922\/revisions\/49182"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/media\/41028"}],"wp:attachment":[{"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/media?parent=40922"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/categories?post=40922"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/tags?post=40922"},{"taxonomy":"audience","embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/audience?post=40922"},{"taxonomy":"content-type","embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/content-type?post=40922"},{"taxonomy":"product","embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/product?post=40922"},{"taxonomy":"tech-community","embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/tech-community?post=40922"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/topic?post=40922"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/coauthors?post=40922"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}