Amazon Rainforests, the world’s largest rainforest, is crisscrossed with several rivers, inhabits over a thousand types of flora and fauna. It is so densely populated with greenery that only the person knowing the exact right path can find it once something goes inside. In other words, it is secure. Probably Amazon Web Services got inspired by its namesake while building its robust security schemes. Let us dive into the several methods you can incorporate in your AWS working to stay safe from security breaches!
Let’s start with the AWS IAM service
Create a strong password for your AWS resources and MFA
To help ensure that you protect your AWS resources, always set a strong password with a combination of letters, numbers, and special characters. Include Multi-Factor Authentication. It is a security capability that provides an additional layer of authentication on top of your user name and password.
As of 2026 — MFA is no longer optional for the root user. AWS now requires MFA for the root user of every account type (standalone, management and member accounts), and you must register it within 14 days of your first console sign-in attempt. See AWS’s guidance. Prefer phishing-resistant options such as passkeys and FIDO2 security keys over SMS or app codes, register more than one MFA device, and use the root user only for the few tasks that require it. Our walkthrough on setting up MFA devices in AWS covers the steps.
Use a group email alias with your AWS account
In case you are unavailable to manage your AWS Cloud workloads, using a group email alias with your AWS account lets other trusted members of your organization manage the account in your absence.
Set up AWS IAM users and roles for daily account access
Use AWS Identity and Access Management (IAM) to create users, groups, and roles to manage and control access and permissions to your AWS resources. When you make an IAM user, group, or role, ensure it can access only to the AWS resources to which you explicitly permit it. If you are the account owner, it is recommended that you create an IAM user for yourself for the daily use of your resources.
As of 2026 — AWS’s current best practice is to avoid long-lived IAM users for people. Use IAM Identity Center (the successor to AWS SSO) with your identity provider so people sign in with temporary credentials and assume roles. Reserve IAM users for the rare cases that cannot use roles. See IAM best practices and what is IAM Identity Center. In a multi-account setup, add AWS Organizations guardrails such as service control policies, and use IAM Access Analyzer to find unused and externally shared access. See managing IAM Identity Center permissions at scale.
Delete your account’s access keys
You can grant access to your AWS resources from the command line or for use along with AWS APIs. However, it is recommended that you do not create or use the access keys connected to your root account for programmatic access. Delete all access keys. The strongest version of this is zero standing privilege backed by just-in-time access, so no long-lived keys sit around to be stolen. Create an IAM user and grant that user only the permissions needed for the APIs you plan to call. You can then use that IAM user to issue access keys.
As of 2026 — The advice to “create an IAM user and issue access keys” is now the fallback, not the recommendation. Prefer roles and short-lived credentials (via IAM Identity Center, STS or instance and workload roles), and use OIDC federation for CI/CD systems instead of storing keys. If you must use access keys, scope them tightly, rotate them and monitor their use. See our guide to short-lived service credentials and what is zero standing privilege.
Enable CloudTrail in all AWS regions
You can track all activity in your AWS resources by using AWS CloudTrail. In case you initially do not know how to use CloudTrail, AWS Support, and your AWS solutions, you can troubleshoot a security or configuration issue.
As of 2026 — This paragraph is hard to follow, so here is the practical version. CloudTrail Event History is on by default and shows the last 90 days of management events in each Region. To keep logs longer, log data events (such as S3 object access), or send them to your SIEM, create a trail. A multi-Region trail, or an organization trail in a multi-account setup, delivering to a locked-down S3 bucket with log file validation is the baseline. See the CloudTrail user guide and our posts on CloudTrail best practices and all you need to know about CloudTrail.
AWS S3 and EC2 are the most used services
Here are security measures that can be adopted specifically for these
Amazon S3 security guide
Simple Storage Service (S3) is one of the most popular AWS services and provides a scalable solution for objects storage through web APIs. S3 buckets can be used for many different usages and in many different cases.
Here are some ways to protect your AWS S3 buckets
- Writing AWS User policies that specify the users that can access specific buckets and objects
- Writing bucket policies that define access to specific buckets and objects.
- Using the Amazon S3 Block Public-Access as a centralized way to limit public access. Block Public Access settings override bucket policies and object permissions. Be sure to enable Block Public Access for all accounts and buckets that you don’t want publicly accessible.
- Set access control lists (ACLs) on your buckets and objects.
- Be sure to review ACL permissions that allow Amazon S3 actions on a bucket or an object.
- Be strict about who gets Read and Write access to your buckets.
- Set up MFA-protected API access, which needs that users authenticate with an AWS MFA device before they call certain Amazon S3 API operations.
- If you temporarily share an S3 object with another user, create a pre-signed URL to grant time-limited access to the object.
- Enable Amazon S3 access logging. Use AWS Config to monitor bucket ACLs and bucket policies for any violations that allow the public to read or write access.
As of 2026 — S3 defaults have changed since this was written.
- Since April 2023, new buckets have Block Public Access turned on and ACLs disabled (the “bucket owner enforced” Object Ownership setting). Bullets above about setting and reviewing ACLs describe the legacy model, and AWS now recommends managing access with IAM and bucket policies instead. Only enable ACLs where an application truly needs them.
- Add a bucket policy condition that denies requests where
aws:SecureTransportis false, so only HTTPS is accepted.- Use CloudTrail data events for object-level audit trails, and S3 server access logs for request logs.
- See security best practices for Amazon S3, Block Public Access and Object Ownership, plus our guides to building a secure S3 bucket and S3 misconfigurations.
Finally, use encryption to protect your data. If the use case requires encryption during transmission, Amazon S3 supports the HTTPS protocol, which encrypts data in transit to and from Amazon S3. All AWS tools and SDKs use HTTPS by default. If your use case requires encryption for data at rest, Amazon S3 offers server-side encryption (SSE). The SSE options include SSE-S3, SSE-KMS, or SSE-C. You can specify the SSE parameters when you write objects to the bucket. There are other default encryption options on your bucket with SSE-S3 or SSE-KMS, which you can add to your system.
As of 2026 — Encryption at rest is now on by default. Since 5 January 2023, every new object uploaded to Amazon S3 is encrypted with SSE-S3 at no extra cost (see AWS’s announcement). Choose SSE-KMS with a customer-managed key when you need key-level audit, rotation and access control. AWS has also started disabling SSE-C by default on new general purpose buckets.
Amazon EC2 security guide
Elastic Compute Cloud (EC2) is another widely used service by Amazon. It allows us to rent virtual computers that can be used to run any arbitrary applications. AWS EC2 provides a scalable solution to rent and use a new computer, and manage its status via a web-based user interface. The user can manage every aspect of an EC2 instance from the creation and execution of the definition of access policies. It’s undeniable that AWS EC2 constitutes a powerful tool that will inevitably result in a security breach if not correctly configured and protected.
Few of the security measures in EC2 are
- Use multi-factor authentication (MFA) with each account.
- Use TLS to communicate with AWS resources.
- Set up API and user activity logging with AWS CloudTrail.
- Use AWS encryption solutions, along with all default security controls within AWS services.
- Ensure no backend EC2 instances are running in public subnets.
- Use advanced managed security services such as Amazon Macie, which assists in discovering and securing personal data stored in Amazon S3.
- Ensure no EC2 security group allows unrestricted inbound access to TCP ports 20 and 21 (File Transfer Protocol).
- Ensure no AWS EC2 security group allows unrestricted inbound access to TCP and UDP port 53 (DNS).
As of 2026 — The two port checks above are real but narrow. The riskiest unrestricted inbound rules are SSH (22), RDP (3389) and database ports, so check those first. Better still, avoid inbound admin access altogether with Systems Manager Session Manager or an EC2 Instance Connect Endpoint. Other current EC2 baselines: require IMDSv2 for the instance metadata service (see AWS’s guide), turn on EBS encryption by default, and review IPv6 rules too. EC2-Classic was retired in August 2022, so everything now runs in a VPC. Amazon Macie today is the 2020-relaunched service with managed data identifiers, covered in various tools from AWS which help you with compliance.
AWS provides a robust security system for your enterprise. These were some additional measures you can take from your side to ensure no data leakage of security breach affects your company. Doing this continuously rather than once is where cloud security posture management (CSPM) earns its keep, and many teams get there by moving off AWS Trusted Advisor and open-source scanners to continuous CSPM. It also scales cleanly to organizations securing multi-account AWS without a landing zone or Control Tower. I hope this helps you and your enterprise!
How Can Cloudanix Help?
Cloudanix provides 1 click setup to perform continuous compliance checks and real-time monitoring of more than 500 rules and checks to help you stay secure and worry-free. We offer a very generous free trial which you can see for yourself how easy it is to stay secure and protect your customer’s data.
As of 2026: What has changed
- Root MFA is enforced for all account types. Use phishing-resistant MFA.
- People should use IAM Identity Center and roles with temporary credentials. Keep IAM users and access keys to a minimum.
- S3 is secure by default: Block Public Access on, ACLs off and SSE-S3 encryption for new buckets and objects.
- Detection services: turn on GuardDuty, IAM Access Analyzer, AWS Config and Security Hub. In December 2025 AWS made a new AWS Security Hub generally available, and the original product is now called Security Hub CSPM. See what is Security Hub.
- Continuous checks: see AWS CSPM implementation guide and AWS Trusted Advisor vs a dedicated CSPM.
People Also Read
- AWS CSPM Implementation Guide
- AWS Trusted Advisor vs a Dedicated CSPM
- Managing IAM Identity Center Permissions at Scale
- A Complete List of AWS IAM Misconfigurations
- A Complete List of AWS S3 Misconfigurations
- All You Need To Know About AWS CloudTrail
- How to Build Secure AWS S3 Bucket?
- AWS IAM Permission Boundary and Why You Shouldn’t Ignore It
- How to setup Multi Factor Authentication (MFA) devices in AWS?
- Top 15 Cloud Misconfigurations in 2026 - How to Fix Them?
- The Different Types of Protection your Application Needs If Hosted in AWS