Skip to content

Send GCP Security Command Center notifications to your channel of choice

License

Notifications You must be signed in to change notification settings

sveronneau/scc-findings-notifications

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Send Google Cloud Platform's Security Command Center notifications to your channel of choice.

Many GCP customers who are using Security Command Center (Free or Premium), say that their biggest pain point is getting notified of findings when they are detected (unless using Slack with SCC Premium since it's native). Going into the console on a regular cadence is something that they will do at first but is quickly forgotten.

In order to help get those notifications out, this repo is hosting some Node JS, Python and Terraform code that allows you to get the Findings from Pub/Sub via a Cloud Function to send those notifications out to you via Slack, G-Chat or SendGrid.

It also uses Secrets Manager to store the API tokens and a sensivite field when asked for the Slack Bot Token, SendGrid API Key or G-Chat WebHook URL on the Terraform run.

Google Cloud SCC Notifications to Google Chat

Google Cloud SCC Notifications to Slack

Google Cloud SCC Notifications to SendGrid

Google Cloud SCC Notifications to MS Team

If you wish to send your SCC Findings to MS Team, the easiest way to do so is to use the 'Send an email to a Channel' feature. Set an email to your MS Team Channel of choice and then use the SendGrid integration to target that email address.

Notification Filter

You can change the notification_filter value in the terraform.tfvars of the channel you are deploying to better suit your needs. You may want to add a start date to limit scope for example.

  • notification_filter = "(severity="HIGH" OR severity="CRITICAL") AND state="ACTIVE" AND create_time>"2023-05-01T05:00:56.941Z""

This repo works great when used in GCP Cloud Shell!

Note: All code samples are not meant for production. Please use responsibly.

About

Send GCP Security Command Center notifications to your channel of choice

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published