Security detection method and system, electronic equipment and storage medium

Through pre-arranged detection scripts and security modules, the attack behavior is identified and its effectiveness is verified, and the problem of insufficient detection accuracy of attack behaviors in existing security products is solved, improving the efficiency of attack behavior handling and system security.

CN118972149APending Publication Date: 2024-11-15DUXIAOMAN TECH (BEIJING) CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411243648.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-05
Publication Date
2024-11-15

AI Technical Summary

Technical Problem

The existing security products have insufficient accuracy in attack behavior detection, resulting in the inability to effectively control security risks, generate a large number of invalid alarms, and cannot effectively perceive some security attack scenarios, affecting the company's security risk control.

Method used

Using pre-arranged detection scripts, including security modules and attack effectiveness detection modules, the attack behavior detection is detected by obtaining original data, identifying and verifying the effectiveness of attack behavior, and only sending alarms for effective attack behaviors to avoid invalid alarms and improve attack behaviors. disposal efficiency.

Benefits of technology

It improves the accuracy and handling efficiency of attack behavior recognition, reduces invalid alarms, enhances the security of the system, and can more effectively deal with complex network threats.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118972149A_ABST
    Figure CN118972149A_ABST
Patent Text Reader

Abstract

The invention provides a security detection method and system, electronic equipment and a storage medium, and the method comprises the steps: obtaining original data, carrying out attack behavior detection based on a pre-arranged detection script and the original data, the detection script comprises a security capability module and an attack validity detection module, the security capability module is used for recognizing an attack behavior, and the attack validity detection module is used for detecting attack validity; and the attack validity detection module is used for detecting the attack validity of the attack behavior identified by the security capability module and sending alarm information for the valid attack behavior. The detection script is arranged in advance for different attack behaviors, the detection script is used for identifying the attack behaviors and detecting the attack validity of the attack behaviors, and the effective attack behaviors are alarmed, so that the situation that the treatment of the effective attack behaviors is influenced by a large number of invalid alarms caused by alarming the unsuccessful attack behaviors is avoided; attack behavior alarm accuracy is improved, attack behavior processing efficiency is improved, and system security is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of attack identification technology, and in particular to a security detection method, system, electronic equipment and storage medium. Background Art

[0002] With the increasing degree of digitalization and informatization, cyber threats have become more complex and common. Attack methods such as hackers, malware, and ransomware are constantly evolving, and the cyber risks faced by corporate organizations are increasing. Large-scale data leaks have attracted global attention. The protection of organizational and personal privacy has become an important issue. At the same time, regulations and compliance requirements in various industries and regions have put forward higher requirements for data and information security. For example, regulations such as GDPR (General Data Protection Regulation) and PCIDSS (Payment Card Industry Data Security Standard) require organizations to take appropriate security measures to protect user data and sensitive information. In order to effectively respond to these threats, vigorously developing security operations has become a necessary measure. In security operations, how to effectively mine security incidents and effectively deal with risks is an important and difficult topic.

[0003] Many security Party A companies have purchased and built a large number of security products, but these security products are currently unable to achieve effective security risk control and operation. Specifically, current security products will generate a large number of alarms. When the number of these alarms exceeds the threshold that relevant personnel can handle, these alarms will not be handled in time, thus becoming invalid alarms. When relevant personnel handle alarms, they need to call a large amount of raw data for analysis, which consumes a lot of time and costs, further increasing the number of invalid alarms. In addition, current security products cannot effectively perceive some security attack scenarios, resulting in some security incidents that cannot be effectively handled.

[0004] In summary, current security products have insufficient accuracy in detecting attack behaviors, which greatly affects the security risk control of enterprises. Summary of the invention

[0005] In view of this, the embodiments of the present invention provide a security detection method, system, electronic device and storage medium to improve the accuracy of attack behavior recognition and thereby improve the efficiency of attack behavior response.

[0006] According to one aspect of the present invention, a safety detection method is provided, the method comprising:

[0007] Acquiring original data, wherein the original data includes alarm data and operation data;

[0008] Perform attack behavior detection based on the raw data based on a pre-arranged detection script; the detection script is pre-set for different attack scenarios, the detection script includes various security modules and the calling order of each of the security modules, each of the security modules includes a security capability module and an attack effectiveness detection module, the security capability module is used to identify attack behaviors based on the raw data, and the attack effectiveness detection module is used to detect the attack effectiveness of the attack behaviors identified by the security capability module;

[0009] An alarm message is issued for effective attack behavior, wherein the effective attack behavior is a behavior that generates an effective attack detected by the detection script.

[0010] In a possible embodiment, obtaining the original data includes:

[0011] Obtain alarm data, traffic data, and log data from each terminal and business system as raw data;

[0012] The method further comprises:

[0013] Perform hot and cold storage on the raw data according to the usage frequency, wherein the raw data with a usage frequency higher than a preset frequency threshold is stored in a preset hot storage medium, and the raw data with a usage frequency lower than the preset frequency threshold is stored in a preset cold storage medium;

[0014] When a data query request is received, the target data contained in the data query request is retrieved from the storage medium where the target data is located, and returned to the sender of the data query request.

[0015] In a possible embodiment, the security module includes recognition algorithms preset for different attack behaviors, and the recognition algorithms are implemented by different preset function modules, and the preset function modules include a data acquisition module and an instruction detection module;

[0016] The security module identifies attack behaviors through the following steps:

[0017] Acquiring original data preset for the security module;

[0018] The preset original data is processed using each preset function module included in the security module to identify whether an attack behavior corresponding to the security module occurs. The attack behaviors corresponding to each security module include: SQL injection rule attack, webshell traffic attack, and terminal rebound shell attack.

[0019] In a possible embodiment, the attack validity detection module includes a validity detection algorithm preset for a preset attack behavior, and the validity detection algorithm includes:

[0020] Associating preset first data with preset second data to determine whether the preset attack behavior is valid, wherein the preset first data is request data for the preset data and the second data is response data to the preset data; or,

[0021] The preset third data and the preset fourth data are associated to determine whether the attack behavior is effective, wherein the preset third data and the preset fourth data are different processing results obtained by processing the received data request in different ways.

[0022] In a possible embodiment, the method further includes:

[0023] Aggregate and remove duplicate valid attack behaviors targeting the same data to obtain attack events;

[0024] The warning information issued for effective attack behaviors includes:

[0025] Send out warning information for each of the attack events.

[0026] According to another aspect of the present invention, there is provided a safety detection system, the system comprising:

[0027] A data acquisition module, used to acquire raw data, wherein the raw data includes alarm data and operation data;

[0028] A script execution module, used to perform attack behavior detection based on the raw data based on a pre-arranged detection script; the detection script is pre-set for different attack scenarios, the detection script includes various security modules and the calling order of each of the security modules, each of the security modules includes a security capability module and an attack effectiveness detection module, the security capability module is used to identify attack behaviors based on the raw data, and the attack effectiveness detection module is used to detect the attack effectiveness of the attack behaviors identified by the security capability module;

[0029] The event alarm module is used to issue alarm information for effective attack behavior, wherein the effective attack behavior is the behavior that generates effective attack detected by the detection script.

[0030] In a possible embodiment, the security module includes recognition algorithms preset for different attack behaviors, and the recognition algorithms are implemented by different preset function modules, and the preset function modules include a data acquisition module and an instruction detection module;

[0031] The security module identifies attack behaviors through the following steps:

[0032] Acquiring original data preset for the security module;

[0033] The preset original data is processed using each preset function module included in the security module to identify whether an attack behavior corresponding to the security module occurs. The attack behaviors corresponding to each security module include: SQL injection rule attack, webshell traffic attack, and terminal rebound shell attack.

[0034] In a possible embodiment, the attack validity detection module includes a validity detection algorithm preset for a preset attack behavior, and the validity detection algorithm includes:

[0035] Associating preset first data with preset second data to determine whether the preset attack behavior is valid, wherein the preset first data is request data for the preset data and the second data is response data to the preset data; or,

[0036] The preset third data and the preset fourth data are associated to determine whether the attack behavior is effective, wherein the preset third data and the preset fourth data are different processing results obtained by processing the received data request in different ways.

[0037] According to another aspect of the present invention, there is provided an electronic device, comprising:

[0038] Processor; and

[0039] Memory for storing programs,

[0040] The program includes instructions, which, when executed by the processor, enable the processor to execute any one of the security detection methods described above.

[0041] According to another aspect of the present invention, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable a computer to execute any of the above-mentioned security detection methods.

[0042] One or more technical solutions provided in the embodiments of the present invention pre-arrange detection scripts for different attack behaviors, and the detection scripts are used to identify attack behaviors and detect the attack effectiveness of attack behaviors, and to issue alarms for effective attack behaviors, thereby avoiding a large number of invalid alarms caused by alarms for unsuccessful attack behaviors that affect the handling of effective attack behaviors, thereby improving the accuracy of attack behavior alarms, improving the efficiency of attack behavior handling, and thereby improving system security. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Further details, features and advantages of the invention are disclosed in the following description of exemplary embodiments in conjunction with the accompanying drawings, in which:

[0044] Figure 1 A schematic diagram of a flow chart of a safety detection method provided by an embodiment of the present invention;

[0045] Figure 2 A schematic diagram of arranging a detection script in an embodiment of the present invention;

[0046] Figure 3 A schematic diagram of an implementation of the security detection method provided by an embodiment of the present invention;

[0047] Figure 4 A schematic diagram of the effect achieved by the security detection method provided by an embodiment of the present invention;

[0048] Figure 5 A schematic diagram of the structure of a safety detection system provided by an embodiment of the present invention;

[0049] Figure 6 A block diagram of an exemplary electronic device that can be used to implement an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0050] Embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present invention. It should be understood that the drawings and embodiments of the present invention are only for exemplary purposes and are not intended to limit the scope of protection of the present invention.

[0051] It should be understood that the various steps described in the method embodiments of the present invention may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present invention is not limited in this respect.

[0052] The term "including" and its variations used in this document are open inclusions, that is, "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one other embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions of other terms will be given in the following description. It should be noted that the concepts of "first", "second", etc. mentioned in the present invention are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0053] It should be noted that the modifications of "one" and "plurality" mentioned in the present invention are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0054] The names of the messages or information exchanged between multiple devices in the embodiments of the present invention are only used for illustrative purposes, and are not used to limit the scope of these messages or information.

[0055] In the related art, the attack behavior detection method usually identifies and detects the attack behavior through a single feature or a single behavior. For example, when detecting a file download attack, a WAF (Web Application Firewall) security product generally uses a regular expression in the packet header to detect whether it is a file download. If it is a file download, it is determined that an attack behavior has occurred. However, when there is no vulnerability in the system that can be attacked by file download, the alarm for the attack behavior is inaccurate.

[0056] It can be seen that the method of identifying attack behaviors based on attack characteristics in related technologies, as long as the attack payload (the code or instruction actually executed in the target system after the effective attack payload vulnerability is exploited) triggers the detection rule, an alarm will be sounded, which has low accuracy and will cause many false alarms. The average daily alarm reaches millions, and truly effective alarms will be drowned in massive data. Manual operations cannot effectively handle millions of alarm information, and thus cannot effectively handle risks. In addition, individual rules cannot effectively deal with the problem of attack payload anomalies.

[0057] Based on this, the embodiments of the present invention provide a security detection method, system, electronic device and storage medium. The security detection method provided by the embodiments of the present invention can be applied to any electronic device with a security detection function, and the electronic device can be a computer, a server or a mobile terminal, etc. The scheme of the present invention is described below with reference to the accompanying drawings:

[0058] Figure 1 A schematic flow chart of a safety detection method provided in an embodiment of the present invention may include the following steps:

[0059] S101, obtaining original data, where the original data includes alarm data and operation data;

[0060] S102, performing attack behavior detection based on the raw data based on a pre-arranged detection script; the detection script is pre-set for different attack scenarios, the detection script includes various security modules and the calling order of each of the security modules, each of the security modules includes a security capability module and an attack effectiveness detection module, the security capability module is used to identify attack behaviors based on the raw data, and the attack effectiveness detection module is used to detect the attack effectiveness of the attack behaviors identified by the security capability module;

[0061] S103: issuing an alarm message for a valid attack behavior, wherein the valid attack behavior is a behavior that generates a valid attack detected by the detection script.

[0062] By applying the embodiments of the present invention, detection scripts are pre-arranged for different attack behaviors, and the detection scripts are used to identify attack behaviors and detect the attack effectiveness of attack behaviors, and to issue alarms for effective attack behaviors, thereby avoiding a large number of invalid alarms caused by alarms for unsuccessful attack behaviors that affect the handling of effective attack behaviors, thereby improving the accuracy of attack behavior alarms, improving the efficiency of attack behavior handling, and thereby improving system security.

[0063] The above S101-S103 are exemplarily described below:

[0064] The above-mentioned original data may be the original log data, alarm data and flow data in each business system and terminal, etc. The above-mentioned business system may include all business systems within the enterprise, such as data management system, security management system, etc. Each terminal may include each client using the services provided by the enterprise. The above-mentioned log data includes the operation data of each device and the business operation data of the business system or terminal. The business operation data may include the record of whether the data processing of the system is successful or not, the service operation time, etc. The operation data of the device may include the resource utilization rate and resource usage time in the device. The alarm data may include data information of abnormal processing, abnormal type and abnormal occurrence time, etc. Exemplarily, the abnormal type may be data query failure, storage failure or the type of attack suffered by the system, etc. The attack type may include file download, sql injection, denial of service attack, etc., wherein the sql injection attack refers to the attacker inserting malicious sql code fragments in the user input to bypass the security measures of the application program and directly interact with the database, thereby accessing or tampering with the data in the database. Denial of service attack refers to flooding the server with a large number of invalid requests, making it unable to process the requests of legitimate users. In a distributed denial of service attack, the attacker uses the controlled computer network to launch a large-scale attack. As a possible implementation, the above alarm data can be obtained through a preset security product, which can be a WAF. The above traffic data includes data exchange records between the business system and the terminal, including received requests and responses to the requests.

[0065] In a possible embodiment, the original data to be obtained may be set according to an actual application scenario. Exemplarily, the original data may include data related to various preset attack types.

[0066] In a possible embodiment, the above raw data can be formatted and stored, that is, each raw data is stored in a unified format. The data records in the log are usually implemented in text format, but text format data is not convenient for querying. Therefore, as a possible implementation method, keywords can be preset, and keywords and values ​​corresponding to keywords can be extracted. The above keywords can be specific raw data types, such as data identifiers, business identifiers, execution results, read-write user identifiers, etc.

[0067] As a possible implementation, the above-mentioned original data can be stored in a key-value (KV) storage manner. For example, the data identifier can be used as the key, and the execution result corresponding to the data identifier, the read-write user identifier, etc. can be used as the value and stored corresponding to the key.

[0068] In a possible embodiment, each of the original data may be stored in hot and cold storage according to the frequency of use, wherein the original data with a frequency of use higher than a preset frequency threshold is stored in a preset hot storage medium, and the original data with a frequency of use lower than the preset frequency threshold is stored in a preset cold storage medium.

[0069] When a data query request is received, the target data contained in the data query request is retrieved from the storage medium where the target data is located, and returned to the sender of the data query request.

[0070] The above query frequency can be set according to the business line to which the data belongs, or according to the time when the data is generated. For example, the query frequency of the data related to business A can be set to high frequency and stored as hot data, and the query frequency of the data related to business B can be set to low frequency, so it can be stored as cold data. It is also possible to set the data generated in the past 7 days as hot data and the data generated seven days ago as cold data, which is not specifically limited in the present invention.

[0071] In a possible embodiment, the cold data can be stored in HDFS (Hadoop Distributed File System) to reduce data storage costs, and the hot data can be stored in databases such as splunk, clickhouse, mysql, neo4j, etc. to improve retrieval speed.

[0072] In a possible embodiment, the above S101 can be implemented through a preset security data platform, and then automatic attack detection can be performed based on the original data in the security data platform.

[0073] In a possible embodiment, a preset script can be used to perform attack behavior detection based on raw data according to a preset period. The preset script can be flexibly set for different attack scenarios, and each preset script may include multiple execution modules, which may include a security capability module, an attack effectiveness detection module, etc. Among them, the security capability module is used to identify attack behaviors, and the attack effectiveness detection module is used to determine the attack effectiveness of attack behaviors.

[0074] In a possible embodiment, a script editing page may be preset, and relevant personnel may drag the security capability module and the attack effectiveness detection module to the script editing page and connect them according to actual needs to obtain the script.

[0075] In a possible embodiment, the above-mentioned security capability module may include various attack behavior identification modules, such as a SQL injection rule detection module, a command execution detection module, a webshell flow detection module, a tunnel detection module, a terminal rebound shell execution module, and a terminal virus execution module. Among them, the SQL injection rule detection module is used to identify SQL injection attack behavior, the command execution detection module is used to identify malicious instruction attack behavior, and the webshell flow detection module is used to identify webshell flow attacks. Webshell flow attack is an attack method that executes remote commands, file management and other operations on the server through a malicious script (commonly referred to as a webshell). This attack method allows the attacker to control the victim server by communicating with the server after successfully implanting the webshell. The tunnel detection module is used to detect tunnel attacks. Tunnel attacks are an attack method that exploits vulnerabilities in network protocols to hide data of other protocols in specific protocols, thereby bypassing security detection and firewalls to transmit information or establish remote control. The terminal rebound shell execution module is used to detect terminal rebound shell attacks. Terminal rebound shell is an effective remote control technology that achieves the purpose of attack through the active outbound connection of the target device. The terminal virus execution module is used to detect terminal virus attacks. Terminal virus attacks refer to infections and attacks by malicious software (such as viruses, Trojans, etc.) targeting computer terminal devices, which control devices, steal sensitive information or cause system damage through these malicious codes.

[0076] Each security capability module may include an identification algorithm for the corresponding attack, which can be set according to the actual scenario, and the present invention does not specifically limit this. Exemplarily, the SQL injection rule detection module can fully verify and escape the SQL input by the user to determine whether there is malicious SQL code, which can be achieved by checking whether the user input contains special characters, keywords or specific SQL statements. For example, the webshell traffic detection module can analyze the url structure, parameters and header information of the webshell traffic, determine the parameter training of the abnormal mode, or detect abnormal file upload behavior to determine whether a webshell traffic attack occurs. The data required by each security capability module can be pre-set according to the actual scenario. The above-mentioned identification algorithm is implemented by different preset function modules, and the preset function modules include a data acquisition module, an instruction detection module, etc.

[0077] In a possible embodiment, the security capability module can obtain the original data preset for the security module; use the various preset function modules included in the security capability module to process the preset original data to identify whether the attack behavior corresponding to the security module occurs. Specifically, the security capability module can send a data query request to the security data platform based on the preset original data identifier, and the security data platform can obtain the original data from the corresponding storage medium based on the original data identifier and return it to the security capability module.

[0078] After identifying the attack behavior, it is necessary to detect the effectiveness of the attack. As described in the above example, some attack behaviors may not necessarily cause substantial damage to the business system even if they have occurred. If an alarm is issued for the attack behavior as soon as the attack behavior is identified, it may easily lead to too many invalid alarms. Therefore, in the attack behavior detection method provided by the present invention, after identifying the attack behavior, the effectiveness of the attack behavior can be detected, and after determining that the attack behavior is effective, an alarm can be issued for the effective attack behavior.

[0079] In a possible embodiment, the attack validity detection module may include a validity detection algorithm preset for different attack scenarios, and the detection algorithm may detect the possible consequences of the attack behavior according to the characteristics of the attack behavior. In a possible embodiment, the validity detection algorithm includes:

[0080] Associating preset first data with preset second data to determine whether the preset attack behavior is valid, wherein the preset first data is request data for the preset data and the second data is response data to the preset data; or,

[0081] The preset third data and the preset fourth data are associated to determine whether the attack behavior is effective, wherein the preset third data and the preset fourth data are different processing results obtained by processing the received data request in different ways.

[0082] In a possible embodiment, each validity detection algorithm can be implemented based on multiple processing results, which can be the reception result and response result for the same data request, or the result obtained after processing the same data request using different processing methods, or the processing result obtained for different data. The above multiple processing results can be pre-set according to different attack scenarios.

[0083] As a possible embodiment, when determining the attack effectiveness of the webshell traffic attack, the received request packet and the response packet obtained after data processing can be correlated and analyzed to determine whether the attack is effective. Exemplarily, three request packets and three response packets can be correlated to determine whether the parameter request included in the request packet is responded to. If it is responded to, it is determined that the webshell attack is effective.

[0084] In a possible embodiment, for a webshell traffic attack, and an attack scenario in which the webshell includes a terminal command execution, the webshell traffic can be first identified, the command execution instructions therein can be mined, and the execution result of the command execution instruction can be queried in the command execution record of the terminal. If the command execution is successful, it can be determined that the attack is successful.

[0085] As a possible implementation method, for the above-mentioned file download attack behavior, it can be determined whether the file targeted by the attack behavior exists. If it exists, it can be determined whether the file is a preset sensitive file. If it is a sensitive file, the attack behavior is determined to be valid, otherwise, the attack behavior is determined to be invalid.

[0086] For example, if the URL path including the sensitive file download request is http: / / www.***.com / wwwroot.zip, it can be detected whether there is a file under the path. If there is a file under the path, it is determined whether the file is a sensitive file based on the preset sensitive file identification. If the file is a sensitive file, the attack is determined to be valid.

[0087] The above-mentioned validity detection algorithm can be flexibly set according to different attack behaviors. When new attack behavior detection needs arise, the functional modules corresponding to the various processing results that need to be detected for the new attack behavior can be dragged to the arrangement page to arrange a new script.

[0088] By applying the above technical solution, the effectiveness of attack behaviors can be detected by associating multiple preset data instead of only using a single rule to detect attack behaviors. This can better deal with different attack behaviors and effectively deal with the problem of attack payload anomalies.

[0089] In a possible embodiment, each of the above-mentioned scripts can be automatically executed regularly, and the interval time for executing each script can be flexibly set according to the actual application scenario, such as being executed once every 1s, 5s, 1min, etc. As a possible implementation method, the above-mentioned S102 can be executed regularly through a pre-set security SOA (security Orchestration Automation) platform, and relevant personnel can arrange the scripts in the security SOA platform. Specifically, the type and execution order of each security capability module and attack effectiveness detection module can be set. In a possible embodiment, the security capability module and the attack effectiveness detection module can be subdivided, and each function in the algorithm can be used as a sub-function module to arrange the script. The above-mentioned sub-function modules may include a data query module, a judgment module, and the like.

[0090] like Figure 2 As shown, Figure 2 A schematic diagram of the script arranged in the secure SOA platform. Users can drag the required functional modules and indicate the execution order of each functional module through connecting lines. Figure 2 In the security detection scenario shown, the user can drag the Webhook (a method of adding or changing the performance of a web page through a custom callback function) module, the deserialization module, the test data query module, the log data query module, and the size value judgment module, and set the specific parameters of the functional modules, such as the target web page, the data identifier of the test data, the log data identifier, etc., and connect the sub-functional modules through connecting lines to form a script. Among them, the log data query module in the script is an attack effectiveness detection module, that is, it can determine whether the attack is effective based on the log data query results.

[0091] Each script can be stored in association with an attack scenario. Specifically, the script identifier and the attack identifier can be stored in the database in correspondence. The script identifier can be the script name, code, etc., and the attack identifier can be the attack name. At the same time, an execution cycle can be set for each script. The security SOA platform can call the corresponding script from the database for automatic execution according to the execution cycle.

[0092] In a possible embodiment, the above scenario may also include only a security capability detection module. This scenario without attack validity detection is aimed at single-point attack behavior, that is, the attack behavior is effective as long as it occurs, such as a terminal rebound shell attack behavior.

[0093] After detecting an effective attack behavior, an alarm can be issued for the effective attack behavior. In a possible embodiment, an alarm message can be sent according to a preset alarm method. The alarm method can be flexibly set according to the actual application scenario, such as sending an alarm message to relevant personnel through email, instant messaging or telephone. The above alarm information may include information such as the type of attack, the system attacked, and the entrance of the attack data, which can be set according to actual needs.

[0094] In actual applications, an attacker may launch multiple attacks on one attack point. If an alarm is issued for each attack behavior, there may be alarm redundancy. Therefore, in a possible embodiment, the attack behaviors can be aggregated and deduplicated before the alarm is issued. For example, attack behaviors with the same attack type and attack data entry can be treated as the same attack event, and an alarm can be issued for the attack event.

[0095] In a possible embodiment, after detecting a valid attack behavior, the attack path of the attack behavior can be traced back and identified, and the attack path identification result and the alarm information can be sent to relevant personnel. As a possible implementation method, the transmission path of the attack data can be determined and a work order can be generated to send the transmission path to relevant personnel and remind relevant personnel to carry out targeted processing on the attack path.

[0096] In a possible embodiment, when handling attack behaviors, relevant personnel may call the security capability module in the security SOA platform to assist in analyzing the attack behaviors.

[0097] The above S103 can be implemented through a pre-set event handling platform, which can interact with the security SOA platform and call various security capability modules, scripts, etc. in the SOA platform.

[0098] like Figure 3 As shown, Figure 3An application schematic diagram of the security detection method provided in an embodiment of the present invention, specifically, the security detection method is implemented through a security data platform, a security SOA platform and an event handling platform, wherein the security data platform is used for data reception, data storage and data analysis. The security data platform can collect data from each terminal and receive data uploaded by each business system, wherein the above-mentioned terminals can be various clients of the application service. The collected and received data may include device alarm data, flow data and log data, etc., wherein the alarm data may be alarm data uploaded by each security product, the above-mentioned flow data may include various request data and response data received by each terminal and business system, and the above-mentioned log data may include the operation data of each device, such as the resource utilization rate of the device, the resource utilization time, etc. The security data platform can format and store the above-mentioned data and can classify and store each data into cold and hot data, and may also provide data retrieval capabilities.

[0099] The above-mentioned security SOA platform includes a security capability set, which includes multiple security capability modules. Each security capability module can realize different attack behavior identification functions, and may include a SQL injection rule detection module, a terminal rebound shell execution module, and the like. The security SOA platform also includes different detection scripts preset for different attack scenarios. Each detection script is implemented based on the security capability module in the security capability set. Specifically, each script includes a security capability module and a corresponding attack effectiveness detection module. The attack effectiveness detection module also pre-sets algorithms for different attack scenarios. Relevant personnel can arrange the scripts by dragging the security capability modules and attack effectiveness detection modules in the above-mentioned security capability set. After arrangement, the execution cycle of each script can be set, and the security SOA platform can automatically execute the corresponding script according to the execution cycle of the script.

[0100] After the security SOA platform detects effective attack behavior, it can send the effective attack behavior information to the event handling platform, which can aggregate and remove the effective attack behavior information to obtain each effective attack event, and send warning information to relevant personnel for the effective attack event. At the same time, the event handling platform can also call the various security capability sets in the security SOA platform to conduct a secondary investigation on the effective attack behavior, determine the attack path of the effective attack behavior, and take corresponding measures, including vulnerability patching, data update, etc.

[0101] like Figure 4 As shown, Figure 4In order to utilize the security detection method provided in the embodiment of the present invention to reduce the alarm information after attack behavior detection, specifically, 300,000 of the 2 million alarms per day are automatically handled, more than 10 valid events are mined per day, and effective operation is achieved under limited human resources.

[0102] By applying the embodiments of the present invention, a security data platform, a security SOA platform, and an event handling platform are used to jointly detect attack behaviors. Specifically, after identifying the attack behaviors, the attack effectiveness of the attack behaviors is detected, and alarms are issued for effective attack behaviors, thereby avoiding a large number of invalid alarms caused by alarms for unsuccessful attack behaviors that affect the handling of effective attack behaviors, thereby improving the handling efficiency of attack behaviors and further improving system security.

[0103] Based on the same inventive concept, the embodiment of the present invention also provides a safety detection system, such as Figure 5 As shown, the system 500 may include:

[0104] The data acquisition module 501 is used to acquire original data, wherein the original data includes alarm data and operation data;

[0105] A script execution module 502 is used to perform attack behavior detection based on the raw data based on a pre-arranged detection script; the detection script is pre-set for different attack scenarios, and the detection script includes various security modules and the calling order of each of the security modules, each of the security modules includes a security capability module and an attack effectiveness detection module, the security capability module is used to identify attack behaviors based on the raw data, and the attack effectiveness detection module is used to detect the attack effectiveness of the attack behaviors identified by the security capability module;

[0106] The event alarm module 503 is used to issue alarm information for effective attack behaviors, wherein the effective attack behaviors are behaviors that generate effective attacks detected by the detection script.

[0107] In a possible embodiment, the security module includes recognition algorithms preset for different attack behaviors, and the recognition algorithms are implemented by different preset function modules, and the preset function modules include a data acquisition module and an instruction detection module;

[0108] The security module identifies attack behaviors through the following steps:

[0109] Acquiring original data preset for the security module;

[0110] The preset original data is processed using each preset function module included in the security module to identify whether an attack behavior corresponding to the security module occurs. The attack behaviors corresponding to each security module include: SQL injection rule attack, webshell traffic attack, and terminal rebound shell attack.

[0111] In a possible embodiment, the attack validity detection module includes a validity detection algorithm preset for a preset attack behavior, and the validity detection algorithm includes:

[0112] Associating preset first data with preset second data to determine whether the preset attack behavior is valid, wherein the preset first data is request data for the preset data and the second data is response data to the preset data; or,

[0113] The preset third data and the preset fourth data are associated to determine whether the attack behavior is effective, wherein the preset third data and the preset fourth data are different processing results obtained by processing the received data request in different ways.

[0114] Among them, the collection, storage, use, processing, transmission, provision and disclosure of user personal information involved in the present invention are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0115] The exemplary embodiment of the present invention further provides an electronic device, comprising: at least one processor; and a memory connected to the at least one processor in communication. The memory stores a computer program that can be executed by the at least one processor, and the computer program is used to enable the electronic device to perform a method according to an embodiment of the present invention when executed by the at least one processor.

[0116] Exemplary embodiments of the present invention also provide a non-transitory computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor of a computer, is used to cause the computer to perform a method according to an embodiment of the present invention.

[0117] An exemplary embodiment of the present invention further provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor of a computer, the computer is used to enable the computer to perform a method according to an embodiment of the present invention.

[0118] refer to Figure 6, a block diagram of an electronic device 600 that can be used as a server or client of the present invention will now be described, which is an example of a hardware device that can be applied to various aspects of the present invention. The electronic device is intended to represent various forms of digital electronic computer devices, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0119] like Figure 6 As shown, the electronic device 600 includes a computing unit 601, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 602 or a computer program loaded from a storage unit 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the electronic device 600 can also be stored. The computing unit 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0120] A plurality of components in the electronic device 600 are connected to the I / O interface 605, including: an input unit 606, an output unit 607, a storage unit 608, and a communication unit 609. The input unit 606 may be any type of device capable of inputting information to the electronic device 600, and the input unit 606 may receive input digital or character information, and generate key signal inputs related to user settings and / or function control of the electronic device. The output unit 607 may be any type of device capable of presenting information, and may include, but is not limited to, a display, a speaker, a video / audio output terminal, a vibrator, and / or a printer. The storage unit 608 may include, but is not limited to, a disk, an optical disk. The communication unit 609 allows the electronic device 600 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks, and may include, but is not limited to, a modem, a network card, an infrared communication device, a wireless communication transceiver, and / or a chipset, such as a Bluetooth™ device, a WiFi device, a WiMax device, a cellular communication device, and / or the like.

[0121] The computing unit 601 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 601 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 601 performs the various methods and processes described above. For example, in some embodiments, the above-mentioned security detection method may be implemented as a computer software program, which is tangibly included in a machine-readable medium, such as a storage unit 608. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 600 via the ROM 602 and / or the communication unit 609. In some embodiments, the computing unit 601 may be configured to perform the above-mentioned security detection method by any other appropriate means (e.g., by means of firmware).

[0122] The program code for implementing the method of the present invention can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code can be executed entirely on the machine, partially on the machine, partially on the machine as a stand-alone software package and partially on a remote machine, or entirely on a remote machine or server.

[0123] In the context of the present invention, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0124] As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and / or device (e.g., disk, optical disk, memory, programmable logic device (PLD)) for providing machine instructions and / or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal for providing machine instructions and / or data to a programmable processor.

[0125] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0126] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0127] A computer system may include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship to each other.

Claims

1. A safety detection method, characterized in that: The method comprises: Acquiring original data, wherein the original data includes alarm data and operation data; Perform attack behavior detection based on the raw data based on a pre-arranged detection script; the detection script is pre-set for different attack scenarios, the detection script includes various security modules and the calling order of each of the security modules, each of the security modules includes a security capability module and an attack effectiveness detection module, the security capability module is used to identify attack behaviors based on the raw data, and the attack effectiveness detection module is used to detect the attack effectiveness of the attack behaviors identified by the security capability module; An alarm message is issued for effective attack behavior, wherein the effective attack behavior is a behavior that generates an effective attack detected by the detection script.

2. The method according to claim 1, characterized in that The obtaining of original data comprises: Obtain alarm data, traffic data, and log data from each terminal and business system as raw data; The method further comprises: Perform hot and cold storage on the raw data according to the usage frequency, wherein the raw data with a usage frequency higher than a preset frequency threshold is stored in a preset hot storage medium, and the raw data with a usage frequency lower than the preset frequency threshold is stored in a preset cold storage medium; When a data query request is received, the target data contained in the data query request is retrieved from the storage medium where the target data is located, and returned to the sender of the data query request.

3. The method according to claim 1, characterized in that The security module includes preset recognition algorithms for different attack behaviors, and the recognition algorithms are implemented by different preset function modules, and the preset function modules include a data acquisition module and an instruction detection module; The security module identifies attack behaviors through the following steps: Acquiring original data preset for the security module; The preset original data is processed using each preset function module included in the security module to identify whether an attack behavior corresponding to the security module occurs. The attack behaviors corresponding to each security module include: SQL injection rule attack, webshell traffic attack, and terminal rebound shell attack.

4. The method according to claim 1, characterized in that: The attack validity detection module includes a validity detection algorithm preset for a preset attack behavior, and the validity detection algorithm includes: Associating preset first data with preset second data to determine whether the preset attack behavior is valid, wherein the preset first data is request data for the preset data and the second data is response data to the preset data; or, The preset third data and the preset fourth data are associated to determine whether the attack behavior is effective, wherein the preset third data and the preset fourth data are different processing results obtained by processing the received data request in different ways.

5. The method according to claim 1, characterized in that The method further comprises: Aggregate and remove duplicate valid attack behaviors targeting the same data to obtain attack events; The warning information issued for effective attack behaviors includes: Send out warning information for each of the attack events.

6. A safety detection system, characterized in that: The system comprises: A data acquisition module, used to acquire raw data, wherein the raw data includes alarm data and operation data; A script execution module, used to perform attack behavior detection based on the raw data based on a pre-arranged detection script; the detection script is pre-set for different attack scenarios, the detection script includes various security modules and the calling order of each of the security modules, each of the security modules includes a security capability module and an attack effectiveness detection module, the security capability module is used to identify attack behaviors based on the raw data, and the attack effectiveness detection module is used to detect the attack effectiveness of the attack behaviors identified by the security capability module; The event alarm module is used to issue alarm information for effective attack behavior, wherein the effective attack behavior is the behavior that generates effective attack detected by the detection script.

7. The system according to claim 6, characterized in that The security module includes preset recognition algorithms for different attack behaviors, and the recognition algorithms are implemented by different preset function modules, and the preset function modules include a data acquisition module and an instruction detection module; The security module identifies attack behaviors through the following steps: Acquiring original data preset for the security module; The preset original data is processed using each preset function module included in the security module to identify whether an attack behavior corresponding to the security module occurs. The attack behaviors corresponding to each security module include: SQL injection rule attack, webshell traffic attack, and terminal rebound shell attack.

8. The system according to claim 6, characterized in that The attack validity detection module includes a validity detection algorithm preset for a preset attack behavior, and the validity detection algorithm includes: Associating preset first data with preset second data to determine whether the preset attack behavior is valid, wherein the preset first data is request data for the preset data and the second data is response data to the preset data; or, The preset third data and the preset fourth data are associated to determine whether the attack behavior is effective, wherein the preset third data and the preset fourth data are different processing results obtained by processing the received data request in different ways.

9. An electronic device, comprising: processor; as well as Memory for storing programs, The program includes instructions, which, when executed by the processor, cause the processor to perform the method according to any one of claims 1 to 5.

10. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to make a computer execute the method according to any one of claims 1-5.

Citation Information

Cited By

  • Method and system for detecting Web attack based on ClickHouse

    CN120528630A