Cloud host threat detection method, device, electronic device and storage medium

By obtaining the status characteristic information of the cloud host, combined with the system feature library and baseline detection database, baseline detection is performed, which solves the problems of high cloud host security protection cost and low convenience, and achieves fast and effective anomaly detection and alarm notification. It is applicable on multiple cloud host operating systems.

CN114238961BActive Publication Date: 2024-10-29HARBIN ANTIY TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111581730.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-22
Publication Date
2024-10-29
Estimated Expiration
2041-12-22

AI Technical Summary

Technical Problem

The cost of network security protection of cloud hosts is high and the practical convenience is low, which affects the user experience. It is difficult for existing technology to effectively detect the abnormal status of multiple cloud host operating systems.

Method used

Provide a cloud host threat detection method. By obtaining status characteristic information, combined with the system feature library, detection solution library and baseline detection database, baseline detection is performed to determine whether the cloud host is abnormal and generate an alarm notification, which is performed independently from the outside of the cloud host. Security status detection reduces the negative impact of security defense on cloud hosts.

Benefits of technology

It can quickly and effectively detect cloud host status anomalies, has high scalability and versatility, is suitable for different cloud computing service providers and operating systems, reduces security protection costs, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114238961B_ABST
    Figure CN114238961B_ABST
Patent Text Reader

Abstract

The present invention provides a threat detection method, device, electronic device and storage medium for a cloud host, wherein the method comprises: obtaining state feature information of a cloud host to be detected; based on the obtained state feature information, searching in a system feature library to identify the type of operating system of the cloud host to be detected; based on the identified type of operating system, searching in a detection scheme library to determine a detection scheme; based on the obtained state feature information, searching in a baseline detection database to determine baseline detection data; according to the determined detection scheme and user input instructions, comparing and analyzing the obtained state feature information with the baseline detection data to determine whether an abnormality occurs and generate a detection result; based on the detection result, issuing an alarm notification. The present invention can realize security state detection and cyberspace threat discovery of cloud hosts, and provide a reliable basis for subsequent in-depth analysis and response disposal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of network security technology, and in particular to a threat detection method, device, electronic device and storage medium for a cloud host. Background Art

[0002] Cloud hosting, or cloud server, is a rental service that provides users with on-demand IT basic resources (computing, storage, network, etc.) based on cloud data center infrastructure and professional service capabilities. It has the characteristics of rapid deployment, on-demand rental, self-service, security and reliability. Users can easily apply for, manage and monitor resources through the self-service portal, quickly deploy applications, and dynamically and flexibly expand rented resources according to demand. According to the data from the "Cloud Computing White Paper" released by the China Academy of Information and Communications Technology in July 2021, global cloud computing has maintained a steady growth trend in the past few years. Although the growth rate of the global cloud computing market has declined significantly in 2020, my country's cloud computing market has shown explosive growth: in 2020, my country's economy has steadily recovered, and the overall market size of cloud computing has reached 209.1 billion yuan, a growth rate of 56.6%. Among them, the size of the public cloud market reached 127.7 billion yuan, an increase of 85.2% compared with 2019; the size of the private cloud market reached 81.4 billion yuan, an increase of 26.1% compared with 2019.

[0003] As the market scale expands, cloud host-related network security issues are receiving more and more attention. Domestic representative cloud computing service providers or cloud computing vendors have provided a series of security measures in the cloud hosts they launched, but these measures usually reduce the convenience of security protection practices to varying degrees, increase costs, and affect user experience. Summary of the invention

[0004] In view of the problems of high security protection cost and low convenience of security protection practice for cloud hosts, the present invention provides a threat detection method, device, electronic device and storage medium for cloud hosts, which can detect abnormal status of cloud hosts independently of the cloud hosts.

[0005] In a first aspect, an embodiment of the present invention provides a cloud host threat detection method, comprising:

[0006] Obtain status characteristic information of the cloud host to be detected;

[0007] Based on the acquired status feature information, searching in a system feature library to identify the type of operating system of the cloud host to be detected;

[0008] Based on the identified operating system type, search in the detection solution library to determine the detection solution;

[0009] Based on the acquired state characteristic information, searching in a baseline detection database to determine baseline detection data;

[0010] According to the determined detection scheme and the user input instruction, the acquired state characteristic information is compared and analyzed with the baseline detection data to determine whether an abnormality occurs and generate a detection result;

[0011] Based on the detection results, an alarm notification is issued.

[0012] Optionally, the threat detection method further includes:

[0013] Before searching in the system feature library based on the acquired state feature information, operating system determination features of multiple cloud hosts are acquired to construct a system feature library.

[0014] Optionally, the threat detection method further includes:

[0015] Before searching in the detection solution library based on the identified operating system type, a plurality of detection solutions applicable to the cloud host operating system are obtained, classified according to applicable conditions, and a detection solution library is constructed; wherein the applicable conditions at least include the applicable operating system type.

[0016] Optionally, the threat detection method further includes:

[0017] Before searching in the baseline detection database based on the status characteristic information obtained, normal status information of multiple key statuses of cloud hosts is obtained, a baseline detection database is constructed, and stored in the local computer; wherein the key status includes the status at the initial moment of creation completion, the status at the moment of business application deployment completion, and the status at the specified saving moment.

[0018] Optionally, the normal status information includes one or more of basic characteristics of the cloud host system, operation characteristics, log characteristics, process characteristics and network characteristics.

[0019] Optionally, the step of comparing and analyzing the acquired state characteristic information with the baseline detection data according to the determined detection scheme and the user input instruction, determining whether an abnormality occurs, and generating a detection result includes:

[0020] According to the determined detection scheme and the user input instruction, select to execute the complete matching mode or the partial matching mode;

[0021] In the complete matching mode, according to the determined detection scheme, feature items are extracted and compared from the acquired state feature information and the baseline detection data. If and only if the comparison results of the extracted features are exactly the same, it is determined that no abnormality has occurred; otherwise, it is determined that an abnormality has occurred and the abnormal feature item is determined;

[0022] In the partial matching mode, according to the determined detection scheme, feature items are extracted and compared from the acquired state feature information and the baseline detection data. The feature items are divided into basic feature items and additional feature items. If the comparison results of the basic feature items are the same and the comparison results of the additional feature items meet the detection rules, it is determined that no abnormality has occurred. Otherwise, it is determined that an abnormality has occurred and the abnormal feature items are determined;

[0023] Generate a detection result, the detection result including a label indicating whether an abnormality has occurred or not. If the label indicates that an abnormality has occurred, the detection result also includes an abnormal feature item.

[0024] Optionally, based on the detection result, issuing an alarm notification includes:

[0025] generating an alarm notification according to the detection result;

[0026] Based on the preset communication address, the generated alarm notification is sent to the corresponding communication terminal.

[0027] In a second aspect, an embodiment of the present invention further provides a threat detection device for a cloud host, comprising:

[0028] An information extraction module is used to obtain status characteristic information of the cloud host to be detected;

[0029] A system determination module, configured to search in a system feature library based on the acquired state feature information to identify the type of operating system of the cloud host to be detected;

[0030] A data analysis module is used to search in the detection solution library and determine the detection solution based on the identified operating system type;

[0031] Based on the acquired state characteristic information, searching in a baseline detection database to determine baseline detection data;

[0032] and, according to the determined detection scheme and the user input instruction, comparing and analyzing the acquired state characteristic information with the baseline detection data, determining whether an abnormality occurs, and generating a detection result;

[0033] The alarm notification module is used to issue an alarm notification based on the detection result.

[0034] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the threat detection method for the cloud host described in any embodiment of this specification is implemented.

[0035] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed in a computer, enables the computer to execute the threat detection method for a cloud host described in any embodiment of this specification.

[0036] The embodiments of the present invention provide a threat detection method, device, electronic device and storage medium for a cloud host. The present invention obtains status characteristic information of a cloud host to be detected, takes the normal status information of the cloud host to be detected as a baseline, and formulates a corresponding detection plan in combination with the specific operating system of the cloud host. The method can quickly and effectively discover abnormal cloud host status, and has strong scalability. The method can shield the technical details, sales strategies and charging differences of various cloud computing service providers or cloud computing vendors, and is suitable for different cloud hosts. Moreover, after obtaining the required status characteristic information from the cloud host to be detected, there is no need to rely on the cloud host's own resources, and the negative impact that network security defense operations may have on the cloud host can be minimized. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0038] Figure 1 This is a flow chart of a threat detection method for a cloud host provided by an embodiment of the present invention;

[0039] Figure 2 It is a flow chart of another cloud host threat detection method provided by an embodiment of the present invention;

[0040] Figure 3 is a hardware architecture diagram of an electronic device provided by an embodiment of the present invention;

[0041] Figure 4 It is a structural diagram of a threat detection device for a cloud host provided by an embodiment of the present invention;

[0042] Figure 5 This is a structural diagram of another cloud host threat detection device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0043] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0044] As mentioned above, to ensure the security of cloud computing network, domestic representative cloud computing service providers or cloud computing vendors (such as Alibaba Cloud, Tencent Cloud, Huawei Cloud, etc.) have provided a series of security measures in the cloud hosts they launched, such as security best practices (including using account security functions, enabling security compliance features when creating instances, building a secure network environment for instances, using cloud security products to build a security defense system, security configuration within the instance operating system, and following security practices when using services), security groups, SSH key pairs, management identities and permissions (or login passwords), basic DDoS protection, basic security services, placement groups, elastic public IP, elastic network cards, host security, Hypervisor security, user encryption, Cloud-init, etc. However, these methods often require additional manual operations by users, affecting user experience, and the technical details, sales strategies and charges of each cloud computing service provider or cloud computing vendor are different, which restricts the large-scale promotion of security protection technology. In view of this, the present invention provides a cloud host threat detection technology. Under the premise of avoiding increasing the security protection cost of the cloud host and its resource occupation, a common baseline is established and continuously updated at the operating system level for cloud hosts with system diversity and expansion elasticity, and security status detection of the cloud host and discovery of cyber threats are achieved based on baseline detection.

[0045] The specific implementation of the above concept is described below.

[0046] Please refer to Figure 1 , an embodiment of the present invention provides a threat detection method for a cloud host, the method comprising:

[0047] Step 100, obtaining status characteristic information of the cloud host to be detected;

[0048] The acquired status characteristic information of the cloud host to be detected may be stored in the local computer.

[0049] Step 102, based on the acquired status feature information, searching in the system feature library to identify the type of operating system of the cloud host to be detected;

[0050] Step 104, based on the identified operating system type, search in the detection solution library to determine the detection solution;

[0051] Step 106, based on the acquired state characteristic information, searching in the baseline detection database to determine the baseline detection data;

[0052] Step 108, according to the determined detection scheme and the user input instruction, the acquired state characteristic information is compared and analyzed with the baseline detection data to determine whether an abnormality occurs and generate a detection result;

[0053] Step 110: Issue an alarm notification based on the detection result.

[0054] The embodiment of the present invention provides a universal threat detection method for cloud hosts, which adopts the baseline detection concept, uses the information of the cloud host in a normal state as the baseline, and compares and analyzes the current state characteristics of the cloud host, so as to determine whether the cloud host is currently abnormal. The present invention has wide applicability. Except for the necessary state characteristic information collection or extraction, it does not occupy the cloud host's own resources or reside in its operating environment for a long time, and can minimize the negative impact that network security defense operations may have on it, and does not interfere with user use (for example, a lightweight, low-consumption, user-unaware self-installation and self-uninstallation security plug-in can be used to obtain the state characteristic information of the cloud host to be detected), and can shield the technical details, sales strategies and charging differences of each cloud computing service provider or cloud computing manufacturer, so as to realize the security state detection and cyberspace threat discovery of the cloud host in a way independent of the cloud host, thereby providing a reliable basis for subsequent in-depth analysis and response disposal.

[0055] In some optional embodiments, such as Figure 2 As shown, the threat detection method for a cloud host provided by the present invention also includes:

[0056] Based on the acquired status feature information, before searching in the system feature library, the operating system determination features of various cloud hosts are acquired to build the system feature library.

[0057] If the existing technology is difficult to support the detection of operating systems of multiple cloud hosts, a system feature library for different cloud host operating systems can be constructed as needed to match and identify the operating system of the cloud host to be detected.

[0058] Alternatively, if Figure 2 As shown, the threat detection method for a cloud host provided by the present invention also includes:

[0059] Before searching in the detection solution library based on the identified operating system type, multiple detection solutions applicable to the cloud host operating system are obtained, classified according to applicable conditions, and a detection solution library is constructed; wherein the applicable conditions at least include the applicable operating system type.

[0060] For the convenience of expansion, a detection solution library supporting multiple cloud hosts can be constructed as needed. By updating the detection solution library, the present invention can be applied to different cloud hosts and can perform detection in a more effective way. In the constructed detection solution library, the detection solution can draw on the analysis algorithms such as feature statistical learning, dynamic behavior baseline, and time series before and after analysis covered by user and entity behavior analysis (UEBA) technology, supplemented by online analysis, analysis modeling, and offline analysis, and can also use machine learning algorithms such as isolation forest, K-means clustering, time series analysis, and change point detection to maintain continuous optimization of detection methods and rules.

[0061] Furthermore, the detection solution library for commonly used operating systems of cloud hosts includes but is not limited to: Windows system detection solution library, Unix system detection solution library, Linux system detection solution library, etc.

[0062] The specific detection methods and detection rules used in the detection method provided by the present invention are flexible and adaptable, and the detection scheme formed is oriented to the currently commonly used cloud hosts and their operating systems, and is centrally managed in the form of a detection scheme library. By building a library using the above detection scheme, the present invention can support security detection of currently common cloud hosts, and is not limited to a large number of differentiating factors such as the brand model of the cloud host, the type of operating system, the service provider and its product sales strategy, and has high versatility and coverage.

[0063] Alternatively, if Figure 2 As shown, the threat detection method for a cloud host provided by the present invention also includes:

[0064] Based on the acquired status characteristic information, before searching in the baseline detection database, the normal status information of various key statuses of cloud hosts is obtained, a baseline detection database is constructed, and stored on the local computer; wherein the key status includes the status at the initial moment of creation completion, the status at the moment of business application deployment completion, and the status at the specified saving moment.

[0065] In this implementation, the collected original baseline data (i.e., normal status information of various key states of cloud hosts) is general and relative, covering the initial state information of cloud host creation, the state information of cloud host business application deployment completion, and the state information of cloud host designated save time, so as to cover multiple important time nodes such as cloud host initialization, application deployment completion, and designated configuration saving, and centrally managed in the form of a baseline detection database, which can establish a general baseline at the operating system level and continuously update it (such as obtaining new information on the designated save time state after the cloud host service changes), so that the baseline detection database has dynamic adaptability to maintain the accuracy of comparative analysis. Further, in step 106, based on the acquired state feature information, a search is performed in the baseline detection database, and the normal state information closest to the current time node is preferably used as the baseline detection data, so as to timely discover the abnormality of the current cloud host to be detected. The baseline detection data is stored in the local computer, which is relatively independent of the cloud host, so as to avoid network threats against the cloud from interfering with the stored baseline detection data.

[0066] For step 100, the acquired status characteristic information may correspond to the normal status information stored in the baseline detection database. Further, the normal status information includes one or more of the basic characteristics of the cloud host system, operation characteristics, log characteristics, process characteristics and network characteristics.

[0067] Furthermore, data items of basic characteristics of the cloud host system may include: terminal host name, operating system type, network card name, IP address (IPv4 and IPv6 address), MAC address, network utilization, CPU utilization, memory utilization, hard disk space and its utilization, logged-in user name, etc.

[0068] Data items for operational characteristics may include:

[0069] 1) File handle information, data items include: handle, file path, driver, etc.;

[0070] 2) Dynamic Link Library (DLL) information, including name, file path, file size, modification time, description, etc.

[0071] 3) Loaded drivers, data items include: driver name, display name, startup type, status, modification time, file size, image path, publisher, etc.;

[0072] 4) System startup items, data items include: file, publisher, description, registry entry, modification time, file size, image path, status, etc.;

[0073] 5) Scheduled tasks, data items include: task name, status, description, task type, modification time, file size, image path\CLSID, task parameters, task path, etc.;

[0074] 6) System services, data items include: service name, display name, startup type, PID, description, status, group, modification time, file size, image path, publisher, service parameters, etc.;

[0075] 7) Service Provider Interface (SPI) information, including name, publisher, description, GUID, modification time, file size, image path, etc.

[0076] 8) System registry and its change information, data items include: name, type, key value, etc.;

[0077] 9) Kernel module information, data items include: file name, base address, image size, identifier, ordinal number, file size, image path, modification time, publisher, etc.;

[0078] 10) System Services Descriptor Table (SSDT) ​​and Shadow System Services Descriptor Table (SSDT) ​​information, including ordinal, function, current base address, original address, image path, SSDT hook, Inline hook, etc.

[0079] 11) Message hook, data items include: handle, type, address, module path, image path, process ID, whether it is a global hook, etc.;

[0080] 12) Program hooks and kernel hooks, mainly for program hooks and kernel hooks registered in the system;

[0081] 13) Directory objects, mainly for all system kernel directory objects, data items include: name, type, directory, etc.;

[0082] 14) Main Boot Record (MBR) information, data items include: area and content obtained by kernel API, area and content obtained by SCSI command, etc.;

[0083] 15) DPC timer information, data items include: timer object, trigger period (milliseconds), entry, module, modification time, file size, publisher, description, etc.;

[0084] 16) User and account change information, including: user name, description, permissions, last login time, total login times, whether the password is empty, password usage time, whether the password never expires, status (disabled, enabled, etc.), etc.;

[0085] 17) Command line history, data items include PowerShell, CMD, etc.

[0086] Log characteristics may include:

[0087] 1) Operating system logs, data items include: level, date and time, source, event ID, task category, detailed information, etc.;

[0088] 2) Application logs, data items include: level, date and time, source, event ID, task category, details, etc.;

[0089] 3) System security log, data items include: level, date and time, source, event ID, task category, and detailed information;

[0090] 4) System file installation log, data items include: level, date and time, source, event ID, task category, detailed information, etc., mainly for system patches, language packs, etc.;

[0091] 5) File operation logs, including file access, modification, deletion, copying and other operation logs.

[0092] Process characteristics may include:

[0093] 1) Process information, data items include: process name, process file name, file MD5, process ID, parent process ID, publisher, description, file size, image path, process status, start time, modification time, end time, EPROCESS, PEB, base address, CPU utilization, memory utilization, process owner information (user name, terminal information, login time, expiration time), command line (command word to start the process), terminal type, etc. Data collection for process information includes running processes and processes without files on the disk;

[0094] 2) Module information used by the process, including: the module name (including path) loaded in the process and its file MD5, file size, last modification time of the module file, module operation time, etc.;

[0095] 3) The sub-process information contained in the process, including: the process ID of the sub-process, the process name of the sub-process, the parent process ID, the user name of the sub-process, the file name (including path) corresponding to the sub-process, the command word for starting the sub-process, the start time of the sub-process, the end time of the sub-process, etc.;

[0096] 4) Thread information, data items include: thread ID, priority, base address, module path, ETHREAD, TEB, number of suspension times, number of switching times, etc.

[0097] Network characteristics may include:

[0098] 1) System sharing information, including sharing name, sharing type, current number of connections, sharing path, etc.

[0099] 2) Open ports, data items include: port number, transmission protocol, port description, etc.;

[0100] 3) ARP table information, data items include: interface, IP address (Internet address), MAC address (physical address), type (static, dynamic), etc.;

[0101] 4) Routing table information, data items include: interface list, IPv4 routing table (active routing / permanent routing: network target, network mask, gateway, interface, metric), IPv6 routing table (active routing / permanent routing: interface, metric, network target, gateway), etc.;

[0102] 5) Current inbound and outbound network connection information, including: connection time, process ID, process name, file name corresponding to the process, MD5 of the file corresponding to the process, protocol, local IP address, local port, remote IP address, remote port, number of bytes sent / received, network connection protocol (TCP, UDP, HTTP, HTTPS), etc.

[0103] 6) Network connection history, the data items are the same as the current inbound and outbound network connection information;

[0104] 7) Hosts information, data items include: IP address, domain name;

[0105] 8) DNS access data, including detailed information of DNS query requests and responses.

[0106] In some embodiments, the above-mentioned data items may be selected to constitute a feature vector representing normal state information in the baseline detection database. Accordingly, when the state feature information is obtained in step 100, full (i.e., all data items involved in the feature vector) or on-demand (i.e., part of the data items involved in the feature vector) extraction may be implemented. Preferably, full extraction is implemented by default to facilitate subsequent comprehensive comparative analysis; if it is clearly known that a certain / some data items are sufficient to achieve the purpose of detection, on-demand (non-full) extraction may also be performed. It should be noted that the above-mentioned data items are not all feature items that can be used to characterize the state. If necessary, other data items may be added according to actual needs.

[0107] In some optional implementations, step 108 further includes:

[0108] According to the determined detection scheme and the user input instruction, select to execute the complete matching mode or the partial matching mode;

[0109] In the complete matching mode, according to the determined detection scheme, feature items are extracted and compared from the acquired state feature information and the baseline detection data. If and only if the comparison results of the extracted features are exactly the same, it is determined that no abnormality has occurred. Otherwise, it is determined that an abnormality has occurred and the abnormal feature item is determined;

[0110] In the partial matching mode, according to the determined detection scheme, feature items are extracted and compared from the acquired state feature information and the baseline detection data. All feature items are divided into basic feature items and additional feature items. If the comparison results of the basic feature items are the same and the comparison results of the additional feature items meet the detection rules, it is determined that no abnormality has occurred. Otherwise, it is determined that an abnormality has occurred and the abnormal feature items are determined;

[0111] Generate a test result, which includes a label indicating whether an abnormality has occurred or not. If the label is an abnormality, the test result also includes an abnormal feature item.

[0112] In the above implementation, step 108 can use different working modes for comparative analysis. The full match mode is a strict mode, and the information extracted from the cloud host to be detected must be strictly consistent and identical with the established security baseline information, while the partial match mode is a loose mode: according to the regular expression set in the detection plan and rules, non-critical parts are allowed to have certain differences or some information data are allowed to float within the legal / rational range, but other parts (i.e., basic feature items) must be consistent with the baseline detection information.

[0113] For example, in a set of detection solutions and their rules, for the log file size setting corresponding to "Security" in the Event Log Service of the Microsoft Windows Server 2012R2 operating system deployed on a certain cloud host, after determining that "Security: Specify the maximum log file size (KB)" is set to "Enabled: 196,608 or greater", the value of "the maximum log file size (KB)" is a range, that is, between 1 megabyte (1,024KB) and 4TB (4,194,240KB). The default value of 196,608KB is only the official recommended value. The user or administrator of the cloud host can make personalized adjustments according to their own needs, that is:

[0114] 1) When "Security: Specify the maximum log file size (KB)" is set to a state other than "Enabled: 196,608 or greater", it is considered a violation and there is a security risk. If this feature is not enabled, security-related events cannot be recorded, and it may be difficult or impossible to determine the root cause of system problems or unauthorized activities by malicious users.

[0115] 2) When 1,024KB≤the maximum log file size(KB)<196,608KB, although it is not a violation, it is considered a security risk because when the event log is full, it will stop recording information (unless each retention method is set so that the computer overwrites the oldest entries with the latest ones). To reduce the risk of losing recent data, it is recommended to set it to a larger value as much as possible within the range allowed by system performance.

[0116] 3) When 196,608KB≤the maximum log file size(KB)≤4,194,240KB, it is considered to meet the security baseline requirements.

[0117] Therefore, the detection adaptation part of the information related to the maximum log file size (KB) value mentioned above matches the pattern.

[0118] For step 110, further comprising:

[0119] Generate an alarm notification based on the test results;

[0120] Based on the preset communication address, the generated alarm notification is sent to the corresponding communication terminal.

[0121] The alarm notification is preferably output in a standardized common format (such as JSON, etc.), and the content may include the names of status information data items that differ from the baseline (including different / missing / extra items, different values ​​or not within the legal / rational range, etc.) and their difference points / values, for example:

[0122] Example 1:

[0123]

[0124] Example 2:

[0125]

[0126] The detected anomalies will be generated as alarm prompts and notified to the relevant responsible persons at the preset communication addresses via email, SMS, WeChat, etc., so that cloud host anomalies can be discovered in time so that countermeasures can be taken quickly.

[0127] In a preferred embodiment, Figure 2 As shown, a threat detection method for a cloud host provided by the present invention includes:

[0128] Step 200, obtaining operating system determination features of multiple cloud hosts and building a system feature library;

[0129] Step 202, obtaining multiple detection schemes applicable to the cloud host operating system, classifying them according to applicable conditions, and building a detection scheme library; wherein the applicable conditions at least include the applicable operating system type;

[0130] Step 204, obtaining normal status information of multiple key states of cloud hosts, building a baseline detection database, and storing it in a local computer; wherein the key states include the state at the initial moment of creation completion, the state at the moment of business application deployment completion, and the state at the designated saving moment;

[0131] Step 206, obtaining status characteristic information of the cloud host to be detected;

[0132] Step 208, based on the acquired status feature information, search in the system feature library to identify the type of operating system of the cloud host to be detected;

[0133] Step 210, based on the identified operating system type, search in the detection solution library to determine the detection solution;

[0134] Step 212, based on the acquired state characteristic information, searching in the baseline detection database to determine the baseline detection data;

[0135] Step 214, according to the determined detection scheme and the user input instruction, the acquired state characteristic information is compared and analyzed with the baseline detection data to determine whether an abnormality occurs and generate a detection result;

[0136] Step 216: Based on the detection result, an alarm notification is issued.

[0137] The present invention collects and stores original baseline information of the initial moment status information of the cloud host creation completion, the moment status information of the business application deployment completion, and the specified moment status information; extracts the information of the cloud host to be detected regularly / irregularly / on demand, and selects the corresponding detection scheme and baseline detection data for comparative analysis in combination with its operating system, which can effectively detect scheduled tasks outside its original baseline information, suspicious processes that cause the CPU usage rate to deviate from the baseline value, weak passwords and related abnormal logins that violate the security baseline of management identity and authority (or login password), abnormal encryption behaviors that violate operating habits, etc., and the threat risks of implantation of mining Trojans, malicious logins and destruction are detected and recorded in the detection results, and then an alarm notification is given to prompt the user to respond to the cyber threat of the cloud host in time.

[0138] like Figure 3 , Figure 4 As shown, the embodiment of the present invention also provides a threat detection device for a cloud host (referred to as a threat detection device). The device embodiment can be implemented by software, or by hardware or a combination of software and hardware. From the hardware level, Figure 3 As shown, a hardware architecture diagram of an electronic device where a threat detection device of a cloud host is provided in an embodiment of the present invention is provided. Figure 3 In addition to the processor, memory, network interface, and non-volatile memory shown, the electronic device in the embodiment may also include other hardware, such as a forwarding chip responsible for processing messages, etc. Taking software implementation as an example, Figure 4 As shown, as a device in a logical sense, the CPU of the electronic device in which it is located reads the corresponding computer program in the non-volatile memory into the memory and runs it. This embodiment provides a threat detection device for a cloud host, including an information extraction module 400, a system determination module 401, a data analysis module 402 and an alarm notification module 403; specifically, wherein:

[0139] The information extraction module 400 is used to obtain the status characteristic information of the cloud host to be detected;

[0140] The system determination module 401 is used to search in the system feature library based on the acquired state feature information to identify the type of operating system of the cloud host to be detected;

[0141] The data analysis module 402 is used to search in the detection solution library based on the identified operating system type and determine the detection solution;

[0142] There are multiple detection schemes stored in the detection scheme library, each of which includes detection rules, detection steps and applicable conditions;

[0143] Based on the acquired status characteristic information, searching in the baseline detection database to determine the baseline detection data;

[0144] The baseline detection database stores normal status information of various cloud hosts as baseline detection data;

[0145] and, based on the determined detection scheme and user input instructions, comparing and analyzing the acquired state characteristic information with the baseline detection data, determining whether an abnormality occurs, and generating a detection result;

[0146] The alarm notification module 403 is used to issue an alarm notification based on the detection result.

[0147] In the embodiment of the present invention, the information extraction module 400 can be used to execute step 100 in the above method implementation, the system determination module 401 can be used to execute step 102 in the above method implementation, the data analysis module 402 can be used to execute steps 104 to 108 in the above method implementation, and the alarm notification module 403 can be used to execute step 110 in the above method implementation. The modules interact and collaborate according to the method flow, are independent of each other, and have loose coupling, thereby avoiding overall changes caused by the upgrade and update of one or more modules.

[0148] The threat detection device for the cloud host provided by the present invention is relatively independent of the cloud host to be detected. The device is independent of the cloud host to be detected, supports integrated deployment, and does not occupy the cloud host's software and hardware resources as much as possible except for obtaining the status characteristic information of the cloud host to be detected, which can avoid a significant increase in the cloud host security protection cost. At the same time, it supports regular / on-demand applications, is not limited to long-term fixed access methods, and has deployment flexibility and mobility and portability.

[0149] Optionally, in the threat detection device for a cloud host provided by the present invention, the system determination module 401 is further used to obtain operating system determination features of multiple cloud hosts and construct a system feature library to achieve matching and identification of the cloud host operating system.

[0150] Alternatively, if Figure 5 As shown, the threat detection device for the cloud host provided by the present invention also includes a solution generation module 404, which is used to obtain multiple detection solutions applicable to the cloud host operating system, classify them according to applicable conditions, and build a detection solution library; wherein the applicable conditions at least include the applicable operating system type. The detection solution library can be updated as needed, has strong scalability, and is more timely.

[0151] Optionally, the threat detection device for cloud hosts provided by the present invention further includes a baseline collection module 405, which is used to obtain normal status information of multiple key states of cloud hosts, build a baseline detection database, and store it on a local computer; wherein the key states include the initial moment state of creation completion, the moment state of business application deployment completion, and the moment state of specified saving. The baseline detection database can be updated as needed, has strong scalability, and is more timely.

[0152] Optionally, the present invention provides a data analysis module 402 in the threat detection device of the cloud host for comparing and analyzing the acquired state feature information with the baseline detection data according to the determined detection scheme and the user input instruction, determining whether an abnormality occurs, and generating a detection result, including:

[0153] According to the determined detection scheme and the user input instruction, select to execute the complete matching mode or the partial matching mode;

[0154] In the complete matching mode, according to the determined detection scheme, feature items are extracted and compared from the acquired state feature information and the baseline detection data. If and only if the comparison results of the extracted features are exactly the same, it is determined that no abnormality has occurred. Otherwise, it is determined that an abnormality has occurred and the abnormal feature item is determined;

[0155] In the partial matching mode, according to the determined detection scheme, feature items are extracted and compared from the acquired state feature information and the baseline detection data. The feature items are divided into basic feature items and additional feature items. If the comparison results of the basic feature items are the same and the comparison results of the additional feature items meet the detection rules, it is determined that no abnormality has occurred. Otherwise, it is determined that an abnormality has occurred and the abnormal feature items are determined;

[0156] Generate a test result, which includes a label indicating whether an abnormality has occurred or not. If the label is an abnormality, the test result also includes an abnormal feature item. When applying, you can choose a complete match mode or a partial match mode as needed.

[0157] It is understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on a threat detection device for a cloud host. In other embodiments of the present invention, a threat detection device for a cloud host may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0158] The information interaction, execution process and other contents between the modules in the above-mentioned device are based on the same concept as the embodiment of the method of the present invention. For the specific contents, please refer to the description in the embodiment of the method of the present invention, and no further description is given here.

[0159] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, a threat detection method for a cloud host in any embodiment of the present invention is implemented.

[0160] An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the processor executes a threat detection method for a cloud host in any embodiment of the present invention.

[0161] Specifically, a system or device equipped with a storage medium can be provided, on which software program code that implements the functions of any of the above-mentioned embodiments is stored, and a computer (or CPU or MPU) of the system or device can be enabled to read and execute the program code stored in the storage medium.

[0162] In this case, the program code itself read from the storage medium can realize the function of any one of the above-mentioned embodiments, and thus the program code and the storage medium storing the program code constitute a part of the present invention.

[0163] The storage medium embodiments for providing the program code include a floppy disk, a hard disk, a magneto-optical disk, an optical disk (such as CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD+RW), a magnetic tape, a non-volatile memory card, and a ROM. Alternatively, the program code can be downloaded from a server computer by a communication network.

[0164] In addition, it should be clear that the functions of any of the above embodiments can be implemented not only by executing the program code read by the computer, but also by enabling an operating system operating on the computer to complete part or all of the actual operations based on instructions from the program code.

[0165] In addition, it can be understood that the program code read from the storage medium is written to a memory provided in an expansion board inserted into the computer or to a memory provided in an expansion module connected to the computer, and then based on the instructions of the program code, a CPU installed on the expansion board or expansion module is enabled to perform part or all of the actual operations, thereby realizing the functions of any of the above-mentioned embodiments.

[0166] Each embodiment of the present invention has at least the following beneficial effects:

[0167] 1. The threat detection method (or device, electronic device, computer-readable storage medium) for a cloud host provided by the present invention obtains the status characteristic information of the cloud host to be detected, selects a detection scheme for the operating system of the cloud host, and uses the baseline detection idea to perform detection in combination with the normal status information of the cloud host. In addition to collecting or extracting necessary status information of the cloud host at a specific moment (using a lightweight, low-consumption, user-unaware self-installation and self-uninstallation security plug-in), it does not occupy the cloud host's own resources or reside in its operating environment for a long time, which can minimize the negative impact that network security defense operations may have on it.

[0168] 2. The threat detection method for cloud hosts provided by the present invention can construct a detection solution library and a baseline detection database as needed and continuously update them. It has strong scalability, supports regular / on-demand detection, and basically covers the types of currently commonly used cloud host operating systems. It has high versatility and coverage, and the baseline detection database is stored on the local computer and is not easily affected by network threats against the cloud host.

[0169] 3. The threat detection method for cloud hosts provided by the present invention issues alarm notifications based on the detection result data so that relevant responsible persons can grasp the security status of the detected cloud hosts at the first time. The alarm notification data is output in a standardized general format, which is conducive to other security defense measures as input data for further linkage analysis and response.

[0170] 4. The device, electronic device and computer-readable storage medium provided by the present invention can be independent of the cloud host to be detected, support integrated deployment to avoid a substantial increase in the security protection cost of the cloud host, and support regular / on-demand applications without being restricted by long-term fixed access methods, and have deployment flexibility and portability.

[0171] It should be noted that, in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "comprise a ..." do not exclude the presence of other identical factors in the process, method, article or device including the elements.

[0172] A person of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiments can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiments; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk, etc., various media that can store program codes.

[0173] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A cloud host threat detection method, characterized in that: include: Obtain status characteristic information of the cloud host to be detected; Based on the acquired status feature information, searching in a system feature library to identify the type of operating system of the cloud host to be detected; Based on the identified operating system type, search in the detection solution library to determine the detection solution; Based on the acquired state characteristic information, searching in a baseline detection database to determine baseline detection data; According to the determined detection scheme and the user input instruction, the acquired state characteristic information is compared and analyzed with the baseline detection data to determine whether an abnormality occurs and generate a detection result; Based on the detection results, issuing an alarm notification; Wherein, the obtained state characteristic information is compared and analyzed with the baseline detection data according to the determined detection scheme and the user input instruction, whether an abnormality occurs, and the detection result is generated, including: According to the determined detection scheme and the user input instruction, select to execute the complete matching mode or the partial matching mode; In the complete matching mode, according to the determined detection scheme, feature items are extracted and compared from the acquired state feature information and the baseline detection data. If and only if the comparison results of the extracted features are exactly the same, it is determined that no abnormality has occurred; otherwise, it is determined that an abnormality has occurred and the abnormal feature item is determined; In the partial matching mode, according to the determined detection scheme, feature items are extracted and compared from the acquired state feature information and the baseline detection data. The feature items are divided into basic feature items and additional feature items. If the comparison results of the basic feature items are the same and the comparison results of the additional feature items meet the detection rules, it is determined that no abnormality has occurred. Otherwise, it is determined that an abnormality has occurred and the abnormal feature items are determined; Generate a detection result, the detection result including a label indicating whether an abnormality has occurred or not. If the label indicates that an abnormality has occurred, the detection result also includes an abnormal feature item.

2. The method according to claim 1, characterized in that Also includes: Before searching in the system feature library based on the acquired state feature information, operating system determination features of multiple cloud hosts are acquired to construct a system feature library.

3. The method according to claim 1, characterized in that Also includes: Before searching in the detection solution library based on the identified operating system type, a plurality of detection solutions applicable to the cloud host operating system are obtained, classified according to applicable conditions, and a detection solution library is constructed; wherein the applicable conditions at least include the applicable operating system type.

4. The method according to claim 1, characterized in that Also includes: Before searching in the baseline detection database based on the status characteristic information obtained, normal status information of multiple key statuses of cloud hosts is obtained, a baseline detection database is constructed, and stored in the local computer; wherein the key status includes the status at the initial moment of creation completion, the status at the moment of business application deployment completion, and the status at the specified saving moment.

5. The method according to claim 4, characterized in that Normal status information includes one or more of the basic characteristics of the cloud host system, operation characteristics, log characteristics, process characteristics and network characteristics.

6. The method according to claim 1, characterized in that Based on the detection results, an alarm notification is issued, including: generating an alarm notification according to the detection result; Based on the preset communication address, the generated alarm notification is sent to the corresponding communication terminal.

7. A threat detection device for a cloud host, characterized in that: include: An information extraction module is used to obtain status characteristic information of the cloud host to be detected; A system determination module, configured to search in a system feature library based on the acquired state feature information to identify the type of operating system of the cloud host to be detected; A data analysis module is used to search in the detection solution library and determine the detection solution based on the identified operating system type; Based on the acquired state characteristic information, searching in a baseline detection database to determine baseline detection data; and, according to the determined detection scheme and the user input instruction, comparing and analyzing the acquired state characteristic information with the baseline detection data, determining whether an abnormality occurs, and generating a detection result; An alarm notification module is used to issue an alarm notification based on the detection result; The data analysis module is used to compare and analyze the acquired state feature information with the baseline detection data according to the determined detection scheme and the user input instruction, determine whether an abnormality occurs, and generate a detection result, including: According to the determined detection scheme and the user input instruction, select to execute the complete matching mode or the partial matching mode; In the complete matching mode, according to the determined detection scheme, feature items are extracted and compared from the acquired state feature information and the baseline detection data. If and only if the comparison results of the extracted features are exactly the same, it is determined that no abnormality has occurred. Otherwise, it is determined that an abnormality has occurred and the abnormal feature item is determined; In the partial matching mode, according to the determined detection scheme, feature items are extracted and compared from the acquired state feature information and the baseline detection data. The feature items are divided into basic feature items and additional feature items. If the comparison results of the basic feature items are the same and the comparison results of the additional feature items meet the detection rules, it is determined that no abnormality has occurred. Otherwise, it is determined that an abnormality has occurred and the abnormal feature items are determined; Generate a test result, which includes a label indicating whether an abnormality has occurred or not. If the label is an abnormality, the test result also includes an abnormal feature item.

8. An electronic device comprising a memory and a processor, wherein a computer program is stored in the memory, wherein: When the processor executes the computer program, the method according to any one of claims 1 to 6 is implemented.

9. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed in a computer, the computer is caused to execute the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Cloud host security situation awareness system and method, equipment and storage medium

    CN112073389A

  • Communication software security protection method and device, electronic equipment and storage medium

    CN113452717A