AWS Security Best Practices Checklist (2026)
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.
On this page
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)
- 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. - Turn on CloudTrail and GuardDuty in every region. Without them you cannot see the attack, let alone respond.
- Block public S3 at the account level. One command closes an entire class of data leaks.
- 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:
| Control | What it stops | Where you set it | Effort | Checked by (Security Hub CSPM) |
|---|---|---|---|---|
| Roles and OIDC instead of access keys | Leaked-key compromise | IAM, IAM Identity Center | Medium | IAM.3, IAM.4 |
| CloudTrail and GuardDuty in all regions | Blind spots during an attack | Organization-wide trail, GuardDuty delegated admin | Low | CloudTrail.1, GuardDuty.1 |
| Account-level S3 Block Public Access | Public bucket data leaks | S3 account or organization settings | Low | S3.1, S3.8 |
| MFA everywhere, root locked away | Password and console takeover | IAM, Identity Center | Low | IAM.5, IAM.6 |
| SCPs through AWS Organizations | Any one account disabling the above | AWS Organizations | Medium | Organization 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.
{
"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/0on 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):
$ 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
Cite this article
Kiril Urbonas (2026). AWS Security Best Practices Checklist (2026). DevOpsNess. Updated 2026-10-31. https://www.devopsness.com/blog/aws-security-best-practices
[AWS Security Best Practices Checklist (2026)](https://www.devopsness.com/blog/aws-security-best-practices) (Kiril Urbonas, DevOpsNess, updated 2026-10-31)
More from DevOps
Explore more articles in this category
kaniko CVE-2026-105769: Lookalike ACR Hosts Get Your Azure Token. Rebuild on v1.25.20
A FROM line pointing at a host like x.azurecr.io.attacker.com is enough to make kaniko hand the build's Entra ID token to that host. Which kaniko forks and images are affected, how to find Azure identities in your build pods, and what to rotate.
Sign Container Images With Cosign: Keyless GitHub Actions Workflow, SBOM and In-Cluster Checks
One workflow that builds, signs keylessly with GitHub OIDC, attaches an SBOM and SLSA provenance, plus the Kyverno policy that refuses anything unsigned. Copy it, change three names, ship it.
GitLab CVE-2026-110264: A Second CVSS 10 RCE in Nine Days. Patch to 19.5.1
An unauthenticated regex-compiler RCE reaching back to GitLab 7.0, no workaround, and backports on older branches that fix only the critical bug. The exact version per branch and the commands to get there.
You might have missed
Evergreen posts worth revisiting.