The platform provides a variety of security products to enhance the security capabilities of your ECS instances. These products help prevent events such as cryptojacking on instances, file-encrypting ransomware attacks, and intranet breaches via insecure configurations, which could threaten instance data security and disrupt your business operations.
This topic describes how to enhance the security capabilities of your ECS instances via different security products.
Security product overview
Operation guide
Improve password complexity
Password is one of the security credentials for logging in to an ECS instance. For Linux instances that support logging in via SSH key pairs, we recommend prioritizing key-based login for higher security than password login. If you select using a password, when creating multiple ECS instances, set different passwords separately. Additionally, specify complex passwords to improve security.
Rules for setting passwords are as follows:
- The length is limited to 8 ~ 30 characters
- A password can only consist of uppercase letters, lowercase letters, numbers, and special characters, and must include at least three of these elements
- Valid special characters: `~!@#$%^&*()_-+=|{}[]:;'<>,.?/
- The password cannot start with "/" or "$6$"
Configure security groups
A security group is composed of multiple security group rules. It is used to control the outbound and inbound traffic at the ECS network interface. Security groups offer status detection and packet filtering capabilities that you can use to segment security domains in the cloud. The platform provides security groups as an important network isolation method to ensure security.
You can use the following methods to control access of each network interface on your ECS instances:
- Create multiple security groups, and add different rules to each security group.
- Associate a network interface with one or multiple security groups. Based on associated rules, access by specified traffic is allowed for an instance, and the instance can access specified resources.
- Configure security groups to allow specified IP addresses and resources associated with specified security groups to access instances.
Configure Network ACL
Network ACL (Access Control List) consists of a series of ACL rules for controlling inbound and outbound traffic of a subnet. Within one subnet, all ECS instances and their associated network interfaces are subject to the associated Network ACL rules.
When used with security groups, Network ACLs allow you to control the inbound and outbound traffic of each ECS instance in a VPC more flexibly and precisely.
Enable security enhancement
ECS instances offer a security enhancement feature that provides real-time monitoring and analysis of system activities. It generates alerts for risks detected during file and process monitoring, as well as threats like abnormal logins, helping reduce host intrusion risks and safeguard your host security.
- When you create an instance by using a Linux public image, security enhancement is enabled by default.
- When you create or reinstall a system based on a Windows public image or a custom image, security protection is disabled by default. To enable security protection again, go to the Security Center console.
- When you reinstall the system for an instance based on a Linux public image by using a Windows image or a custom image, security protection is disabled by default. To enable security protection again, go to the Security Center console.
Enable Cloud DDoS Protection_Basic
Cloud DDoS Protection_Basic provides DDoS protection capabilities for resources on the cloud platform, such as CLB and ECS instances, to meet daily security operation requirements.
By monitoring Internet traffic to EIPs in real time, abnormal DDoS attack traffic including but not limited to SYN Flood, ACK Flood, and UDP reflection attacks can be promptly detected. The DDoS mitigation mechanism is automatically activated to filter attack traffic without disrupting business continuity.
If you are a VolcanoEngine user and your cloud resources have an EIP, the EIP is automatically protected by Cloud DDoS Protection_Basic. For more information about Cloud DDoS Protection_Basic, see Cloud DDoS Protection_Basic overview. Back up instance data
We recommend regularly backing up data on your instances. This allows you to roll back data when an operational error occurs, and prevents data errors or loss caused by human mistakes, hacker attacks, virus infections, and other issues.
Resource monitoring and alerts
ECS instances support monitoring services. Based on the visualized data display of multiple monitoring metrics, such as metrics of basic monitoring, operating system monitoring, and process monitoring, you can track the running state of your resources.
You can also customize metric thresholds, alert notifications, event monitoring rules, and other capabilities. This allows you to be timely informed when the instance has an exception and therefore to run your businesses stably.
Configure account security settings
Identity and Access Management (IAM) is a permission management system provided by the platform. It is used to control access to cloud resources by identity.
The root account has full access permissions to all cloud resources under the account. However, in complex cloud scenarios, sharing root account credentials is inconvenient and risky to account security. This feature enables you not to delegate the full permissions of your root account. Specifically, you can create identities such as users and roles, and grant different permissions to them based on scenario, achieving granular permission control.