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

1Password - Privileged vault permission change

Back
Id76e386eb-f51a-4600-97d1-f0db3b7e41f1
Rulename1Password - Privileged vault permission change
DescriptionThis will alert when permissions have changed within a privileged vault. Once this analytics rule is triggered it will group all related future alerts for upto an hour when all related entities are the same.



Ref: https://1password.com/

Ref: https://github.com/securehats/
SeverityHigh
TacticsPersistence
TechniquesT1098
Required data connectors1Password
KindScheduled
Query frequency5m
Query period5m
Trigger threshold0
Trigger operatorgt
Source Urihttps://github.com/Azure/Azure-Sentinel/blob/master/Solutions/1Password/Analytics Rules/1Password - Privileged vault permission change.yaml
Version1.0.0
Arm template76e386eb-f51a-4600-97d1-f0db3b7e41f1.json
Deploy To Azure
let watchlist =
    _GetWatchlist("PV1PW")
    | project SearchKey
;
// Insert the vault UUIDs below when using the dynamic vaults list within the analytics rule itself
let vaults = dynamic([""]);
OnePasswordEventLogs_CL
| where log_source == "auditevents"
| where
    (action has_any("grant", "revoke", "update") and object_type == "uva") or
    (action has_any("grant", "revoke", "update") and object_type == "gva")
// Enable the line below when using the "Privileged Vaults - 1PW" watchlist
| where object_uuid in (watchlist)
// Enable the line below when using the dynamic vaults list within the analytics rule itself
// | where object_uuid in (vaults)
| extend
    TargetUsername = case(isnotempty(aux_details), aux_details.email, "")
    , TargetGroupUUID = case(isempty(aux_details), aux_uuid, "")
    , ActorUsername = actor_details.email
    , SrcIpAddr = session.ip
suppressionEnabled: false
relevantTechniques:
- T1098
entityMappings:
- fieldMappings:
  - columnName: ActorUsername
    identifier: FullName
  entityType: Account
- fieldMappings:
  - columnName: TargetUsername
    identifier: FullName
  entityType: Account
- fieldMappings:
  - columnName: SrcIpAddr
    identifier: Address
  entityType: IP
incidentConfiguration:
  groupingConfiguration:
    reopenClosedIncident: false
    matchingMethod: AllEntities
    enabled: true
    lookbackDuration: 1h
  createIncident: true
version: 1.0.0
suppressionDuration: 5h
id: 76e386eb-f51a-4600-97d1-f0db3b7e41f1
description: |-
  This will alert when permissions have changed within a privileged vault. Once this analytics rule is triggered it will group all related future alerts for upto an hour when all related entities are the same.

  Ref: https://1password.com/
  Ref: https://github.com/securehats/  
requiredDataConnectors:
- connectorId: 1Password
  dataTypes:
  - OnePasswordEventLogs_CL
triggerThreshold: 0
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/1Password/Analytics Rules/1Password - Privileged vault permission change.yaml
eventGroupingSettings:
  aggregationKind: SingleAlert
triggerOperator: gt
queryFrequency: 5m
query: |-
  let watchlist =
      _GetWatchlist("PV1PW")
      | project SearchKey
  ;
  // Insert the vault UUIDs below when using the dynamic vaults list within the analytics rule itself
  let vaults = dynamic([""]);
  OnePasswordEventLogs_CL
  | where log_source == "auditevents"
  | where
      (action has_any("grant", "revoke", "update") and object_type == "uva") or
      (action has_any("grant", "revoke", "update") and object_type == "gva")
  // Enable the line below when using the "Privileged Vaults - 1PW" watchlist
  | where object_uuid in (watchlist)
  // Enable the line below when using the dynamic vaults list within the analytics rule itself
  // | where object_uuid in (vaults)
  | extend
      TargetUsername = case(isnotempty(aux_details), aux_details.email, "")
      , TargetGroupUUID = case(isempty(aux_details), aux_uuid, "")
      , ActorUsername = actor_details.email
      , SrcIpAddr = session.ip  
severity: High
queryPeriod: 5m
name: 1Password - Privileged vault permission change
tactics:
- Persistence
kind: Scheduled