Part of Datorkirurgen AB – IT experts across Sweden

In many cloud environments, too many accounts have too many permissions. Developers own entire subscriptions, service accounts can delete everything and former consultants keep their access. The principle of least privilege in the cloud means that every person and every service gets only what it needs for its work.

Therefore, the principle limits the damage when someone hijacks an account. An attacker with an account that can only read one database does not get far.

Entra ID, roles and subscriptions in Azure with least privilege in the cloud
Entra ID, roles and subscriptions in Azure with least privilege in the cloud. Roles, subscriptions and identities are the starting point for controlling permissions in Azure.

Why least privilege in the cloud matters

Permissions almost always grow by themselves. When a project is urgent, a developer gets the owner role to make progress. After that, nobody removes the role when the project is finished.

At the same time, automation creates new service accounts. Moreover, they often get broad rights because it is easiest. After a few years, nobody knows what the accounts are for, and nobody dares to remove them.

In addition, most groups have several clouds. Each cloud has its own way of handling permissions, and nobody has a complete picture.

How we introduce least privilege in the cloud

Inventory of all roles

First, we draw up a list of all assignments in Azure, AWS and Google Cloud. We look at people, groups, service accounts and apps.

Next, we compare with the logs, because they show which rights people have actually used in recent months. An account often has the right to do thousands of things but uses only about ten.

Roles at the right level

After that, we move the roles to the right level. In Azure, we assign roles on resource groups instead of the whole subscription. In AWS, we use IAM Identity Center with permission sets per account. Furthermore, Google Cloud gets roles at project level, and we choose predefined roles instead of the broad basic roles.

Conditional access and privileged roles in Entra
Conditional access and privileged roles with least privilege in the cloud. The overview in Entra shows privileged role assignments and shortcuts to conditional access.

Time-limited access

Even the right role is a risk if it applies all the time. Therefore, we introduce time-limited access for sensitive roles.

In Azure, we use Privileged Identity Management. The administrator activates the role for a few hours and states a justification. In AWS and Google Cloud, we build equivalent flows with temporary permissions.

Guardrails at the highest level

Finally, we add rules that nobody can bypass. In AWS, we use service control policies in AWS Organizations. In Azure, we use Azure Policy, and in Google Cloud we use organisation policies.

For example, a rule can forbid resources outside the EU or stop public storage accounts. In other words, the rules also protect against mistakes by administrators with high permissions.

Service accounts and secrets

Service accounts are also often the weakest link. A key that sits in a script or a code repository, for example, can give an attacker access for years.

Therefore, we replace keys with managed identities in Azure, roles in AWS and federated identities in Google Cloud. When that is not possible, we keep the secrets in Key Vault, Secrets Manager or Secret Manager and rotate them regularly.

Azure services and AI services within least privilege in the cloud
Azure services and AI services within least privilege in the cloud. AI services and machine learning need the same permission control as other services.

AI services need extra attention

More and more groups use AI services in the cloud. An AI assistant with access to all documents can also show sensitive information to the wrong person.

Therefore, we review which data the AI services reach. At the same time, we make sure that the permissions in SharePoint and storage accounts are right before anyone connects an AI service.

Least privilege in the cloud over time

Least privilege is not a one-off project. Therefore, we introduce access reviews every quarter, where responsible managers confirm who should keep their access.

In addition, we build alerts for new assignments of sensitive roles. Tools such as Microsoft Defender for Cloud, AWS IAM Access Analyzer and Google’s IAM recommendations also show permissions that nobody uses.

Office building in Stockholm where we help groups
Office building in Stockholm where we help groups with least privilege in the cloud. We work remotely throughout Sweden and on site with groups and public authorities in Stockholm.

You can also read how we secure administrator accounts in Entra ID and how we build protective security in the IT environment.

AWS describes the principle in its documentation on IAM best practices.

Why groups choose us for least privilege in the cloud

We work with Azure, AWS, Google Cloud and Oracle Cloud. As a result, we can give a complete picture of the permissions in all clouds and correct them without stopping development.

Our prices start at €400 per hour excluding VAT. In addition, we offer a fixed price for a review with an action plan. Contact us via the form on our home page.

Frequently asked questions about least privilege in the cloud

The principle of least privilege

  • What does least privilege in the cloud mean?
  • Why do permissions grow over time?
  • How much damage can an account with overly broad rights do?
  • What is the difference between roles and permissions?
  • Why is the owner role dangerous?
  • How do you find permissions that nobody uses?
  • What is time-limited access?
  • What does Privileged Identity Management do?
  • Does the principle apply to developers too?
  • How does the principle affect daily work?

The clouds

  • How do permissions work in Azure?
  • What is IAM Identity Center in AWS?
  • What are service control policies?
  • How do roles work in Google Cloud?
  • What is Azure Policy?
  • What is a managed identity?
  • Where should we keep secrets?
  • How do you handle keys in old scripts?
  • How do you control permissions for AI services?
  • Can you give a complete picture of several clouds?

Follow-up, price and cooperation

  • How often should we review the permissions?
  • What is an access review?
  • Which tools show unused permissions?
  • Which events should trigger alerts?
  • Can you work without stopping development?
  • Do you work together with our IT department?
  • What does a permission review cost?
  • Do you offer a fixed price?
  • Do you also help public authorities?
  • How do we get started?
Website developed by Datorkirurgen AB · Privacy policy