Microsoft Sentinel Analytic Rules
cloudbrothers.infoAzure Sentinel RepoToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeBack to homepage

1Password - Vault export post account creation

Back
Id969e2e5c-9cc6-423c-a3de-514f7ad75fe7
Rulename1Password - Vault export post account creation
DescriptionThis 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/
SeverityMedium
TacticsCredentialAccess
Persistence
TechniquesT1555
T1136
Required data connectors1Password
KindScheduled
Query frequency1h
Query period14d
Trigger threshold0
Trigger operatorgt
Source Urihttps://github.com/Azure/Azure-Sentinel/blob/master/Solutions/1Password/Analytics Rules/1Password - Vault Export Post Account Creation.yaml
Version1.0.0
Arm template969e2e5c-9cc6-423c-a3de-514f7ad75fe7.json
Deploy To Azure
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
relevantTechniques:
- T1555
- T1136
incidentConfiguration:
  createIncident: true
  groupingConfiguration:
    lookbackDuration: 1h
    enabled: true
    reopenClosedIncident: false
    matchingMethod: AllEntities
name: 1Password - Vault export post account creation
requiredDataConnectors:
- dataTypes:
  - OnePasswordEventLogs_CL
  connectorId: 1Password
entityMappings:
- fieldMappings:
  - identifier: FullName
    columnName: TargetUsername
  entityType: Account
- fieldMappings:
  - identifier: Address
    columnName: SrcIpAddr
  entityType: IP
triggerThreshold: 0
id: 969e2e5c-9cc6-423c-a3de-514f7ad75fe7
tactics:
- CredentialAccess
- Persistence
version: 1.0.0
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/1Password/Analytics Rules/1Password - Vault Export Post Account Creation.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 14 days of a new account being created within 1Password.

  Ref: https://1password.com/
  Ref: https://github.com/securehats/  
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  
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/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"
    }
  ]
}