Handling Unsafe Containers
Scenario
HSS can detect container security risks and classify them into the following types:
- Critical: malicious program
- High risk: ransomware attacks, malicious programs, reverse shells, escape attacks, and dangerous commands
- Medium risk: web shell, abnormal startup, process exception, and sensitive file access
- Low risk: brute-force attack
To prevent containers with medium or higher security risks from affecting other containers, you can isolate, suspend, or stop risky containers.
Constraints
- Only the HSS container edition supports this function.
- Only Linux containers are supported.
- Only containers with medium or higher security risks can be handled.
Handling Unsafe Containers
- Log in to the management console.
- Click
in the upper left corner of the page, select a region, and choose Security > Host Security Service. The HSS page is displayed.
- In the navigation pane, choose . The page is displayed.
- Click the Containers tab. The container page is displayed.
- In the search box above the container list, choose to filter risky containers.
- In the Operation column of the target risky container, select the operation to be performed.
Cluster containers can be stopped. Independent containers can be isolated, suspended, and stopped.
NoteOnly containers with medium or higher risks can be handled. You can view the security risk distribution.
- Isolate containers: After a container is isolated, you cannot access the container when the container is running, and the container cannot access the mount directory of the host or the system file of the container.
- Click Isolate.
- In the dialog box that is displayed, click OK.
- Suspend containers: Freeze the processes running in the container.
- Click Suspend.
- In the dialog box that is displayed, click OK.
- Stop containers: Terminate a running container process. If autoremove is configured for the container, the container cannot be resumed.
- Click Stop Container.
- In the dialog box that is displayed, click OK.
- Isolate containers: After a container is isolated, you cannot access the container when the container is running, and the container cannot access the mount directory of the host or the system file of the container.
Related Operations
Restoring a container to the running state
Restores a container from the Isolate, Waiting, or Terminated state to the Running state.
Note
If autoremove is configured for a terminated container, the container cannot be resumed.
- In the row containing the target container, click Restore in the Operation column.
- In the dialog box that is displayed, click OK.
Parent topic: Container Management
- Scenario
- Constraints
- Handling Unsafe Containers
- Related Operations