Sending System Notifications to AWS SNS
CloudGuard can send notifications on its system events and audit logs to your email or an SNS (Simple Notification Service) topic in your AWS Amazon® Web Services. Public cloud platform that offers global compute, storage, database, application and other cloud services. account. If your SNS topic is configured with an SNS subscription, then you can configure CloudGuard to push notifications to your subscription's destination, such as Lambda, SMS, or email.
At AWS SNS, you receive notifications only for those events that you select in the settings for Email Notifications.
Connecting CloudGuard Events and AWS SNS
Step 1: In CloudGuard, enable SNS integration
-
In the CloudGuard portal, from the left menu, click Integration Hub.
-
In the Cloud Services section, click SNS.
The SNS sliding menu opens.
-
Create the integration.
Important - The environment number changes and is dependent on which data center your account belongs to.
Step 2: In AWS, create an SNS topic
-
In the AWS console, go to Services > All services > Simple Notification Service.
-
Select Create topic.
-
Below Details, select Standard and enter a name for the SNS topic, for example, cloudguard-sns.
-
Open the Access policy section and select:
-
In Choose method, select Basic.
-
In Define who can publish messages to the topic, select the option Only the specified AWS accounts and paste below the environment number copied in Step 1.
-
In Define who can subscribe to this topic, select the option Only the topic owner.
-
-
Click Create topic.
-
In the Details window that opens, copy the ARN.
Step 3: Add an SNS subscription to the topic
After you create an AWS SNS topic, you must add subscriptions to integrate the information (notifications) to an endpoint. In AWS, navigate to the SNS page and select the SNS topic which you created.
-
In Subscriptions, click Create subscription.
-
Below Protocol, select a protocol, for example, Email.
Enter the details for the endpoint that is to receive the subscription. For example, for an email, the endpoint is the email address.
-
Click Create subscription. The subscription status is set to pending until it is confirmed. For email subscriptions, when an email is sent to the endpoint address, it is necessary to confirm the email.
Note - SNS is not sent to a subscription that is not confirmed.
-
Go back to the browser tab where CloudGuard is currently open.
-
Paste the topic ARN Amazon Resource Names (ARNs) uniquely identify AWS resources. They are required to specify a resource unambiguously across all of AWS, such as in IAM policies, Amazon Relational Database Service (Amazon RDS) tags, and API calls. into the SNS configuration text box.
-
Click Save.
In CloudGuard, SNS integration is Enabled.
Step 4: Create a new KMS key
-
In the AWS Management Console, go to Services > Security, Identity, & Compliance > Key Management Service.
-
Click Create a key.
-
On the Configure key page:
-
In the Key type section, select Symmetric.
-
In the Key usage section, select Encrypt and decrypt.
-
If the KMS AWS Key Management Service (AWS KMS) - A managed service that simplifies the creation and control of encryption keys that are used to encrypt data. and CloudGuard are in different regions, in the Advanced options section select Multi-Region key.
-
Click Next.
-
-
On the Add labels page:
-
In the Alias section, enter an alias for the key.
-
Click Next.
-
-
On the Define key administrative permissions page, configure administrative permissions for the key.
-
On the Define key usage permissions page:
-
In the Key users section, select IAM Identity and Access Management (IAM) - A web service that customers can use to manage users and user permissions within their organizations. users and rules to allow to use the key.
-
In the Other AWS accounts section, click Add another AWS account and paste the environment number for CloudGuard that you copied in Step 1.
-
Click Next.
-
-
On the Review page, click Finish.
The Customer managed keys screen opens and the new key appears in the table.
Step 5: Associate the KMS Key with your SNS topic
-
In the AWS Management Console, go to Services > Application Integration > Simple Notification Service > Topics.
-
Click the SNS topic you created for CloudGuard.
The topic page opens.
-
Click Edit.
The Edit topic page opens.
-
In the Encryption section:
-
Toggle the Encryption button to the "On" position.
-
In the AWS KMS key field, select your KMS key.
-
-
Click Save changes.
Integration of Findings Notification
Configure the SNS topic to send single findings (not reports).
To configure SNS integration for single findings:
-
In the CloudGuard portal, from the left menu, click Integration Hub.
-
In the Collaborations and Messaging section, click SNS.
The SNS sliding menu opens.
- Create the integration.
More Links