AWS Cloud Security Cheat Sheet: Passwords Policy - IAM Logging
AWS Cloud Security Cheat Sheet: Passwords Policy - IAM Logging
AWS Cloud Security Cheat Sheet: Passwords Policy - IAM Logging
Cheat Sheet
Enhance your cloud security using these essential commands to safeguard your storage resources, implement logging
and set IAM policies! Using this cheatsheet, you can secure your AWS environment in no time.
days or less
aws cloudtrail create-trail --name <trailName> --s3-
aws iam update-account-password-policy --max-password- bucket-name <bucketForCloudtrail> --is-multi-region-
age 90
trail
Ensure IAM password policy prevents password Enable CloudTrail log file validation
reuse-prevention 24
Ensure CloudTrail trails are integrated with
CloudWatch Logs
0101
0101 Storage aws cloudtrail update-trail --name <trailName> --cloud-
watch-logs-log-group-arn <cloudtrailLogGroupArn> --cloud-
Enable MFA Delete on S3 buckets
watch-logs-role-arn <cloudtrailCloudwatchLogsRoleArn>
Status=Enabled,MFADelete=Enabled --mfa
aws accessanalyzer create-analyzer --analyzer-name
"arn:aws:iam::<accountNumber>:mfa/root-account-mfa-
<analyzerName> --type <value>
device <MFACode>"
["arn:aws:s3:::<bucketName>/"] }] }]'
Ensure that S3 Buckets are configured with 'Block Ensure that Object-level logging for write events is
public access'
enabled for S3 bucket
aws s3api put-public-access-block --bucket <bucketName> aws cloudtrail put-event-selectors --region <region-name> --
--public-access-block-configuration trail-name <trailName> --event-selectors '[{ "ReadWriteType":
"BlockPublicAcls=true,IgnorePublicAcls=true,BlockPublic "WriteOnly", "IncludeManagementEvents":true, "DataResources":
Policy=true,RestrictPublicBuckets=true" [{ "Type": "AWS::S3::Object", "Values":
["arn:aws:s3:::<bucketName>/"] }] }]'
You can find these commands, and more, in Cyscale. Th e Cyscale Platform is a powerful cloud security solution that
automates cloud misconfiguration checks, strengthens cloud security, and simplifies compliance tasks. By leveraging advanced
contextual analysis and providing actionable insights, the platform empowers organizations to confidently embrace the cloud
while ensuring a robust security posture. Streamline your cloud security management and gain peace of mind with Cyscale.
cyscale.com