The short answer
- An attacker cannot change anything in your Azure environment: AzureScan only has read roles.
- They cannot read what is inside your resources: no files, databases, mailboxes or disks. We never received those rights.
- They find no passwords of your users: signing in happens at Microsoft, we never see them.
- There is no key to your tenant to steal: AzureScan keeps no secret that works outside our own Azure subscription.
- At worst they see metadata and costs: the description of your resources (names, sizes, regions, tags, state), your costs and usage figures, and who has access to your portal.
How AzureScan is built
AzureScan consists of a few separate parts in Microsoft Azure in Belgium, each in its own container and with its own identity:
- The scanner reads your costs and the description of your resources at night. It is the only part that can sign in to your tenant.
- The portal shows the results and is the only part that faces the internet. It cannot reach your tenant itself, and it cannot start or change the scanner. When you click Scan now, the portal only queues a request, which the scanner picks up within two minutes.
- The database keeps scans, findings and the log. The parts sign in with their Azure identity, without a password, and without admin rights.
- Key Vault holds the few secrets that remain, such as the connection to our e-mail service for the website forms. The portal may read only that one secret.
Two apps, and no secret to steal
Two of our apps appear in your Microsoft Entra ID. Each does one thing:
| App | What it may do | What for |
|---|---|---|
| AzureScan Finops | Reader, Cost Management Reader and optionally Reservations Reader on the subscriptions you choose | The nightly scan |
| AzureScan Finops Sign-in | Only 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.
- They can: read what is in our database, for all customers: the description of resources, costs, findings, and the names and e-mail addresses of portal users.
- They cannot: sign in to your tenant. The portal has no identity for that and no rights on the scanner. So they cannot request anything new from your environment, let alone change anything.
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
- Alerts. Unusual access to our secrets, repeated failed database sign-ins and failed sign-ins by the scanner trigger an automatic e-mail, within 15 minutes to an hour. Microsoft Defender for Cloud monitors our Key Vault, database and container images.
- Every customer separate. In the portal, every organisation sees only its own data, an MSP only its own customers. Automated tests check this with every new version.
- Short retention. What we no longer need, we delete: see the retention periods.
- Told quickly. If we discover an incident that affects your data, we tell you within 48 hours.
What you can do yourself
- Pull the plug. Delete the AzureScan Finops app in Microsoft Entra ID (Enterprise applications), or remove its roles, and nobody can sign in to your tenant as AzureScan any more, an attacker included. An access token that was already issued expires within 90 minutes at most. You don't need us for that.
- Limit the roles. Assign the roles only on the subscriptions you want analysed, not on the whole tenant.
- Watch along. The Microsoft Entra ID sign-in logs (service principal sign-ins) show when the AzureScan Finops app signs in to your tenant, and from which IP address. How long those logs are kept depends on your licence. Read actions themselves are not in the Azure activity log.
What we are still improving
- Our database and Key Vault can only be reached with valid credentials, but still from Azure over the internet. We are working on an isolated network with private endpoints, so they can only be reached from our own environment.
- The sign-in logs of our two apps do not go to our central logging yet.
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.
- Which roles exactly, and at which level? If it asks for write access, why?
- Does the service use a client secret or certificate? Where is it kept, who can read it, and is it renewed?
- Can the part that faces the internet reach my tenant itself?
- What does the service keep about my environment, where, and for how long?
- How do I revoke access, and do I need the vendor for that?
- How soon will I hear about it if something goes wrong?