Security business index production method and device, electronic equipment and storage medium

Through the combination of universal codes and description files, the problem of low production efficiency of security business indicators in hard-coded mode is solved, rapid generation and efficient configuration of security business indicators are achieved, and production efficiency and flexibility are improved.

CN118656068APending Publication Date: 2024-09-17CHANGSHA QIANXIN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410710854.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-03
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

In the existing technology, the production efficiency of security business indicators is low, mainly because the hard-coding method requires a large amount of code to be written, and when the indicators change, the existing code needs to be adjusted, which leads to a large time consumption and reduces production efficiency.

Method used

Using a combination of general code and description files, the general code describes the common process, and the description file describes the personalized method. Security operation and maintenance personnel only need to configure the description file and run the general code to generate indicators. It supports hot loading, which improves configuration efficiency and flexibility.

Benefits of technology

It reduces the workload of security operation and maintenance personnel, improves the production efficiency and configuration efficiency of security business indicators, and ensures rapid production and time uniformity of indicators.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118656068A
    Figure CN118656068A
Patent Text Reader

Abstract

The invention provides a safety business index production method and device, electronic equipment and a storage medium. The safety business index production method comprises the steps of obtaining a description file containing a personalized mode in production of a target safety business index, and a universal code; and running the universal code, and calling the obtained description file, so as to produce the target security business index according to the generality process and the personalized mode in the production of the target security business index. The personalized mode in the safety business index production hard code is represented by the description file, the common process in the hard code is represented by the general code, and when the safety business index production configuration is needed, the safety operation and maintenance personnel only configure the description file, so that the safety operation and maintenance efficiency is improved. The workload of safety operation and maintenance personnel during index production configuration is reduced, the configuration efficiency of safety business index production is improved, the safety business indexes can be produced as soon as possible, and the production efficiency of the safety business indexes is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of network security technology, and in particular to a method, device, electronic device and storage medium for producing security business indicators. Background Art

[0002] In network security operations, it is necessary not only to plan and implement network security, but also to track the effect of network security implementation in order to further optimize the network security implementation plan and ensure network security operation. The effect of network security implementation can be quantified through security business indicators.

[0003] At present, the acquisition of security business indicators is mainly achieved through hard coding. Specifically, when it is necessary to obtain the specific values ​​of several security business indicators, the security operation and maintenance personnel first determine the specific production method of these indicators, such as: which specific values ​​of indicators to collect, from which data sources to collect, the start and end time of collection, the frequency of collection, how to process after collection, etc. Then, based on the determined specific production method, write the code, then test the written code and other pre-online work, and after confirming that the code can be put online, deploy the code in the corresponding equipment. In this way, the acquisition of various security business indicators can be achieved through the corresponding equipment.

[0004] However, if there are a large number of security business indicators to be produced, each security business indicator needs to write corresponding code, and the workload of code writing is large. And if the acquisition of security business indicators changes, for example: it is necessary to obtain the value of a new security business indicator, or some specific acquisition details of the currently acquired security business indicators need to be modified, etc., the security operation and maintenance personnel need to adjust the existing code based on the changes in the production of security business indicators, and then test and deploy the adjusted code to make the code go online again. All of this will consume a lot of time, thereby reducing the production efficiency of security business indicators. Summary of the invention

[0005] The purpose of the embodiments of the present application is to provide a method, device, electronic device and storage medium for producing security business indicators to improve the efficiency of producing security business indicators.

[0006] In order to solve the above technical problems, the embodiments of the present application provide the following technical solutions:

[0007] The first aspect of the present application provides a method for producing a security business indicator, which is applied to a security business indicator production system. The system includes a general code and a description file. The general code is used to describe the common process in the production of different security business indicators, and the description file is used to describe the personalized methods in the production of different security business indicators. The method includes: obtaining a description file containing the personalized method in the production of a target security business indicator, and a general code; running the general code and calling the obtained description file to produce the target security business indicator according to the common process and the personalized method in the production of the target security business indicator.

[0008] Compared with the prior art, the security business indicator production method provided in the first aspect of the present application, by using a description file to represent the personalized method in the hard-coding of the security business indicator production, and using a general code to represent the common process in the hard-coding, when the security business indicator production configuration needs to be performed, the security operation and maintenance personnel only need to configure the description file, and there is no need to write general code, thereby reducing the workload of the security operation and maintenance personnel in configuring the indicator production, and when the security business indicator production needs to be modified, the security operation and maintenance personnel only need to modify the description file, and then directly run the general code production framework to call the description file to realize the production of the modified security business indicators. Furthermore, the combination of the general code and the description file can support hot loading, all of which can improve the configuration efficiency of the security business indicator production, so that the security business indicators can be produced as soon as possible, thereby improving the production efficiency of the security business indicators.

[0009] In some changed implementation modes of the first aspect of the present application, the description file includes indicator production configuration information and a general file running template; the running of the general code and calling the obtained description file to produce the target security business indicator in accordance with the common process and the personalized method in the production of the target security business indicator includes: running the general code and loading the general file running template containing the indicator production configuration information of the target security business indicator to produce the target security business indicator in accordance with the common process and the indicator production configuration information of the target security business indicator.

[0010] In the description file, the specific configuration information of indicator production is distinguished from the template that supports the correct operation of the file, so that the security operation and maintenance personnel can configure the description file by simply entering the specific configuration information of indicator production in the template, reducing the workload of indicator production configuration and improving the efficiency of indicator production configuration. In addition, since the specific configuration information can be distinguished from the template, the security operation and maintenance personnel can also adjust the template, which improves the flexibility of the description file configuration, thereby improving the flexibility of the indicator production configuration without increasing the workload of indicator production configuration.

[0011] In some changed implementation modes of the first aspect of the present application, before obtaining a description file containing a personalized method in the production of a target security business indicator, the method further includes: responding to an indicator production configuration instruction and outputting the general file running template; receiving indicator production configuration information and / or template content modification information of the target security business indicator input based on the general file running template, and generating the description file.

[0012] When security operation and maintenance personnel need to configure indicator production, a general file running template of the description file is output to the security operation and maintenance personnel, so that the security operation and maintenance personnel can not only fill in the indicator production configuration information in the template to complete the indicator production configuration, but also modify the content in the template to optimize the data volume, operation mode, etc. of the existing description file, without having to search and modify the existing description file line by line, thereby improving the modification efficiency of the existing description file.

[0013] In some changed implementation modes of the first aspect of the present application, the number of the security business indicators is multiple, the description file includes a reference calculation relationship between corresponding security business indicators, and the target security business indicator is a reference indicator in the reference calculation relationship; the production of the target security business indicator according to the common process and the personalized method in the production of the target security business indicator includes: the production of the referenced indicator in the reference calculation relationship according to the common process and the personalized method in the production of the target security business indicator; the production of the target security business indicator according to the personalized method in the production of the target security business indicator and the produced referenced indicator.

[0014] When it is necessary to produce multiple security business indicators, the reference calculation relationship between the indicators is also written into the description file. In this way, when producing security business indicators, the referenced indicators can be produced directly through the data source, and the referenced indicators are produced based on the referenced indicators. In this way, it is possible to avoid the problem that the referenced indicators are also produced through the data source, and the values ​​of the referenced indicators and the referenced indicators are not in the same time range due to the different time when the referenced indicators and the referencing indicators are obtained from the data source, and the values ​​of the various indicators are not unified. This improves the uniformity of the values ​​of various indicators in time.

[0015] In some variation implementations of the first aspect of the present application, the number of the referenced indicators is multiple; before producing the referenced indicators in the reference calculation relationship according to the common process and the personalized method in the production of the target security business indicators, the method also includes: determining the number of times each referenced indicator is cited; determining the production order of each referenced indicator based on the order of the number of times cited from most to least; producing the referenced indicators in the reference calculation relationship according to the common process and the personalized method in the production of the target security business indicators includes: based on the production order of each referenced indicator, producing each referenced indicator in the reference calculation relationship according to the common process and the personalized method in the production of the target security business indicators.

[0016] Indicators with more citations are produced through data sources first, which enables more cited indicators to be produced as quickly as possible, improving the overall production efficiency of business security indicators.

[0017] In some changed implementation modes of the first aspect of the present application, the personalized method includes indicator production frequency and indicator production time range; before running the general code, the method also includes: obtaining the indicator production frequency and indicator production time range of the target security business indicator from the acquired description file; based on the indicator production frequency and the indicator production time range, generating a scheduled collection task for the target security business indicator; running the general code and calling the acquired description file includes: when the scheduled collection task is triggered, running the general code and calling the acquired description file.

[0018] By configuring a scheduled collection task for the target security business indicator, the task will be triggered when the corresponding time point is reached, thereby realizing the production of the target security business indicator. Compared with directly producing indicators according to the production frequency or production time interval, it can avoid environmental interference with timing and improve the time accuracy of security business indicator production.

[0019] In some changed implementation modes of the first aspect of the present application, the number of the security business indicators is multiple, and the data sources corresponding to the multiple security business indicators are not completely the same; before producing the target security business indicator according to the common process and the personalized method in the production of the target security business indicator, the method also includes: determining the data source corresponding to each security business indicator; determining the production order of the target security business indicators based on the order of the number of security business indicators corresponding to the data source from most to least; producing the target security business indicators according to the common process and the personalized method in the production of the target security business indicators includes: producing the target security business indicators according to the common process and the personalized method in the production of the target security business indicators based on the production order of the target security business indicators.

[0020] The various security business indicators are grouped according to different data sources, and the security business indicators under the data source with more indicators are produced first based on the data source, so that the same data source can be maximized within a period of time, improving the utilization rate of the data source. In addition, when access to the data source requires verification, one verification can realize the production of values ​​​​of multiple indicators, which can improve the production efficiency of security business indicators.

[0021] A second aspect of the present application provides a security business indicator production device, which is applied to a security business indicator production system. The system includes a general code and a description file. The general code is used to describe the common process in the production of different security business indicators, and the description file is used to describe the personalized methods in the production of different security business indicators. The device includes: an acquisition module, which is used to acquire a description file containing the personalized method in the production of the target security business indicator, and a general code; a production module, which is used to run the general code and call the acquired description file to produce the target security business indicator according to the common process and the personalized method in the production of the target security business indicator.

[0022] The third aspect of the present application provides an electronic device, comprising: a processor, a memory, and a bus; wherein the processor and the memory communicate with each other via the bus; and the processor is used to call program instructions in the memory to execute the method in the first aspect.

[0023] A fourth aspect of the present application provides a computer-readable storage medium, the storage medium comprising: a stored program; wherein, when the program is executed, the device where the storage medium is located is controlled to execute the method in the first aspect.

[0024] The security business indicator production device provided in the second aspect of the present application, the electronic device provided in the third aspect, and the computer-readable storage medium provided in the fourth aspect have the same or similar beneficial effects as the security business indicator production method provided in the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] By reading the detailed description below with reference to the accompanying drawings, the above and other purposes, features and advantages of the exemplary embodiments of the present application will become easy to understand. In the accompanying drawings, several embodiments of the present application are shown in an exemplary and non-limiting manner, and the same or corresponding reference numerals represent the same or corresponding parts, wherein:

[0026] Figure 1 This is a schematic diagram of the scenario architecture of the method for producing security business indicators in an embodiment of the present application;

[0027] Figure 2 The process diagram of the method for producing security business indicators in the embodiment of the present application is as follows: Figure 1 ;

[0028] Figure 3 The process diagram of the method for producing security business indicators in the embodiment of the present application is as follows: Figure 2 ;

[0029] Figure 4 This is a schematic diagram of the description file in the embodiment of this application Figure 1 ;

[0030] Figure 5 This is a schematic diagram of the description file in the embodiment of this application Figure 2 ;

[0031] Figure 6 A schematic diagram of the reference calculation relationship between various security service indicators in the embodiment of the present application;

[0032] Figure 7 The structure of the security business indicator production device in the embodiment of the present application is shown as follows: Figure 1 ;

[0033] Figure 8 The structure of the security business indicator production device in the embodiment of the present application is shown as follows: Figure 2 ;

[0034] Fig. 9 Schematic diagram of the structure of an electronic device in an embodiment of the present application. DETAILED DESCRIPTION

[0035] The exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present application and to fully convey the scope of the present application to those skilled in the art.

[0036] It should be noted that, unless otherwise specified, the technical terms or scientific terms used in this application should have the common meanings understood by technicians in the field to which this application belongs.

[0037] At present, for the production of security business indicators, security operation and maintenance personnel need to write hard-coded indicator production configuration from scratch. When the number of security business indicators is large, or the existing indicator production needs to be adjusted, the workload of hard-coded writing or modification is large, and it is also necessary to test again, which reduces the efficiency of indicator production configuration and thus reduces the efficiency of indicator production.

[0038] In view of this, the embodiments of the present application provide a method, device, electronic device and storage medium for producing security business indicators. In the hard coding for the production of security business indicators, since some contents are common among all indicator productions, such as: the request process for the data source, the logical order of indicator production, etc., and some contents are personalized among indicator productions, such as: the method of obtaining indicators, the method of calculating indicators, etc., therefore, these two parts of content can be separated, and the common contents are used as general codes, and the personalized contents are used as description files. In this way, when the security operation and maintenance personnel need to configure the production of indicators, they only need to edit the description file, and no longer need to edit the general code. After the security operation and maintenance personnel complete the configuration of the description file, they can run the general code and call the description file to realize the production of security business indicators. While ensuring that the security business indicators can be produced smoothly, the efficiency of the configuration of the security business indicator production is improved, thereby improving the efficiency of the production of the security business indicators.

[0039] First, the scenario architecture of the security business indicator production method provided in the embodiment of the present application is described.

[0040] Figure 1 This is a schematic diagram of the scenario architecture of the method for producing security business indicators in the embodiment of this application, see Figure 1 As shown, the scenario architecture may include: a security business indicator production system 11, a data source 12, security operation and maintenance personnel 13 and an indicator library 14.

[0041] The security business indicator production system 11 is used to produce security business indicators. The so-called security business indicators can refer to various indicators generated by security equipment or business systems during operation, such as the number of hackers trapped by honeypots, the total number of alarms, the number of processed alarms, the alarm handling rate, the number of logins, the number of login failures, etc.

[0042] The security business indicator production system 11 may include: general code 111 and description file 112. General code 111 is used to describe the common processes in the production of different security business indicators, such as: the request process of the data source (sending a login request, sending a data acquisition request, etc.), the production sequence of indicators (parsing data, verifying data, format conversion, etc.), etc. The description file 112 is used to describe the personalized methods in the production of different security business indicators, which will change due to the difference in indicators, such as: the data acquisition method (acquisition path, acquisition frequency, etc.), calculation method, etc. The general code 111 and description file 112 have passed the security business indicator production test.

[0043] The data source 12 may include: security equipment and business systems. Security equipment may refer to various devices for security supervision of business systems. Business systems may refer to system software, hardware equipment, etc. used by individuals or enterprises for daily related work.

[0044] When it is necessary to produce indicators, the security operation and maintenance personnel 13 edit the description file 112 and input the description file 112 into the security business indicator production system 11. After obtaining the description file 112, the security business indicator production system 11 runs the general code 111 and calls the description file 112, and then obtains the original data from the data source 12 based on the common process and personalized method, and produces specific security business indicators (which can be indicator values, indicator sizes, indicator ranges, etc.). Finally, the produced security business indicators are stored in the indicator library 113 for viewing the indicators, security tracing, etc.

[0045] It should be noted that the above-mentioned security operation and maintenance personnel can be security planners, security commanders, or system administrators. The specific meaning of security operation and maintenance personnel is not limited here.

[0046] It should also be noted here that the above-mentioned indicator library can be located outside the security business indicator production system 11 to reduce the amount of data in the security business indicator production system 11 itself, or it can be located within the security business indicator production system 11 to avoid the produced indicators from being tampered with during output and improve the accuracy of indicator storage.

[0047] Next, the security business indicator production method provided in the embodiment of the present application is described in detail.

[0048] Figure 2 The process diagram of the method for producing security business indicators in the embodiment of the present application is as follows: Figure 1 , see Figure 2 As shown, the method may include:

[0049] S21: Obtain a description file containing a personalized method in the production of target security business indicators, as well as a common code.

[0050] The description file may contain only one personalized method for producing a security business indicator, or may contain multiple personalized methods for producing security business indicators, which needs to be determined according to the specific production requirements of the indicator. In addition, for security business indicators with a similarity greater than a preset similarity, only one production method may be configured in the description file, which can improve the efficiency of the configuration of security business indicator production in the description file.

[0051] Whether the security operation and maintenance personnel are configuring the production of new security business indicators or modifying the production of existing security business indicators, they need to do so in the description file. When the security operation and maintenance personnel are configuring the production of new security business indicators, they need to describe all the variables of the indicator production in the description file. When the security operation and maintenance personnel are modifying the production of existing security business indicators, they only need to modify the corresponding content in the current description file. Then, the security operation and maintenance personnel enter the description file into the system. In this way, the system can obtain the description file.

[0052] Of course, the security operation and maintenance personnel may also store the edited description file in a designated location, and the system may obtain the description file from the designated location at a fixed time. The specific method for obtaining the description file is not limited here.

[0053] In addition to obtaining the description file, the system also needs to obtain the pre-stored general code so that the general code can be combined with the description file and run to achieve the production of corresponding security business indicators.

[0054] S22: Run the general code and call the obtained description file to produce the target security business indicator according to the common process and the personalized method in the production of the target security business indicator.

[0055] When the system starts to produce indicators, it needs to combine the general code and the description file. The system calls the description file while running the general code. The general code can collect and process data according to the established process. Combined with the personalized production method in the description file, it can collect the original values ​​of the indicators according to certain rules for the corresponding data source, and then process the original values ​​to produce the values ​​corresponding to the security business indicators.

[0056] It can be seen from the above content that the security business indicator production method provided in the embodiment of the present application, by using a description file to represent the personalized method in the hard-coding of the security business indicator production, and using a general code to represent the common process in the hard-coding. When the security business indicator production configuration is required, the security operation and maintenance personnel only need to configure the description file, and there is no need to write general code, which reduces the workload of the security operation and maintenance personnel when configuring the indicator production. Moreover, when the security business indicator production needs to be modified, the security operation and maintenance personnel only need to modify the description file, and then directly run the general code production framework to call the description file to realize the modified security business indicator production. Furthermore, the combination of the general code and the description file can support hot loading. These can improve the configuration efficiency of the security business indicator production, so that the security business indicators can be produced as soon as possible, thereby improving the security business indicator production efficiency.

[0057] Furthermore, as a Figure 2 As a refinement and extension of the method shown, an embodiment of the present application also provides a method for producing security business indicators.

[0058] Figure 3 The process diagram of the method for producing security business indicators in the embodiment of the present application is as follows: Figure 2 , see Figure 3 As shown, the method may include:

[0059] S31: Obtain a description file containing a personalized method in the production of target security business indicators, as well as a common code.

[0060] This step is implemented in the same manner as the aforementioned step S21. Please refer to the relevant instructions in the aforementioned step S21 and will not be repeated here.

[0061] S32: Obtain the indicator production frequency and indicator production time range of the target security business indicator from the acquired description file.

[0062] The indicator production frequency here may refer to how often the security business indicator is produced, for example: once / 10s.

[0063] The indicator production time range here may refer to the time when the production of the security business indicator starts and when the production ends, that is, the start time and the end time. For example, production starts at 0:00 on January 1, 2024 and ends at 24:00 on December 31, 2024.

[0064] S33: Generate a scheduled collection task of the target security business indicator based on the indicator production frequency and indicator production time range.

[0065] After obtaining the indicator production time range and indicator production frequency, the start time in the indicator production time range can be used as the first time. Starting from the start time, according to the indicator production frequency, the second time, the third time, and so on are determined until the end time in the indicator production time range is reached. Then, a scheduled collection task is generated based on these times. Once the time in the task is reached, the task will be triggered.

[0066] S34: When the scheduled collection task is triggered, the general code is run and the acquired description file is called.

[0067] Of course, it is also possible not to set a scheduled collection task. After obtaining the description file, the system directly runs the general code and calls the description file, and then produces security business indicators directly according to the indicator production frequency based on the indicator production time range in the description file.

[0068] There can be multiple security business indicators. In other words, multiple security business indicators need to be produced. Moreover, among these security business indicators, the corresponding data sources are not exactly the same. For example, for indicator a, indicator b, and indicator c, indicator a and indicator b need to be produced through data source 1, and indicator c needs to be produced through data source 2. If multiple indicators are not produced in a reasonable order, it will lead to confusion in indicator production, thereby reducing the accuracy and efficiency of indicator production. In order to avoid this problem, it is necessary to arrange a reasonable order for the production of multiple indicators.

[0069] S35: Determine the data source corresponding to each security business indicator.

[0070] In the description file, it is necessary to describe the data source used in the production of each security business indicator. Therefore, the data source corresponding to each security business indicator can be obtained from the description file. In the description file, the data source corresponding to the security business indicator can be described in the form of the name of the data source, the Internet Protocol (IP) address, etc.

[0071] S36: Determine a production order of the target security business indicators based on the order of the number of security business indicators corresponding to the data sources from most to least.

[0072] According to different data sources, various security business indicators are grouped. The data sources corresponding to the security business indicators in each group are the same. In each group, the number of security business indicators included is different. The data sources can be sorted in the order of the number of indicators included from the most to the least, and then indicators are generated based on the data sources in sequence according to the sorting.

[0073] For example, assume that indicators a, b, and c correspond to data source 1, indicators d and e correspond to data source 2, and indicator f corresponds to data source 3. The number of indicators corresponding to data source 1, data source 2, and data source 3 are 1, 2, and 3, respectively. In descending order of the number of indicators corresponding to the data source, they are: data source 3, data source 2, and data source 1.

[0074] The above is to start the indicator production from the data source containing the largest number of indicators, to ensure that the data source containing the most indicators can be allocated more resources first, thereby ensuring that the overall indicator production process can proceed smoothly. Of course, it is also possible to start indicator production from the data source containing the least number of indicators, so that more indicators can be produced when system resources are sufficient, thereby improving the efficiency of indicator production.

[0075] In this way, the production timing of the target security business indicator can be determined, that is, when the data source corresponding to the target security business indicator begins to be used for indicator production.

[0076] S37: Based on the production sequence of the target safety business indicators, the target safety business indicators are produced in accordance with the common process and the personalized method in the production of the target safety business indicators.

[0077] When the time for producing the target safety business indicator is reached, the system can realize the production of the target safety business indicator according to the common process of indicator production and the personalized method of generating the target safety business indicator.

[0078] In actual applications, the description file can include indicator production configuration information and a general file operation template. The general operation file template is a general code template that ensures that the description file can be called by the general code and provides specific indicator production instructions for the general code. The indicator production configuration information is the specific personalized content that needs to be referenced in indicator production, such as: production frequency, start time, end time, data source address, etc.

[0079] Figure 4 This is a schematic diagram of the description file in the embodiment of this application Figure 1 ,exist Figure 4 In the example, code, name, etc. belong to the general file operation template. The number of hackers trapped by the honeypot, 35 1 / 10, etc. belong to the indicator production configuration information.

[0080] In this way, when security operation and maintenance personnel configure indicators, they can directly configure less information in the template, which improves the efficiency of indicator production configuration. In addition, when the system produces indicators, it can also quickly find the required information from the corresponding position in the template, which improves the efficiency of indicator production.

[0081] Specifically, the "running the general code and calling the obtained description file" in the above step S34 and the "producing the target security business indicator according to the common process and the personalized method in the production of the target security business indicator" in S37 may include:

[0082] Step A1: Run the general code and load the general file running template containing the indicator production configuration information of the target security business indicator to produce the target security business indicator according to the common process and the indicator production configuration information of the target security business indicator.

[0083] The template contains the indicator production configuration information previously written by the security operation and maintenance personnel. After the template is run, the general code can quickly obtain the corresponding configuration information based on the indicator production configuration information at the corresponding position of the template, thereby quickly producing indicators and improving the efficiency of indicator production.

[0084] In actual applications, indicator production is sometimes configured, for example, configuring new indicator production, deleting existing indicator production, modifying existing indicator production details, etc. Sometimes the operation mode of the description file is modified, that is, modifying the general operation file template.

[0085] Specifically, before the above step S31, the method may further include:

[0086] Step A01: Respond to the indicator production configuration instruction and output the general file operation template.

[0087] When the security operation and maintenance personnel need to edit the description file, the security operation and maintenance personnel can trigger the indicator production configuration instruction in the system, for example: the security operation and maintenance personnel write an indicator production configuration instruction and send the instruction to the system; or the security operation and maintenance personnel perform any operation in the relevant position of the indicator production configuration in the system; etc. At this time, the system knows that the security operation and maintenance personnel need to edit the description file, and then outputs a general file operation template for the security operation and maintenance personnel to use.

[0088] At this time, if the security operation and maintenance personnel are configuring the production of new indicators, they can enter the new indicator production configuration information in the template. If they are modifying the operation mode of the description file, they can modify the template. After the security operation and maintenance personnel complete the input or modification of the template, they will return the input or modified content to the system.

[0089] Step A02: Receive indicator production configuration information and / or template content modification information of the target security business indicator input based on the general file operation template, and generate a description file.

[0090] If new indicators are added, the system will receive the new indicator production configuration information, and then add the new indicator production configuration information to the existing description file, so as to realize the production of the current indicators and the new indicators.

[0091] If the modification is made to the template, the system will receive the template content modification information, and then add, modify or delete the code of the current template based on the template content modification information.

[0092] If it is the above two situations, you can process the description files at the same time.

[0093] In this way, the description file is edited and can then be called to realize indicator production.

[0094] In actual applications, sometimes in the production of multiple security business indicators, there is a reference calculation relationship between some security business indicators. The so-called reference calculation relationship means that the calculation of one indicator depends on another one or more indicators. For example: the total number of alarms, the number of processed alarms and the alarm disposal rate need to be produced at present. At this time, the generation of the alarm disposal rate depends on the total number of alarms produced and the number of processed alarms, that is, the alarm disposal rate = the number of processed alarms / the total number of alarms. At this time, the reference calculation relationship between the corresponding security business indicators can also be edited in the description file, so that the system can directly produce the referenced indicators through the data source, and the referenced indicators can be produced through the referenced indicators. In this way, the values ​​of the referenced indicators and the referenced indicators can be kept consistent in the time dimension of collection, thereby improving the overall accuracy of indicator collection.

[0095] Here, the target security business indicator is taken as an example to be used as a reference indicator in a reference calculation relationship.

[0096] Specifically, the "producing the target security business indicator according to the common process and the personalized method in producing the target security business indicator" in the above step S37 may include:

[0097] Step B1: Produce the referenced indicators in the reference calculation relationship according to the common process and the personalized method in the production of target security business indicators.

[0098] The description file contains the reference calculation relationship between various indicators. Through the reference calculation relationship, it is possible to determine which indicators are referenced by which indicators for calculation, that is, to determine the referenced indicators and the referencing indicators, and then produce the referenced indicators according to the common process and the personalized method in the production of the target security business indicators.

[0099] When producing referenced indicators, because they need to be used for the production of referenced indicators, and the referenced indicators here are target security business indicators, therefore, when producing referenced indicators, in addition to following the common process, it is also necessary to follow the personalized methods in the production of target security business indicators.

[0100] For example, assuming that indicator a is the referenced indicator and indicator b is the referenced indicator, the production frequency of indicator a is 1 time / 20s and the production frequency of indicator b is 1 time / 10s. Then, when producing indicator b, in addition to following the common process, the production frequency in the personalized method needs to be 1 time / 10s.

[0101] It should be noted here that if the production frequency of the referenced indicator is lower than that of the referenced indicator, and the referenced indicator is also the indicator to be produced, then the production frequency of the referenced indicator can be based on its personalized production frequency. When used in the production of the referenced indicator, the corresponding number of indicators of the production frequency of the referenced indicator can be selected from the indicators produced by it. For example: indicator a is the referenced indicator and also the production indicator, indicator b is the referenced indicator, the production frequency of indicator a is 1 time / 10s, and the production frequency of indicator b is 1 time / 20s. Then, when producing indicator b, select an indicator value from the indicator values ​​of indicator a produced every two times.

[0102] Step B2: Produce the target security business indicator according to the personalized method in the target security business indicator production and the referenced indicators produced.

[0103] After the production of the referenced indicator is completed, the referenced indicator can be calculated according to the personalized method in the referenced indicator to obtain the referenced indicator, that is, the production of the target security business indicator, and then the production of all indicators is realized.

[0104] Figure 5 This is a schematic diagram of the description file in the embodiment of this application Figure 2 ,exist Figure 5 In the description, there is a reference calculation relationship between the production indicator "Internet attack alarm handling rate" and the other two production indicators "total alarm number" and "handled alarm number". For the two production indicators "total alarm number" and "handled alarm number", production is carried out first. After the production of these two indicators is completed, the production indicator "Internet attack alarm handling rate" can be directly produced based on the results of the two production indicators "total alarm number" and "handled alarm number".

[0105] Introducing the reference calculation relationship between indicators in the description file can make each produced indicator maintain a unified time dimension and ensure the consistency of indicator production.

[0106] For example, in Figure 5In the scenario shown in the content, it is assumed that the indicators are produced in the order of total alarm number, processed alarm number, and alarm handling rate. At time 1, the total alarm number 2 is obtained from the data source. At time 2, the processed alarm number 1 is obtained from the data source. In theory, the alarm handling rate should be 1 / 2 = 50%. At time 3, if the alarm handling rate is also obtained directly from the data source, and the total alarm data in the data source increases to 3, then the alarm handling rate will be 1 / 3 = 33.33%. Obviously, the alarm handling rate obtained at this time is inconsistent with the data of the total alarm number and the processed alarm number. If the alarm handling rate is calculated based on the total alarm number and the processed alarm number produced at time 1 and time 2, then the alarm handling rate is 1 / 2 = 50%, which can ensure the consistency of the production data of each indicator.

[0107] In actual applications, if there are multiple cited indicators, which indicators are produced first will have a certain impact on the overall process of indicator production. Therefore, producing indicators with more citations first can improve the overall efficiency of indicator production.

[0108] Specifically, before the above step B1, the method may further include:

[0109] Step B01: Determine the number of citations of each cited indicator.

[0110] For some security business indicators, since they are relatively basic, they may not be referenced by just one security business indicator, but may be referenced by multiple security business indicators. For example, the total number of alarms will be referenced when the alarm handling rate is produced, and it will also be referenced when the alarm volume per unit time is produced. At this time, the number of times the total number of alarms is referenced is 2.

[0111] When determining the number of citations of each referenced indicator, a tree structure diagram can be generated in sequence based on each reference calculation relationship in the description file. In the tree structure diagram, the node represents the security business indicator and the edge represents the reference relationship. At this time, the edge can be an edge with an arrow pointing. The arrow points to the referenced node. For each node, the number of edges with arrows connected to it is the number of citations of the security business indicator corresponding to the node. Of course, it is also possible to determine the number of citations of each referenced indicator directly based on the reference calculation relationship in the description file without using a tree structure diagram.

[0112] B02: Determine the production order of each cited indicator based on the order of the number of citations from most to least.

[0113] Accordingly, the above step B1 may include: based on the production order of each referenced indicator, producing each referenced indicator in the reference calculation relationship according to the common process and the personalized method in the production of the target security business indicator.

[0114] In other words, the indicator with the most citations is produced first. In this way, after the indicator is produced, it can be used to produce more cited indicators, thereby improving the overall efficiency of indicator production.

[0115] Figure 6 This is a schematic diagram of the reference calculation relationship between various security service indicators in the embodiment of this application, see Figure 6 As shown, the production of index g requires the reference of index d, the production of index d requires the reference of index a, the production of index e requires the reference of index a, and the production of index f requires the reference of index b and index c. The number of times index d is cited is 1, the number of times index a is cited is 2, the number of times index b is cited is 1, and the number of times index c is cited is 1. Index a has the highest number of citations, so it is produced first. At time 1, index a is produced. At time 2, index d is produced based on index a, index e is produced based on index a, and then index b and index c are produced. At time 3, index g is produced based on index d, and index f is produced based on index b and index c.

[0116] If the indicator with fewer citations is produced first, at time 1, indicator b and indicator c are produced. At time 2, indicator f and indicator a are produced based on indicators b and c. At time 3, indicator d is produced based on indicator a, and indicator e is produced based on indicator a. At time 4, indicator g is produced based on indicator d.

[0117] It can be seen that producing indicators with a large number of citations first can improve the overall production efficiency of security business indicators (the production of all indicators can be completed after time 3, without having to go through time 4, which shortens the time for indicator production).

[0118] At this point, the security business indicator production method provided in the embodiment of the present application has been fully described.

[0119] Based on the same inventive concept, as an implementation of the above method, the embodiment of the present application also provides a security business indicator production device.

[0120] Figure 7 The structure of the security business indicator production device in the embodiment of the present application is shown as follows: Figure 1 , see Figure 7As shown, the device is applied to a security business indicator production system, the system includes a general code and a description file, the general code is used to describe the common process in the production of different security business indicators, and the description file is used to describe the personalized method in the production of different security business indicators. The device may include: an acquisition module 71 and a production module 72. Among them, the acquisition module 71 and the production module 72 are connected.

[0121] The acquisition module 71 is used to acquire a description file containing a personalized method in the production of a target security business indicator and a general code.

[0122] The production module 72 is used to run the general code and call the obtained description file to produce the target security business indicator according to the common process and the personalized method in the production of the target security business indicator.

[0123] Furthermore, as a Figure 7 As a refinement and extension of the device shown, the embodiment of the present application also provides a security business indicator production device.

[0124] Figure 8 The structure of the security business indicator production device in the embodiment of the present application is shown as follows: Figure 2 , see Figure 8 As shown, the device may include: a configuration module 81, a first acquisition module 82, a second acquisition module 83, a calling module 84, a third acquisition module 85 and an indicator module 86. Among them, the configuration module 81, the first acquisition module 82, the second acquisition module 83, the calling module 84, the third acquisition module 85 and the indicator module 86 are connected in sequence.

[0125] When the description file includes the indicator production configuration information and the general file operation template, the configuration module 81 includes: a template output unit 811 and a file generation unit 812. The template output unit 811 and the file generation unit 812 are connected.

[0126] The template output unit 811 is used to respond to the indicator production configuration instruction and output the general file operation template.

[0127] The file generating unit 812 is used to receive the indicator production configuration information and / or template content modification information of the target security business indicator input based on the general file running template, and generate the description file.

[0128] The first acquisition module 82 is used to acquire a description file containing a personalized method in the production of a target security business indicator and a general code.

[0129] The second acquisition module 83 includes: a time acquisition unit 831 and a task generation unit 832. The time acquisition unit 831 and the task generation unit 832 are connected.

[0130] The time acquisition unit 831 is used to acquire the indicator production frequency and indicator production time range of the target security business indicator from the acquired description file.

[0131] The task generating unit 832 is used to generate a scheduled collection task of the target security business indicator based on the indicator production frequency and the indicator production time range.

[0132] The calling module 84 is used to run the general code and call the acquired description file when the scheduled collection task is triggered.

[0133] When there are multiple security service indicators and the data sources corresponding to the multiple security service indicators are not completely the same, the third acquisition module 85 includes: a data source determination unit 851 and a first sequence unit 852 . The data source determination unit 851 is connected to the first sequence unit 852 .

[0134] The data source determination unit 851 is used to determine the data source corresponding to each security service indicator.

[0135] The first sequence unit 852 is used to determine the production sequence of the target security business indicators based on the number of security business indicators corresponding to the data sources in descending order.

[0136] The indicator module 86 is used to produce the target safety business indicator based on the production sequence of the target safety business indicator, according to the common process and the personalized method in the production of the target safety business indicator.

[0137] The indicator module 86 is specifically used to run the general code and load the general file running template containing the indicator production configuration information of the target security business indicator, so as to produce the target security business indicator according to the common process and the indicator production configuration information of the target security business indicator.

[0138] When there are multiple security business indicators, the description file includes a reference calculation relationship between corresponding security business indicators, and the target security business indicator is a reference indicator in the reference calculation relationship, the indicator module 86 includes: a number determination unit 861, a second sequence unit 862, a first production unit 863, and a second production unit 864. The number determination unit 861, the second sequence unit 862, the first production unit 863, and the second production unit 864 are connected in sequence.

[0139] When there are multiple referenced indicators, the number determination unit 861 is used to determine the number of times each referenced indicator is cited.

[0140] The second sequence unit 862 is used to determine the production sequence of each referenced indicator based on the order of the number of references from most to least.

[0141] The first production unit 863 is used to produce each referenced indicator in the reference calculation relationship based on the production order of each referenced indicator and in accordance with the common process and the personalized method in the production of the target security business indicator.

[0142] The second production unit 864 is used to produce the target security business indicator according to the personalized method in the production of the target security business indicator and the produced referenced indicator.

[0143] It should be noted here that the description of the above device embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the device embodiment of the present application, please refer to the description of the method embodiment of the present application for understanding.

[0144] Based on the same inventive concept, an embodiment of the present application also provides an electronic device.

[0145] Fig. 9 This is a schematic diagram of the structure of the electronic device in the embodiment of the present application, see Fig. 9 As shown, the electronic device may include: a processor 91, a memory 92, and a bus 93; wherein the processor 91 and the memory 92 communicate with each other via the bus 93; the processor 91 is used to call program instructions in the memory 92 to execute the methods in one or more of the above embodiments.

[0146] It should be noted that the description of the above electronic device embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the electronic device embodiment of this application, please refer to the description of the method embodiment of this application for understanding.

[0147] Based on the same inventive concept, an embodiment of the present application further provides a computer-readable storage medium, which may include: a stored program; wherein, when the program is running, the device where the storage medium is located is controlled to execute the method in one or more of the above embodiments.

[0148] It should be noted here that the description of the above storage medium embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the storage medium embodiment of the present application, please refer to the description of the method embodiment of the present application for understanding.

[0149] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A method for producing a security service indicator, characterized in that: The method is applied to a security business indicator production system, the system includes a general code and a description file, the general code is used to describe the common process in the production of different security business indicators, the description file is used to describe the personalized way in the production of different security business indicators, the method includes: Obtain a description file containing personalized methods in the production of target security business indicators, as well as common codes; The general code is run, and the obtained description file is called to produce the target security business indicator according to the common process and the personalized method in the production of the target security business indicator.

2. The method according to claim 1, characterized in that The description file includes indicator production configuration information and a general file operation template; the running of the general code and calling the obtained description file to produce the target security business indicator according to the common process and the personalized method in the production of the target security business indicator include: Run the general code and load the general file running template containing the indicator production configuration information of the target security business indicator to produce the target security business indicator according to the common process and the indicator production configuration information of the target security business indicator.

3. The method according to claim 2, characterized in that Before obtaining the description file containing the personalized method in the production of the target security business indicator, the method further includes: In response to the indicator production configuration instruction, output the general file operation template; Receive the indicator production configuration information and / or template content modification information of the target security business indicator input based on the general file running template, and generate the description file.

4. The method according to any one of claims 1 to 3, characterized in that The number of the security business indicators is multiple, the description file includes a reference calculation relationship between corresponding security business indicators, and the target security business indicator is a reference indicator in the reference calculation relationship; the production of the target security business indicator according to the common process and the personalized method in the production of the target security business indicator includes: Producing the referenced indicator in the reference calculation relationship according to the common process and the personalized method in the production of the target security business indicator; The target security business indicator is produced according to the personalized method in the production of the target security business indicator and the referenced indicator produced.

5. The method according to claim 4, characterized in that The number of the referenced indicators is multiple; before producing the referenced indicators in the reference calculation relationship according to the common process and the personalized method in the production of the target security business indicator, the method further includes: Determine the number of citations for each citation indicator; Determine the production order of each cited indicator based on the order of the number of citations from most to least; The producing of the referenced indicator in the reference calculation relationship according to the common process and the personalized method in the production of the target security business indicator includes: Based on the production order of each referenced indicator, the production of each referenced indicator in the reference calculation relationship is performed according to the common process and the personalized method in the production of the target security business indicator.

6. The method according to any one of claims 1 to 3, characterized in that The personalized mode includes the indicator production frequency and the indicator production time range; before running the general code, the method further includes: Obtaining the indicator production frequency and indicator production time range of the target security business indicator from the obtained description file; Based on the indicator production frequency and the indicator production time range, generating a scheduled collection task for the target security business indicator; The running of the general code and calling the acquired description file includes: When the timed collection task is triggered, the general code is run and the acquired description file is called.

7. The method according to any one of claims 1 to 3, characterized in that The number of the security business indicators is multiple, and the data sources corresponding to the multiple security business indicators are not completely the same; before producing the target security business indicator according to the common process and the personalized method in the production of the target security business indicator, the method also includes: Determine the data source corresponding to each security business indicator; Determining a production order of the target security business indicators based on the number of security business indicators corresponding to the data sources in descending order; The producing of the target security business indicator according to the common process and the personalized method in the producing of the target security business indicator includes: Based on the production sequence of the target security business indicator, the target security business indicator is produced according to the common process and the personalized method in the production of the target security business indicator.

8. A security business indicator production device, characterized in that: The device is applied to a security business indicator production system, the system includes a general code and a description file, the general code is used to describe the common process in the production of different security business indicators, the description file is used to describe the personalized way in the production of different security business indicators, and the device includes: An acquisition module, used to acquire a description file containing a personalized method in the production of a target security business indicator, and a general code; The production module is used to run the general code and call the obtained description file to produce the target security business indicator according to the common process and the personalized method in the production of the target security business indicator.

9. An electronic device, characterized in that: The electronic device comprises: a processor, a memory, and a bus; wherein the processor and the memory communicate with each other via the bus; and the processor is used to call program instructions in the memory to execute the method as claimed in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The storage medium comprises: a stored program; wherein, when the program is running, the device where the storage medium is located is controlled to execute the method as claimed in any one of claims 1 to 7.