Skip to content

IAM Identity Center and MFA: best practices for secure access to AWS

Human access through temporary sessions and MFA cuts down the most dangerous asset in AWS: long-term credentials.

Reading time
8 min
Published

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.

Frequently asked questions

What is the difference between IAM Identity Center and IAM users?
IAM users have long-term credentials and are managed account by account. IAM Identity Center centralizes federated sign-in, issues temporary sessions and organizes access by groups and permission sets. For human access, Identity Center is the safer option, because it reduces the number of permanent credentials and simplifies lifecycle management.
Do I still need MFA if I use Identity Center?
Yes, and this is one of its biggest benefits: Identity Center lets you require MFA for all human access from a single place. Without MFA, a leaked password or a successful phishing attack gives direct access. With MFA, especially with phishing-resistant factors, stealing the password is no longer enough to get in.
Why prefer phishing-resistant MFA?
Because a phishing site can capture authenticator app and SMS codes and relay them to the real service in real time. Factors based on FIDO2 and WebAuthn, such as security keys and passkeys, are bound to the legitimate domain and do not work on a fake site. That makes them the strongest choice, especially for privileged access.
How do I choose the session duration for a permission set?
It is a trade-off between convenience and exposure. Long sessions spare the team frequent logins, but they leave temporary credentials valid for longer if they leak. In practice, use short durations on sensitive permission sets, those with administrative access or access to critical data, and save long sessions for low-privilege access, where a leak does less damage.
What should I do if the identity provider becomes unavailable?
If human access depends on an external provider, an outage can leave the team locked out right in the middle of an incident. It pays, then, to keep an emergency access path (break-glass) that is rarely used, protected by strong MFA, with the credentials stored in a secure place and with audited use. Any use of this access should trigger an alert and a review afterward.
Is Identity Center meant for machine access?
It was built for federated human access. Machine access, from applications and services, should keep using IAM roles, which generate temporary credentials for the workload. This separation is healthy: people come in through federated sessions with MFA, machines assume roles and nobody depends on permanent access keys.
How does the user lifecycle help security?
With Identity Center integrated with a corporate identity provider, each person's onboarding and offboarding automatically control access to AWS. This solves the classic problem of access that stays active after the person has left. Centralization also lets you revoke access to all accounts at once when needed.

When to bring in specialist help

Moving human access to federation with MFA, with permission sets modeled by job function, is part of GUARDIASEC's AWS and Cloud Security service. The work helps reduce long-term credentials and leaves access organized in a way you can audit.