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
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
On this page

Show all

High-Risk Commands

Updated on 2024-06-28 GMT+08:00

High-risk commands affect the normal running of the system or services, or cause special system files to be maliciously deleted or modified. For high-risk commands related to Automation, see Table 1.

Table 1 Description of high-risk commands

High-Risk Command Name

Verification Rule

Example

Risk

vi /etc/xxx.xx command

\\s*(vi|vim)\\s+/(boot|etc|lib|sys|selinux|bin|sbin|root|usr|var|proc|opt|srv)+\\s*

vi /etc/vconsole.conf

Modifying system files may affect the normal running of the system and services or make your system unrecoverable.

service xxx restart/stop command

\\s*service\\s+.*\\s+(restart|stop)\\s*

service network stop

If a command contains service xxx restart/stop, services may be restarted or stopped, affecting the normal running of the system or services.

mkfs.ext3 /dev/sdxxx command

\\s*mkfs\\.ext3\\s+/dev/[a-z]d[a-z]+\\s*

mkfs.ext3 /dev/sda

If a command contains mkfs.ext3 /dev/xdxxx, the block device will be formatted, making your system unrecoverable.

umount command

\\s*umount\\s+.*

umount -v /dev/sda1

The normal running of the system or services may be affected.

poweroff command

\\s*poweroff\\s*

poweroff

If a command contains poweroff, hosts may be powered off, affecting the system or service running.

kill command

\\s*kill\\s+.*

kill 12345

If a command contains kill, the running programs or tasks may be deleted, affecting the normal running of the system or services.

mv xxx /dev/null command

\\s*mv\\s+.*\\s+/dev/null\\s*

mv test /dev/null

If a command contains mv xxx /dev/null, xxx files may be deleted.

xxx > /dev/sdx command

\\s*.*\\s+>\\s+/dev/sd[a-z]+\\s*

cat test.txt > /dev/sda

If a command contains > /dev/xdx, all data in the path may be lost.

init 0 command

\\s*init\\s+0\\s*

init 0

If a command contains init 0, hosts may be shut down, affecting the normal running of the system or services.

reboot command

\\s*reboot\\s*

reboot

If a command contains reboot, a device may be restarted, affecting the normal running of the system or services.

halt command

\\s*halt\\s*

halt

If a command contains halt, a device may be powered off, affecting the normal running of the system or services.

Fork Bomb

\\s*:\\(\\)\\{:\\|:&\\};:\\s*

:(){:|:&};:

Command injection attacks may occur, causing system breakdown.

rm command

\\s*rm\\s+.*

rm test.txt

If a command contains rm, special system files may be maliciously deleted or modified.

> file command

\\s*>\\s+.*

> file

If a command contains >, the file content may be cleared.

dd if=/dev/random of=/dev/sdxxx command

\\s*dd\\s+if=/dev/random\\s+of=/dev/sd[a-z]+\\s*

dd if=/dev/random of=/dev/sda

Random junk files are written to block device sdxxx to erase data. As a result, the system may become disordered and cannot be recovered.

shutdown command

\\s*shutdown\\s+.*

shutdown -h now

If a command contains shutdown, hosts may be shut down, affecting the system or service running.

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