Skip to main content
Prowler supports Alibaba Cloud both from the CLI and from Prowler Cloud. This guide walks you through the requirements, how to connect the provider in the UI, and how to run scans from the command line.

Prerequisites

Before you begin, make sure you have:
  1. An Alibaba Cloud Account ID (visible in the Alibaba Cloud Console under your profile). This is required for Prowler Cloud only; the CLI does not need it.
  2. Credentials with the permissions Prowler needs to audit your resources:
For setup steps and permission guidance, see the Alibaba Cloud Authentication guide.

Prowler Cloud

Connect your Alibaba Cloud account in the Prowler Cloud UI

Prowler CLI

Scan your Alibaba Cloud account from the command line

Prowler Cloud

Added in: 5.18.0

Step 1: Get Your Alibaba Cloud Account ID

  1. Log in to the Alibaba Cloud Console.
  2. Click your profile avatar in the top-right corner.
  3. Locate and copy your Account ID.
Get Account ID

Step 2: Access Prowler Cloud

  1. Sign in to Prowler Cloud or create an account.
  2. Go to “Configuration” > “Providers”. Providers Page
  3. Click “Add Provider”. Add a Provider
  4. Select “Alibaba Cloud”. Select Alibaba Cloud
  5. Enter your Alibaba Cloud Account ID and optionally provide a friendly alias. Add Account ID

Step 3: Choose and Provide Authentication

After the Account ID is in place, select the authentication method that matches your Alibaba Cloud setup: Select Auth Method Use this method for secure cross-account access. For detailed instructions on how to create the RAM role, see the Authentication guide.
  1. Enter the Role ARN (format: acs:ram::<account-id>:role/<role-name>).
  2. Enter the Access Key ID and Access Key Secret of the RAM user that will assume the role. Input the Role ARN
The RAM user whose credentials you provide must have permission to assume the target role. For more details, see the Alibaba Cloud AssumeRole API documentation.

Credentials (Static Access Keys)

Use static credentials for quick scans (not recommended for production). For detailed setup, see the Authentication guide.
  1. Enter the Access Key ID and Access Key Secret. Filled Credentials Page
Static access keys are long-lived credentials. For production environments, consider using RAM Role Assumption instead.

Step 4: Launch the Scan

  1. Click “Next” to review your configuration.
  2. Click “Launch Scan” to start auditing your Alibaba Cloud account. Launch Scan

Prowler CLI

Added in: 5.15.0 You can also run Alibaba Cloud assessments directly from the CLI. Both command-line flags and environment variables are supported. Make sure Prowler CLI is installed before you start.

Step 1: Select an Authentication Method

Choose one of the following authentication methods. For step-by-step credential creation and the full list of supported authentication modes, see the Authentication guide.

Environment Variables

Default Credential Chain

This method requires the Alibaba Cloud CLI (aliyun) to be installed.

RAM Role Assumption

Set the access keys of the RAM user that will assume the role:
Then provide the role using either the --role-arn flag:
or the ALIBABA_CLOUD_ROLE_ARN environment variable:

ECS RAM Role (for ECS instances)

Step 2: Run the First Scan

Scan All Regions

Scan Specific Regions

Run Specific Checks

Run a Compliance Framework

Additional Tips

  • Combine flags (for example, --checks or --services) just like with other providers.
  • Use --output-modes to export findings in formats such as CSV, JSON-OCSF, and HTML.
  • For more authentication options (OIDC, Credentials URI, STS), see the Authentication guide.