1Password - Vault export prior to account suspension or deletion
Id | 51617533-cf51-4415-9020-b15bd47d69d2 |
Rulename | 1Password - Vault export prior to account suspension or deletion |
Description | This will alert when a successful vault export has occurred within the last 14 days prior to an account being suspended or deleted from 1Password. Ref: https://1password.com/ Ref: https://github.com/securehats/ |
Severity | Medium |
Tactics | CredentialAccess |
Techniques | T1555 |
Required data connectors | 1Password |
Kind | Scheduled |
Query frequency | 1h |
Query period | 14d |
Trigger threshold | 0 |
Trigger operator | gt |
Source Uri | https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/1Password/Analytics Rules/1Password - Vault export prior to account suspension or deletion.yaml |
Version | 1.0.0 |
Arm template | 51617533-cf51-4415-9020-b15bd47d69d2.json |
let ruleFrequency = 1h;
let lookback = 14d;
let onePasswordVaultExportCheck =
OnePasswordEventLogs_CL
| where TimeGenerated between (ago(lookback) .. ago(now() - ago(ruleFrequency)))
| where action == "export" and object_type == "vault"
;
OnePasswordEventLogs_CL
| where (action == "suspend" and object_type == "user") or (action == "delete" and object_type == "user")
| extend
userUuid = tostring(object_details.uuid)
, auditevents = bag_pack("action", action, "object_type", object_type)
| join (
onePasswordVaultExportCheck
| extend userUuid = tostring(actor_details.uuid)
)
on $left.userUuid == $right.userUuid
| extend
TargetUsername = actor_details1.email
, SrcIpAddr = session1.ip_address
| project
TimeGenerated
, auditevents
, actor_details
, location_details = location
, session_details = session
, exported_vault = object_details
, TargetUsername
, SrcIpAddr
relevantTechniques:
- T1555
incidentConfiguration:
createIncident: true
groupingConfiguration:
lookbackDuration: 1h
enabled: true
reopenClosedIncident: false
matchingMethod: AllEntities
name: 1Password - Vault export prior to account suspension or deletion
requiredDataConnectors:
- dataTypes:
- OnePasswordEventLogs_CL
connectorId: 1Password
entityMappings:
- fieldMappings:
- identifier: FullName
columnName: TargetUsername
entityType: Account
- fieldMappings:
- identifier: Address
columnName: SrcIpAddr
entityType: IP
triggerThreshold: 0
id: 51617533-cf51-4415-9020-b15bd47d69d2
tactics:
- CredentialAccess
version: 1.0.0
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/1Password/Analytics Rules/1Password - Vault export prior to account suspension or deletion.yaml
queryPeriod: 14d
kind: Scheduled
eventGroupingSettings:
aggregationKind: SingleAlert
suppressionDuration: 5h
queryFrequency: 1h
severity: Medium
suppressionEnabled: false
description: |-
This will alert when a successful vault export has occurred within the last 14 days prior to an account being suspended or deleted from 1Password.
Ref: https://1password.com/
Ref: https://github.com/securehats/
query: |-
let ruleFrequency = 1h;
let lookback = 14d;
let onePasswordVaultExportCheck =
OnePasswordEventLogs_CL
| where TimeGenerated between (ago(lookback) .. ago(now() - ago(ruleFrequency)))
| where action == "export" and object_type == "vault"
;
OnePasswordEventLogs_CL
| where (action == "suspend" and object_type == "user") or (action == "delete" and object_type == "user")
| extend
userUuid = tostring(object_details.uuid)
, auditevents = bag_pack("action", action, "object_type", object_type)
| join (
onePasswordVaultExportCheck
| extend userUuid = tostring(actor_details.uuid)
)
on $left.userUuid == $right.userUuid
| extend
TargetUsername = actor_details1.email
, SrcIpAddr = session1.ip_address
| project
TimeGenerated
, auditevents
, actor_details
, location_details = location
, session_details = session
, exported_vault = object_details
, TargetUsername
, SrcIpAddr
triggerOperator: gt
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"workspace": {
"type": "String"
}
},
"resources": [
{
"apiVersion": "2024-01-01-preview",
"id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/providers', parameters('workspace'), 'Microsoft.SecurityInsights'),'/alertRules/51617533-cf51-4415-9020-b15bd47d69d2')]",
"kind": "Scheduled",
"name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/51617533-cf51-4415-9020-b15bd47d69d2')]",
"properties": {
"alertRuleTemplateName": "51617533-cf51-4415-9020-b15bd47d69d2",
"customDetails": null,
"description": "This will alert when a successful vault export has occurred within the last 14 days prior to an account being suspended or deleted from 1Password.\n\nRef: https://1password.com/\nRef: https://github.com/securehats/",
"displayName": "1Password - Vault export prior to account suspension or deletion",
"enabled": true,
"entityMappings": [
{
"entityType": "Account",
"fieldMappings": [
{
"columnName": "TargetUsername",
"identifier": "FullName"
}
]
},
{
"entityType": "IP",
"fieldMappings": [
{
"columnName": "SrcIpAddr",
"identifier": "Address"
}
]
}
],
"eventGroupingSettings": {
"aggregationKind": "SingleAlert"
},
"incidentConfiguration": {
"createIncident": true,
"groupingConfiguration": {
"enabled": true,
"lookbackDuration": "PT1H",
"matchingMethod": "AllEntities",
"reopenClosedIncident": false
}
},
"OriginalUri": "https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/1Password/Analytics Rules/1Password - Vault export prior to account suspension or deletion.yaml",
"query": "let ruleFrequency = 1h;\nlet lookback = 14d;\nlet onePasswordVaultExportCheck =\n OnePasswordEventLogs_CL\n | where TimeGenerated between (ago(lookback) .. ago(now() - ago(ruleFrequency)))\n | where action == \"export\" and object_type == \"vault\"\n;\nOnePasswordEventLogs_CL\n| where (action == \"suspend\" and object_type == \"user\") or (action == \"delete\" and object_type == \"user\")\n| extend\n userUuid = tostring(object_details.uuid)\n , auditevents = bag_pack(\"action\", action, \"object_type\", object_type)\n| join (\n onePasswordVaultExportCheck\n | extend userUuid = tostring(actor_details.uuid)\n )\n on $left.userUuid == $right.userUuid\n| extend\n TargetUsername = actor_details1.email\n , SrcIpAddr = session1.ip_address\n| project\n TimeGenerated\n , auditevents\n , actor_details\n , location_details = location\n , session_details = session\n , exported_vault = object_details\n , TargetUsername\n , SrcIpAddr",
"queryFrequency": "PT1H",
"queryPeriod": "P14D",
"severity": "Medium",
"subTechniques": [],
"suppressionDuration": "PT5H",
"suppressionEnabled": false,
"tactics": [
"CredentialAccess"
],
"techniques": [
"T1555"
],
"templateVersion": "1.0.0",
"triggerOperator": "GreaterThan",
"triggerThreshold": 0
},
"type": "Microsoft.OperationalInsights/workspaces/providers/alertRules"
}
]
}