GCP Pub/Sub Subscription Creation
Identifies the creation of a subscription in Google Cloud Platform (GCP). In GCP, the publisher-subscriber relationship (Pub/Sub) is an asynchronous messaging service that decouples event-producing and event-processing services. A subscription is a named resource representing the stream of messages to be delivered to the subscribing application.
Elastic rule (View on GitHub)
1[metadata]
2creation_date = "2020/09/23"
3integration = ["gcp"]
4maturity = "production"
5min_stack_comments = "New fields added: required_fields, related_integrations, setup"
6min_stack_version = "8.3.0"
7updated_date = "2023/06/22"
8
9[rule]
10author = ["Elastic"]
11description = """
12Identifies the creation of a subscription in Google Cloud Platform (GCP). In GCP, the publisher-subscriber relationship
13(Pub/Sub) is an asynchronous messaging service that decouples event-producing and event-processing services. A
14subscription is a named resource representing the stream of messages to be delivered to the subscribing application.
15"""
16false_positives = [
17 """
18 Subscription creations may be done by a system or network administrator. Verify whether the user email, resource
19 name, and/or hostname should be making changes in your environment. Subscription creations by unfamiliar users or
20 hosts should be investigated. If known behavior is causing false positives, it can be exempted from the rule.
21 """,
22]
23index = ["filebeat-*", "logs-gcp*"]
24language = "kuery"
25license = "Elastic License v2"
26name = "GCP Pub/Sub Subscription Creation"
27note = """## Setup
28
29The GCP Fleet integration, Filebeat module, or similarly structured data is required to be compatible with this rule."""
30references = ["https://cloud.google.com/pubsub/docs/overview"]
31risk_score = 21
32rule_id = "d62b64a8-a7c9-43e5-aee3-15a725a794e7"
33severity = "low"
34tags = ["Domain: Cloud", "Data Source: GCP", "Data Source: Google Cloud Platform", "Use Case: Log Auditing", "Tactic: Collection"]
35timestamp_override = "event.ingested"
36type = "query"
37
38query = '''
39event.dataset:gcp.audit and event.action:google.pubsub.v*.Subscriber.CreateSubscription and event.outcome:success
40'''
41
42
43[[rule.threat]]
44framework = "MITRE ATT&CK"
45[[rule.threat.technique]]
46id = "T1530"
47name = "Data from Cloud Storage"
48reference = "https://attack.mitre.org/techniques/T1530/"
49
50
51[rule.threat.tactic]
52id = "TA0009"
53name = "Collection"
54reference = "https://attack.mitre.org/tactics/TA0009/"
Setup
The GCP Fleet integration, Filebeat module, or similarly structured data is required to be compatible with this rule.
References
Related rules
- GCP Pub/Sub Topic Creation
- GCP Logging Bucket Deletion
- GCP Logging Sink Deletion
- GCP Logging Sink Modification
- GCP Pub/Sub Subscription Deletion