Long-term credentials are the most dangerous asset in an AWS environment, because they leak and do not expire on their own. An access key copied into a script or a configuration file keeps working until someone notices and revokes it. For human access, IAM Identity Center solves much of this problem: instead of IAM users with access keys scattered across accounts, people sign in through a single federated login and receive temporary sessions, organized by groups and permission sets.
When you structure human access with IAM Identity Center and MFA, the goal is that no person needs a permanent credential and that every access leaves an auditable trail. To get there, permission sets are modeled by job function, phishing-resistant MFA becomes mandatory and session duration follows the privilege level. The design also covers emergency access, for the day the identity provider goes down, and linking the user lifecycle to that provider.
Groups, permission sets and accounts
In IAM Identity Center, access is modeled with user groups and permission sets. A permission set is the set of permissions a group receives in one or more accounts. Instead of managing permissions person by person, you put people in groups and assign the groups to accounts. This scales much better and lowers the chance of error, because a change to the group applies to every member.
Model permission sets on the team's real job functions, with least privilege, and avoid a broad administrative permission set used day to day. Each session generates temporary credentials, so if one of them leaks, it is valid only for a short time. With a permanent access key, the leak stays valid until someone revokes the key.
Session duration and permissions boundary
The session duration of a permission set is a direct security control. Long sessions avoid repeated logins, but they extend the time during which a leaked temporary credential still works. Use short durations on sensitive permission sets and save longer sessions for low-privilege access. You can also attach a permissions boundary to the permission set. It sets a ceiling that the everyday policy cannot exceed, which limits the damage from a configuration mistake.
Mandatory, phishing-resistant MFA
Require MFA for every human authentication. Accounts without MFA fall to a single phishing attack or to a leaked password the person reused somewhere else. Configure Identity Center to ask for MFA at every sign-in, not only when the context looks new. Also turn off the option that lets users register their factor later, because until that registration happens the account has no protection.
Factors that resist phishing
Not all MFA protects equally. Authenticator app codes and SMS help, but a phishing site can ask the victim for the code and relay it to the real service in real time. Factors based on FIDO2 and WebAuthn, such as physical security keys and passkeys, work differently: authentication is bound to the legitimate domain and does not happen on a fake site. That is what makes them phishing resistant. Use these factors for privileged access and offer them as the default whenever you can.
- Require MFA for all human access, without exception
- Prefer FIDO2 and passkeys over app codes and SMS
- Model access through groups and permission sets, not person by person
- Apply least privilege and a permissions boundary to permission sets
- Use short session durations for sensitive access
- Connect Identity Center to the identity provider to automate the lifecycle
Lifecycle and emergency access
When Identity Center is integrated with a corporate identity provider, the user lifecycle (onboarding and offboarding) automatically controls access to AWS. Offboarding is the most delicate point. Access that is not revoked when someone leaves the company becomes a forgotten door. With everything centralized in Identity Center, you can revoke access to every account at once.
If human access depends on an external identity provider, think about what happens when it goes down. An emergency access path (known as break-glass) keeps the team from being locked out of the environment right in the middle of an incident. This access should be used rarely, protected by strong MFA, with the credentials stored in a secure place and with audited use, so that any activation triggers an alert and a review afterward.
Reducing long-term credentials
The biggest gain from Identity Center is reducing, and ideally eliminating, IAM users with access keys used by people. Machine access stays with roles, and human access moves to temporary federated sessions. That leaves far fewer permanent credentials that could leak and give persistent access. And because activity now arrives through a single federated entry point, it is easier to audit in CloudTrail.
Practical checklist
- Require MFA for all human access to AWS
- Adopt phishing-resistant MFA factors such as FIDO2 and passkeys
- Model access through groups and permission sets
- Limit permission sets with least privilege and a permissions boundary
- Set a short session duration for sensitive access
- Take the broad administrative permission set out of daily use
- Integrate Identity Center with the corporate identity provider
- Automate granting access at onboarding and removing it at offboarding
- Revoke access immediately at offboarding
- Keep an audited emergency access path in case the provider goes down
- Eliminate IAM users and access keys used by people
- Periodically review who is in each group
Best practices
- Treat MFA as mandatory for every person
- Use phishing-resistant MFA for privileged access
- Replace permanent credentials with temporary sessions
- Match session duration to privilege: the higher the privilege, the shorter the session
- Grant access by group so you can grow without losing control
- Let the identity provider drive the access lifecycle
- Keep machine access on roles, separate from human access
Common mistakes
- Human accounts without MFA
- A single phishing attack or a leaked, reused password is enough to get in.
- Only SMS or app codes as MFA for critical access
- A phishing site can relay the code to the real service and defeat the second factor.
- People using IAM users with access keys
- These are permanent credentials: when they leak, they give persistent access until someone revokes them.
- Administrative permission set for everyday work
- Any compromised session starts out with broad access.
- Very long sessions for privileged access
- A leaked temporary credential keeps working for longer.
- Access not revoked at offboarding
- The person leaves the company, but their access stays open.
Authorship and review
Cesar Gargiulo
CEO and founder of GUARDIASEC. Technical and editorial lead for the content published in this library.
Published on . Found a technical error? Write to [email protected] and we will correct it and keep a record of the change.