What if AzureScan itself is breached?

If you give AzureScan read access to your Azure environment, you are right to ask: and what if you get breached? No service is invulnerable, ours included. That is why we built AzureScan so that a break-in on our side can do as little as possible on yours. This is the honest answer, scenario by scenario.

Published · AzureScan

The short answer

How AzureScan is built

How AzureScan is built: only the scanner can sign in to your tenant, the portal cannot Your Azure tenant AzureScan · Azure Belgium Central AzureScan appReader, Cost Mgmt Reader,Reservations Reader Your resourcesdescription and costs,never the contents Your users sign in at Microsoft Scannerown Azure identity,no secret Portalfaces the internet,no access to tenants DatabaseEntra sign-in,no admin rights Key Vaultmail secret read no access to your tenant cannot start orchange the scanner request results Blue: the only way into your tenant.Red: what the portal cannot do, even after a break-in.
The scanner is the only part that can sign in to your tenant. The portal, the part that faces the internet, cannot.

AzureScan consists of a few separate parts in Microsoft Azure in Belgium, each in its own container and with its own identity:

Two apps, and no secret to steal

Two of our apps appear in your Microsoft Entra ID. Each does one thing:

AppWhat it may doWhat for
AzureScan FinopsReader, Cost Management Reader and optionally Reservations Reader on the subscriptions you chooseThe nightly scan
AzureScan Finops Sign-inOnly read your name and e-mail address when you sign in (Microsoft Graph User.Read). No Azure roles.Signing in to the portal

Many services sign in to their customers' tenants with a client secret: a kind of password for the app, which has to be stored somewhere and works from anywhere for whoever holds it. That is exactly what an attacker looks for. AzureScan has no such secret. The scanner proves who it is with its own Azure identity (a managed identity): at every sign-in it first asks Microsoft for short-lived proof that it is that identity, and exchanges it for an access token in your tenant. That proof can only be requested from inside the scanner, in our Azure subscription. The portal signs in to the sign-in app the same way, and every part signs in to the database the same way.

Microsoft calls this workload identity federation with a managed identity as the credential. What it means for you: there is no key to your tenant lying anywhere that someone could copy and use elsewhere.

Scenario 1: someone takes over the portal

The portal faces the internet, so it is the most obvious target. The Azure platform checks the Microsoft sign-in before a request reaches the portal (only the website forms and a technical health check can be reached without signing in). But suppose an attacker still manages to run code in the portal container.

Scenario 2: someone takes over the scanner

The scanner does not face the internet: it only runs at night and when someone asks for a scan, and it accepts no connections itself. If an attacker still manages to run code in it, then for as long as they are there they can use the same read rights as the scanner. That is more than what AzureScan keeps: Reader shows the full description of your Azure environment, such as the network layout. Never the contents of your resources, and never write access.

This is the scenario with the largest impact, which is why the scanner runs separately, with its own identity that may do nothing else, from a container image that only reaches production after tests and approval.

Scenario 3: someone steals the database or a backup

Microsoft encrypts the database and its backups (AES-256). The backups stay in Belgium and disappear after 7 days. And the database holds nothing anyone could use to sign in to your tenant: no tokens, no secrets, no passwords. Whoever gets hold of it has the metadata and costs from the short answer above, and nothing more.

Scenario 4: an admin account on our side is misused

Someone with full admin rights on our Azure subscription could change the scanner. That is why changes to AzureScan are not made by hand: every new version first goes through the test environment, and only reaches production after an explicit approval. The pipelines that do this sign in without a secret and may each touch only their own environment. Before every new version, they make a backup.

What limits the damage further

What you can do yourself

What we are still improving

Questions to ask any tool with access to your Azure

Even if you don't use AzureScan: these questions help you assess any service that gets rights in your tenant.

Curious what your Azure environment could save?

In a no-obligation introduction we look at your situation and show AzureScan in action.

Contact us →