Misconfigurations of cloud assets (such as public read access on buckets) or security vulnerabilities can lead to serious security incidents such as data leaks and service disruptions. Cloud Security Posture Management (CSPM) continuously discovers and manages configuration risks in Alibaba Cloud, multicloud environments, and self-managed Kubernetes (K8s) clusters through automated security checks, and provides remediation suggestions to improve the overall security and compliance of assets. This topic describes how to add various types of cloud assets to Security Center to enable the configuration risk check feature.
Scope
Supported check items:
Provides some free basic configuration check items.
NoteOnly detection and validation are free. Remediation still requires a paid service.
To enable all cloud service configuration risk check items, purchase the CSPM paid service (subscription or pay-as-you-go). For more information, see Billing details.
Supported cloud platforms:
Alibaba Cloud
Third-party cloud platforms: AWS, Azure, Huawei Cloud, Tencent Cloud, and Volcano Engine.
Container environments: self-managed Kubernetes clusters.
View supported cloud services
Currently, Security Center supports accessing assets in Alibaba Cloud and third-party cloud platforms for Cloud Security Posture Management. You can view the Alibaba Cloud services, third-party cloud platforms, and their services that Security Center supports for access and checks in the Security Center console.
Access the Security Center console - Risk Governance - Cloud Security Posture Management. In the upper-left corner of the page, select the region of your assets: Chinese Mainland or Outside Chinese Mainland.
On the Cloud Service Configuration Risk tab, above the list of check items, select Cloud Product, and click Alibaba Cloud or a third-party cloud platform (such as Tencent Cloud or AWS) to view the list of cloud services that Security Center currently supports for access.
Access Alibaba Cloud services
Security Center automatically synchronizes the cloud services under the current Alibaba Cloud account. No manual action is required.
Add assets from third-party cloud platforms
Cloud Security Posture Management provides configuration check capabilities for assets across cloud platforms. You can add third-party cloud services such as AWS, Azure, Huawei Cloud, Tencent Cloud, and Volcano Engine to Security Center to implement unified cloud service configuration scanning and risk management. The configuration steps are as follows.
For detailed reference documents, see Related topics.
Step 1: Create access credentials on the third-party cloud platform
AWS
Create an IAM user and grant permissions: Log on to the AWS IAM console, create a new IAM user, and attach the
ReadOnlyAccessandIAMReadOnlyAccesssystem policies to the user.Create and record the access key: Generate an access key for the new user, and properly record the Access Key ID and Secret Access Key.
Huawei Cloud
Create a user group and grant permissions: Log on to the Huawei Cloud console, go to the User Group page, create a new user group, and attach the
Tenant GuestandIAM ReadOnlyAccesssystem policies to the user group.Create a user and record the access key: Create a new IAM user, add the user to the user group created in the previous step, create an access key for the user, and properly record the Access Key Id and Secret Access Key.
Tencent Cloud
Create a sub-account and grant permissions: Log on to the Tencent Cloud console, go to the User List page, create a new sub-account, and associate the
CloudResourceReadOnlyAccessandQcloudCamReadOnlyAccesssystem policies with the sub-account.Create and record the API key: On the API Key management page of the sub-account details, create a new API key, and properly record the SecretId and SecretKey.
Azure
Register an application: Log on to the Azure portal, go to the App registrations service, register a new application, and record its Application (client) ID and Directory (tenant) ID.
Create a client secret: In the newly registered application, go to the Certificates & secrets page, create a new client secret, and properly record its Value.
Assign a role: Go to the Subscriptions service, select your subscription, and then assign the Reader role to the newly registered application on the Access control (IAM) page.
Volcano Engine
Create a sub-account and grant permissions: Log on to the Volcano Engine console, go to the Users page, create a new sub-account, and attach the
IAMReadOnlyAccessandECSReadOnlyAccesssystem policies to the user.Create and record the access key: When you create the user, make sure that Programmatic access is enabled. After the user is created, properly record the Access Key ID and Secret Access Key.
Step 2: Complete the integration in Security Center
Access the Security Center console - System Settings - Feature Settings. In the upper-left corner of the page, select the region of your assets: Chinese Mainland or Outside Chinese Mainland.
On the tab, click Grant Permission.
In the Add Assets Outside Cloud panel, select a configuration plan and enter the access credentials obtained in the previous step into the corresponding input fields based on the prompts.
Configure audit logs (optional): If you want to use the CSPM (CSPM) log auditing feature, you also need to configure related settings.
NoteThe third-party platform must provide the corresponding Kafka service. Currently, only Tencent Cloud and AWS support audit log configuration.
Add a self-managed K8s cluster
Step 1: Add the cluster
This step creates the necessary authentication and service accounts in the cluster so that the Security Center agent can securely communicate with the cluster.
On the page, click Policy Management in the upper-right corner. In the Policy Management panel, click the Configure Container Cluster tab, and then click Self-built cluster access.
NoteIf the current instance is the Ultimate edition, you can also go to and click Self-built cluster access.
In the Access Self-built K8s cluster panel, complete the K8s access configuration, and click Generate Command.
Log on to the server where the cluster is deployed, create a
text-001.yamlfile, and copy the generated command into the file.Run the following command:
# Apply the access configuration kubectl apply -f text-001.yaml
Step 2: Install the check component
This step deploys the check component agent in the cluster to perform configuration scan tasks.
Return to the cluster list on the Configure Container Cluster tab, find the cluster that you just added. The Component Status of the cluster is Not Installed. Click Component Access.
In the Scan Component Access panel, copy the generated command. Then, log on to the server where the cluster is deployed, and copy the generated command into the
deploy.yamlfile.Run the following command:
# Deploy the check component kubectl apply -f deploy.yaml(Optional) Enable Webhook for incremental checks: If you want to automatically trigger incremental checks when cluster resources (such as pods) change, you can enable the Webhook feature.
WarningAfter the Webhook feature is enabled, only incremental checks for pods are supported. If the Webhook feature is not correctly configured or an exception occurs, the creation of cluster resources may be affected.
In the Scan Component Access panel, copy the Webhook-related command. Then, log on to the server where the cluster is deployed, and copy the generated command into the
webhook.yamlfile.Run the following command to deploy the component:
# Deploy the check component kubectl apply -f webhook.yaml
Step 3: Verify the installation
On the cluster server, run the following command to check whether the agent pod is running.
NoteThe expected result is that the status of the agent-related pod is
Running.# Replace <agent-namespace> with the actual namespace where the agent is deployed. kubectl get pods -n <agent-namespace>In the Configure Container Cluster list in the Security Center console, check that the Component Status of the cluster in the cluster list is Online, which indicates that the component is installed.
Synchronize assets
If automatic synchronization is configured during access (for example, the Cloud Service Synchronization Frequency option is enabled for multicloud configurations), the system automatically synchronizes new cloud services or product configuration updates.
You can also manually go to the Cloud Product or Configure Container Cluster tab in the Security Center console and click Synchronize Assets.
Billing
Asset access: The operation of adding cloud assets to Security Center is free of charge.
Configuration check: The CSPM paid feature is measured in authorization units. One authorization unit is consumed for each successful operation (scan, validation, or remediation) performed on an asset instance. For more information, see Billing details.
Quotas and limits
Feature limits: The log auditing feature currently supports only Tencent Cloud and AWS.
K8s access limits:
Version limits:
Subscription service: Purchase the Ultimate edition service or purchase the CSPM value-added service separately.
Pay-as-you-go service: Enable Host and Container Security or the CSPM pay-as-you-go feature.
Region limits:
If the network type of the self-managed K8s cluster is VPC, the cluster can be connected only in the China (Hangzhou), China (Beijing), China (Shanghai), China (Shenzhen), and China (Hong Kong) regions.
If the network type of the self-managed K8s cluster is public network, no region restrictions apply.