In this blog post I'll be providing insights about the email notification for findings generated within the security command center Standard / premium tier.
Although SCC doesn't have a straightforward out of the box email notification channel integrated within the SCC console, there are few options available from SCC to make this possible. With SCC we have an option to choose which is known as continuous exports and this is limited to either pub/sub topic or slack channel.
From pub/sub topic using cloud function(event trigger mechanism) we can further integrate with sendgrid email api, SMS, Slack, WebEx, and other services.
Note: After we set up a continuous export in SCC to pub/sub the existing messages will not be pushed / sent to pub/sub topic. Only the newly triggered /identified threats, findings etc., will be visible in the pub/sub topic messages.
Now let's take a look at how this can be done in real time:
2. Click on “CREATE CONTINUOUS EXPORT”
3. Select Cloud Pub/Sub
4. In the Export to Pub/Sub, provide the name for “Continuous Export”
5. Select the referenced project where the already created pub/sub exist or where it will be created
In the drop down menu of “Select a Cloud Pub/Sub topic” choose the topic if any created for this purpose or click on “Create Topic”
Choose the “Delivery type” as
Enable on required API’s
In the “Runtime, build, connections and security setting choose the runtime of preferred choice based on the code
For the demo reference we used send grid email api. Please find below instructions on how to further progress with the demo code and deploy the cloud function.
This sample code tested will send emails to the notified email id’s mentioned in the code.
Conclusion:
In this blog post we have attempted to establish how to send email notifications for SCC findings with regards to threats, vulnerabilities, misconfiguration, risks etc.,