GCP Pub/Sub Subscription Creation

Last updated 7 months ago on 2025-01-15
Created 5 years ago on 2020-09-23

About

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.
Tags
Domain: CloudData Source: GCPData Source: Google Cloud PlatformUse Case: Log AuditingTactic: CollectionLanguage: kuery
Severity
low
Risk Score
21
MITRE ATT&CK™

Collection (TA0009)(opens in a new tab or window)

False Positive Examples
Subscription creations may be done by a system or network administrator. Verify whether the user email, resource name, and/or hostname should be making changes in your environment. Subscription creations by unfamiliar users or hosts should be investigated. If known behavior is causing false positives, it can be exempted from the rule.
License
Elastic License v2(opens in a new tab or window)

Definition

Rule Type
Query (Kibana Query Language)
Integration Pack
Prebuilt Security Detection Rules
Index Patterns
filebeat-*logs-gcp*
Related Integrations

gcp(opens in a new tab or window)

Query
event.dataset:gcp.audit and event.action:google.pubsub.v*.Subscriber.CreateSubscription and event.outcome:success

Install detection rules in Elastic Security

Detect GCP Pub/Sub Subscription Creation in the Elastic Security detection engine by installing this rule into your Elastic Stack.

To setup this rule, check out the installation guide for Prebuilt Security Detection Rules(opens in a new tab or window).