Skip to content

aws-samples/aws-security-hub-analytic-pipeline

AWS Security Hub Analytic Pipeline

AWS Security Hub is a service that gives you aggregated visibility into your security and compliance posture across multiple AWS accounts. By exporting findings to Athena, you can enrich the data up with additional sources such as your configuration management database (CMDB) or IT service management database. Additionally, you can build analytic dimenions to find trends and patterns. This code is part of an upcoming blog post (link TBA) on visualizing Security Hub Findings to senior leaders and decision-makers.

This repository contains a CDK stack that builds the following infrastructure

CDK Infrastructure

Essentially there are two CDK Stacks (in one CDK Application):

  • A stack deployed per region containing Security Hub and handles the necessary infrastructure to stream findings to S3
  • A stack deployed once containing all the infrastructure to transform raw findings and expose it with Athena.

Additionally, included in the CDK application is Serverless Prowler Scanner designed to quickly provide real-data to help you walk through the Athena and QuickSight pieces, by providing you with actual actionable data.

Building the stack

Create a virtual environment

$ python3 -m venv .venv
$ source .venv/bin/activate

Install CDK dependencies

$ pip install -r requirements.txt

Deploy the stack

$ cdk deploy

Tested Use Case

  • AWS native security services -- GuardDuty, Access Analyzer, Inspector
  • Security Hub standards -- CIS Benchmark, PCI/DSS, AWS Security Best Practices
  • Third Party Integrations -- Prowler

Security

See CONTRIBUTING for more information.

License

This library is licensed under the MIT-0 License. See the LICENSE file.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •