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/ Container Guard Service/ Best Practices/ Container Intrusion Response

Container Intrusion Response

Updated on 2022-04-01 GMT+08:00

Container Guard Service (CGS) can detect escapes, high-risk system calls, abnormal processes, abnormal files; and can check the container environment. After the alarm notification function is enabled, you can receive alarm notification emails and SMS messages sent by CGS when it detects abnormal events.

This document describes the emergency response measures during and after a container intrusion.

Context

An increasing number of enterprises are using cloud-native technologies, deploying their applications on containers. However, many containers are exposed to attacks. Containers share resources such as OS kernels and storage. If attackers intrude a container, they can exploit vulnerabilities to escape from the container to attack server OS, breach data, or compromise servers. Therefore, you need to take countermeasures immediately when a container intrusion is detected.

Prerequisites

You have confirmed that the CGS intrusion alarm is true.

Handling a Container Intrusion Emergency

  1. Log in to the management console.
  2. In the upper part of the page, select a region, click , and choose Security & Compliance > Container Guard Service.
  3. In the navigation pane, choose Runtime Security.
  4. Obtain the container instance name and node name of the intrusion program.

    Click a tab (Escapes, High-risk System Calls, Abnormal Programs, Abnormal Files, or Container Environment) according to the alarm information and check the container instance name and node.
    Figure 1 Abnormal event list

  5. Disconnect the container from the Internet.

    For example, use Elastic Load Balance (ELB) to configure an access control policy to allow only specific IP addresses to access the container.

    1. Click and choose Network > Elastic Load Balance.
    2. Find the ELB instance used by the container.
    3. Click the instance name. Click the Listeners tab.
    4. In the Basic Information area, click Configure Access Control.
      Figure 2 Configuring access control
    5. In the Configure Access Control dialog box, add IP addresses to the whitelist.
      • Set Access Policy to Whitelist.
      • Select an IP address group.
      • Enable Access Control.
        Figure 3 Configuring the IP address whitelist
    6. Click OK.

  6. Stop the container.

    For example, remotely log in to the intruded node on the ECS console and stop the container.

    1. In the navigation pane, choose Elastic Cloud Server.
    2. In the Operation column of the intruded node, click Remote Login.

      If the login fails, rectify the fault by referring to What Should I Do If I Cannot Log In to My Linux ECS?

      Figure 4 Remote login
    3. Run the following command to obtain the ID of the container:

      docker ps|grep Container_instance_name

    4. Run the following command to suspend the container:

      docker pause Container_ID

  7. Retain intrusion traces.

    1. Run the following command to export the image:

      docker save ID -o Image_file.tar

    2. (Optional) Run the following command to export the configuration:

      docker inspect ID > Image_file.json

  8. Analyze the attack source.

    1. On another node, import the image that was exported from 7.a. Run the following command:

      docker load - Image_file.tar

    2. Use the imported image to start the new container.

      Run the following command:

      docker run -d -it --name Container_name Image_ID /bin/bash

    3. Contact technical support to query system logs and search for malicious files to locate the intrusion cause and decide emergency response measures.

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