ENS security solution

Updated at:

Edge Node Service (ENS) delivers globally distributed edge infrastructure with elastic computing and high-quality networking. For security, ENS leverages the protection capabilities of central Alibaba Cloud regions. This topic describes how to use Security Center, the network security capabilities of ENS, Bastionhost, and Anti-DDoS Proxy to build a security system on ENS.

Security Center

Alibaba Cloud Security Center is a cloud-native security solution that covers asset management, configuration checks, proactive defense, security hardening, configuration assessment, and security visualization. It detects risks in real time, including baseline configuration risks, compliance risks, vulnerabilities, leaked AccessKey pairs, and identity and permission management risks. It also defends against ransomware, crypto-mining malware, trojans, webshells, and web tampering. For more information, see Security Center.

Security Center capabilities for Edge Node Service (ENS)

Category

Path

Feature

Assets

Assets> Overview

Overview

Assets> Hosts

Synchronize the latest assets

Add multi-cloud assets

Security check

Troubleshoot agent issues

Asset collection

Perform batch O&M and monitoring (requires Cloud Assistant)

Enable or pause protection

Unbind

Investigate asset fingerprints

Risk Governance

Risk Governance> Vulnerabilities

Detect and fix Linux software vulnerabilities

Detect and fix Windows system vulnerabilities

Detect and fix Web-CMS vulnerabilities

Detect emergency vulnerabilities

Detect application vulnerabilities (SCA)

Risk Governance> CSPM

Perform baseline checks and fix issues

Risk Governance> Cloud Honeypot

Host honeypot

Risk Governance> Malicious File Detection SDK

Malicious File Detection SDK

Risk Governance> Log Analysis

Host logs

Security logs

Detection & Response

Detection & Response> Alerts

Web directory definition

Alert handling rules

Data archiving

View and restore quarantined files

Detection & Response> Attack Analysis

Attack analysis

Settings

Settings> Host Protection> Anti-ransomware

Anti-ransomware

Settings> Host Protection> Virus Detection and Removal

Virus detection and removal

Settings> Host Protection> Web Tamper Proofing

Web tamper proofing

Settings> Host Protection> Host Rule Management

Malicious behavior defense

Frequent logon management

Settings> Container Protection> Container Image Scan

Scan images for system vulnerabilities

Scan images for application vulnerabilities

Scan images for baseline risks

Scan images for malicious samples

Fix system vulnerabilities in images

Fix application vulnerabilities in images

Remediate malicious samples in images

Settings> Container Protection> Proactive Container Defense

Proactive container defense

Settings> Container Protection> Container File Protection

Container firewall

Settings> Application Protection

Application protection

System

System> Security Reports

Security reports

System> Feature Settings

Feature settings

System> Notification Settings

Notification settings

Activate and deploy Security Center

  1. Purchase Security Center:

    Security Center offers multiple editions and value-added services. Purchase the edition that best suits your security requirements from the Alibaba Cloud website. For more information, see Purchase Security Center.

  2. Install the Security Center agent on an ENS instance:

    The Security Center agent is a software program that collects and analyzes logs and data on an instance to monitor and detect potential security threats. Install it on your Edge Node Service compute instances. The Security Center agent collects and analyzes various logs and data for monitoring and detecting potential security threats.

    1. Before installing the agent, ensure your Edge Node Service compute instance can access the public internet.

    2. Log on to the ENS compute instance and run the installation command with administrator or root permissions.

      1. Installation command for Linux

        wget "https://aegis.alicdn.com/download/install/2.0/linux/AliAqsInstall.sh" && chmod +x AliAqsInstall.sh && ./AliAqsInstall.sh -k=v342lk
      2. Installation command for Windows CMD

        powershell -executionpolicy bypass -c "(New-Object Net.WebClient).DownloadFile('http://aegis.alicdn.com/download/install/2.0/windows/AliAqsInstall.exe',$ExecutionContext.SessionState.Path.GetUnresolvedProviderPathFromPSPath('.\AliAqsInstall.exe'))"; "./AliAqsInstall.exe -k=Az481e"
  3. Verify the installation:

    After the agent is installed, Security Center downloads the required files to your server and starts the corresponding processes. Verify the installation by checking the agent process status or by viewing the agent status in the Security Center console.

    After the installation is complete, you can view the Edge Node Service compute instance in the host assets of Security Center.

    Note

    The Security Center console displays an ENS instance as a Server Outside Cloud because its computing resources are distributed on nodes outside the central Alibaba Cloud regions.

Intra-node network security

Security groups

A security group is a virtual firewall provided by Edge Node Service for edge nodes. It controls inbound and outbound traffic of ENS instances. Inbound rules control traffic to ENS instances, and outbound rules control traffic from ENS instances.

Setting up security groups involves four steps:

image
  1. Create a security group:

    Unlike central cloud security groups, an edge cloud security group is not associated with a specific node or VPC. Its rules apply globally across all nodes and VPCs.

    The page also contains a Description field and an Access Rule configuration area, which includes Inbound and Outbound tabs. You can add rules by clicking the +Add link. As of 10:00 (UTC+8) on April 22, 2024, new ENS security groups have a default inbound rule that denies all traffic. After you complete the configuration, click Create.

  2. Add security group rules:

    • Security group rules control inbound and outbound traffic of ENS instances. Use these rules to allow or deny network traffic, block unnecessary ports, restrict specific protocols, or configure application access permissions.

    • You can add rules to a security group during its creation or at any time afterward.

  3. Add an ENS instance to a security group:

    When you create an ENS instance, you can add it to a maximum of one security group. You can later add the instance to multiple security groups on the ENS instance list page based on your business requirements. To determine whether traffic is allowed, the rules from all security groups associated with the ENS instance are aggregated and sorted based on a specific policy. These rules, along with the default access control rules, are then applied to the ENS instance to either allow or deny traffic.

  4. Manage security group rules:

    • Improperly configured security group rules can cause serious security risks. Manage security group rules to ensure the network security of your ENS instances.

    • You can modify the inbound and outbound rules of a security group on its details page. When you modify a rule, the change applies to all ENS instances associated with that security group across all edge cloud nodes.

Network ACLs

  • A network ACL is a network access control feature in a Virtual Private Cloud (VPC). Customize network ACL rules and associate them with a VPC to control traffic to and from ENS compute instances in an edge cloud VPC.

  • Both network ACLs and security groups control inbound and outbound traffic. The key difference is scope: a network ACL operates at the VPC level, controlling traffic for all ENS instances within the VPC. In contrast, a security group operates at the ENS instance level, controlling traffic only for the specific ENS instances associated with it.

  • Use a network ACL to control traffic for all ENS instances if your services in the edge cloud VPC share the same public access rules. If your services have diverse access requirements, use the more granular control of security groups to manage traffic for specific ENS instances.

3. O&M security (Bastionhost)

Bastionhost is an O&M security and audit platform from Alibaba Cloud that provides centralized permission management, full operational behavior control, and real-time session playback. It authenticates user identities, controls permissions, and ensures all operations are auditable, helping enterprises overcome challenges such as asset sprawl, ambiguous O&M responsibilities, and difficult incident tracing while meeting compliance requirements. For more information, see Bastionhost.

Bastionhost support for Edge Node Service (ENS)

To manage Edge Node Service resources, you must use the Enterprise Dual-Engine edition of Bastionhost, which supports the network domain proxy mode for unified O&M control over edge cloud assets.

Feature

Description

User management

Supports multiple user roles, such as administrator, O&M engineer, and auditor.

Supports creating individual users and importing users in batches from a file.

Supports automatic synchronization of RAM users and AD/LDAP users.

Supports integration with IDaaS to synchronize users from various identity sources, such as DingTalk and Azure AD, as Bastionhost users.

Supports user status tags, including expired, locked, and long-term inactive.

Supports policies such as user lockout and password expiration.

Asset management

  • Supports O&M for Windows and Linux systems.

  • Supports common O&M protocols, such as SSH and RDP.

Supports O&M control and auditing for RDS and self-managed databases, such as MySQL, SQL Server, PostgreSQL, and Oracle.

Supports manual creation and one-click import of Alibaba Cloud and third-party cloud assets.

Supports credential hosting for assets, allowing O&M staff to log on without knowing the asset's password or key.

Supports asset status checks, allowing you to periodically or manually check the status of ECS and RDS instances and their network connectivity.

Integrates with Security Center asset risk monitoring to alert you to the status and number of risks, such as alerts, vulnerabilities, and baselines, and lets you navigate to Security Center to resolve them.

Supports unified O&M for hybrid scenarios, including multi-cloud, cloud-based, and on-premises IDC servers.

Supports a network domain proxy mode to connect to assets in other private networks via a proxy server.

Supports manual or scheduled password change tasks for Linux servers.

O&M control

Supports two-factor authentication with SMS messages, email, mobile TOTP tokens, and DingTalk.

Supports using client tools such as Mstsc, Xshell, SecureCRT, and PuTTY to log on to Bastionhost and access hosts.

Supports using local SFTP client tools such as WinSCP, Xftp, and SecureFX to log on to Bastionhost for file transfers.

Supports a dedicated O&M portal.

Supports web-based access to hosts.

Supports real-time monitoring of ongoing sessions and allows you to block sessions at any time.

Controls RDP operations, such as clipboard transfers and disk mapping.

During SSH-based O&M, supports setting command blacklists, whitelists, and approval policies to control the execution of high-risk and sensitive commands.

During O&M, supports controlling file operations, such as upload, download, delete, and rename, and folder operations, such as create and delete.

Supports enabling secondary approval for O&M. An O&M engineer can access an asset only after an administrator approves the access request.

Supports restricting logon times and source IP addresses for users and assets.

Supports setting limits on idle time and total duration for O&M sessions.

Log auditing

Supports full logging and video recording for O&M operations. You can use video playback to review the exact O&M process.

Supports auditing of file transfers.

Supports generating O&M reports. Reports can be exported in PDF, HTML, and Word formats.

Supports storing session audit logs in Log Service (SLS) and downloading logs locally for backup.

API

Supports OpenAPI calls.

Activate and deploy Bastionhost

  1. Purchase Bastionhost:

    Purchase Bastionhost from the Alibaba Cloud website. Multiple editions are available to meet O&M security needs in different scenarios. For more information, see Apply for a free trial.

  2. Manage Edge Node Service compute instances:

    After purchasing a Bastionhost instance, manage it from the Bastionhost console.

    1. Create a network domain:

      • Bastionhost runs in a central Alibaba Cloud region, while ENS compute resources are distributed across edge nodes. The VPC where Bastionhost is deployed cannot communicate with Edge Node Service instances over the internal network. You must use the network domain feature of Bastionhost to manage your ENS instances.

      • Configure a proxy server for your Edge Node Service assets. Then, in Bastionhost, create a network domain and add the proxy server to it. After you add your assets to this network domain, you can manage them through Bastionhost.

      • On the Network Domain list page, create a new network domain, set the connection method to Proxy, and configure the primary proxy server information.

      • For the primary proxy server, configure the Proxy Type, Server Address, Server Port, Host Account, and Password. The supported Proxy Type values are SSH Proxy, HTTP Proxy, and SOCKS5 Proxy.

    2. Asset management - Import Edge Node Service compute instances:

      • On the Host page, click Import Other Source Hosts to add an ENS instance. From the drop-down list, select Create Host. Other options include Import hosts from an ApsaraDB MyBase dedicated cluster and Import hosts from file.

      • When you create a host, configure its Operating System, Host IP, Hostname, and Network Domain.

      • If you set Network Domain to Proxy mode, set the Host IP to an internal IP address. If you set Network Domain to Direct Connection mode, set the Host IP to a public IP address.

        In the Create Host form, select Linux for the Operating System, enter the Host IP, and optionally provide a Hostname.

    3. After you import an ENS compute instance as a host asset, find the host on the Host page and click Create Host Account in the Actions column. Configure the access Protocol, Logon Name, Authentication Type, and its corresponding Password or Key.

      Ensure a corresponding operating system account exists on the host or ECS instance, as Bastionhost does not synchronize these accounts to the instance. SFTP O&M uses an SSH protocol account. After you complete the configuration, click Verify Password to check the connectivity. At the bottom of the dialog box, you can use the Enable SFTP only switch to specify that the account is used only for SFTP O&M.

    4. After the host is imported, go to the User Management > User page to grant a RAM user O&M permissions on the host.

      Find the target user and click Authorize Host in the Actions column.

    5. After logging on, an authorized RAM user can go to the Asset O&M > Host O&M page to view their permitted host resources and perform O&M tasks using the Remote Connection option.

Attack protection (Anti-DDoS Proxy)

Anti-DDoS Proxy is a DDoS protection proxy service from Alibaba Cloud that mitigates both volumetric and resource exhaustion DDoS attacks. It protects servers on Alibaba Cloud, in on-premises data centers, or on other cloud platforms. Anti-DDoS Proxy uses DNS resolution to route traffic to a scrubbing center during a DDoS attack, filters malicious traffic, and forwards legitimate traffic to your origin server.

image

For more information, see What is Anti-DDoS Proxy?.

Anti-DDoS Proxy support for ENS

Anti-DDoS Proxy is available in two versions based on the deployment region of your servers: Anti-DDoS Pro and Anti-DDoS Premium.

  • Anti-DDoS Pro: For services with servers in the Chinese mainland. It defends against high-volume DDoS attacks using terabit-level, eight-line BGP bandwidth exclusive to the Chinese mainland. It is available in Professional and Advanced editions.

  • Anti-DDoS Premium: For services deployed outside the Chinese mainland. It uses advanced, distributed, near-origin scrubbing to provide unlimited, best-effort protection against DDoS attacks.

Category

Anti-DDoS Pro

Anti-DDoS Premium

IPv4 protection

IPv6 protection

Access method

Website Configuration

p442272.png

p442272.png

p442272.png

Port Configuration

p442272.png

p442272.png

p442272.png

Sec-Traffic Manager

Supported features:

  • Cloud service interaction

  • Tiered protection

  • CDN/DCDN interaction

Supported features:

  • Cloud service interaction

  • Tiered protection

  • CDN/DCDN interaction

Supported features:

  • Cloud service interaction

  • Tiered protection

  • CDN/DCDN interaction

  • Network acceleration for services outside the Chinese mainland

Infrastructure DDoS protection

Configure global mitigation policy

p442272.png

p442272.png

p442272.png

Configure blacklists and whitelists (for protection IPs)

p442272.png

p442272.png

p442272.png

Configure Location Blacklist

Supported only by the Enhanced edition.

×

Supported only by the Enhanced edition.

Deactivate blackhole filtering

p442272.png

×

×

Configure near-origin traffic suppression

p442272.png

×

×

Configure UDP reflection attack mitigation

Supported only by the Enhanced edition.

×

Supported only by the Enhanced edition.

Website DDoS protection

Configure intelligent protection

p442272.png

p442272.png

p442272.png

Configure DDoS global mitigation policy

p442272.png

p442272.png

p442272.png

Configure blacklists and whitelists (for domain names)

p442272.png

p442272.png

p442272.png

Configure Location Blacklist (for domain names)

Supported only by the Enhanced edition.

Supported only by the Enhanced edition.

Supported only by the Enhanced edition.

Configure CC attack protection

p442272.png

p442272.png

p442272.png

Non-website DDoS protection

Configure Layer 4 intelligent protection

p442272.png

×

p442272.png

False source protection

p442272.png

p442272.png

p442272.png

Advanced attack mitigation

Supported only for TCP port services.

p442272.png

p442272.png

p442272.png

Destination rate limiting

p442272.png

p442272.png

p442272.png

Packet length filtering

p442272.png

p442272.png

p442272.png

Source rate limiting

p442272.png

×

p442272.png

Scenario-specific policies

p442272.png

p442272.png

p442272.png

Protection analysis

Attack analysis

p442272.png

×

p442272.png

Full log analysis

p442272.png

p442272.png

p442272.png

System logs

p442272.png

p442272.png

p442272.png

Operation logs

p442272.png

p442272.png

p442272.png

Advanced mitigation logs

p442272.png

p442272.png

p442272.png

CloudMonitor alerts

p442272.png

p442272.png

p442272.png

Activate and deploy Anti-DDoS Proxy

  1. Purchase Anti-DDoS Proxy:

    Purchase Anti-DDoS Proxy from the product page on the Alibaba Cloud international site. For more information, see Anti-DDoS Pro.

  2. Access management:

    1. Website Configuration

      For website services, add your domain to Anti-DDoS Proxy. Anti-DDoS Proxy generates a CNAME record for your website. Then, point your domain to this CNAME record in your DNS settings. This allows Anti-DDoS Proxy to forward traffic and protect your website against DDoS attacks.

      On the Access Management > Website Configuration page, click Add Website to add your domain. The domain list displays information such as the edition, server address, associated protection IP, protocol type, certificate status, and CC attack protection status for each domain. You can also Edit, Delete, or configure Protection Settings for a domain.

    2. Port Configuration

      For non-website services, such as client applications, configure port forwarding rules to ensure that traffic is scrubbed by Anti-DDoS Proxy before being forwarded to your origin server.

      On the Port Configuration page, click Add Rule. The rule list displays configuration items such as Forwarding Protocol, Forwarding Port, Origin Port, Back-to-origin Scheduling Algorithm, Origin IP Address, session persistence, health check, and DDoS Mitigation Policies. You can Edit, Delete, and configure Back-to-origin Settings for a rule.

  3. Verify the configuration:

    After adding a configuration, Anti-DDoS Proxy forwards requests sent to the protection IP and port to the specified port on your origin server. To ensure service stability, perform a local test to confirm the forwarding configuration works correctly before directing production traffic to Anti-DDoS Proxy.