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
Help Center/ Host Security Service/ Best Practices/ Using HSS to Handle Mining Attacks

Using HSS to Handle Mining Attacks

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

Scenario

Mining, also called cryptocurrency mining, is a process of obtaining encrypted currencies through a large number of computing. The process occupies victims' system and network resources and obtaining digital currency. To reduce costs, mining programs are implanted into personal or enterprise computers and mobile devices without permissions.

Take immediate measures to contain the attack to your server, preventing miners from occupying CPU or affecting other applications. If a server is intruded by a mining program, the mining program may penetrate the intranet and persist on the intruded server. In addition, attackers may use mining programs to obtain confidential information, such as confidential files and the usernames and passwords of key assets.

HSS can detect and respond to mining attacks. It can detect and isolate mining virus software. This section describes how to harden your servers to better block intrusions using HSS.

Prerequisites

HSS professional, enterprise, premium, WTP, or container edition has been enabled for the server. For details, see HSS Access Overview.

During Attack: Quickly Block the Mining Program

  1. Handle the mining alarm and terminate the malicious process.
    1. Log in to the management console.
    2. In the upper left corner of the page, select a region, click , and choose Security & Compliance > Host Security Service.
    3. In the navigation pane on the left, choose Detection & Response > Alarms. The Server Alarms page is displayed.
      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.

    4. Check and handle Mining alarms.
      When a mining program is implanted on a server, HSS sends a mining alarm. You need to determine whether the detected mining alarm file is normal. If it is an attack event, you are advised to isolate and kill mining program.
      1. In the Alarms to Be Handled area, choose Malware > Mining.
        Figure 1 Mining alarm
      2. In the alarm list on the right, click the alarm name to view the alarm details.
      3. In the alarm list, click Handle in the Operation column.
      4. In the dialog box that is displayed, set Action to Isolate and kill.

        If a program is isolated and killed, it will be terminated immediately and no longer able to perform read or write operations. Isolated source files of programs or processes are displayed on the Isolated Files slide-out panel and cannot harm your servers.

      5. Click OK.
    5. View and handle the Abnormal Process Behavior alarm.
      Check Abnormal process behavior events. You need to determine whether the detected abnormal processes are proper. If it is confirmed that processes are unreasonable, you are advised to isolate and kill them.
      1. In the Alarms to Be Handled area, choose Abnormal System Behavior > Abnormal process behavior.
        Figure 2 Abnormal process behavior
      2. In the alarm list on the right, click the alarm name to view the alarm details.
      3. In the alarm list, click Handle in the Operation column.
      4. In the dialog box that is displayed, set Action to Isolate and kill.
      5. Click OK.
  2. Check auto-startup items to eliminate mining threats.

    Some of your auto-startup items were probably created by attackers to start mining programs upon server restart.

    1. In the navigation tree on the left, choose Asset Management > Server Fingerprints. The Server Fingerprints page is displayed.
    2. Click Auto-startup and click the Operation History tab to view the historical changes.
  3. Scan the attacked server and scan for viruses.
    HSS provides the virus scanning and removal function. The function uses the virus detection engine to scan virus files on the server. You can quickly scan attacked servers to eliminate potential malicious threats. You need to determine whether the scanned virus files are proper. If not, you are advised to isolate them.
    1. In the navigation tree on the left, choose Server Protection > Virus Scan. The Virus Scan page is displayed.
    2. Click Quick Scan.
    3. Set parameters related to the Quick Scan task as prompted.

      Select the server that is attacked by mining and retain the default values for other parameters. For more information, see Quick Scan.

    4. Click Scan.
    5. After the scanning task is complete, you can view the virus files in the lower part of the Virus Scan page.
    6. In the Operation column of a virus file, click Handle.
    7. In the dialog box that is displayed, set Action to Manual isolation.

      After a file is isolated, the read/write operation cannot be performed on the virus-infected file. Files that have been isolated are added to the Isolated Files. You can restore or delete them in the Isolated Files.

    8. Click OK.

After Attack: Perform Security Hardening on the Server

After you delete miner programs, harden your servers to better defend against intrusions.

  • Linux servers
    1. Let HSS automatically scan your servers and applications in the early morning every day to help you detect and eliminate security risks.
    2. Set stronger passwords for all accounts (including system and application accounts), or change the login mode to key-based login.
      1. Set the security password. For details, see How Do I Set a Secure Password?.
      2. Use the key to log in to the server. For details, see Using a Private Key to Log In to the Linux ECS.
    3. Strictly control the usage of system administrator accounts. Grant only the least permissions required for applications and middleware and strictly control their usage.
    4. Configure access rules in security groups. Open only necessary ports. For special ports (such as remote login ports), only allow access from specified IP addresses or use VPN or bastion hosts to establish your own communications channels. For details, see Security Group Rules.
  • Windows servers
    Use HSS to comprehensively check for and eliminate security risks. Improve your account, password, and authorization security.
    • Account hardening

      Account

      Description

      Procedure

      Ensure default account security.

      • Disable user Guest.
      • Disable and delete unnecessary accounts. (You are advised to disable inactive accounts for three months before deleting them.)
      1. Open Control Panel.
      2. Click Administrative Tools. Open Computer Management.
      3. Choose System Tools > Local Users and Groups > Users.
      4. Double-click Guest. In the Guest Properties window, select Account is disabled.
      5. Click OK.

      Assign accounts with only necessary permissions to users.

      Create users and user groups of specific types.

      Example: administrators, database users, audit users

      1. Open Control Panel.
      2. Click Administrative Tools. Open Computer Management.
      3. Choose System Tools > Local Users and Groups. Create users and groups as needed.

      Periodically check and delete unnecessary accounts.

      Periodically delete or lock unnecessary accounts.

      1. Open Control Panel.
      2. Click Administrative Tools. Open Computer Management.
      3. Choose System Tools > Local Users and Groups.
      4. Choose Users or User Groups and delete unnecessary users or user groups.

      Do not display the last username.

      Forbid the login page from displaying the latest logged in user.

      1. Open Control Panel.
      2. Click Administrative Tools. Open Local Security Policy.
      3. Choose Local Policies > Security Options.
      4. Double-click Interactive logon: Do not display last user name.
      5. In the displayed dialog box, select Enable and click OK.
    • Password hardening

      Password

      Description

      Procedure

      Complexity

      In line with the requirements set in How Do I Set a Secure Password.

      1. Open Control Panel.
      2. Click Administrative Tools. Open Local Security Policy.
      3. Choose Account Policies > Password Policy.
      4. Enable the policy Password must meet complexity requirements.

      Maximum password age

      In static password authentication mode, force users to change their passwords every 90 days or at shorter intervals.

      1. Open Control Panel.
      2. Click Administrative Tools. Open Local Security Policy.
      3. Choose Account Policies > Password Policy.
      4. Set Maximum password age to 90 days or shorter.

      Account lockout policy

      In static password authentication mode, lock a user account if authentication for the user fails for 10 consecutive times.

      1. Open Control Panel.
      2. Click Administrative Tools. Open Local Security Policy.
      3. Choose Account Policies > Account Lockout Policy.
      4. Set Account lockout threshold to 10 or smaller.
    • Authorization hardening

      Authorization

      Description

      Procedure

      Remote shutdowns

      Assign the permission Force shutdown from a remote system only to the Administrators group.

      1. Open Control Panel.
      2. Click Administrative Tools. Open Local Security Policy.
      3. Choose Local Policies > User Rights Assignment.
      4. Assign the permission Force shutdown from a remote system only to the Administrators group.

      Local shutdown

      Assign the permission Shut down the system only to the Administrators group.

      1. Open Control Panel.
      2. Click Administrative Tools. Open Local Security Policy.
      3. Choose Local Policies > User Rights Assignment.
      4. Assign the permission Shut down the system only to the Administrators group.

      User rights assignment

      Assign the permission Take ownership of files or other objects only to the Administrators group.

      1. Open Control Panel.
      2. Click Administrative Tools. Open Local Security Policy.
      3. Choose Local Policies > User Rights Assignment.
      4. Assign the permission Shut down the system only to the Administrators group.

      Login

      Authorize users to log in to the computer locally.

      1. Open Control Panel.
      2. Click Administrative Tools. Open Local Security Policy.
      3. Choose Local Policies > User Rights Assignment.
      4. Assign the permission Allow log on locally to the users you want to authorize.

      Access from the network

      Allow only the authorized users to access this computer from the network (for example, by network sharing). Access from other terminals are not allowed.

      1. Open Control Panel.
      2. Click Administrative Tools. Open Local Security Policy.
      3. Choose Local Policies > User Rights Assignment.
      4. Assign the permission Access this computer from the network to the users you want to authorize.

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