Git Product home page Git Product logo

scc-findings-notifications's Introduction

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.

scc-findings-notifications's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.