Polling calling method and system for task type interface
By dynamically adjusting the polling frequency and building a specific secure atomic capability model, the problem of XDR/SOAR interface calling efficiency and resource waste is solved, and efficient task processing and resource optimization are achieved.
Patent Information
- Application Number
- CN202410854148.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-09-17
AI Technical Summary
The existing technology cannot adapt to changes in processing speed and task volume when XDR/SOAR calls task type interfaces, resulting in resource waste, and frequent access leads to bandwidth waste or processing delays.
Through the interaction of initial configuration and subsequent action modules, the polling frequency is dynamically adjusted, combined with machine learning to build a specific safe atomic capability model, optimize the task model, and adaptively adjust the interface call frequency and resource allocation.
It effectively improves the execution efficiency of the XDR/SOAR processing process, reduces bandwidth waste, accurately matches the processing capabilities of specific interfaces, controls resources, reduces costs and improves efficiency.
Smart Images

Figure CN118656235A
Abstract
Description
Technical Field
[0001] The present application belongs to the field of artificial intelligence technology, and in particular, relates to a polling calling method and system for a task type interface. Background Art
[0002] When XDR / SOAR performs a disposal call, it often takes seconds or minutes to wait, and polling queries are required according to the return status and progress of the called atomic capability. The conventional polling query method is to adopt a fixed configuration method. If the progress is not completed, the query interface is called again at a fixed interval. This method is the most direct, and its call overhead and efficiency are fixed. Using this fixed configuration method, the actual processing time will also change when the processing speed of the atomic capability or the amount of tasks to be processed changes, and the interface caller (XDR / SOAR) does not adapt to this change in processing time, which will lead to a waste of resources. When the set polling frequency is too high and the actual processing time of the called atomic capability is long, it will lead to too many requests and waste of communication bandwidth; when the set polling frequency is too low and the actual processing time of the called atomic capability is short, it will lead to the inability to process the subsequent serial disposal in time, wasting disposal time. It can be seen that the current interface caller (XDR / SOAR) does not have a good task type interface call solution to adapt the atomic capability to the processing of specific tasks and perform customized optimization. How to design a suitable task type interface calling scheme has become a very important content when XDR / SOAR handles polling calls. Summary of the invention
[0003] In view of the above-mentioned deficiencies in the prior art, the present application optimizes the polling calling scheme and provides a polling calling method and system for a task type interface for performance adjustment in the XDR / SOAR field, which is applied to scenarios such as XDR / SOAR that need to call other secure atomic capabilities for processing.
[0004] In a first aspect of the present application, a polling calling method of a task type interface is proposed, the method comprising:
[0005] S1, initializing the configuration parameters of each module in the polling call system;
[0006] S2, the task handling module sends a task request to the atomic capability task module, and sends a data request to the atomic capability task module to obtain the processing progress and status information of the task;
[0007] S3, the task handling module transfers to the subsequent action handling module to perform subsequent actions according to the processing progress and status information.
[0008] Further, in step S3, the subsequent action processing module is turned to perform subsequent actions according to the processing progress and status information, which specifically includes:
[0009] If the processing progress and status information are in a completed state, the subsequent action processing module performs subsequent actions;
[0010] If the processing progress and status information are in an unfinished state, the atomic capability task module is called again.
[0011] Furthermore, in step S1, the initialization configuration includes:
[0012] Initializing and configuring the atomic capability task module, and configuring interface configuration information for accessing the atomic capability;
[0013] Initializing the configuration of the task handling module, wherein the initialization configuration parameters include atomic capability parameter data, model evaluation data, and model calibration data;
[0014] Initialize the subsequent processing action module and configure the interface configuration information of the subsequent processing action.
[0015] Further, the task handling module sends a data request to the atomic capability task module;
[0016] The task handling module receives original task data from the atomic capability task module, parses the processing progress and status information from the original task data, records and updates task parameters, and iterates the task model with the updated parameters.
[0017] Furthermore, the task model iteration specifically includes: comparing the evaluation progress calculated by the task model with the actual progress returned by the atomic capability, judging whether the deviation is within a reasonable range; if the evaluation result is not within a reasonable range, calibration is required, and the calibrated task model is output; if the evaluation result is within a reasonable range, calibration is not required, and the task model is directly output.
[0018] Furthermore, the calculation of the evaluation progress includes:
[0019] When the atomic capability task module is called for the first time, the initial calling time of calling the atomic capability task module is recorded, and the initial calling time is associated with the initial processing progress and initial status information of the task processing obtained from the atomic capability and stored;
[0020] When the atomic capability task module is called for the second time, the current calling time is recorded, and the time difference between the current calling time and the initial calling time is calculated;
[0021] The processing speed of calling the atomic capability task module is calculated based on the time difference and progress difference obtained from the first call.
[0022] Furthermore, the calculation formula of the processing speed is as follows:
[0023] Processing speed = (currently returned progress - initial call progress) / (current call time - initial call time)
[0024] The estimated time for the final calling of the atomic capability task module to complete the processing is obtained based on the processing speed.
[0025] Furthermore, the calculation formula for the time estimate is as follows:
[0026] Time estimate = (total progress – currently returned progress) / processing speed
[0027] Speed assessment verification points are set based on the time estimate.
[0028] Furthermore, the median time point was used as the confirmation point for speed assessment;
[0029] When the time estimation is halfway through, the atomic capability task module is called again to return the third actual progress. By comparing the difference between the third actual progress and the third evaluation progress with the preset evaluation reasonable threshold, the third evaluation progress is the evaluation progress at the set speed evaluation confirmation point. The calculation formula is as follows:
[0030] |The third assessment progress - the third actual progress | <Assessment reasonable threshold
[0031] If the difference between the third actual progress and the third evaluation progress is less than the preset evaluation reasonable threshold, then when the atomic capability completes the task processing, the time consumed by the atomic capability to complete the task is obtained;
[0032] If the difference between the third actual progress and the third assessed progress is greater than or equal to the preset reasonable assessment threshold, the processing speed will be re-estimated and a new speed assessment confirmation point will be set.
[0033] The second aspect of the present application proposes a polling calling system for a task type interface, which is used to implement the method of the first aspect mentioned above. The system includes an atomic capability task module, a task handling module and a subsequent handling action module.
[0034] The beneficial effects of this application are as follows:
[0035] (1) By setting the polling frequency in an adaptive manner, the efficiency of accessing atomic capabilities can be effectively improved, and bandwidth waste caused by invalid access can be reduced, thereby further improving the execution efficiency of the XDR / SOAR processing process and avoiding bandwidth waste caused by frequent access to atomic capabilities.
[0036] (2) Through machine learning, a model for XDR / SOAR to call specific security processing capabilities is constructed, so that it can accurately match the processing capabilities of specific interfaces; by knowing the processing capabilities, the resources linked to it can be effectively controlled, further reducing costs and increasing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] The accompanying drawings are only used to illustrate specific embodiments and are not considered to limit the present application. In the entire drawings, the same reference symbols represent the same components. Obviously, the drawings described below are only some embodiments recorded in the embodiments of the present application. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings.
[0038] Figure 1 This is a schematic diagram of the overall process of the task type interface polling call solution;
[0039] Figure 2 It is a schematic diagram of the operation flow of the task handling module;
[0040] Figure 3 Schematic diagram of the operation flow of the model iteration module. DETAILED DESCRIPTION
[0041] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present application, the technical solutions of the present application will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. It should be understood that these descriptions are only exemplary and are not intended to limit the scope of the present application. Based on the embodiments of the present application, all other embodiments obtained by ordinary technicians in the field without making creative work should fall within the scope of protection of the present application.
[0042] Furthermore, in the following description, descriptions of well-known structures and technologies are omitted to avoid unnecessarily confusing the concepts disclosed in the present application.
[0043] In the description of the present application, it should be noted that, unless otherwise expressly specified and limited, the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inside", "outside" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, which are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present application. In addition, the terms "first", "second", and "third" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance. The terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be an indirect connection through an intermediate medium, or it can be a connection between the two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood according to specific circumstances.
[0044] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of methods and systems consistent with some aspects of the present application as detailed in the appended claims.
[0045] Before fully and in detail describing the technical solution of this application, the technical terms appearing in the technical solution are explained as follows:
[0046] XDR (Extended Detection and Response): XDR is based on big data architecture and builds the core platform of the security operation center. It can provide access capabilities for five categories of security data: assets, logs, traffic, threat intelligence, context and management, and complete the construction of six core analysis capabilities based on traffic, threats, user behavior, rules, indicator system and business. It meets the scenarios of Information Security Protection 2.0 and security operation center of key industries, and builds a network-oriented, business-oriented and customer-oriented full-network end-to-end capability platform for national key industries and enterprises based on threat intelligence empowerment.
[0047] SOAR (Security Orchestration, Automation and Response): enables enterprise organizations to collect alarm information from systems such as SIEM, or provide functions including security incident response and threat intelligence through integration and automated coordination with other technologies.
[0048] In a first aspect, the present invention provides a polling calling method of a task type interface, the method is applied to a polling calling system, the system includes an atomic capability task module, a task handling module and a subsequent handling action module, such as Figure 1 As shown, the method comprises the following steps:
[0049] S1, initializing the configuration parameters of each module in the polling call system;
[0050] In the above steps, the initialization configuration includes:
[0051] Initializing and configuring the atomic capability task module, and configuring interface configuration information for accessing the atomic capability;
[0052] Initializing the configuration of the task handling module, wherein the initialization configuration parameters include atomic capability parameter data, model evaluation data, and model calibration data;
[0053] Initialize the subsequent processing action module and configure the interface configuration information of the subsequent processing action.
[0054] S2, the task handling module sends a task request to the atomic capability task module, and sends a data request to the atomic capability task module to obtain the processing progress and status information of the task;
[0055] The processing flow of the task handling module is as follows: Figure 2 As shown, specifically including:
[0056] The task handling module sends a data request to the atomic capability task module;
[0057] The task handling module receives original task data from the atomic capability task module, parses the processing progress and status information from the original task data, records and updates task parameters, and iterates the task model with the updated parameters.
[0058] The processing flow of the model iteration module is as follows Figure 3 As shown, specifically including:
[0059] Compare the evaluation progress calculated by the task model with the actual progress returned by the atomic capability to determine whether the deviation is within a reasonable range. If the evaluation result is not within a reasonable range, calibration is required, and the calibrated task model is output; if the evaluation result is within a reasonable range, calibration is not required, and the task model is directly output;
[0060] The model evaluation is performed using conventional evaluation methods, including but not limited to:
[0061] (1)Reliability Diagram
[0062] Confirm the accuracy of the model through probability deviation;
[0063] (2) Logarithmic Loss
[0064] The model deviation is calculated using the Logarithmic Loss formula, which is as follows:
[0065]
[0066] Among them, y i is the true label of the sample. The value is 0 or 1; p i is the probability of the model predicting a positive result, and N is the number of samples;
[0067] The above calculation formula is essentially to calculate the cross entropy loss, which measures the gap between the two distributions. If y i = 0 and p i If it is close to 1, the loss will approach infinity, and vice versa.
[0068] (3)Brier Score
[0069] The model deviation is calculated using the Brier Score formula, which is as follows:
[0070]
[0071] Among them, y i is the true label of the sample, which takes the value of 0 or 1; p i is the probability that the model predicts a positive value. The above calculation formula directly calculates the mean square error between the true label and the predicted probability. The smaller the Loss, the better the calibration effect.
[0072] The model calibration is performed using conventional calibration methods, including but not limited to PlattCalibration and Isotonic Regression.
[0073] There are multiple options for model evaluation and calibration methods, which can be selected based on different security atomic capabilities, different scenarios and test results.
[0074] S3, the task handling module turns to the subsequent action handling module to perform subsequent actions according to the processing progress and status information;
[0075] In the above steps, the subsequent actions are transferred to the subsequent action handling module according to the processing progress and status information, including:
[0076] If the processing progress and status information are in a completed state, the subsequent action processing module performs subsequent actions;
[0077] If the processing progress and status information are in an unfinished state, the atomic capability task module is called again.
[0078] When the atomic capability task module is called for the first time, the initial calling time of calling the atomic capability task module is recorded, and the initial calling time is associated with the initial processing progress and initial status information of the task processing obtained from the atomic capability and stored;
[0079] When the atomic capability task module is called for the second time, the current calling time is recorded, and the time difference between the current calling time and the initial calling time is calculated;
[0080] The processing speed of calling the atomic capability task module is calculated based on the time difference and progress difference obtained from the first call. The formula is as follows:
[0081] Processing speed = (progress of the second return - progress of the first return) / (second call time - first call time)
[0082] Through the processing speed, we can get the estimated time estimate of the final processing completion of the atomic capability task module, that is,
[0083] Time estimate = (total progress - progress of the second return) / processing speed
[0084] Next, a speed assessment confirmation point is set. This application sets the median time point, that is, the atomic capability task module is called again (for the third time) at half the estimated time. At this time, the third actual progress will be returned. By comparing the difference between the third actual progress and the third assessment progress with the preset reasonable assessment threshold, the third assessment progress is the assessment progress at the set speed assessment confirmation point, that is:
[0085] |The third assessment progress - the third actual progress | <Assessment reasonable threshold
[0086] If the difference is within a reasonable range, the time it takes for the atomic capability to complete the task is obtained when the atomic capability completes the task processing; if the difference is not within a reasonable range, the processing speed will be re-estimated and a new evaluation point will be set.
[0087] Through the above method, when the model evaluation is accurate, the number of requests will be 4. When the model evaluation has 1 deviation, the number of requests will increase by 1 to 5.
[0088] It is worth noting that the model will become more and more accurate as the number of calls increases. As the number of calls to the atomic capacity task module increases, a model based on the processing capacity of a specific atomic capacity will be built through machine learning technology. The model will be built in combination with information such as the number of tasks and processing time of the specific atomic capacity. The model parameters will be optimized through continuous calls. At the same time, even if a specific atomic capacity task module undergoes a major change (suddenly increasing or decreasing the processing capacity), the model can be adapted in subsequent use and new corrections can be made.
[0089] In the second aspect, the present application proposes a polling calling system for a task type interface, such as Figure 2 As shown, the system includes an atomic capability task module, a task handling module and a subsequent handling action module.
[0090] In the above scheme, the interface access density is set by customizing redundancy, setting the minimum access window, etc., and the evaluation point is set by dichotomy. The polling frequency is set in an adaptive manner, which can effectively adapt to the changes in the processing speed of atomic capabilities; effectively improve the efficiency of accessing atomic capabilities, reduce the bandwidth waste caused by invalid access, and further improve the execution efficiency of XDR / SOAR's disposal process, while avoiding bandwidth waste caused by frequent access to atomic capabilities. A model for XDR / SOAR to call specific security disposal capabilities is constructed through machine learning. Through the information fed back by the model, the model itself is continuously optimized so that it can achieve accurate matching of the processing capabilities of specific interfaces. By knowing the processing capabilities, it is possible to effectively control the resources linked to it, further reducing costs and increasing efficiency.
[0091] In a third aspect, the present application proposes an electronic device, comprising: a memory and one or more processors.
[0092] One or more application programs are stored in the memory, and the one or more application programs are suitable for being executed by the one or more processors to implement the method described in the first aspect.
[0093] The electronic device includes: a processor and a memory, wherein the processor and the memory are connected, for example, via a bus.
[0094] The structure of the electronic device does not constitute a limitation on the embodiments of the present application.
[0095] The processor may be a CPU, a general-purpose processor, a DSP, an ASIC, an FPGA or other programmable logic device, a transistor logic device, a hardware component or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. The processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.
[0096] The bus may include a path to transmit information between the above components. The bus may be a PCI bus or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc.
[0097] The memory can be a ROM or other type of static storage device that can store static information and instructions, a RAM or other type of dynamic storage device that can store information and instructions, or an EEPROM, CD-ROM or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to this.
[0098] In a fourth aspect, the present application proposes a computer-readable storage medium having a computer program stored thereon, wherein the computer program can be loaded by a processor and execute the method described in the first aspect.
[0099] In summary, this application builds a model of XDR / SOAR calling specific security processing capabilities through machine learning. Through the information fed back by the model, the model itself is continuously optimized so that it can accurately match the processing capabilities of specific interfaces. By knowing the processing capabilities, the resources linked to it can be effectively controlled, further reducing costs and increasing efficiency.
[0100] The applicant of this application has made a detailed explanation and description of the implementation examples of this application in conjunction with the drawings in the specification. However, those skilled in the art should understand that the above implementation examples are only preferred implementation schemes of this application, and the detailed description is only to help readers better understand the spirit of this application, and it is not a limitation on the scope of protection of this application. On the contrary, any improvements or modifications based on the inventive spirit of this application should fall within the scope of protection of this application.
Claims
1. A polling call method for a task type interface, It is characterized in that The method includes: S1, initializing the configuration parameters of each module in the polling call system; S2, the task handling module sends a task request to the atomic capability task module, and sends a data request to the atomic capability task module to obtain the processing progress and status information of the task; S3, the task handling module transfers to the subsequent action handling module to perform subsequent actions according to the processing progress and status information.
2. The method according to claim 1, It is characterized in that In step S3, the subsequent action processing module is turned to perform subsequent actions according to the processing progress and status information, which specifically includes: If the processing progress and status information are in a completed state, the subsequent action processing module performs subsequent actions; If the processing progress and status information are in an unfinished state, the atomic capability task module is called again.
3. The method according to claim 1, It is characterized in that In step S1, the initialization configuration includes: Initializing and configuring the atomic capability task module, and configuring interface configuration information for accessing the atomic capability; Initializing the configuration of the task handling module, wherein the initialization configuration parameters include atomic capability parameter data, model evaluation data, and model calibration data; Initialize the subsequent processing action module and configure the interface configuration information of the subsequent processing action.
4. The method according to claim 1, It is characterized in that The task handling module sends a data request to the atomic capability task module; The task handling module receives original task data from the atomic capability task module, parses the processing progress and status information from the original task data, records and updates task parameters, and iterates the task model with the updated parameters.
5. The method according to claim 4, It is characterized in that The task model iteration specifically includes: comparing the evaluation progress calculated by the task model with the actual progress returned by the atomic capability, judging whether the deviation is within a reasonable range; if the evaluation result is not within a reasonable range, calibration is required, and the calibrated task model is output; if the evaluation result is within a reasonable range, calibration is not required, and the task model is directly output.
6. The method according to claim 5, It is characterized in that The calculation of the assessment progress includes: When the atomic capability task module is called for the first time, the initial calling time of calling the atomic capability task module is recorded, and the initial calling time is associated with the initial processing progress and initial status information of the task processing obtained from the atomic capability and stored; When the atomic capability task module is called for the second time, the current calling time is recorded, and the time difference between the current calling time and the initial calling time is calculated; The processing speed of calling the atomic capability task module is calculated based on the time difference and progress difference obtained from the first call.
7. The method according to claim 6, It is characterized in that The calculation formula of the processing speed is as follows: Processing speed = (currently returned progress - initial call progress) / (current call time - initial call time) The estimated time for the final calling of the atomic capability task module to complete the processing is obtained based on the processing speed.
8. The method according to claim 7, It is characterized in that The calculation formula for the time estimate is as follows: Time estimate = (total progress – currently returned progress) / processing speed Speed assessment verification points are set based on the time estimate.
9. The method according to claim 7, It is characterized in that The median time point was used as the confirmation point for velocity assessment; When the time estimation is halfway through, the atomic capability task module is called again to return the third actual progress. By comparing the difference between the third actual progress and the third evaluation progress with the preset evaluation reasonable threshold, the third evaluation progress is the evaluation progress at the set speed evaluation confirmation point. The calculation formula is as follows: |The third assessment progress - the third actual progress | <Assessment reasonable threshold If the difference between the third actual progress and the third evaluation progress is less than the preset evaluation reasonable threshold, then when the atomic capability completes the task processing, the time consumed by the atomic capability to complete the task is obtained; If the difference between the third actual progress and the third assessed progress is greater than or equal to the preset reasonable assessment threshold, the processing speed will be re-estimated and a new speed assessment confirmation point will be set.
10. A polling calling system of a task type interface, the system being used to implement the method of any one of claims 1 to 9, It is characterized in that The system includes an atomic capability task module, a task handling module and a subsequent handling action module.
Citation Information
Cited By
Harbor-approaching industry layout system and method based on big data
CN119313090A
