GCP Audit: Firewall Rule Insert, Update, Patch, or Delete

Flags GCP audit events where firewall rules are inserted, updated, patched, or deleted.

FreeReviewedSigma · Medium · v4
Product
gcp
Service
gcp.audit
Author
Austin Songer @austinsonger (SigmaHQ), DRL 1.1
Published
2021-08-13
Updated
2026-07-31
title: "GCP Audit: Firewall Rule Insert, Update, Patch, or Delete"
id: 73a7bdb1-3dd5-423d-ae55-8131d18c27a9
status: test
description: This rule detects changes to Google Cloud firewall resources by matching GCP audit log API method names for firewall rule Insert, Update, Patch, or Delete. An attacker or unauthorized user could use these operations to weaken network controls or disrupt access by adding, altering, or removing firewall rules. It relies on GCP audit telemetry that records Compute.Firewalls API method_name values and correlates them to modification and deletion activity.
references:
  - https://cloud.google.com/kubernetes-engine/docs/how-to/audit-logging
  - https://developers.google.com/resources/api-libraries/documentation/compute/v1/java/latest/com/google/api/services/compute/Compute.Firewalls.html
  - https://github.com/SigmaHQ/sigma/blob/master/rules/cloud/gcp/audit/gcp_firewall_rule_modified_or_deleted.yml
author: Austin Songer @austinsonger, Huntrule Team
date: 2021-08-13
modified: 2022-10-09
tags:
  - attack.defense-impairment
  - attack.t1685
logsource:
  product: gcp
  service: gcp.audit
detection:
  selection:
    gcp.audit.method_name:
      - v*.Compute.Firewalls.Delete
      - v*.Compute.Firewalls.Patch
      - v*.Compute.Firewalls.Update
      - v*.Compute.Firewalls.Insert
  condition: selection
falsepositives:
  - Firewall rules being modified or deleted may be performed by a system administrator. Verify that the firewall configuration change was expected.
  - Exceptions can be added to this rule to filter expected behavior.
level: medium
license: DRL-1.1
related:
  - id: fe513c69-734c-4d4a-8548-ac5f609be82b
    type: derived