GCP Firewall Rule Deletion

Identifies when a firewall rule is deleted in Google Cloud Platform (GCP) for Virtual Private Cloud (VPC) or App Engine. These firewall rules can be configured to allow or deny connections to or from virtual machine (VM) instances or specific applications. An adversary may delete a firewall rule in order to weaken their target's security controls.

Elastic rule (View on GitHub)

 1[metadata]
 2creation_date = "2020/09/21"
 3integration = ["gcp"]
 4maturity = "production"
 5updated_date = "2024/05/21"
 6
 7[rule]
 8author = ["Elastic"]
 9description = """
10Identifies when a firewall rule is deleted in Google Cloud Platform (GCP) for Virtual Private Cloud (VPC) or App Engine.
11These firewall rules can be configured to allow or deny connections to or from virtual machine (VM) instances or
12specific applications. An adversary may delete a firewall rule in order to weaken their target's security controls.
13"""
14false_positives = [
15    """
16    Firewall rules may be deleted by system administrators. Verify that the firewall configuration change was expected.
17    Exceptions can be added to this rule to filter expected behavior.
18    """,
19]
20index = ["filebeat-*", "logs-gcp*"]
21language = "kuery"
22license = "Elastic License v2"
23name = "GCP Firewall Rule Deletion"
24note = """## Setup
25
26The GCP Fleet integration, Filebeat module, or similarly structured data is required to be compatible with this rule."""
27references = [
28    "https://cloud.google.com/vpc/docs/firewalls",
29    "https://cloud.google.com/appengine/docs/standard/python/understanding-firewalls",
30]
31risk_score = 47
32rule_id = "ff9b571e-61d6-4f6c-9561-eb4cca3bafe1"
33severity = "medium"
34tags = [
35    "Domain: Cloud",
36    "Data Source: GCP",
37    "Data Source: Google Cloud Platform",
38    "Use Case: Configuration Audit",
39    "Tactic: Defense Evasion",
40]
41timestamp_override = "event.ingested"
42type = "query"
43
44query = '''
45event.dataset:gcp.audit and event.action:(*.compute.firewalls.delete or google.appengine.*.Firewall.Delete*Rule)
46'''
47
48
49[[rule.threat]]
50framework = "MITRE ATT&CK"
51[[rule.threat.technique]]
52id = "T1562"
53name = "Impair Defenses"
54reference = "https://attack.mitre.org/techniques/T1562/"
55
56
57[rule.threat.tactic]
58id = "TA0005"
59name = "Defense Evasion"
60reference = "https://attack.mitre.org/tactics/TA0005/"

Setup

The GCP Fleet integration, Filebeat module, or similarly structured data is required to be compatible with this rule.

References

Related rules

to-top