Azure Activity Logs: Point-to-site VPN Gateway Modified or Deleted

Flags Azure Point-to-site VPN gateway modifications or deletions from Activity Log operation events.

FreeUnreviewedSigmamediumv1
title: "Azure Activity Logs: Point-to-site VPN Gateway Modified or Deleted"
id: dc927313-82c1-4fea-86f2-f7445c073904
status: test
description: This rule identifies Azure activity log events where a Point-to-site VPN gateway is written, deleted, reset, or has client connectivity/profile actions executed. Attackers may modify or remove VPN configurations to disrupt access or weaken remote connectivity. It relies on Azure Activity Logs operationName values covering P2S VPN gateway write/delete and related actions.
references:
  - https://learn.microsoft.com/en-us/azure/role-based-access-control/resource-provider-operations
  - https://github.com/SigmaHQ/sigma/blob/master/rules/cloud/azure/activity_logs/azure_network_p2s_vpn_modified_or_deleted.yml
author: Austin Songer @austinsonger, Huntrule Team
date: 2021-08-08
modified: 2022-08-23
tags:
  - attack.impact
logsource:
  product: azure
  service: activitylogs
detection:
  selection:
    operationName:
      - MICROSOFT.NETWORK/P2SVPNGATEWAYS/WRITE
      - MICROSOFT.NETWORK/P2SVPNGATEWAYS/DELETE
      - MICROSOFT.NETWORK/P2SVPNGATEWAYS/RESET/ACTION
      - MICROSOFT.NETWORK/P2SVPNGATEWAYS/GENERATEVPNPROFILE/ACTION
      - MICROSOFT.NETWORK/P2SVPNGATEWAYS/DISCONNECTP2SVPNCONNECTIONS/ACTION
      - MICROSOFT.NETWORK/P2SVPNGATEWAYS/PROVIDERS/MICROSOFT.INSIGHTS/DIAGNOSTICSETTINGS/WRITE
  condition: selection
falsepositives:
  - Point-to-site VPN being modified or deleted may be performed by a system administrator. Verify whether the user identity, user agent, and/or hostname should be making changes in your environment.
  - Point-to-site VPN modified or deleted from unfamiliar users should be investigated. If known behavior is causing false positives, it can be exempted from the rule.
level: medium
license: DRL-1.1
related:
  - id: d9557b75-267b-4b43-922f-a775e2d1f792
    type: derived

What it detects

This rule identifies Azure activity log events where a Point-to-site VPN gateway is written, deleted, reset, or has client connectivity/profile actions executed. Attackers may modify or remove VPN configurations to disrupt access or weaken remote connectivity. It relies on Azure Activity Logs operationName values covering P2S VPN gateway write/delete and related actions.

Known false positives

  • Point-to-site VPN being modified or deleted may be performed by a system administrator. Verify whether the user identity, user agent, and/or hostname should be making changes in your environment.
  • Point-to-site VPN modified or deleted from unfamiliar users should be investigated. If known behavior is causing false positives, it can be exempted from the rule.

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.