What you get
- Every customer’s cloud posture in one list: each account’s last scan, its failures by severity, what changed since the scan before and when it is scanned next. The list follows the sidebar’s customer filter.
- Findings that failed or need a manual review, by severity, with the resource, region and Prowler’s explanation. Each one is matched with the scan before, so a new failure is marked new, and one that disappeared counts as resolved.
- Checks: everything Prowler checked, with its description, risk, remediation and references, and the findings of any check in one click.
- Compliance: how each scan maps onto the frameworks Prowler supports for the provider (CIS, NIST, ISO 27001, SOC 2, PCI DSS, MITRE ATT&CK…), requirement by requirement.
- Prowler’s own reports (HTML and CSV) for every scan, as downloads.
- Schedules: daily or weekly, at an hour you pick (UTC).
Before you start (operator)
copilot-prowler is part of CoPilot’s Docker Compose file. It needs two settings in CoPilot’s.env:
A token for the runner
PROWLER_RUNNER_TOKEN to a random value of at least 32 characters, for example from openssl rand -hex 32. copilot-backend and copilot-prowler both read it; without it every scan is refused.A key for the cloud credentials
CLOUD_ASSESSMENT_ENCRYPTION_KEY to a key made with:Start it
Add a customer’s cloud account
Cloud accounts are set up on the customer: Customers → (customer) → Data sources → Cloud Accounts → Add account (admins). Give the account a name, pick the provider, and enter what that provider needs. The credential is write-only: CoPilot never shows it again, and when you edit an account, leaving a credential field empty keeps the stored one. Read-only access is enough for every provider: Prowler only reads.- AWS
- Azure
- Microsoft 365
- Google Cloud
- In CoPilot, add the account with IAM role with an External ID and the role’s ARN (
arn:aws:iam::<account>:role/ProwlerScan). Then choose how CoPilot assumes the role:- An IAM user’s access keys: the long-lived keys (
AKIA…) of an IAM user that needs nothing butsts:AssumeRoleon the role; - CoPilot’s own AWS identity, when CoPilot runs in AWS with an EC2 instance profile or ECS task role. No keys are stored.
- An IAM user’s access keys: the long-lived keys (
- CoPilot then shows Role setup: in the customer’s account, create a CloudFormation stack from Prowler’s
prowler-scan-role.ymltemplate, with:ExternalId: the one CoPilot shows (copy button);AccountId: the 12-digit account of the identity that assumes the role. Replace the default,232136659152: that is Prowler Cloud’s account;IAMPrincipal: that identity, asuser/<name>orrole/<name>.
- If you use an IAM user’s keys, give that user the
sts:AssumeRolepolicy Role setup shows. - Once the stack shows
CREATE_COMPLETE, use Test connection.
SecurityAudit and ViewOnlyAccess managed policies, and its long-lived access keys.Regions are optional: without any, Prowler scans every region.Create the app registration with Prowler’s script
For Azure and Microsoft 365, Prowler ships a script,prowler-azure-m365-scan-identity.sh, that creates the app registration and gives it every read-only role and permission the scans need. Run it once per customer tenant, signed in to that tenant: in Azure Cloud Shell (Bash), which is signed in already, or anywhere with the Azure CLI after az login (az login --allow-no-subscriptions for a tenant without Azure subscriptions).
The person who runs it needs, in the customer’s tenant:
- Privileged Role Administrator (or Global Administrator), to grant the application permissions and assign Global Reader;
- Application Developer as well, if users there can’t register applications;
- for Azure, Owner or User Access Administrator on each subscription or management group to scan.
Download the script for the Prowler version CoPilot runs
See what it would do
--apply it changes nothing: it prints each command it would run.Run it
--apply to the same command. At the end the script prints the Tenant ID, the Client ID and, only this once, the client secret: copy the secret then, it is stored nowhere. The secret is valid for 180 days, and the script prints the date it expires.Add the account in CoPilot
- Azure (
--azure): the Reader role on each subscription or management group, a custom role, ProwlerRole, for four App Service checks, and three Microsoft Graph permissions for the Entra ID checks. ProwlerRole can read Function App keys and App Service app settings, which may hold secrets:--skip-custom-roleleaves it out, and those four checks don’t run. - Microsoft 365 (
--m365): thirteen Microsoft Graph permissions, plus Exchange.ManageAsApp and the Global Reader directory role for the checks that run through PowerShell.--graph-onlyleaves those two out, and the PowerShell checks don’t run.
--client-secret, not --certificate: CoPilot signs in with a client secret. The script is safe to run again. If an app registration with its name (Prowler Scan unless you pass --app-name) already exists, it stops and asks for --use-existing-app.
When the secret expires, create a new one on the app registration (Certificates & secrets → New client secret in the Microsoft Entra admin center) and enter it, with its expiry date, on the account. The script doesn’t replace the secret it created: to use it again, delete that secret first (az ad app credential delete), then run it with --use-existing-app --client-secret --apply.
Every account also has:
- Schedule: off, daily, or weekly on a day, at an hour UTC.
- Enabled: a disabled account is neither scheduled nor scanned.
- Advanced: Prowler checks or services to skip, and a time limit for this account’s scans.
Scan
Scan now starts a scan at once (admins and analysts). Scheduled scans start on their own. An account runs one scan at a time.Read the results
Exposure → Cloud Security Assessment lists every cloud account of the customers you can see. Open one for its details, its failures over time (once two scans have completed: a column per scan, its failures by severity, or the same numbers as a table; click a column or a row to open that scan) and its scans, newest first; the newest completed scan opens below them, in four tabs:- Overview: the share of checks passing, the failures, the findings under manual review and muted, new failures and resolved since the scan before, the failures by severity, and the worst failing checks.
- Findings: what failed or needs a manual review, filtered by severity, status, muted, new since the scan before and text. Open one for Prowler’s detail, the resource and its tags, and when it was first seen.
- Checks: every check of the scan, failing ones first. Open one for Prowler’s description, risk, remediation, references and the frameworks it maps to, and Its findings to see them.
- Compliance: every framework the scan’s checks map to, with its requirements passing, failing, under manual review and not assessed. Open one for each requirement and the checks behind it.
- New and resolved compare with the account’s previous completed scan, check by check. A check that couldn’t run in one of the two scans (Prowler logged an error for it, or it had nothing to check) is left out of the comparison: its failures aren’t counted as resolved when it didn’t run, and aren’t counted as new the next time it runs. A finding keeps its first-seen time across such a gap. A check that ran but couldn’t read one region still counts that region’s failures as resolved, so when a scan says checks logged an error, treat its resolved count with care. An account’s first scan has nothing to compare with, so it says first scan.
- Manual review: a check Prowler can’t decide on its own; someone has to look.
- Muted: findings Prowler’s mutelist suppresses. They are counted apart and hidden from the findings by default.
- Not assessed: a requirement no check of this scan covers. Review it by hand.
Who can do what
Data kept
- Credentials: encrypted with
CLOUD_ASSESSMENT_ENCRYPTION_KEY, never shown or logged. Deleting an account in CoPilot doesn’t revoke its credential in the cloud: remove the role, user, app registration or key there too. - Findings and reports: kept for each account’s newest
CLOUD_ASSESSMENT_KEEP_FINDINGS_SCANScompleted scans. An older scan says Retention removed this scan’s findings and reports and keeps its counts, checks and compliance. - Scans older than
CLOUD_ASSESSMENT_RETENTION_DAYSare deleted. Deleting an account deletes its scans.
Troubleshooting
“Cloud credentials can't be saved until CLOUD_ASSESSMENT_ENCRYPTION_KEY is set”
“Cloud credentials can't be saved until CLOUD_ASSESSMENT_ENCRYPTION_KEY is set”
.env (see Before you start) and recreate copilot-backend.“Scans need PROWLER_RUNNER_TOKEN”, or the page says copilot-prowler doesn't answer
“Scans need PROWLER_RUNNER_TOKEN”, or the page says copilot-prowler doesn't answer
PROWLER_RUNNER_TOKEN (32 characters or more) in .env, the same for both containers, and check that copilot-prowler is running (docker compose ps). Scans stay queued until it answers.“The stored credential can't be decrypted … Re-enter the credential”
“The stored credential can't be decrypted … Re-enter the credential”
CLOUD_ASSESSMENT_ENCRYPTION_KEY changed since the credential was saved. Edit the account and enter the credential again.Test connection or a scan says the credentials were refused
Test connection or a scan says the credentials were refused
- AWS role: check the role’s trust policy has the External ID CoPilot shows and the right principal, and that the identity may call
sts:AssumeRoleon the role. - Azure and Microsoft 365: check the tenant id, the client id and the secret’s value (not its id), and that the app has its permissions, with admin consent.
- Google Cloud: check the key hasn’t been deleted and the service account still has its roles.
“The client secret has expired”
“The client secret has expired”
“No AWS credentials were found”
“No AWS credentials were found”
A scan stays queued
A scan stays queued
PROWLER_MAX_CONCURRENT scans already. The scan starts when one ends.“CoPilot couldn't read any of copilot-prowler's findings”
“CoPilot couldn't read any of copilot-prowler's findings”
