The Asset Center feature of Web Application Firewall (WAF) organizes your domain name assets both on and off Alibaba Cloud. It assesses risk levels based on the attack status of your cloud assets, helping you understand the overall security posture of your services. You can enable protection for high-risk domain name assets to improve your overall security.
Background information
Network application assets are the most important carrier of network applications in a security management system and are the most fundamental components in a business system. As enterprise business rapidly develops, more business systems are used. A single enterprise may have multiple business systems, and employees may forget to release resources after they build websites or test environments. As a result, business systems may contain unmanaged zombie assets. The most vulnerable part of a business system determines the overall security of the system. In most cases, zombie assets use outdated versions of open source systems, components, or web frameworks, which have common vulnerabilities. Attackers can exploit these vulnerabilities to invade the internal network of an enterprise.
Step 1: Access Asset Center and grant WAF permissions to access cloud resources
Log on to the WAF 3.0 console. In the top navigation bar, select the resource group and region of the WAF instance. You can select Chinese Mainland or Outside Chinese Mainland.
In the navigation pane on the left, click Asset Center.
On the Asset Center page, click Enable Now.
NoteYou only need to grant these permissions once. If you have already granted them, you can skip this step.
After you enable Asset Center for the first time, Alibaba Cloud automatically creates a service-linked role for WAF (AliyunServiceRoleForWAF). You can log on to the Resource Access Management (RAM) console to view the service-linked role that was automatically created for WAF. For more information, see View a RAM role.
After the AliyunServiceRoleForWAF service-linked role is created, your WAF instance can access the resources of associated Alibaba Cloud services, such as Elastic Compute Service (ECS), Server Load Balancer (SLB), Alibaba Cloud DNS, Alibaba Cloud CDN, Digital Certificate Management Service, and Simple Log Service (SLS).
After WAF is granted permissions to access cloud resources, it automatically detects the domain name assets associated with your Alibaba Cloud account and displays the information on the Asset Center page.
NoteAsset Center supports the detection of both Alibaba Cloud and non-Alibaba Cloud domain names. Non-Alibaba Cloud domain names include those that resolve to non-Alibaba Cloud servers and those used in on-premises data centers.
To improve the accuracy of asset discovery, WAF enables active fingerprint scanning by default. For assets added to WAF, asset fingerprints are identified through passive traffic analysis and active probing. Active fingerprint scanning is performed every two weeks. Keep this feature enabled.
Step 2: Add assets
If a primary domain name that you want to monitor is not in the asset list, you can manually add it.
On the Overview tab of the Asset Center page, click Add Asset.
In the Add Asset dialog box, enter the website domain name and verify its ownership.
DNS record verification: Manually add the TXT record that is provided by WAF at your domain's DNS provider. This method is recommended.
File verification: Upload the verification file that is provided by WAF to a specified root directory on your origin server. This requires operational permission on the origin server and a security group policy that allows access from all IP addresses. This ensures that WAF can verify the file from the Internet.
DNS record verification
In the validation prompt area, click the Method 1: DNS Record tab.
Add a TXT record with your domain name resolution service provider and specify the Record Type, Host Name, and Record Value from the WAF console.
If you use Alibaba Cloud DNS, you can follow these steps. If you use another DNS provider, you must perform similar steps in their system.
Wait for the TXT record to take effect. A new TXT record takes effect in real time. However, changes to an existing TXT record typically take effect after 10 minutes. The effective period depends on the TTL duration that is configured for the domain's DNS record, which is 10 minutes by default.
Return to the WAF console and click Verify.
If Verification Successful is displayed, the domain ownership verification is complete.
If Verification Failed is displayed, you can troubleshoot the issue as follows:
Check the TXT record: Make sure that the added hostname and record value are exactly the same as the information that is provided in the WAF console. If there are differences, you can delete the incorrect record, add it again, and then verify again.
Wait for DNS to take effect: The DNS record configuration may not take effect immediately. The effective period depends on the TTL cache time that is set on the DNS server. You can wait 10 minutes and then verify again.
Change the verification method: If verification still fails after multiple attempts, you can use Method 2: File Verification.
File verification
In the verification area, click the Method 2: Verification File tab.
Click the download link for the verification file (① in the figure) to download the verification file.
ImportantThe verification file is valid for only 3 days after download. If you do not complete file verification within this period, you must download it again.
Do not modify the verification file in any way, such as by editing or renaming it.
WAF accesses the origin server based on the selected protocol type. Make sure that your origin server's security group or firewall rules allow the corresponding traffic:
If you select HTTP, allow inbound TCP traffic on port 80 from 0.0.0.0/0.
If you select HTTPS, you must allow inbound TCP traffic on port 443 from the 0.0.0.0/0 source.
Manually upload the verification file to the web root directory of your domain's origin server, such as an ECS instance, an OSS bucket, a CVM instance, a COS bucket, or an EC2 instance (② in the figure).
NoteIf you add a wildcard domain name, such as
*.aliyun.com, you must upload the validation file to the root directory of thealiyun.comdomain.After the upload is complete, you can check whether the verification document was uploaded successfully by following the methods below.
Return to the WAF console and click Verify.
If Verification Successful is displayed, the domain ownership verification is complete.
If Verification Failed is displayed, you can troubleshoot the issue based on the error message:
Problem description
Solution
Cannot access the domain name.
Check the DNS record for your domain name to ensure that it points to the origin server. For Alibaba Cloud DNS, see Add a DNS record.
Check the security group or firewall rules of the origin server to ensure that public network access requests are allowed. For ECS security groups, see Add a security group rule.
Verification file does not exist.
Re-upload the verification file to the domain's origin server.
Incorrect file content.
Go to your domain's origin server and delete the incorrect verification file.
Re-upload the verification file.
A security group rule that allows access from all IP addresses poses a security risk. If the initial security group configuration of the origin server does not include the 0.0.0.0/0 rule, you must delete the security group rule that was added for verification after you complete the ownership verification.
After you complete the preceding configurations, click Add.
After you manually add an asset, it appears in the Asset Center list on the next day (T+1).
Step 3: View assets
On the Asset Center page, you can view the details of your domain name assets.

Data Type | Description | Related actions |
Domain name asset data (Area ① in the figure) | Displays data about the domain name assets associated with your Alibaba Cloud account. This includes the total number of primary domain names, the total number of subdomains and its change from the previous day, and the number of unprotected subdomains, categorized as high-risk, medium-risk, and low-risk. | None |
Domain name asset details (Area ② in the figure) | WAF aggregates and displays detected domain name assets, grouped by primary domain name. Each primary domain name includes the following information:
|
|
Step 4: Export assets
On the Overview tab of the Asset Center page, select the primary domain names that you want to export and click the download
icon in the upper-right corner to generate an export file.On the Export Record tab in Asset Center, click Download to export the domain name asset document.
The exported file is temporarily stored on Alibaba Cloud and is automatically deleted after three days. You must download the file within this period.
NoteOnly an Alibaba Cloud account can download the asset list. This feature is not supported for RAM users.