GWorkspaceActivityReports
| where EventMessage has "TOGGLE_OUTBOUND_RELAY"
| extend AccountCustomEntity = ActorEmail
requiredDataConnectors:
- connectorId: GoogleWorkspaceReportsAPI
dataTypes:
- GWorkspaceActivityReports
triggerOperator: gt
queryFrequency: 1h
name: GWorkspace - An Outbound Relay has been added to a G Suite Domain
status: Available
queryPeriod: 1h
id: ead87cd6-5da7-11ec-bf63-0242ac130002
description: |
'Detects outbound relays may be added to collect email.'
severity: Medium
query: |
GWorkspaceActivityReports
| where EventMessage has "TOGGLE_OUTBOUND_RELAY"
| extend AccountCustomEntity = ActorEmail
version: 1.0.1
kind: Scheduled
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/GoogleWorkspaceReports/Analytic Rules/GWorkspaceOutboundRelayAddedToSuiteDomain.yaml
entityMappings:
- entityType: Account
fieldMappings:
- identifier: Name
columnName: AccountCustomEntity
relevantTechniques:
- T1114
tactics:
- Collection
triggerThreshold: 0
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"workspace": {
"type": "String"
}
},
"resources": [
{
"id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/providers', parameters('workspace'), 'Microsoft.SecurityInsights'),'/alertRules/ead87cd6-5da7-11ec-bf63-0242ac130002')]",
"name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/ead87cd6-5da7-11ec-bf63-0242ac130002')]",
"type": "Microsoft.OperationalInsights/workspaces/providers/alertRules",
"kind": "Scheduled",
"apiVersion": "2022-11-01-preview",
"properties": {
"displayName": "GWorkspace - An Outbound Relay has been added to a G Suite Domain",
"description": "'Detects outbound relays may be added to collect email.'\n",
"severity": "Medium",
"enabled": true,
"query": "GWorkspaceActivityReports\n| where EventMessage has \"TOGGLE_OUTBOUND_RELAY\"\n| extend AccountCustomEntity = ActorEmail\n",
"queryFrequency": "PT1H",
"queryPeriod": "PT1H",
"triggerOperator": "GreaterThan",
"triggerThreshold": 0,
"suppressionDuration": "PT1H",
"suppressionEnabled": false,
"tactics": [
"Collection"
],
"techniques": [
"T1114"
],
"alertRuleTemplateName": "ead87cd6-5da7-11ec-bf63-0242ac130002",
"customDetails": null,
"entityMappings": [
{
"fieldMappings": [
{
"identifier": "Name",
"columnName": "AccountCustomEntity"
}
],
"entityType": "Account"
}
],
"templateVersion": "1.0.1",
"OriginalUri": "https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/GoogleWorkspaceReports/Analytic Rules/GWorkspaceOutboundRelayAddedToSuiteDomain.yaml",
"status": "Available"
}
}
]
}