Detection rules › Kusto
Copilot - Jailbreak Attempt Detected
'Detects jailbreak attempts in Copilot interactions where users are trying to bypass Copilot guardrails and security controls. This rule identifies prompt injection and LLM abuse scenarios that could lead to initial access, credential access, or system impact.'
MITRE ATT&CK coverage
| Tactic | Techniques |
|---|---|
| Initial Access | |
| Credential Access | |
| Impact |
Rule body
id: e5f6a7b8-c9d0-41e2-f3a4-b5c6d7e8f9a0
name: Copilot - Jailbreak Attempt Detected
description: |
'Detects jailbreak attempts in Copilot interactions where users are trying to bypass Copilot guardrails and security controls.
This rule identifies prompt injection and LLM abuse scenarios that could lead to initial access, credential access, or system impact.'
severity: High
status: Available
requiredDataConnectors:
- connectorId: MicrosoftCopilot
dataTypes:
- CopilotActivity
queryFrequency: 5m
queryPeriod: 5m
triggerOperator: gt
triggerThreshold: 0
tactics:
- InitialAccess
- CredentialAccess
- Impact
relevantTechniques:
- T1078
- T1110
- T1565
query: |
CopilotActivity
| where RecordType == "CopilotInteraction"
| where LLMEventData has "JailbreakDetected"
| extend Data = parse_json(LLMEventData)
| extend Jailbreak = tostring(Data.Messages[0].JailbreakDetected)
| where Jailbreak == "true"
| project TimeGenerated, ActorName, AIModelName, Jailbreak
entityMappings:
- entityType: Account
fieldMappings:
- identifier: FullName
columnName: ActorName
version: 1.0.0
kind: Scheduled
Stages and Predicates
Stage 1: source
CopilotActivity
Stage 2: where
| where RecordType == "CopilotInteraction"
Stage 3: where
| where LLMEventData has "JailbreakDetected"
Stage 4: extend
| extend Data = parse_json(LLMEventData)
Stage 5: extend
| extend Jailbreak = tostring(Data.Messages[0].JailbreakDetected)
Stage 6: where
| where Jailbreak == "true"
Stage 7: project
| project TimeGenerated, ActorName, AIModelName, Jailbreak
Indicators
These rows show field, operator, and value matches.
| Field | Kind | Values | Search |
|---|---|---|---|
Jailbreak | eq |
| field:"Jailbreak" kind:eq value:"true" |
LLMEventData | match |
| field:"LLMEventData" kind:match value:"JailbreakDetected" |
RecordType | eq |
| field:"RecordType" kind:eq value:"CopilotInteraction" |
Output fields
These fields are emitted when the rule matches.
| Field | Source |
|---|---|
AIModelName | project |
ActorName | project |
Jailbreak | project |
TimeGenerated | project |