GCP Audit: Firewall Rule Insert, Update, Patch, or Delete
Flags GCP audit events where firewall rules are inserted, updated, patched, or deleted.
- Product
- gcp
- Service
- gcp.audit
- Author
- Austin Songer @austinsonger (SigmaHQ), DRL 1.1
- Published
- 2021-08-13
- Updated
- 2026-07-31
ATT&CK techniques
Recon
Resource Dev
Initial Access
Execution
Persistence
Priv Esc
Defense Evasion
Cred Access
Discovery
Lateral Movement
Collection
C2
Exfiltration
Impact
What it detects
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.
Reporting behind it
- cloud.google.comhttps://cloud.google.com/kubernetes-engine/docs/how-to/audit-logging
- developers.google.comhttps://developers.google.com/resources/api-libraries/documentation/compute/v1/java/latest/com/google/api/services/compute/Compute.Firewalls.html
- github.comhttps://github.com/SigmaHQ/sigma/blob/master/rules/cloud/gcp/audit/gcp_firewall_rule_modified_or_deleted.yml
Changelog
v4- v4Candidate ingested via manual entry.2026-07-31
- v3Candidate ingested via manual entry.2026-07-31
- v2Candidate ingested via manual entry.2026-07-31
- v1No changelog recorded for this version.2026-07-30
Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.
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