Skip to content

Scan cloud accounts from the console

With server scans, untrust scans a connected AWS account, GCP project or Azure subscription itself, on a schedule and on demand. Nobody has to run the CLI to keep your posture current. You deploy a read-only grant, then an administrator turns server scans on for the connection. Connect a cloud account walks through the setup screens. This page explains what a server scan can do in your account, what it checks, and how to read its results. AWS comes first; Google Cloud and Azure follow, with what differs.

Early access

Server scans on Google Cloud projects and Azure subscriptions are in early access.

Server scans run only the read-only checks, the same set as untrust scan --read-only. They never write to your account, never read your data and never run commands on your instances.

What untrust can and cannot do in your account

AWS enforces these limits, not untrust's code. A scan can only make a call that all three of these allow:

  1. Your role's permission policy. It allows only the read actions listed below.
  2. An explicit Deny in the same role. It keeps the role read-only even if someone later attaches a broader policy such as ReadOnlyAccess.
  3. A session policy untrust passes on every scan. It narrows each session to the same actions, in the regions you registered.

Neither side can widen access alone. If a check needed more access, AWS would refuse the call, and the check would report ERROR.

untrust can untrust cannot
Describe instances, security groups, VPC peering and transit gateway attachments Read any object in S3 (s3:GetObject* is denied)
Read bucket, key, secret, table and file-system policies and settings Read secret values, parameter values or DynamoDB items
Read KMS key policies, grants and metadata Decrypt, encrypt or generate data keys
Read IAM roles, their policies, instance profiles and access-key metadata Change any resource, policy or setting
Read CloudTrail trail settings and recent management events Run commands (ssm:SendCommand and ssm:StartSession are denied)
Run IAM policy simulation to work out who can reach your key or bucket Read console output, screenshots or instance passwords

How the access works

  • A role you create, UntrustReadOnlyScan. Its trust policy admits only untrust's scan broker role, and only with your connection's external ID. untrust generates that ID for each connection, so another untrust customer can't use your role.
  • Two trust statements. The first allows sts:AssumeRole with your external ID, a session named untrust-scan-* and a source identity of untrust-scan-*. The second allows sts:SetSourceIdentity with that same source identity. AWS checks the two actions separately, so a role from the older one-statement template refuses every scan. The connection then reports trust_policy_outdated; update the stack to fix it. Connect a cloud account has the full trust policy.
  • Short-lived credentials. Each scan assumes the role for 15 minutes, the shortest session AWS allows. The credentials reach the scan process on a pipe. They are never stored, and never written to disk, logs or reports. A scan stops after 12 minutes.
  • Every call is labelled. Each scan's session name and source identity are untrust-scan-<job id>. AWS stamps the source identity on every CloudTrail event in that session, and it can't be changed. You can match any call in your CloudTrail to the scan job.
  • Identity is checked first. Before running any check, a scan confirms it is running as your role in your account. If it isn't, it stops without reporting anything.
  • Each scan is isolated. It runs in its own sandboxed process, which holds only that one scan's credentials and exits when the scan ends.

Verification proves the external ID works as intended: untrust tries the role without the external ID and with a wrong one, and both attempts must be refused. Only then does it assume the role with the right ID and check the identity it gets.

What a server scan checks

Server scans run the read-only checks only. The rest stay CLI-only:

Stays CLI-only Why How to cover it
Host and enclave checks (ENCLAVE-*, SSH-01, PROXY-01 and the other checks that run commands over SSM) They run commands on your instance. A server scan never runs commands. Run untrust scan from the CLI, or use a collector.
Write probes (BOOTSTRAP-01) They write to your bucket. Run untrust scan without --read-only.
Checks that read a file you supply (NITRO-ATT-02, NITRO-ATT-03, ENCLAVE-06, KBS-01, VAULT-01, HSM-01) The file has to come from you, for example a captured attestation document. A server scan never reads files. Run untrust scan with the file.

These checks appear in a server-scan report as SKIP, with the reason scan_mode or requires_local_evidence. The console labels them as covered only by the CLI, not as missing. Scan a deployment lists the read-only set per platform.

A check also needs its target. Set the connection's scan targets, such as the parent instance, state bucket and KMS key; until a check has its target, it reads not assessed.

Results

Each server scan becomes a report. Its Produced by line reads Server scan, and its findings appear under Findings, the same as an upload's.

Failed reads. If one call is denied, throttled or times out, the scan still publishes its report. That check is ERROR, with an error code such as access_denied, rate_limited, deadline_exceeded, credentials_expired or provider_unavailable, and a fixed message. A finding never carries the cloud provider's own error text. A check is never reported as PASS or SKIP because its call failed.

A check that is ERROR with access_denied usually means your role predates a permission the current template grants. The Unassessed tab of Findings then says Update your scan role: re-apply the latest template.

Freshness. The Server scan panel on the connection shows one freshness state:

State Meaning
not scanned yet No server scan of this connection has finished.
healthy The last full server scan is within twice the schedule (12 hours at the default).
partial The newest scan finished, but some of its reads failed. Those checks show as ERROR. An older full scan doesn't make the connection healthy.
failed The newest scan failed. The results shown are from an earlier scan, which is still within the window. The job shows its error code.
stale The last full scan is older than twice the schedule.
missing-permission The newest scan was refused access, for example because the role can't be assumed.
down The newest scan couldn't reach the cloud provider.

If the role can't be assumed, the scan publishes no report. Checks that only the CLI covers are as fresh as your last CLI upload.

Audit log. Your organization's audit log records turning server scans on or off, schedule and scan-target changes, and every scan job as it is queued, assumes the role, starts and finishes. The external ID and credentials are never recorded.

Schedule and Scan now

Control Who What it does
Turn on server scans, Turn off Administrators Turning on starts the schedule. Turning off cancels queued scans, stops a running one and discards its result.
Schedule Administrators Every 6 hours by default. Hours between server scans goes from 1 to 24.
Scan now Analysts and administrators Runs an extra scan, at most once every 10 minutes per connection.

Each organization runs one server scan at a time. A scan makes at most 1,500 API calls.

Cost

AWS doesn't charge for these read calls or for STS. CloudTrail records them as management read events, which are free in your first trail and charged per event in any additional trail.

Turn it off or revoke access

To Do Takes effect
Pause scanning Turn off on the connection's Server scan panel (administrators) Immediately. Queued scans are cancelled, a running scan is stopped, and its result is discarded.
Revoke access entirely Delete the UntrustReadOnlyScan role, or use IAM Revoke active sessions on it Immediately for new scans. A session that has already started can last up to 15 minutes unless you revoke active sessions.
Change the external ID Rotate the connection's grant and redeploy the template Queued and running scans under the old ID are discarded.

Revoking from your side never needs anything from untrust.

Google Cloud projects

Early access

Server scans on Google Cloud projects are in early access.

Server scans also work on a Google Cloud project, with the same schedule, Scan now, freshness and audit log as on AWS. They run the read-only AMD SEV-SNP and Confidential Space checks.

How the access works.

  • A dedicated service account you create. Its ID must start with untrust-scan. It has no keys.
  • A custom role on the project. It grants exactly the read permissions listed below, derived from the checks' code.
  • Impersonation through your connection's own delegate. untrust may impersonate the account (Service Account Token Creator) only through a delegate identity that is unique to your connection and shown in the console.
  • Proof that only your delegate works. Before every scan, and when you verify the connection, untrust first tries to mint a token for your account without that delegate. Google must refuse. If it doesn't, your account trusts an identity other organizations share, and untrust refuses to use it. This is the Google Cloud counterpart of the AWS external ID.
  • Short-lived, checked tokens. Each token lives 15 minutes and is never refreshed. Before any check runs, untrust asks Google which account the token belongs to, and stops unless it is exactly your service account.
  • One project per connection. A target in another project is refused before any check runs: a bucket, KMS key, secret or workload identity provider, checked by ID, project number and bucket owner. A central KMS or secrets project needs its own connection.

What's different from AWS.

  • No deny. Google Cloud custom roles can't deny, so the console lists the permissions the role never includes: object reads and writes, secret values, key use, serial-port and screenshot output, and minting tokens or keys. Don't also grant the account a broader role.
  • No per-scan label in your audit logs. Google Cloud has nothing like SourceIdentity. Your Cloud Audit Logs show your connection's delegate as the caller. Match calls to a scan by that delegate and the scan's time window in your untrust audit log.
  • Optional organization role. The folder and organization checks (CSPACE-IAM-INHERIT-01, CSPACE-VPCSC-01) need four permissions a project role can't hold: resourcemanager.folders.get, resourcemanager.folders.getIamPolicy, resourcemanager.organizations.getIamPolicy and accesscontextmanager.servicePerimeters.list. Without the optional organization role, those checks report ERROR with access_denied, never PASS.
  • Checks that stay CLI-only. The checks that read a captured attestation token (CSPACE-ATT-01, CSPACE-ATT-02, CSPACE-ATT-03, CSPACE-TOKEN-01, CSPACE-SIGNER-01) show as SKIP with requires_local_evidence. Write probes such as GCS-BOOT-02 show as SKIP with scan_mode.

Set it up. The connect wizard gives you a Terraform module or gcloud CLI commands built for your connection. They create the account, the custom role (and, if you choose, the organization role), and grant Token Creator to your delegate only.

Project role permissions (18):

Service Permissions
Artifact Registry repositories.getIamPolicy
Cloud KMS cryptoKeys.getIamPolicy
Compute Engine firewalls.list, instances.get, instances.getEffectiveFirewalls, instances.getIamPolicy, instances.list, regions.get
IAM serviceAccounts.getIamPolicy, serviceAccountKeys.list, workloadIdentityPoolProviders.get, workloadIdentityPoolProviders.list
Organization Policy policy.get
Resource Manager projects.get, projects.getIamPolicy
Secret Manager secrets.getIamPolicy
Cloud Storage buckets.get, buckets.getIamPolicy

The account can also read one log view, untrust-shielded-integrity, which holds only the Shielded VM integrity entries. It has no project-wide log access. The full grant, including the 28 permissions the roles never include, is on Hosted connection grants.

Azure subscriptions

Early access

Server scans on Azure subscriptions are in early access. Azure coverage is early: six checks so far.

Server scans also work on an Azure subscription, with the same schedule, Scan now, freshness and audit log. They run the read-only Azure confidential VM checks.

How the access works.

  • A federated app registration you create, with no secret. Its federated credential trusts only your connection's untrust delegate.
  • A custom role on one subscription. It has six read actions and no data actions, so it can't read keys, secrets or blobs, write anything or run commands:
    • Microsoft.Attestation/attestationProviders/read
    • Microsoft.Compute/virtualMachines/read
    • Microsoft.Insights/diagnosticSettings/read
    • Microsoft.KeyVault/vaults/keys/read
    • Microsoft.Resources/subscriptions/read
    • Microsoft.Resources/subscriptions/resources/read
  • A token for Azure Resource Manager only. untrust checks the token's tenant, app and object ID. It then checks that the subscription it can see is exactly your connection's, in your tenant, before any check runs.
  • Reads only, in your subscription only. Every request is a read of Azure Resource Manager, on an allowed route, in your subscription. Anything else is never sent. The key-release checks read the key's release policy through Azure Resource Manager, so the token never reaches the Key Vault data plane.

What's different from AWS.

  • No deny. Azure has no deny you can attach for this. Don't also assign the app a broader role, such as Reader.
  • One check stays CLI-only. AZ-DBG-01 reads a captured token, so it shows as SKIP with requires_local_evidence.

Set it up. The connect wizard gives you Azure CLI commands or Terraform that create the custom role and assign it to the app registration on your subscription. Don't assign Reader. The full grant, including the 7 actions the role never includes, is on Hosted connection grants.

What this means for your security

untrust holds delegated, short-lived read access to the configuration of the accounts you connect. If untrust's scanning identity and its database were both compromised, an attacker could read the configuration of every connected account until the compromise was detected. They still couldn't read your data, write anything or run commands, because the role and its Deny forbid it. The Threat model lists each risk and its control.

Permissions

The AWS role allows exactly these 46 actions, derived from the code of the read-only checks:

Service Actions
CloudTrail DescribeTrails, GetEventSelectors, GetTrailStatus, LookupEvents
DynamoDB DescribeContinuousBackups, DescribeTable, GetResourcePolicy
EC2 DescribeInstances, DescribeNetworkAcls, DescribeRegions, DescribeSecurityGroups, DescribeTransitGatewayVpcAttachments, DescribeVpcPeeringConnections, GetInstanceUefiData
EFS DescribeBackupPolicy, DescribeFileSystemPolicy, DescribeFileSystems
IAM GenerateServiceLastAccessedDetails, GetAccessKeyLastUsed, GetInstanceProfile, GetPolicy, GetPolicyVersion, GetRole, GetRolePolicy, GetServiceLastAccessedDetails, ListAccessKeys, ListAttachedRolePolicies, ListRolePolicies, ListRoles, ListUsers, SimulatePrincipalPolicy
KMS DescribeKey, GetKeyPolicy, ListGrants
RDS DescribeDBInstances, DescribeDBSnapshotAttributes, DescribeDBSnapshots
S3 GetBucketLogging, GetBucketObjectLockConfiguration, GetBucketPolicy, GetBucketPublicAccessBlock, GetBucketVersioning, GetEncryptionConfiguration

If you connected before this was added

ec2:DescribeNetworkAcls is new: it lets the scan read a confidential host's subnet network ACL for the egress check. It only reads; it changes nothing in your account. A role created from an earlier template does not have it, so that check reports it could not be assessed until you update the role. Update the stack (Launch stack again, or re-apply the current Terraform template from the connection's setup step), then run Scan now. Nothing else about the role changes: the trust policy, the external ID and every other permission stay as they were. | Secrets Manager | DescribeSecret, GetResourcePolicy | | Systems Manager | DescribeParameters | | STS | GetCallerIdentity |

A few of these need a note:

  • iam:ListRolePolicies and iam:ListAttachedRolePolicies let the IAM checks (IAM-01, IAM-02) find every policy on a role. A role deployed before they were added reports those checks as Update your scan role.
  • iam:GenerateServiceLastAccessedDetails starts an IAM Access Advisor report. AWS classes it as a read action, and it changes no resource or policy.
  • iam:SimulatePrincipalPolicy evaluates who can reach your key or bucket, without calling anything.
  • None of the actions read data.

The explicit Deny in the role covers:

  • S3 object reads and writes;
  • secret and parameter values;
  • KMS decrypt, encrypt and data-key generation;
  • DynamoDB item reads;
  • SSM commands and sessions;
  • instance console output, screenshots and passwords;
  • Lambda code download;
  • EC2 Instance Connect.

All 45 denied actions are listed on Hosted connection grants.