Prowler Executor¶
Category: IaC, Containers and Kubernetes
Script: prowler.py
Integration: CLI
Faraday Plugin: ProwlerPlugin
Website: prowler-cloud/prowler
Description¶
Runs a Prowler cloud security posture assessment against AWS, Azure, GCP or Kubernetes and imports the failed checks into Faraday. Each affected cloud resource becomes a host with its findings as vulnerabilities.
Prerequisites¶
prowlerinstalled and available in the agent'sPATH(checked withprowler --version). The executor uses Prowler'sjsonoutput format and the field names of Prowler 3.x.- Credentials for the provider you scan, with read access to the resources Prowler checks:
- AWS: an access key, or any credential source the AWS SDK finds on the agent
- Azure: a service principal (tenant ID, client ID and client secret)
- GCP: a service account key file
- Kubernetes: a kubeconfig available to the agent
- Network access from the agent to the provider's APIs
Configuration¶
Environment Variables (Setup)¶
| Variable | Required | Description |
|---|---|---|
AWS_ACCESS_KEY_ID |
No | AWS access key ID (AWS only) |
AWS_SECRET_ACCESS_KEY |
No | AWS secret access key (AWS only) |
AWS_SESSION_TOKEN |
No | AWS session token, for temporary credentials (AWS only) |
AWS_DEFAULT_REGION |
No | Default AWS region used by the SDK (e.g., us-east-1) |
AZURE_TENANT_ID |
No | Azure tenant ID of the service principal (Azure only) |
AZURE_CLIENT_ID |
No | Azure client ID of the service principal (Azure only) |
AZURE_CLIENT_SECRET |
No | Azure client secret of the service principal (Azure only) |
GOOGLE_APPLICATION_CREDENTIALS |
No | Path to the GCP service account JSON key file, as seen by the agent (GCP only) |
The executor does not read these variables itself. They are passed to Prowler, which uses the ones that match the selected provider.
Execution Arguments¶
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
PROWLER_PROVIDER |
string | No | Provider to assess: aws, azure, gcp or kubernetes (default: aws) |
PROWLER_CHECKS |
string | No | Check to run instead of the full set (e.g., s3_bucket_public_access) |
PROWLER_SEVERITY |
string | No | Only run checks of this severity: informational, low, medium, high or critical |
PROWLER_SERVICES |
string | No | Service to assess instead of all (e.g., s3) |
PROWLER_REGIONS |
string | No | AWS region to assess (e.g., us-east-1). Ignored for other providers. |
YAML Configuration Example¶
executors:
prowler:
repo_executor: prowler.py
max_size: 65536
varenvs:
AWS_ACCESS_KEY_ID: "<aws_access_key_id>"
AWS_SECRET_ACCESS_KEY: "<aws_secret_access_key>"
AWS_DEFAULT_REGION: "us-east-1"
params:
PROWLER_PROVIDER:
mandatory: false
type: string
base: string
PROWLER_CHECKS:
mandatory: false
type: string
base: string
PROWLER_SEVERITY:
mandatory: false
type: string
base: string
PROWLER_SERVICES:
mandatory: false
type: string
base: string
PROWLER_REGIONS:
mandatory: false
type: string
base: string
How It Works¶
- Validates
PROWLER_PROVIDER - Runs
prowler <provider> --output-formats jsonwith the check, severity, service and region filters - Parses the JSON report with
ProwlerPlugin, which keeps only the checks with statusFAIL - Creates one host per affected resource ID, with the service, account, region and ARN in its description, and one vulnerability per failed check with its risk, remediation, compliance mappings and documentation link
- Sends the results to Faraday
Notes¶
- Passed checks are not imported.
- The run fails if Prowler does not produce a JSON report.
- Each of
PROWLER_CHECKS,PROWLER_SERVICES,PROWLER_SEVERITYandPROWLER_REGIONSis passed to Prowler as a single value. - Supports the shared agent parameters (
AGENT_CONFIG_*tags and severity filters).