Coder Social home page Coder Social logo

aws-guardduty-enterprise's Introduction

aws-guardduty-enterprise

Manage GuardDuty At Enterprise Scale

What this repo does

  1. Deploy a lambda to enable GuardDuty for new accounts.
  2. Deploy a Lambda to take GuardDuty CloudWatch Events and forward to an Splunk HTTP Event Collector (HEC) of your choice

More stuff to come later. Like Splunk forwarding, or Security Hub. Maybe....

Deployment of the GuardDuty Enable (and Master/Member invitation) Lambda

  1. Install cfn-deploy
pip3 install cftdeploy
  1. Make the Manifest
make BUCKET=SETME enable-manifest
  1. Edit the Manifest
    1. Remove the lines for pLambdaZipFile and pDeployBucket as they will be set by the Makefile
    2. Add the role name for listing accounts in the payer (pAuditRole) and for accepting the invite in the child (pAcceptRole)
    3. Add a SES emailed email address for the pEmailFrom and pEmailTo parameters
    4. Replace None with the new account topic if you want to subscribe the lambda to a new account topic
  2. Validate the manifest
make BUCKET=SETME enable-validate-manifest
  1. Deploy!
make BUCKET=SETME enable-deploy

Deployment of the GuardDuty To Splunk Lambdas

This is Deployed via the SAM application for Splunk logging. See the AWS Console Page for more info.

The makefile will deploy it to all regions

  1. Install cfn-deploy
pip3 install cftdeploy
  1. Make the Manifest
make BUCKET=SETME splunk-manifest
  1. Edit the Manifest
    1. SET the HEC Token and URL in the Manifest
    2. Remove the region
  2. Deploy to all regions
make BUCKET=SETME splunk-deploy

Required format for the SNS Message for the Enable Lambda:

The message published to SNS must contain the following element:

    message = {
        'account_id': 'string',
        'dry_run': true|false,  # optional, if un-specified, dry_run=false
        'region': ['string'],   # optional, if un-specified, runs all regions
    }

aws-guardduty-enterprise's People

Contributors

jchrisfarris avatar nancytao avatar

Watchers

James Cloos 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.