{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-defender/json-schema/microsoft-defender-microsoft-graph-security-detection-rule-schema.json",
  "title": "microsoft.graph.security.detectionRule",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-defender-security-rulesroot-api-openapi.yml#/components/schemas/microsoft.graph.security.detectionRule",
  "allOf": [
    {
      "$ref": "#/$defs/microsoft.graph.entity"
    },
    {
      "title": "detectionRule",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "createdBy": {
          "type": "string",
          "description": "Name of the user or application that created the rule. Read-only. Supports $filter (eq, ne, not, in, startsWith, endsWith, contains)."
        },
        "createdDateTime": {
          "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$",
          "type": "string",
          "description": "Timestamp of rule creation. Read-only. Supports $filter (eq, ne, not, le, ge, lt, gt) and $orderby.",
          "format": "date-time"
        },
        "description": {
          "type": [
            "string",
            "null"
          ],
          "description": "A user-supplied description of the detection rule. Supports $filter (eq, ne, not, in, startsWith, endsWith, contains)."
        },
        "detectionAction": {
          "$ref": "#/$defs/microsoft.graph.security.detectionAction"
        },
        "displayName": {
          "type": "string",
          "description": "The display name of the rule. Supports $filter (eq, ne, not, in, startsWith, endsWith, contains) and $orderby."
        },
        "lastModifiedBy": {
          "type": "string",
          "description": "Name of the user or application that last updated the rule. Read-only. Supports $filter (eq, ne, not, in, startsWith, endsWith, contains)."
        },
        "lastModifiedDateTime": {
          "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$",
          "type": "string",
          "description": "Timestamp of when the rule was last updated. Read-only. Supports $filter (eq, ne, not, le, ge, lt, gt) and $orderby.",
          "format": "date-time"
        },
        "queryCondition": {
          "$ref": "#/$defs/microsoft.graph.security.queryCondition"
        },
        "schedule": {
          "$ref": "#/$defs/microsoft.graph.security.ruleSchedule"
        },
        "status": {
          "$ref": "#/$defs/microsoft.graph.security.detectionRuleStatus"
        },
        "@odata.type": {
          "type": "string"
        }
      }
    }
  ],
  "x-ms-discriminator-value": "#microsoft.graph.security.detectionRule",
  "$defs": {
    "microsoft.graph.entity": {
      "title": "entity",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The unique identifier for an entity. Read-only."
        },
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "microsoft.graph.security.accountEntityMapping": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.security.entityMapping"
        },
        {
          "title": "accountEntityMapping",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "aadUserIdColumn": {
              "type": [
                "string",
                "null"
              ],
              "description": "Name of the detection query column that maps to the Microsoft Entra user ID of the alert entity."
            },
            "dnsDomainColumn": {
              "type": [
                "string",
                "null"
              ],
              "description": "Name of the detection query column that maps to the DNS domain of the alert entity."
            },
            "nameColumn": {
              "type": [
                "string",
                "null"
              ],
              "description": "Name of the detection query column that maps to the name of the alert entity."
            },
            "ntDomainColumn": {
              "type": [
                "string",
                "null"
              ],
              "description": "Name of the detection query column that maps to the NT domain of the alert entity."
            },
            "sidColumn": {
              "type": [
                "string",
                "null"
              ],
              "description": "Name of the detection query column that maps to the security identifier (SID) of the alert entity."
            },
            "upnColumn": {
              "type": [
                "string",
                "null"
              ],
              "description": "Name of the detection query column that maps to the user principal name (UPN) of the alert entity."
            },
            "upnSuffixColumn": {
              "type": [
                "string",
                "null"
              ],
              "description": "Name of the detection query column that maps to the UPN suffix of the alert entity."
            },
            "@odata.type": {
              "type": "string",
              "default": "#microsoft.graph.security.accountEntityMapping"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.security.accountEntityMapping"
    },
    "microsoft.graph.security.accountObjectIdAction": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.security.automatedAction"
        },
        {
          "title": "accountObjectIdAction",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "accountObjectIdColumn": {
              "type": "string",
              "description": "Name of the hunting-query result column that contains the Microsoft Entra object ID of the targeted account."
            },
            "@odata.type": {
              "type": "string",
              "default": "#microsoft.graph.security.accountObjectIdAction"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.security.accountObjectIdAction"
    },
    "microsoft.graph.security.accountSidAction": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.security.automatedAction"
        },
        {
          "title": "accountSidAction",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "accountSidColumn": {
              "type": "string",
              "description": "Name of the hunting-query result column that contains the SID of the targeted account."
            },
            "@odata.type": {
              "type": "string",
              "default": "#microsoft.graph.security.accountSidAction"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.security.accountSidAction"
    },
    "microsoft.graph.security.alertCustomDetails": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.security.dictionary"
        },
        {
          "title": "alertCustomDetails",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "@odata.type": {
              "type": "string",
              "default": "#microsoft.graph.security.alertCustomDetails"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.security.alertCustomDetails"
    },
    "microsoft.graph.security.alertSeverity": {
      "title": "alertSeverity",
      "enum": [
        "unknown",
        "informational",
        "low",
        "medium",
        "high",
        "unknownFutureValue"
      ],
      "type": "string"
    },
    "microsoft.graph.security.alertTemplate": {
      "title": "alertTemplate",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "customDetails": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.security.alertCustomDetails"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "Custom key-value detail pairs to include in the alert. Each value identifies the detection query column that supplies the corresponding custom detail."
        },
        "description": {
          "type": "string",
          "description": "Description of the alert triggered by the custom detection rule."
        },
        "entityMappings": {
          "$ref": "#/$defs/microsoft.graph.security.entityMappingConfiguration"
        },
        "recommendedActions": {
          "type": [
            "string",
            "null"
          ],
          "description": "Recommended actions to mitigate the threat related to the alert triggered by the custom detection rule."
        },
        "severity": {
          "$ref": "#/$defs/microsoft.graph.security.alertSeverity"
        },
        "tactics": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.security.mitreTactic"
          },
          "description": "The MITRE ATT&CK tactics framing for this alert."
        },
        "title": {
          "type": "string",
          "description": "Name of the alert triggered by the custom detection rule."
        },
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "microsoft.graph.security.amazonResourceEntityMapping": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.security.entityMapping"
        },
        {
          "title": "amazonResourceEntityMapping",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "amazonResourceIdColumn": {
              "type": "string",
              "description": "Name of the detection query column that maps to the Amazon resource ID of the alert entity."
            },
            "@odata.type": {
              "type": "string",
              "default": "#microsoft.graph.security.amazonResourceEntityMapping"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.security.amazonResourceEntityMapping"
    },
    "microsoft.graph.security.automatedAction": {
      "title": "automatedAction",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "microsoft.graph.security.automatedActionSet": {
      "title": "automatedActionSet",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "allowFiles": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.security.fileAction"
          },
          "description": "File actions that allow files identified by file hash columns in the hunting-query results."
        },
        "blockFiles": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.security.fileAction"
          },
          "description": "File actions that block files identified by file hash columns in the hunting-query results."
        },
        "collectInvestigationPackages": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.security.deviceAction"
          },
          "description": "Device actions that collect investigation packages from devices identified in the hunting-query results."
        },
        "disableUsers": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.security.accountSidAction"
          },
          "description": "Account actions that disable users identified by account SID columns in the hunting-query results."
        },
        "forceUserPasswordResets": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.security.accountSidAction"
          },
          "description": "Account actions that force password resets for users identified by account SID columns in the hunting-query results."
        },
        "hardDeleteEmails": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.security.emailAction"
          },
          "description": "Email actions that permanently delete messages identified in the hunting-query results."
        },
        "initiateInvestigations": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.security.deviceAction"
          },
          "description": "Device actions that initiate investigations on devices identified in the hunting-query results."
        },
        "isolateDevices": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.security.isolateDeviceAction"
          },
          "description": "Device actions that isolate devices identified in the hunting-query results."
        },
        "markUsersAsCompromised": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.security.accountObjectIdAction"
          },
          "description": "Account actions that mark users as compromised when they're identified by Microsoft Entra object ID columns in the hunting-query results."
        },
        "moveEmailsToDeletedItems": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.security.emailAction"
          },
          "description": "Email actions that move messages identified in the hunting-query results to Deleted Items."
        },
        "moveEmailsToInbox": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.security.emailAction"
          },
          "description": "Email actions that move messages identified in the hunting-query results to the Inbox."
        },
        "moveEmailsToJunk": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.security.emailAction"
          },
          "description": "Email actions that move messages identified in the hunting-query results to Junk Email."
        },
        "restrictAppExecutions": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.security.deviceAction"
          },
          "description": "Device actions that restrict app execution on devices identified in the hunting-query results."
        },
        "runAntivirusScans": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.security.deviceAction"
          },
          "description": "Device actions that run antivirus scans on devices identified in the hunting-query results."
        },
        "softDeleteEmails": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.security.emailAction"
          },
          "description": "Email actions that soft-delete messages identified in the hunting-query results."
        },
        "stopAndQuarantineFiles": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.security.stopAndQuarantineFileAction"
          },
          "description": "File actions that stop running files and quarantine them on devices identified in the hunting-query results."
        },
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "microsoft.graph.security.azureResourceEntityMapping": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.security.entityMapping"
        },
        {
          "title": "azureResourceEntityMapping",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "resourceIdColumn": {
              "type": "string",
              "description": "Name of the detection query column that maps to the resource ID of the alert entity."
            },
            "@odata.type": {
              "type": "string",
              "default": "#microsoft.graph.security.azureResourceEntityMapping"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.security.azureResourceEntityMapping"
    },
    "microsoft.graph.security.cloudApplicationEntityMapping": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.security.entityMapping"
        },
        {
          "title": "cloudApplicationEntityMapping",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "appIdColumn": {
              "type": [
                "string",
                "null"
              ],
              "description": "Name of the detection query column that maps to the application ID of the alert entity."
            },
            "nameColumn": {
              "type": [
                "string",
                "null"
              ],
              "description": "Name of the detection query column that maps to the name of the alert entity."
            },
            "@odata.type": {
              "type": "string",
              "default": "#microsoft.graph.security.cloudApplicationEntityMapping"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.security.cloudApplicationEntityMapping"
    },
    "microsoft.graph.security.detectionAction": {
      "title": "detectionAction",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "alertTemplate": {
          "$ref": "#/$defs/microsoft.graph.security.alertTemplate"
        },
        "automatedActions": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.security.automatedActionSet"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "The set of automated actions to run against entities that match the detection."
        },
        "organizationalScope": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.security.organizationalScope"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "The set of groups (for example, device groups) to which the parent custom detection rule applies."
        },
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "microsoft.graph.security.detectionRuleStatus": {
      "title": "detectionRuleStatus",
      "enum": [
        "enabled",
        "disabled",
        "autoDisabled",
        "unknownFutureValue"
      ],
      "type": "string"
    },
    "microsoft.graph.security.deviceAction": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.security.automatedAction"
        },
        {
          "title": "deviceAction",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "deviceIdColumn": {
              "type": "string",
              "description": "Name of the hunting-query result column that contains the device ID for the targeted device."
            },
            "@odata.type": {
              "type": "string",
              "default": "#microsoft.graph.security.deviceAction"
            }
          }
        }
      ]
    },
    "microsoft.graph.security.dictionary": {
      "title": "dictionary",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "microsoft.graph.security.dnsEntityMapping": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.security.entityMapping"
        },
        {
          "title": "dnsEntityMapping",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "domainNameColumn": {
              "type": "string",
              "description": "Name of the detection query column that maps to the domain name of the alert entity."
            },
            "hostIpAddressColumn": {
              "type": "string",
              "description": "Name of the detection query column that maps to the host IP address of the alert entity."
            },
            "serverIpColumn": {
              "type": "string",
              "description": "Name of the detection query column that maps to the server IP address of the alert entity."
            },
            "@odata.type": {
              "type": "string",
              "default": "#microsoft.graph.security.dnsEntityMapping"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.security.dnsEntityMapping"
    },
    "microsoft.graph.security.emailAction": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.security.automatedAction"
        },
        {
          "title": "emailAction",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "networkMessageIdColumn": {
              "type": "string",
              "description": "Name of the hunting-query result column that contains the network message ID of the targeted email message."
            },
            "recipientColumn": {
              "type": "string",
              "description": "Name of the hunting-query result column that contains the recipient of the targeted email message."
            },
            "@odata.type": {
              "type": "string",
              "default": "#microsoft.graph.security.emailAction"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.security.emailAction"
    },
    "microsoft.graph.security.entityMapping": {
      "title": "entityMapping",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "microsoft.graph.security.entityMappingConfiguration": {
      "title": "entityMappingConfiguration",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "accounts": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.security.accountEntityMapping"
          },
          "description": "Mappings from detection query columns to account entities attached to the alert."
        },
        "amazonResources": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.security.amazonResourceEntityMapping"
          },
          "description": "Mappings from detection query columns to Amazon Web Services resource entities attached to the alert."
        },
        "azureResources": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.security.azureResourceEntityMapping"
          },
          "description": "Mappings from detection query columns to Azure resource entities attached to the alert."
        },
        "cloudApplications": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.security.cloudApplicationEntityMapping"
          },
          "description": "Mappings from detection query columns to cloud application entities attached to the alert."
        },
        "dns": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.security.dnsEntityMapping"
          },
          "description": "Mappings from detection query columns to DNS entities attached to the alert."
        },
        "files": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.security.fileEntityMapping"
          },
          "description": "Mappings from detection query columns to file entities attached to the alert."
        },
        "googleCloudResources": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.security.googleCloudResourceEntityMapping"
          },
          "description": "Mappings from detection query columns to Google Cloud resource entities attached to the alert."
        },
        "hosts": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.security.hostEntityMapping"
          },
          "description": "Mappings from detection query columns to host entities attached to the alert."
        },
        "ips": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.security.ipEntityMapping"
          },
          "description": "Mappings from detection query columns to IP address entities attached to the alert."
        },
        "mailboxes": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.security.mailboxEntityMapping"
          },
          "description": "Mappings from detection query columns to mailbox entities attached to the alert."
        },
        "mailClusters": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.security.mailClusterEntityMapping"
          },
          "description": "Mappings from detection query columns to mail cluster entities attached to the alert."
        },
        "mailMessages": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.security.mailMessageEntityMapping"
          },
          "description": "Mappings from detection query columns to mail message entities attached to the alert."
        },
        "oAuthApplications": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.security.oAuthApplicationEntityMapping"
          },
          "description": "Mappings from detection query columns to OAuth application entities attached to the alert."
        },
        "processes": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.security.processEntityMapping"
          },
          "description": "Mappings from detection query columns to process entities attached to the alert."
        },
        "registryValues": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.security.registryValueEntityMapping"
          },
          "description": "Mappings from detection query columns to registry value entities attached to the alert."
        },
        "securityGroups": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.security.securityGroupEntityMapping"
          },
          "description": "Mappings from detection query columns to security group entities attached to the alert."
        },
        "urls": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.security.urlEntityMapping"
          },
          "description": "Mappings from detection query columns to URL entities attached to the alert."
        },
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "microsoft.graph.security.fileAction": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.security.automatedAction"
        },
        {
          "title": "fileAction",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "deviceGroupNames": {
              "type": "array",
              "items": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "description": "Names of the device groups where the file action applies."
            },
            "sha1Column": {
              "type": [
                "string",
                "null"
              ],
              "description": "Name of the hunting-query result column that contains the SHA-1 hash of the targeted file."
            },
            "sha256Column": {
              "type": [
                "string",
                "null"
              ],
              "description": "Name of the hunting-query result column that contains the SHA-256 hash of the targeted file."
            },
            "@odata.type": {
              "type": "string",
              "default": "#microsoft.graph.security.fileAction"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.security.fileAction"
    },
    "microsoft.graph.security.fileEntityMapping": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.security.entityMapping"
        },
        {
          "title": "fileEntityMapping",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "nameColumn": {
              "type": [
                "string",
                "null"
              ],
              "description": "Name of the detection query column that maps to the name of the alert entity."
            },
            "sha1Column": {
              "type": [
                "string",
                "null"
              ],
              "description": "Name of the detection query column that maps to the SHA-1 hash of the alert entity."
            },
            "sha256Column": {
              "type": [
                "string",
                "null"
              ],
              "description": "Name of the detection query column that maps to the SHA-256 hash of the alert entity."
            },
            "@odata.type": {
              "type": "string",
              "default": "#microsoft.graph.security.fileEntityMapping"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.security.fileEntityMapping"
    },
    "microsoft.graph.security.googleCloudResourceEntityMapping": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.security.entityMapping"
        },
        {
          "title": "googleCloudResourceEntityMapping",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "fullResourceNameColumn": {
              "type": "string",
              "description": "Name of the detection query column that maps to the full resource name of the alert entity."
            },
            "@odata.type": {
              "type": "string",
              "default": "#microsoft.graph.security.googleCloudResourceEntityMapping"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.security.googleCloudResourceEntityMapping"
    },
    "microsoft.graph.security.hostEntityMapping": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.security.entityMapping"
        },
        {
          "title": "hostEntityMapping",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "deviceIdColumn": {
              "type": [
                "string",
                "null"
              ],
              "description": "Name of the detection query column that maps to the device ID of the alert entity."
            },
            "dnsDomainColumn": {
              "type": [
                "string",
                "null"
              ],
              "description": "Name of the detection query column that maps to the DNS domain of the alert entity."
            },
            "nameColumn": {
              "type": [
                "string",
                "null"
              ],
              "description": "Name of the detection query column that maps to the name of the alert entity."
            },
            "netBiosNameColumn": {
              "type": [
                "string",
                "null"
              ],
              "description": "Name of the detection query column that maps to the NetBIOS name of the alert entity."
            },
            "ntDomainColumn": {
              "type": [
                "string",
                "null"
              ],
              "description": "Name of the detection query column that maps to the NT domain of the alert entity."
            },
            "@odata.type": {
              "type": "string",
              "default": "#microsoft.graph.security.hostEntityMapping"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.security.hostEntityMapping"
    },
    "microsoft.graph.security.ipEntityMapping": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.security.entityMapping"
        },
        {
          "title": "ipEntityMapping",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "addressColumn": {
              "type": [
                "string",
                "null"
              ],
              "description": "Name of the detection query column that maps to the IP address of the alert entity."
            },
            "scopeColumn": {
              "type": [
                "string",
                "null"
              ],
              "description": "Name of the detection query column that maps to the scope of the alert entity."
            },
            "@odata.type": {
              "type": "string",
              "default": "#microsoft.graph.security.ipEntityMapping"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.security.ipEntityMapping"
    },
    "microsoft.graph.security.isolateDeviceAction": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.security.deviceAction"
        },
        {
          "title": "isolateDeviceAction",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "isolationType": {
              "$ref": "#/$defs/microsoft.graph.security.isolationType"
            },
            "@odata.type": {
              "type": "string"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.security.isolateDeviceAction"
    },
    "microsoft.graph.security.isolationType": {
      "title": "isolationType",
      "enum": [
        "full",
        "selective",
        "unknownFutureValue"
      ],
      "type": "string"
    },
    "microsoft.graph.security.mailClusterEntityMapping": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.security.entityMapping"
        },
        {
          "title": "mailClusterEntityMapping",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "queryColumn": {
              "type": "string",
              "description": "Name of the detection query column that maps to the query of the alert entity."
            },
            "sourceColumn": {
              "type": "string",
              "description": "Name of the detection query column that maps to the source of the alert entity."
            },
            "@odata.type": {
              "type": "string",
              "default": "#microsoft.graph.security.mailClusterEntityMapping"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.security.mailClusterEntityMapping"
    },
    "microsoft.graph.security.mailMessageEntityMapping": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.security.entityMapping"
        },
        {
          "title": "mailMessageEntityMapping",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "networkMessageIdColumn": {
              "type": "string",
              "description": "Name of the detection query column that maps to the network message ID of the alert entity."
            },
            "recipientColumn": {
              "type": "string",
              "description": "Name of the detection query column that maps to the recipient of the alert entity."
            },
            "senderColumn": {
              "type": "string",
              "description": "Name of the detection query column that maps to the sender of the alert entity."
            },
            "subjectColumn": {
              "type": "string",
              "description": "Name of the detection query column that maps to the subject of the alert entity."
            },
            "@odata.type": {
              "type": "string",
              "default": "#microsoft.graph.security.mailMessageEntityMapping"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.security.mailMessageEntityMapping"
    },
    "microsoft.graph.security.mailboxEntityMapping": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.security.entityMapping"
        },
        {
          "title": "mailboxEntityMapping",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "primaryAddressColumn": {
              "type": "string",
              "description": "Name of the detection query column that maps to the primary email address of the alert entity."
            },
            "@odata.type": {
              "type": "string",
              "default": "#microsoft.graph.security.mailboxEntityMapping"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.security.mailboxEntityMapping"
    },
    "microsoft.graph.security.mitreTactic": {
      "title": "mitreTactic",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "tactic": {
          "type": "string",
          "description": "The MITRE tactic identifier, for example, Exploit."
        },
        "techniques": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.security.mitreTechnique"
          },
          "description": "The techniques observed within this tactic."
        },
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "microsoft.graph.security.mitreTechnique": {
      "title": "mitreTechnique",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "subTechniques": {
          "type": "array",
          "items": {
            "type": [
              "string",
              "null"
            ]
          },
          "description": "The MITRE ATT&CK subtechnique identifiers that are associated with this technique, for example, T1059.001."
        },
        "technique": {
          "type": "string",
          "description": "The MITRE ATT&CK technique identifier, for example, T1059."
        },
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "microsoft.graph.security.oAuthApplicationEntityMapping": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.security.entityMapping"
        },
        {
          "title": "oAuthApplicationEntityMapping",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "oAuthAppIdColumn": {
              "type": "string",
              "description": "Name of the detection query column that maps to the OAuth application ID of the alert entity."
            },
            "@odata.type": {
              "type": "string",
              "default": "#microsoft.graph.security.oAuthApplicationEntityMapping"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.security.oAuthApplicationEntityMapping"
    },
    "microsoft.graph.security.organizationalScope": {
      "title": "organizationalScope",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "deviceGroups": {
          "type": "array",
          "items": {
            "type": [
              "string",
              "null"
            ]
          },
          "description": "List of device groups to which the custom detection rule applies."
        },
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "microsoft.graph.security.processEntityMapping": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.security.entityMapping"
        },
        {
          "title": "processEntityMapping",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "sha1Column": {
              "type": [
                "string",
                "null"
              ],
              "description": "Name of the detection query column that maps to the SHA-1 hash of the alert entity."
            },
            "sha256Column": {
              "type": [
                "string",
                "null"
              ],
              "description": "Name of the detection query column that maps to the SHA-256 hash of the alert entity."
            },
            "@odata.type": {
              "type": "string",
              "default": "#microsoft.graph.security.processEntityMapping"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.security.processEntityMapping"
    },
    "microsoft.graph.security.queryCondition": {
      "title": "queryCondition",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "queryText": {
          "type": "string",
          "description": "Contents of the query."
        },
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "microsoft.graph.security.registryValueEntityMapping": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.security.entityMapping"
        },
        {
          "title": "registryValueEntityMapping",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "keyColumn": {
              "type": "string",
              "description": "Name of the detection query column that maps to the registry key of the alert entity."
            },
            "valueNameColumn": {
              "type": "string",
              "description": "Name of the detection query column that maps to the value name of the alert entity."
            },
            "@odata.type": {
              "type": "string",
              "default": "#microsoft.graph.security.registryValueEntityMapping"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.security.registryValueEntityMapping"
    },
    "microsoft.graph.security.ruleSchedule": {
      "title": "ruleSchedule",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "frequency": {
          "pattern": "^-?P([0-9]+D)?(T([0-9]+H)?([0-9]+M)?([0-9]+([.][0-9]+)?S)?)?$",
          "type": "string",
          "description": "The recurring time interval at which the rule runs (ISO 8601 duration, for example P1D for daily, PT1H for hourly).",
          "format": "duration"
        },
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "microsoft.graph.security.securityGroupEntityMapping": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.security.entityMapping"
        },
        {
          "title": "securityGroupEntityMapping",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "distinguishedNameColumn": {
              "type": [
                "string",
                "null"
              ],
              "description": "Name of the detection query column that maps to the distinguished name of the alert entity."
            },
            "objectIdColumn": {
              "type": [
                "string",
                "null"
              ],
              "description": "Name of the detection query column that maps to the object ID of the alert entity."
            },
            "sidColumn": {
              "type": [
                "string",
                "null"
              ],
              "description": "Name of the detection query column that maps to the security identifier (SID) of the alert entity."
            },
            "@odata.type": {
              "type": "string",
              "default": "#microsoft.graph.security.securityGroupEntityMapping"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.security.securityGroupEntityMapping"
    },
    "microsoft.graph.security.stopAndQuarantineFileAction": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.security.automatedAction"
        },
        {
          "title": "stopAndQuarantineFileAction",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "deviceIdColumn": {
              "type": "string",
              "description": "Name of the hunting-query result column that contains the device ID for the device where the file was observed."
            },
            "sha1Column": {
              "type": "string",
              "description": "Name of the hunting-query result column that contains the SHA-1 hash of the file to stop and quarantine."
            },
            "@odata.type": {
              "type": "string",
              "default": "#microsoft.graph.security.stopAndQuarantineFileAction"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.security.stopAndQuarantineFileAction"
    },
    "microsoft.graph.security.urlEntityMapping": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.security.entityMapping"
        },
        {
          "title": "urlEntityMapping",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "addressColumn": {
              "type": "string",
              "description": "Name of the detection query column that maps to the URL address of the alert entity."
            },
            "@odata.type": {
              "type": "string",
              "default": "#microsoft.graph.security.urlEntityMapping"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.security.urlEntityMapping"
    }
  }
}