Additional Providers
Overview
This area contains every first-class Prowler provider outside AWS, Azure, and GCP: regional cloud APIs (prowler/…/alibabacloud_provider.py, prowler/…/huaweicloud_provider.py, prowler/…/oraclecloud_provider.py, prowler/…/openstack_provider.py, prowler/…/stackit_provider.py, prowler/…/scaleway_provider.py, prowler/…/linode_provider.py, prowler/…/e2enetworks_provider.py, prowler/…/nhn_provider.py), SaaS providers (prowler/…/github_provider.py, prowler/…/googleworkspace_provider.py, prowler/…/m365_provider.py, prowler/…/okta_provider.py, prowler/…/cloudflare_provider.py, prowler/…/mongodbatlas_provider.py, prowler/…/vercel_provider.py), and specialized target providers for Kubernetes, IaC, container images, and LLM red-team scans (prowler/…/kubernetes_provider.py, prowler/…/iac_provider.py, prowler/…/image_provider.py, prowler/…/llm_provider.py).
Most API-backed providers follow the same layout: {provider}_provider.py authenticates, resolves identity and scan scope, loads the provider audit config through load_and_validate_config_file, creates a provider-specific mutelist, then calls Provider.set_global_provider(self). Service clients are initialized through prowler/…/{service}_client.py, which instantiates {Service}(Provider.get_global_provider()), and individual checks import that singleton and create provider-specific report objects such as CheckReportVercel in prowler/…/project_password_protection_enabled.py. Tests under tests/providers/{provider}/ mirror this layout and usually isolate provider bootstrapping, service data collection, and per-check PASS/FAIL behavior, as shown by tests/…/vercel_provider_test.py.
Authentication and target modeling vary more than the check layout:
- Regional cloud providers generally model identity plus region, project, tenancy, compartment, or account scope. Alibaba Cloud resolves RAM credentials and regions in prowler/…/alibabacloud_provider.py; Huawei Cloud resolves cloud/region selection and agency assumption in prowler/…/huaweicloud_provider.py; OCI builds session signers, subscribed regions, home region, and compartments in prowler/…/oraclecloud_provider.py; OpenStack accepts clouds.yaml, direct
OS_*values, and multi-region connections in prowler/…/openstack_provider.py; StackIT reads service account key content or path and project UUID in prowler/…/stackit_provider.py; Scaleway, Linode, E2E Networks, and NHN wrap their SDK or HTTP session around organization/project/region/tenant fields in their provider files. - SaaS providers tend to scan tenants, accounts, organizations, repositories, projects, teams, or zones rather than cloud regions. GitHub supports PAT, OAuth token, and GitHub App auth and lets callers scope by repositories, repo-list files, organizations, and GitHub Actions settings in prowler/…/github_provider.py and prowler/…/arguments.py. Google Workspace requires service-account credentials with domain-wide delegation and lazily fetches licensed editions in prowler/…/googleworkspace_provider.py. M365 combines Azure credentials, region configuration, Microsoft Graph, and optional PowerShell modules in prowler/…/m365_provider.py and prowler/…/service.py. Okta uses OAuth private-key JWT and a provider-wide rate limiter from prowler/…/okta_provider.py. Cloudflare filters account and zone scope in prowler/…/cloudflare_provider.py, and Vercel filters projects and optional team scope in prowler/…/vercel_provider.py.
- Kubernetes is a cluster provider. prowler/…/kubernetes_provider.py reads kubeconfig file or content, validates cluster server URLs with the outbound URL guard, supports explicit context, cluster name, and namespace filters, and stores
KubernetesIdentityInfo(context, user, cluster)from prowler/…/models.py. Service collectors such as prowler/…/rbac_service.py and prowler/…/core_service.py operate through the shared KubernetesApiClientand the provider namespace list. - IaC, image, and LLM are wrapper providers rather than normal service/check providers. prowler/…/iac_provider.py clones or scans local IaC paths, shells out to Trivy, and converts Trivy JSON findings into
CheckReportIAC; prowler/…/image_provider.py enumerates explicit images, image-list files, or registries, shells out totrivy image, and converts results intoCheckReportImage; prowler/…/llm_provider.py reads the red-team YAML config, runs promptfoo, and converts JSONL results intoCheckReportLLM. Their models.py files mainly provide output filename options rather than cloud identity models.
The service base classes are provider-specific adapters over the same execution contract. prowler/…/service.py builds one PyGithub client per token or app installation. prowler/…/service.py, prowler/…/service.py, prowler/…/service.py, and prowler/…/service.py all provide thread-pool helpers for fan-out over zones, namespaces, regions/compartments, or projects. prowler/…/service.py wraps async Okta SDK calls behind a synchronous _run() helper and injects retry/timeout/rate-limit config. OCI's base service also exposes regional-client helpers and region/compartment fan-out, while Vercel's base service centralizes bearer-token requests, cursor pagination, and 429 retry handling.
Coupling
- If provider constructor arguments change in any {provider}_provider.py, also update prowler/…/arguments.py and the matching tests/…/{provider}_provider_test.py; CLI parsers and tests encode which credentials are accepted from flags versus environment variables, for example prowler/…/arguments.py, prowler/…/arguments.py, and tests/…/vercel_provider_test.py.
- If a provider identity or session model changes in prowler/…/models.py, verify every service base class and output option for that provider. Examples: prowler/…/models.py drives the default output filename and
KubernetesProvider.identity; prowler/…/models.py distinguishes PAT/OAuth identity from GitHub App identity; prowler/…/service.py expects OCI session config and signer fields. - If a service collector changes its resource model fields, update all checks importing its singleton client. For example, prowler/…/project_service.py populates
VercelProject.password_protection,billing_plan, and environment variables, and prowler/…/project_password_protection_enabled.py depends on those names and semantics. - If mutelist behavior changes for one of these providers, keep the provider-specific mutelist loader and account/tenant scoping aligned. Providers such as prowler/…/oraclecloud_provider.py, prowler/…/googleworkspace_provider.py, prowler/…/okta_provider.py, and prowler/…/vercel_provider.py instantiate their own mutelist classes, while prowler/…/iac_provider.py, prowler/…/image_provider.py, and prowler/…/llm_provider.py intentionally set
_mutelist = Nonebecause their external scanners handle suppression differently. - If registry or remote-repository scanning is changed, preserve the SSRF and input-validation path. IaC repository access is guarded through prowler/…/git_transport.py, and image registry selection is split between validation in prowler/…/arguments.py and adapter selection in prowler/…/factory.py.
- If Okta API pacing or retry configuration changes, verify both prowler/…/okta_provider.py and prowler/…/service.py; the provider builds one shared
OktaRateLimiter, and every service client must use it for aggregate request throttling. - If M365 authentication or region handling changes, verify both Microsoft Graph and PowerShell paths. prowler/…/m365_provider.py creates Azure credentials and optional PowerShell credentials, while prowler/…/service.py exposes both
GraphServiceClientandM365PowerShellto services.
Risks
- prowler/…/iac_provider.py and prowler/…/git_transport.py: remote repository scans can be turned into SSRF if URL rewriting, redirects, or proxy handling bypass
validate_outbound_url; the guarded Dulwich transport exists specifically because GitinsteadOfrewrites and redirects can change the final destination after the user-supplied URL is validated. - prowler/…/image_provider.py: image names, registry enumeration, and Trivy invocation are shell-adjacent inputs. If
_validate_image_name, scanner choices, timeout handling, or registry filters are relaxed, a malicious image/list/registry input can either execute an unintended scan target or create unbounded registry enumeration. - prowler/…/openstack_provider.py and prowler/…/kubernetes_provider.py: both consume user-controlled endpoint configuration (clouds.yaml auth URLs or kubeconfig cluster servers). If their outbound URL validation is skipped, scans can connect to disallowed internal URLs before the normal service collectors run.
- prowler/…/okta_provider.py and prowler/…/service.py: removing the shared rate limiter or lowering retry/timeout handling can make large-org Okta scans fail with partial data under 429s, because each service creates its own SDK client but must pace against the same provider-wide limit.
- prowler/…/oraclecloud_provider.py: tenancy-level OCI APIs depend on home-region resolution independent of the user
--regionfilter. If the home region is derived only from the filtered region list, audit or tenancy-level checks can query the wrong region and silently miss configuration.