Create a Golden AMI Pipeline integrated with a Tenable.io Scanner for vulnerability assessments of your AWS Amazon Machine Images(AMIs), and store approved images as Golden AMIs. This repository will also help you set up continuous monitoring of Amazon EC2 instances in your environment, and alert you in case an unapproved AMI is running.
This repo contains resources for building a Golden AMI Pipeline with AWS Systems Manager, AWS Config, AWS Lambda, AWS CloudWatch Events, AWS Service Catalog, and the tenable Scanner from AWS Marketplace.
Here is the architecture diagram of the Golden AMI Creation process. For more details, please refer to the Golden AMI Pipeline Set Up Guide.
- Log in to AWS Marketplace and subscribe to Tenable.io. Note: If you're using your employer's AWS account, make sure that you consult your company's procurement team or your IT manager before purchasing a subscription on AWS Marketplace. Alternatively, you can request for a free trial on Tenable.io.
- Once you have credentials for Tenable.io, go to
My Account
on your Tenable.io homepage, and click on the tab forAPI Keys
.
-
Click
Generate
to generate your API key and secret key. Store these with you locally, so that you can use it in the next steps. -
On the Tenable homepage, click on
Scans
, and then click onScanners
on the left navigation bar. Copy theLinking Key
from this page and store these with you locally, so that you can use it in the next steps. -
Log in to AWS Marketplace and subscribe to Nessus Scanner (Pre-Authorized). This is a Bring Your Own License(BYOL) product, and you will use the license from Step 1 to provision this scanner.
-
Please refer to the AWS set up guide provided by Tenable to set up the pre-authorized scanner in your environment. Note the
Scanner Name
that you created using this process.
For Step-By-Step instructions guide for this work, please refer Golden AMI Pipeline Set Up Guide.
This sample code is made available under a modified MIT-0. See the LICENSE file.
Your contributions are always welcome! Please have a look at the contribution guidelines first. 🎉
This library is licensed under the MIT-0 License. See the LICENSE file.