1Password - Vault export post account creation
Id | 969e2e5c-9cc6-423c-a3de-514f7ad75fe7 |
Rulename | 1Password - Vault export post account creation |
Description | This will alert when a successful vault export has occurred within 14 days of a new account being created within 1Password. Ref: https://1password.com/ Ref: https://github.com/securehats/ |
Severity | Medium |
Tactics | CredentialAccess Persistence |
Techniques | T1555 T1136 |
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 Post Account Creation.yaml |
Version | 1.0.0 |
Arm template | 969e2e5c-9cc6-423c-a3de-514f7ad75fe7.json |
let ruleFrequency = 1h;
let lookback = 14d;
let onePasswordUserCreationCheck =
OnePasswordEventLogs_CL
| where TimeGenerated between (ago(lookback) .. ago(now() - ago(ruleFrequency)))
| extend creationActivityFound = iff(action == "activate" and object_type == "user", bool(1), bool(0))
;
OnePasswordEventLogs_CL
| where action == "export" and object_type == "vault"
| extend userUuid = tostring(actor_details.uuid)
| join (
onePasswordUserCreationCheck
| where creationActivityFound == true
| extend userUuid = tostring(object_details.uuid)
)
on $left.userUuid == $right.userUuid
| extend
TargetUsername = object_details1.email
, SrcIpAddr = session1.ip_address
id: 969e2e5c-9cc6-423c-a3de-514f7ad75fe7
suppressionDuration: 5h
triggerOperator: gt
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/1Password/Analytics Rules/1Password - Vault Export Post Account Creation.yaml
requiredDataConnectors:
- dataTypes:
- OnePasswordEventLogs_CL
connectorId: 1Password
description: |-
This will alert when a successful vault export has occurred within 14 days of a new account being created within 1Password.
Ref: https://1password.com/
Ref: https://github.com/securehats/
severity: Medium
queryPeriod: 14d
kind: Scheduled
tactics:
- CredentialAccess
- Persistence
eventGroupingSettings:
aggregationKind: SingleAlert
queryFrequency: 1h
query: |-
let ruleFrequency = 1h;
let lookback = 14d;
let onePasswordUserCreationCheck =
OnePasswordEventLogs_CL
| where TimeGenerated between (ago(lookback) .. ago(now() - ago(ruleFrequency)))
| extend creationActivityFound = iff(action == "activate" and object_type == "user", bool(1), bool(0))
;
OnePasswordEventLogs_CL
| where action == "export" and object_type == "vault"
| extend userUuid = tostring(actor_details.uuid)
| join (
onePasswordUserCreationCheck
| where creationActivityFound == true
| extend userUuid = tostring(object_details.uuid)
)
on $left.userUuid == $right.userUuid
| extend
TargetUsername = object_details1.email
, SrcIpAddr = session1.ip_address
incidentConfiguration:
groupingConfiguration:
lookbackDuration: 1h
reopenClosedIncident: false
matchingMethod: AllEntities
enabled: true
createIncident: true
version: 1.0.0
triggerThreshold: 0
entityMappings:
- entityType: Account
fieldMappings:
- columnName: TargetUsername
identifier: FullName
- entityType: IP
fieldMappings:
- columnName: SrcIpAddr
identifier: Address
name: 1Password - Vault export post account creation
relevantTechniques:
- T1555
- T1136
suppressionEnabled: false
{
"$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/969e2e5c-9cc6-423c-a3de-514f7ad75fe7')]",
"kind": "Scheduled",
"name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/969e2e5c-9cc6-423c-a3de-514f7ad75fe7')]",
"properties": {
"alertRuleTemplateName": "969e2e5c-9cc6-423c-a3de-514f7ad75fe7",
"customDetails": null,
"description": "This will alert when a successful vault export has occurred within 14 days of a new account being created within 1Password.\n\nRef: https://1password.com/\nRef: https://github.com/securehats/",
"displayName": "1Password - Vault export post account creation",
"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 Post Account Creation.yaml",
"query": "let ruleFrequency = 1h;\nlet lookback = 14d;\nlet onePasswordUserCreationCheck =\n OnePasswordEventLogs_CL\n | where TimeGenerated between (ago(lookback) .. ago(now() - ago(ruleFrequency)))\n | extend creationActivityFound = iff(action == \"activate\" and object_type == \"user\", bool(1), bool(0))\n;\nOnePasswordEventLogs_CL\n| where action == \"export\" and object_type == \"vault\"\n| extend userUuid = tostring(actor_details.uuid)\n| join (\n onePasswordUserCreationCheck\n | where creationActivityFound == true\n | extend userUuid = tostring(object_details.uuid)\n )\n on $left.userUuid == $right.userUuid\n| extend\n TargetUsername = object_details1.email\n , SrcIpAddr = session1.ip_address",
"queryFrequency": "PT1H",
"queryPeriod": "P14D",
"severity": "Medium",
"subTechniques": [],
"suppressionDuration": "PT5H",
"suppressionEnabled": false,
"tactics": [
"CredentialAccess",
"Persistence"
],
"techniques": [
"T1136",
"T1555"
],
"templateVersion": "1.0.0",
"triggerOperator": "GreaterThan",
"triggerThreshold": 0
},
"type": "Microsoft.OperationalInsights/workspaces/providers/alertRules"
}
]
}