Microsoft Foundry Jailbreak Detected

Last updated a day ago on 2026-10-05
Created 5 days ago on 2026-10-01

About

Detects a Microsoft Foundry chat, sent through API Management, where Azure sets jailbreak.detected on the prompt. The flag is on the prompt filter when the call is allowed through, and on the error body when the filter blocks the call.
Tags
Data Source: Microsoft FoundryUse Case: Threat DetectionMitre Atlas: AML.T0051Mitre Atlas: AML.T0054Tactic: Defense EvasionRule Type: ES|QLPlatform: AzureDomain: CloudDomain: GenAIService: Azure API ManagementLanguage: esql
Severity
medium
Risk Score
47
MITRE ATT&CK™

Defense Evasion (TA0005)(external, opens in a new tab or window)

False Positive Examples
Approved prompt-security tests that send known jailbreak strings, such as DAN or "ignore previous instructions". Exclude that source IP or API Management subscription.
License
Elastic License v2(external, opens in a new tab or window)

Definition

Integration Pack
Prebuilt Security Detection Rules
Related Integrations

azure_ai_foundry(external, opens in a new tab or window)

Query
text code block:
from logs-azure_ai_foundry.logs-* metadata _id, _version, _index | where data_stream.dataset == "azure_ai_foundry.logs" and azure.ai_foundry.category == "GatewayLogs" and ( azure.ai_foundry.properties.backend_response_body.prompt_filter_results.content_filter_results.jailbreak.detected == true or azure.ai_foundry.properties.backend_response_body.error.innererror.content_filter_result.jailbreak.detected == true or azure.ai_foundry.properties.backend_response_body.choices.content_filter_results.jailbreak.detected == true ) | keep _id, _version, _index, @timestamp, source.ip, azure.ai_foundry.properties.user_agent, azure.ai_foundry.properties.apim_subscription_id, azure.ai_foundry.properties.api_id, azure.ai_foundry.properties.operation_id, azure.ai_foundry.properties.backend_response_body.model, azure.ai_foundry.properties.backend_response_code, azure.ai_foundry.service_name, azure.resource.group, url.domain, url.path, source.geo.country_iso_code, source.geo.city_name, source.as.organization.name, azure.ai_foundry.properties.backend_request_body.messages.content, azure.ai_foundry.properties.backend_response_body.choices.message.content, azure.ai_foundry.properties.backend_response_body.prompt_filter_results.content_filter_results.jailbreak.detected, azure.ai_foundry.properties.backend_response_body.error.innererror.content_filter_result.jailbreak.detected, azure.ai_foundry.properties.backend_response_body.choices.content_filter_results.jailbreak.detected

Install detection rules in Elastic Security

Detect Microsoft Foundry Jailbreak Detected in the Elastic Security detection engine by installing this rule into your Elastic Stack.

To setup this rule, check out the installation guide for Prebuilt Security Detection Rules(external, opens in a new tab or window).