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
version: 1.0.0
queryPeriod: 14d
id: 51617533-cf51-4415-9020-b15bd47d69d2
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/1Password/Analytics Rules/1Password - Vault export prior to account suspension or deletion.yaml
suppressionEnabled: false
triggerThreshold: 0
kind: Scheduled
severity: Medium
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/
triggerOperator: gt
tactics:
- CredentialAccess
queryFrequency: 1h
suppressionDuration: 5h
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
requiredDataConnectors:
- connectorId: 1Password
dataTypes:
- OnePasswordEventLogs_CL
incidentConfiguration:
createIncident: true
groupingConfiguration:
enabled: true
reopenClosedIncident: false
matchingMethod: AllEntities
lookbackDuration: 1h
relevantTechniques:
- T1555
eventGroupingSettings:
aggregationKind: SingleAlert
name: 1Password - Vault export prior to account suspension or deletion
entityMappings:
- entityType: Account
fieldMappings:
- identifier: FullName
columnName: TargetUsername
- entityType: IP
fieldMappings:
- identifier: Address
columnName: SrcIpAddr
{
"$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"
}
]
}