This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Code1 | |
Code2 |