> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/posture-rules/cloud-saas-active-directory-posture-rules/cortex-posture-query-based-rules/detection-rules-by-name/ai-deployment-missing-prompt-attack-protection.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# AI Deployment Missing Prompt Attack Protection

### Synopsis

| Field             | Value                                                                                   |
| ----------------- | --------------------------------------------------------------------------------------- |
| Rule Type         | Detection                                                                               |
| Severity          | Medium                                                                                  |
| Category          | POSTURE                                                                                 |
| Cloud Providers   | AWS, AZURE                                                                              |
| Platform Module   | AISPM                                                                                   |
| Asset Types       | AWS\_BEDROCK\_AGENT\_ALIAS, AZURE\_AI\_FOUNDRY\_DEPLOYMENT, AZURE\_OPEN\_AI\_DEPLOYMENT |
| ATT\&CK Tactic    | TA0001 (TA0001)                                                                         |
| ATT\&CK Technique | T1189 (T1189)                                                                           |

### Description

The AI deployment is missing guardrails to protect against prompt injection and jailbreak attacks. Without input guardrails, an attacker may manipulate the model's behavior, bypass safety restrictions, exfiltrate internal prompts, or coerce the model into revealing sensitive data or performing unintended actions. Prompt injection occurs when an attacker manipulates the inputs given to an AI system to influence its outputs in a manner unintended by its designers. By cleverly crafting the input, or prompt, attackers can trigger the AI to generate responses that include sensitive data, biased information, or inappropriate content.

### Remediation

**Manual steps:**

AWS Bedrock Agent Alias - Attach a guardrail with a blocking prompt attack filter to the agent:

Sign in to the AWS Management Console and open the Amazon Bedrock console.

In the left navigation pane, choose Guardrails. Select the guardrail used by the agent, or choose Create guardrail.

In the Content filters section, choose Edit and select Configure prompt attacks filter.

Enable the filter for prompts, set the action to Block, set the threshold to Medium or High, and keep the Text modality selected (it is selected by default).

Save the changes and choose Create version to publish a new guardrail version.

In the left navigation pane, choose Agents and select the agent that the alias `{entity}` belongs to.

Choose Edit in Agent builder. In the Guardrail details section, choose Edit, select the guardrail and the version you published, and choose Save.

Choose Save and then Prepare to prepare the agent with the new guardrail.

In the agent's Aliases section, select the alias `{entity}` and choose Edit. Associate the alias with a new version of the agent and choose Save.

Azure Open AI Deployment - Apply a content filter with Prompt Shields enabled to the deployment:

Sign in to the Azure Portal and open the Azure OpenAI resource that hosts the deployment `{entity}`.

Select Go to Foundry portal.

In the left pane, select Guardrails + controls and open the Content filters tab.

Select + Create content filter, or select the custom content filter that is assigned to the deployment and edit it. The Microsoft default content filter cannot be edited.

On the Input filters page, set Prompt shields for jailbreak attacks and Prompt shields for indirect attacks to Annotate and block. Do not use Annotate only, because it does not block attacks.

Configure the output filters as needed. On the Connection page, associate the content filter with the deployment `{entity}`, then select Create filter.

Make sure that applications wrap external content, such as retrieved documents or emails, in `documents` tags so that indirect attack detection can evaluate it.

Azure AI Foundry Deployment - Assign a guardrail that blocks jailbreak and indirect attacks to the deployment:

Sign in to the Microsoft Foundry portal and open the project that contains the deployment `{entity}`.

Select Build in the top right menu, then select Guardrails in the left navigation.

Select Create Guardrail, or select the custom guardrail that is assigned to the deployment and choose Edit. Microsoft default guardrails, such as 'Microsoft.DefaultV2', cannot be edited.

Add a control for user prompt (jailbreak) attacks and a control for indirect attacks, each with the action Annotate and block, and select Add control.

Select Next, then select Add models and select the deployment `{entity}`.

Select Next, review the guardrail, and select Create (or Save when editing an existing guardrail).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://cortex-docs.paloaltonetworks.com/posture-rules/cloud-saas-active-directory-posture-rules/cortex-posture-query-based-rules/detection-rules-by-name/ai-deployment-missing-prompt-attack-protection.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
