Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/python
#This script does the basic security check.
#It checks
#1.the server hosting, that is, if any server is hosted in VPC Classic,
#2.if there is any security group which has ports opened for all.
#3.are all IAM keys rotated in 90 days
#4.if MFA is enabled on each user of an account
#5.if Cloudtrail is enabled in all regions
#6.if any s3 bucket has open permissions
Code1
Code2