Set up a read-only cloud login
The Security Risk Scanner's cloud check only reads settings. Give it a login that can only read, not your root account or an admin.
Why a separate login
You sign in inside the app, on Amazon's, Microsoft's or Google's own page. The app never sees your password, and it keeps the access it gets in memory only, until you close it or sign out. Whatever that login can do, the app can do. The scanner only ever runs a fixed list of read commands, but the safest setup is a login that couldn't change anything even if it tried.
- Don't use the AWS root user, a subscription Owner or a project Owner.
- Make one login just for the scan, and remove it when you're done if you won't scan again.
- Turn on multi-factor sign-in for your root or admin account while you're in there.
AWS
Create an IAM user (we call ours hk-scan) in the IAM console under Users, and give it console sign-in with its own password. Attach these AWS managed policies directly to the user:
- SecurityAudit reads security settings such as encryption, certificates and bucket policies.
- ViewOnlyAccess lists the resources the scan looks at.
- SignInLocalDevelopmentAccess lets the user sign in to an app on your computer through AWS's own sign-in page.
Then, in the app, open AWS and press Sign in with AWS. Your browser opens AWS's sign-in page. Sign in as hk-scan, not as root, and allow access. There's nothing to install and no access keys to create or store. The app gets credentials that last 15 minutes and renews them for up to 12 hours, in memory only.
Already use the aws tool, or sign in through IAM Identity Center? The app can use an aws profile instead. For Identity Center, make a permission set with SecurityAudit and ViewOnlyAccess, sign in with aws sso login, and pick that profile in the app.
Azure
Use a user that has the Reader role on the subscription. That covers storage accounts, web apps and Redis caches.
Key Vault keeps keys and certificates separate from the vault's settings, so Reader alone won't show them. The scan only reads key types and certificate details, never secret values or private keys. Add one of these:
- For vaults that use Azure role-based access control, give the user Key Vault Reader on the subscription or on each vault.
- For vaults that use access policies, add a policy for the user with Get and List on keys and certificates only. Leave secrets off.
Then, in the app, open Microsoft Azure and press Sign in with Microsoft. Your browser opens Microsoft's sign-in page. Sign in with the scanning account and allow access. There's nothing to install. Microsoft's page asks to let the app access Azure as you; the app uses that only to read.
Signing in with a personal Microsoft account, or is your subscription in a different directory from your account's home? Press Sign in to a specific directory and enter the directory's domain (such as contoso.onmicrosoft.com) or its ID, from Microsoft Entra ID in the Azure portal. If your directory only allows apps an administrator has approved, Microsoft's page will say so, and an administrator has to allow the Hard Keel app first.
Already use the az tool? The app can use its sign-in instead.
Google Cloud
Use a Google account made for scanning, not a project Owner. Give it the Viewer role (roles/viewer) on each project you want scanned. If your company avoids broad basic roles, use these two instead:
- Cloud Asset Viewer (
roles/cloudasset.viewer) reads the project's resources and their settings through Cloud Asset Inventory, which is how the scan sees keys, firewall rules, TLS policies, certificates, storage and databases. - Browser (
roles/browser) lets the app list the project so you can pick it.
Then, in the app, open Google Cloud and press Sign in with Google. Your browser opens Google's sign-in page. Sign in with the scanning account and tick both Google Cloud boxes. One gives read-only access. Google describes the other, for Cloud Asset Inventory, as able to change your Cloud Asset data, because that service has no read-only option. The app only reads from it, and a scanning account with only the roles above couldn't change anything anyway. There's nothing to install.
Already use the gcloud tool? The app can use its sign-in instead.
What the app never does
- It never asks for, stores or sends a password or access key.
- It never changes anything in your account. Every command it can run is a read, and anything else is refused before it runs.
- It doesn't send your account numbers, resource names or regions anywhere.
The app ships with its source included, so you or your auditors can check the sign-in and read-only request code yourselves.
If you'd rather not give the app any access at all, export your inventory yourself (AWS Config, Azure Resource Graph or Google Cloud Asset Inventory) and import the file in the app instead.
Remove access afterward
- AWS: press Sign out now in the app, or close it. Then delete the
hk-scanuser, or remove its console password, if you won't scan again. If you used anawsprofile, also runaws logout --profile hk-scan. - Azure: press Sign out now in the app, or close it. Then remove the Reader and Key Vault Reader role assignments or the access policy. To remove the app from the account too, open My Apps at myapplications.microsoft.com, or have an administrator remove Hard Keel Security Risk Scanner under Enterprise applications. If you used the
aztool, also runaz logout. - Google Cloud: press Sign out now in the app, or close it. To remove the app from the account too, open your Google Account's Third-party apps and services page and remove Hard Keel Security Risk Scanner. Then remove the roles from the account in IAM.
Questions? Email [email protected]. Please don't send keys or passwords.