Skip to main content
AWS Security Best Practices Checklist (2026)

AWS Security Best Practices Checklist (2026)

KU
· Founder & Chief Editor
• 8 min read•Updated •44 views

A practitioner's checklist for securing AWS, ordered by impact so you fix the things attackers actually exploit first.

Key takeaways

  • Secure an AWS account by removing long-lived access keys in favor of IAM roles and OIDC, enabling CloudTrail and GuardDuty in every region, turning on account-level S3 Block Public Access, and enforcing MFA with the root user locked away.
  • Then add AWS Organizations SCPs so those controls hold across every account.

The highest-impact AWS security controls are: replace long-lived access keys with IAM roles and OIDC federation, enable CloudTrail and GuardDuty in every region, turn on account-level S3 Block Public Access, enforce MFA and lock away the root user, then apply SCPs through AWS Organizations. Do those first; everything else below fills in around them.

Verified against

AWS CLI 2.39.3, against the AWS IAM security best practices guide, the Amazon S3 Block Public Access docs and the Security Hub CSPM Foundational Security Best Practices standard. Checked October 2026.

Most AWS breaches are not exotic: a leaked access key with far too many permissions, a public S3 bucket, or a CloudTrail nobody turned on. Work through this account by account.

Start here (the 20% that stops most incidents)

  1. Kill long-lived access keys. Leaked static AKIA... keys are among the most common ways into an AWS account. AWS's own IAM guide says to require temporary credentials for humans and workloads. Replace keys with IAM roles, and for CI/CD use OIDC federation from GitHub Actions to AWS so pipelines assume a role with no stored secret.
  2. Turn on CloudTrail and GuardDuty in every region. Without them you cannot see the attack, let alone respond.
  3. Block public S3 at the account level. One command closes an entire class of data leaks.
  4. Enforce MFA on every human, lock the root account away.

Everything below expands on these and fills in the rest. Here is the short version as a table, in the order we would do it:

ControlWhat it stopsWhere you set itEffortChecked by (Security Hub CSPM)
Roles and OIDC instead of access keysLeaked-key compromiseIAM, IAM Identity CenterMediumIAM.3, IAM.4
CloudTrail and GuardDuty in all regionsBlind spots during an attackOrganization-wide trail, GuardDuty delegated adminLowCloudTrail.1, GuardDuty.1
Account-level S3 Block Public AccessPublic bucket data leaksS3 account or organization settingsLowS3.1, S3.8
MFA everywhere, root locked awayPassword and console takeoverIAM, Identity CenterLowIAM.5, IAM.6
SCPs through AWS OrganizationsAny one account disabling the aboveAWS OrganizationsMediumOrganization policy review

Identity and access

Identity is the real perimeter in AWS. Get this wrong and the network controls barely matter.

  • Least privilege by default. Start from deny, grant the specific actions a role needs, and use IAM Access Analyzer to generate policies from real CloudTrail activity instead of guessing.
  • No long-lived keys for humans or machines. Humans log in through IAM Identity Center (SSO) with short-lived credentials. Workloads use instance roles, task roles, or IRSA. Pipelines use GitHub or GitLab OIDC to assume a role.
  • MFA everywhere. Require it for console access and enforce it in policy conditions for sensitive actions.
  • Permission boundaries. Cap what a delegated admin or a self-service role can ever grant, so a mistake in a downstream policy cannot escalate.
  • Root account lockdown. Phishing-resistant MFA (a passkey or security key), no access keys, no daily use. Alert on any root sign-in.

A small guardrail: deny any action that is not backed by MFA.

JSON
{
  "Effect": "Deny",
  "Action": "*",
  "Resource": "*",
  "Condition": {
    "BoolIfExists": { "aws:MultiFactorAuthPresent": "false" }
  }
}

Network

Treat the network as defense in depth, not the main gate.

  • Segment with VPCs and subnets. Keep databases and internal services in private subnets with no route to an internet gateway.
  • Security groups vs NACLs. Stateful security groups hold most rules; stateless NACLs are a coarse subnet backstop.
  • No 0.0.0.0/0 on sensitive ports. SSH (22), RDP (3389), and database ports should never be open to the world. Use Session Manager instead of public SSH so you can drop port 22 entirely.
  • VPC endpoints. Reach S3, DynamoDB, and other services privately so traffic never traverses the public internet.
  • WAF and Shield. Put AWS WAF in front of public ALBs, CloudFront, and API Gateway. Shield Standard is automatic; consider Shield Advanced for high-value targets.

Data

  • Encrypt at rest with KMS. Enable default encryption on S3, EBS, RDS, and snapshots. Use customer-managed keys where you need key rotation and access separation.
  • Encrypt in transit with TLS. Enforce HTTPS-only with a bucket or endpoint policy.
  • S3 Block Public Access. New buckets already block public access by default, but a bucket policy can still be changed later. Set all four settings at the account level so no future bucket can be made public by accident (or at the organization level, which applies all four together across member accounts):
code
$ aws s3control put-public-access-block \
    --account-id 123456789012 \
    --public-access-block-configuration \
    BlockPublicAcls=true,IgnorePublicAcls=true,BlockPublicPolicy=true,RestrictPublicBuckets=true
$ aws s3control get-public-access-block --account-id 123456789012
  • Tight bucket policies. Grant access by role; disable ACLs (bucket owner enforced).
  • Secrets in Secrets Manager or SSM Parameter Store, never in environment variables or code. Rotate them, and reference them at runtime.
  • Backups you have actually restored. Enable versioning, cross-account or cross-region copies for critical data, and test recovery on a schedule.

Detection and logging

You cannot respond to what you cannot see.

  • CloudTrail across all regions, delivered to a locked-down, separate logging account with a bucket that has object lock and MFA delete.
  • GuardDuty for continuous threat detection on API activity, DNS, and network flows.
  • Security Hub CSPM (the posture-management part of Security Hub) to aggregate findings and score yourself against the AWS Foundational Security Best Practices standard.
  • AWS Config rules to catch drift: public buckets, unencrypted volumes, wide-open security groups, and access keys older than 90 days (the FSBP control IAM.3 uses the same 90-day line).
  • Centralized logs and real alerting. Ship CloudWatch and VPC flow logs to one place, and route high-severity findings to a channel a human watches, not an inbox nobody reads.

Workload

  • Patch management. Use Systems Manager Patch Manager for EC2. For containers, rebuild from patched base images rather than patching running containers.
  • Least-privilege task roles. Each Lambda function, ECS task, and EKS pod gets its own narrowly scoped role. Avoid the node instance role shortcut on EKS; use IRSA or Pod Identity so a compromised pod cannot borrow node permissions.
  • Image scanning in ECR. Turn on enhanced scanning and fail the pipeline on critical findings. This pairs with your broader container vulnerability scanning and dependency and SCA scanning so vulnerable code and libraries never reach production.

Governance

Controls that hold across dozens of accounts, not just one.

  • AWS Organizations with SCPs. Use service control policies to deny entire risk classes org-wide: disabling CloudTrail, leaving a home region, creating IAM users, or making buckets public.
  • Guardrails through Control Tower. Preventive and detective controls applied to every new account by default.
  • Mandatory tagging. Owner, environment, and data classification, enforced by policy.
  • Cost anomalies as a security signal. A sudden EC2 or data-transfer spike is often the first visible sign of cryptomining or exfiltration.

Questions people ask

What are the most important AWS security best practices?

Start with five: replace long-lived access keys with IAM roles and OIDC federation, enable CloudTrail and GuardDuty in every region, turn on S3 Block Public Access at the account level, require MFA and lock away the root user, and put accounts under AWS Organizations with service control policies. Those close the paths attackers use most and give you the logs to handle the rest.

Should I still use IAM users and access keys in 2026?

Only where nothing else works. AWS's IAM best practices say humans should federate through an identity provider such as IAM Identity Center, and workloads should use IAM roles for temporary credentials. AWS lists narrow exceptions, like third-party clients that cannot use Identity Center. For those, use IAM access last used information to rotate keys and delete unused ones.

Is S3 Block Public Access on by default?

For new buckets, yes: new buckets, access points and objects do not allow public access by default. But a user with permission can still change a bucket policy or the bucket-level setting later. Enabling all four settings at the account or organization level means bucket-level changes cannot reopen public access, which is why AWS recommends turning them on account-wide.

The call we'd make

If you are staring at an account and do not know where to begin, do these five in order: rotate out every static access key, enable CloudTrail and GuardDuty in all regions, apply account-level S3 Block Public Access, enforce MFA and lock the root account, then bring the account under an Organization with a handful of SCPs. That sequence removes the paths attackers use most, and it buys you the visibility to work through the rest of this list calmly.

Cloud security and application security are the same discipline seen from two sides. Once the AWS platform is locked down, the code running on it becomes the next target, so pair this with your application security best practices and keep both moving together.

Sources

Explore topics:AWSSecurityDevOps
React
Share this post
Cite this article
Plain text

Kiril Urbonas (2026). AWS Security Best Practices Checklist (2026). DevOpsNess. Updated 2026-10-31. https://www.devopsness.com/blog/aws-security-best-practices

Markdown

[AWS Security Best Practices Checklist (2026)](https://www.devopsness.com/blog/aws-security-best-practices) (Kiril Urbonas, DevOpsNess, updated 2026-10-31)

KU

Kiril Urbonas

Founder & Chief Editor

586 articles
View all articles by Kiril Urbonas

You might have missed

Evergreen posts worth revisiting.