IAM Services in AWS, Azure, and Google Cloud - A Cloud Industry Overview
Cloud Security Analyst at Cyscale
Friday, May 6, 2022
Identity and Access Management (IAM) refers to all the good practices and rules that must be followed when establishing authentication and authorization for a user to an organization’s systems and applications.
In the past, different measures were implemented to assure security in an organization by only allowing users to access company resources through company devices on premises.
However, as companies adopt the remote working model, this is no longer an option. For the cloud, IAM is the solution to ensure security.
Users can nowadays connect to the cloud from all around the world with their personal devices.
Moreover, access is not restricted to human users; applications and other types of identities also require access to different types of resources.
Therefore, strong IAM policies need to be implemented.
Let’s first clarify some important concepts. Then, we will look into IAM policies and what different cloud vendors offer for their IAM infrastructure.
Identity
Identity refers to who can authenticate (sign in) into a cloud account.
In order to allow someone to access cloud resources, you need to ensure that the user trying to authenticate is who they claim to be.
Authentication should be implemented using technologies like Single Sign-On (SSO) and Multi-Factor Authentication (MFA) to increase security.
After a user authenticates, access management is needed.
Just because a user successfully authenticated doesn’t mean that they should have full access to all the available resources.
Access management
To regulate access inside the cloud environment, strong access control policies need to be implemented.
Having groups with well-defined rules and privileges at different granularity levels is an excellent solution to manage access to cloud resources.
In this way, you do not have to assign permissions to each new user but rather add them to the appropriate group that already has the correct permissions.
Access management also refers to keeping track of users’ actions. Therefore, logging and monitoring are essential parts of IAM and should be implemented.
Now that we’ve understood the purpose of IAM, let’s look at three big vendors in the cloud industry and their approach to access management: AWS Cloud, Google Cloud Platform, and Microsoft Azure.
IAM implementations - An industry overview
Amazon Web Services (AWS)
For access management, the IAM service provided by AWS has three types of assets: user, role and policy.
Along with the creation of an account, an AWS account root user is created.
When looking at AWS Cloud, we can identify 6 concepts in IAM:
- Principal, which represents the entity (user or application) that is trying to authenticate using an AWS account root user, an IAM user, or an IAM role.
- Request, which is made by a principal to AWS and holds information about the operation they want to perform.
- Authentication, which refers to the credentials you need, such as an access key or a username and password.
- Authorization, which refers to the permissions and policies that define what a principal can do in an account.
- Actions and operations, which must be included in policies in order to allow a principal to execute them.
- Resources, which define the objects that exist within a service and to which the principal requires access; they can be, for example, Amazon S3 buckets, IAM users, and Amazon EC2 instances.
Policies define permissions and can be attached to:
- users.
- groups of users,
- roles,
- resources.
There are multiple types of policies that can be applied in AWS. A user can create their own custom policies or can use the ones offered by AWS.
You can see below the different types of AWS policies, ordered from the most frequently used to the least:
- Identity-based (attached to IAM identities)
- Resource-based (attached to resources)
- Permissions boundaries (they define the highest level of permissions an identity-based policy can apply)
- Organization Service Control Policies (used to define the highest level of permissions an identity-based or resource-based policy can apply for account members of an organization)
- Access Control Lists or ACLs (are similar to resource-based policies and define which principals can access a resource)
- Session policies (they limit the permissions granted by identity-based policies in an AWS CLI or API session)
Google Cloud Platform
In Google Cloud, permissions to access resources are organized into roles. To understand how IAM works in Google, we must look at the 3 IAM asset types:
-
Roles, which represent a collection of permissions
-
Principals, who are assigned to roles and can be:
- a Google Account,
- a Service Account,
- a Google group,
- a Google Workspace account,
- a Cloud Identity domain,
- all authenticated users,
- all users.
-
Policies, which define associations of principals and roles
-
Resources, which are physical assets, such as computers and hard disk drives, and virtual assets, for example virtual machines.
In Google Cloud, permissions cannot be applied to principals directly. Instead, principals must be assigned to roles and thus receive all the permissions allowed for that role.
Below, you can see a diagram of the IAM components found in Google Cloud.
Image source – Google Cloud Platform
Microsoft Azure
Azure Active Directory (Azure AD) is an IAM service provided by Microsoft for the cloud. Azure AD is the identity system used to connect to Microsoft 365, the Azure portal, and other SaaS applications.
Let’s look at components of Azure AD:
1. Identity
An identity is an entity that can be authenticated.
Identities can be of the following types:
- Users,
- Groups,
- Applications.
2. Role
A role is a collection of permissions.
Access to Azure resources is managed by RBAC (Role-based Access Control).
Azure RBAC provides high granularity with four built-in roles:
- Owner (can perform all actions on all resource types)
- Contributor (can perform any action an owner can except managing RBAC)
- Reader (can perform all read actions on all resource types)
- User Access Administrator (can manage user access to Azure resources)
Other roles are also provided for granular management of access. Moreover, custom roles can be created to cater to every organization’s needs.
3. Scope
Scopes are sets of resources that define what an identity can access.
They are important because, when you assign a role, it is crucial to only grant a principal the access they need.
Scopes can be:
- subscriptions,
- resource groups,
- resources.
4. Resource
Resources are manageable items available through Azure, such as virtual machines, databases, web applications and others.
Access to resources is granted by assigning:
- a user,
- a group, or
- a Service Principal (process or application)
to a specific role and a specific scope.
Cyscale integrates with AWS, Azure, Google Cloud and other vendors to check for vulnerabilities and improve its customers‘ cloud security posture.
In the following article, we will look at IAM best practices described by these vendors and how to check if your cloud infrastructure is implementing them correctly.
Cloud Security Analyst at Cyscale
Sabrina Lupsan merges her academic knowledge in Information Security with practical research to analyze and strengthen cloud security. At Cyscale, she leverages her Azure Security Engineer certification and her Master's in Information Security to keep the company's services at the leading edge of cybersecurity developments.
Further reading
Cloud Storage
Misconfigurations
Build and maintain a strong
Security Program from the start.
Cloud Compliance in
2024: An In-Depth Guide
The whitepaper talks about ISO 27001, SOC 2, PCI-DSS, GDPR, HIPAA.
Download WhitepaperShare this article
Stay Connected
Receive our latest blog posts and product updates.
TOP ARTICLES
IAM
Our Compliance toolbox
Check out our compliance platform for cloud-native and cloud-first organizations:
CSPM ToolMulti-Cloud Data SecurityGoogle Cloud SecurityAWS Security & ComplianceIAM Cloud SecurityPrevent Cloud MisconfigurationLATEST ARTICLES