sveronneau / scc-findings-notifications

Send GCP Security Command Center notifications to your channel of choice

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:Apache License 2.0


Languages

Language:HCL 76.0%Language:JavaScript 16.5%Language:Python 7.5%