Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Situation Awareness
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive

Enabling Application Protection

Updated on 2025-01-07 GMT+08:00

Scenario

To protect web applications, enable application protection for servers. While protection is enabled, the microservice RASP plug-ins are installed on servers.

How to Enable

Application protection can be enabled automatically or manually. The differences are as follows:

How to Enable

Advantage

Restriction

Operation

Automatic

  • You do not need to manually configure application protection startup parameters.
  • HSS automatically identifies and accesses web applications that have listening ports on the protected servers, and dynamically loads or unloads application protection as needed when web applications are running.
  • This method depends on automatic dynamic RASP, which is in the OBT phase. To use this function, submit a service ticket.
  • If a web application is just started and runs for 5 minutes or less, RASP cannot be enabled using this method. When the running time of the application exceeds 5 minutes, RASP is automatically enabled.
  • Web applications of JRE 8, JRE 11, and JRE 17 are not supported.
  • For JDK 17, --add-opens=java.base/java.lang=ALL-UNNAMED needs to be added to the web application startup parameters.

Automatically Enabling Application Protection

Manual

  • Web applications without listening ports can be accessed.
  • Web applications of JRE 8, JRE 11, and JRE 17 are supported.

You need to manually configure application protection startup parameters for applications.

Manually Enabling Application Protection

Automatically Enabling Application Protection

  1. Log in to the management console.
  2. In the upper left corner of the page, select a region, click , and choose Security & Compliance > HSS.
  3. Choose Server Protection > Application Protection. Click the Protected Servers tab.

    NOTE:

    If your servers are managed by enterprise projects, you can select the target enterprise project to view or operate the asset and detection information.

    Figure 1 Viewing protection settings

  1. Click Add Server. The Add Server slide-out panel is displayed.
  2. Select servers and a protection policy. Click Add and Enable Protection. For more information, see Table 1.

    Figure 2 Adding protected servers
    Table 1 Parameters for adding a protected server

    Parameter

    Description

    Example Value

    OS

    Server OS type. It can be Linux or Windows.

    Linux

    Auto-enable Dynamic RASP

    Whether to automatically enable dynamic RASP.

    If this function is enabled, JVM Attach capabilities are used to automatically identify and access web applications (including container environments) that have listening ports on servers, and to integrate application protection into the web applications. In this way, application protection can be dynamically loaded and unloaded when web applications are running. The web applications do not need to be restarted, thereby ensuring service continuity.

    If a web application is just started and runs for 5 minutes or less, the function cannot be enabled using this method. When the running time of the application exceeds 5 minutes, the function is automatically enabled.

    NOTE:

    This function is in the OBT phase. To use it, submit a service ticket.

    Enabled

    RASP Port

    RASP listening port.

    19999

    Policy

    Application protection policy. HSS provides a default policy, which contains all the detection rules of application protection. For details, see Detection Capabilities. If the default policy is not applicable to your workloads, you can create a custom policy. For details, see Adding a Protection Policy.

    default policy

  3. On the Protected Servers page, check whether the RASP Status of the server is Protected. If yes, RASP has been enabled for all the web applications on the server.

    • If the RASP Status of a server is Enabling protection, the system is installing the RASP plug-in and enabling RASP for the server. Wait for several minutes.
    • If the RASP Status of a server is Protection failed or Partially protected, click View Details in the Operation column of the server to view the cause of the protection failure and rectify faults accordingly.

      If information similar to the following is displayed, go to 7.

      11\u0502 27, 2024 11:15:26 \u024f\u03a7 com.huawei.hisec.secshield.main.AttachMain verify\r\n\u044f\u0598: JDK 17 must contain parameter \"--add-opens=java.base/java.lang=ALL-UNNAMED\"\r\n11\u0502 27, 2024 11:15:26 \u024f\u03a7 com.huawei.hisec.secshield.main.AttachMain verify\r\n\u044f\u0598: JDK 17 must contain parameter \"--add-opens=java.base/java.lang=ALL-UNNAMED\"\r\n

  4. (Optional) For a web application of JDK 17, add the --add-opens=java.base/java.lang=ALL-UNNAMED parameter to its startup script.

    The configuration method varies depending on the application type and version. The following uses Apache Tomcat 11.0.0 as an example.
    • Tomcat (Windows)

      Add the --add-opens=java.base/java.lang=ALL-UNNAMED parameter to the catalina.bat file in the bin directory of the Tomcat installation directory, as shown in Figure 3.

      Figure 3 catalina.bat
    • Tomcat (Linux)

      Add the --add-opens=java.base/java.lang=ALL-UNNAMED parameter to the catalina.sh file in the bin directory of the Tomcat installation directory, as shown in Figure 4.

      Figure 4 catalina.sh

    Wait for 5 to 10 minutes after the configuration is complete. If the RASP Status of the server is Protected, RASP has been enabled.

Manually Enabling Application Protection

  1. Log in to the management console.
  2. In the upper left corner of the page, select a region, click , and choose Security & Compliance > HSS.
  3. Choose Server Protection > Application Protection. Click the Protected Servers tab.

    NOTE:

    If your servers are managed by enterprise projects, you can select the target enterprise project to view or operate the asset and detection information.

    Figure 5 Viewing protection settings

  1. Click Add Server. The Add Server slide-out panel is displayed.
  2. Select servers and a protection policy. Click Add and Enable Protection. For more information, see Table 2.

    Figure 6 Adding protected servers
    Table 2 Parameters for adding a protected server

    Parameter

    Description

    Example Value

    OS

    Server OS type. It can be Linux or Windows.

    Linux

    RASP Port

    RASP listening port.

    19999

    Policy

    Application protection policy. HSS provides the default policy, which contains 16 detection rules. If the default policy is not applicable to your workloads, you can create a custom policy. For details, see Adding a Protection Policy.

    default policy

  3. On the Protected Servers tab page, check whether the RASP Status of the server is Unprotected.

    If the RASP Status is Enabling protection, the system is installing the RASP plug-in on the server. Wait for several minutes.

  4. Manually configure startup parameters for web applications to enable RASP protection.

    1. Click Manual Configuration. The Configure Microservice RASP slide-out panel is displayed.
      Figure 7 Manual configuration
    2. Select a web application. Copy the startup parameters as instructed, and paste the startup parameters to the startup script of the web application.
      Figure 8 Configuring startup parameters
    3. After the startup parameters are set, restart the web application.
    4. Wait for 5 to 10 minutes. In the Operation column of the server, click View Details. The Application Protection Details slide-out panel is displayed.
    5. Check the RASP protection status of the web application. If the status is Protected, it indicates protection has been enabled.

      If a server has multiple web applications, perform the preceding operations for these web applications one by one. If you set startup parameters for only one web application, the protection status of the target server on the Protected Servers page will be Partially protected.

Related Operations

To change a protected RASP port, click Edit Port in the Operation column of a server. After the port is changed, the system will restart the RASP plug-in. It will take several minutes.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback