Method, device and equipment for determining resource allocation strategy
By building a resource allocation model and optimization algorithm to dynamically match alarms and security resources, the problem of low utilization and efficiency of the SOAR system when resources change and alarm surges are solved, and the reliability of the system is improved.
Patent Information
- Application Number
- CN202311475954.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-07
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2043-11-07
AI Technical Summary
The SOAR system cannot dynamically configure security resources when security resources change and alarms surge, resulting in low resource utilization and alarm processing efficiency, and reducing system reliability.
By building a resource allocation model and using optimization algorithms to determine security resource allocation strategies, alarms and security resources are dynamically matched to ensure reasonable utilization of resources and timely response.
It improves the utilization rate of security resources and alarm processing efficiency, enhances the reliability of the SOAR system, and can maintain efficient processing when security resources change and alarm surges.
Smart Images

Figure CN118804372A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of network security technology, and in particular, relates to a method, device and equipment for determining a resource allocation strategy. Background Art
[0002] Security Orchestration, Automation and Response (SOAR) is a fusion of three technologies / tools: security orchestration and automation, security incident response platform, and threat intelligence platform. In the SOAR execution engine, the process processing model for a certain threat scenario is first defined through visual process orchestration. When the model is hit, automated research and evidence collection begins, and a series of automated responses are performed based on the results of the forensic data. Although this series of response actions target different threat scenarios, the overall response actions for device linkage mainly include four categories: global blocking, host isolation, host cleanup, and host reinforcement, and are accompanied by some other auxiliary responses, such as creating work orders, early warning notifications, manual review, etc. The above are the known implementation methods and models in SOAR solutions.
[0003] Currently, SOAR's response methods and response devices are fixed in the process, and it is impossible to dynamically configure security resources. Therefore, when security resources change and / or the number of alarms increases, there may be idle security resources and the alarms cannot be processed in a timely manner, resulting in low resource utilization and alarm processing efficiency, reducing the reliability of SOAR. Summary of the invention
[0004] The embodiments of the present application provide a method, apparatus, device, computer-readable storage medium, and computer program product for determining a resource allocation strategy, which can dynamically configure security resources, improve the utilization rate of security resources and the efficiency of alarm processing, and improve the reliability of SOAR.
[0005] In a first aspect, an embodiment of the present application provides a method for determining a resource allocation strategy, the method comprising:
[0006] In the case of receiving N alarms, determining M security resources corresponding to the N alarms, the security resources being used to process the alarms, where M and N are positive integers;
[0007] Obtaining a processing success rate function corresponding to the N alarms and a processing capacity corresponding to each of the M security resources, wherein the processing success rate function is used to determine a processing success rate of the M security resources for the N alarms, and the processing capacity is a maximum number of alarms that can be processed simultaneously by the security resources;
[0008] A resource allocation model is constructed with the processing success rate function as the objective function and with the number of alarms processed simultaneously by the security resources being no greater than the processing capacity as a constraint condition;
[0009] The maximization problem of the resource allocation model is solved using an optimization algorithm, and the optimal solution is determined as the allocation strategy of the M security resources.
[0010] In a possible implementation manner, obtaining the processing success rate function corresponding to the N alarms includes:
[0011] Obtaining a processing result function corresponding to the alarm, wherein the processing result function is used to determine a processing result of the security resource on the alarm;
[0012] The processing success rate function is constructed based on the processing result function and N.
[0013] In a possible implementation, the step of obtaining a processing result function corresponding to the alarm includes:
[0014] Acquire a stay time function and a stay time threshold corresponding to the alarm, wherein the stay time function is used to determine the stay time of the alarm in the security resource;
[0015] The processing result function is constructed based on the stay time function and the stay time threshold.
[0016] In a possible implementation manner, the acquiring the stay time function corresponding to the alarm includes:
[0017] In the case where the security resource processes the alarm in a first-come-first-served manner and the alarms arrive at the security resource in a negative exponential distribution, obtaining an average processing rate of the security resource, an average arrival rate of the alarms, and a processing capacity;
[0018] Based on the M / M / S queue model, constructing an average sojourn time function corresponding to the security resource according to the average processing rate, the average arrival rate of alarms and the processing capacity;
[0019] An average sojourn time function corresponding to the safety resource is determined as a sojourn time function of the alarm corresponding to the safety resource.
[0020] In a possible implementation, the objective function is a fitness function, and the optimization algorithm is a genetic algorithm.
[0021] In a possible implementation, solving the maximization problem of the resource allocation model by using an optimization algorithm and determining the optimal solution as the allocation strategy of the M security resources includes:
[0022] Randomly generate a first population, the first population includes a plurality of individuals, each of the individuals corresponds to a resource allocation strategy;
[0023] Substituting a plurality of individuals in the first population into the fitness function to calculate and obtain a plurality of first fitness values;
[0024] Determine the first individuals corresponding to the first a% first fitness values having the largest values among the plurality of first fitness values;
[0025] Performing crossover and mutation on the first population to obtain a second population;
[0026] Substituting a plurality of individuals in the second population into the fitness function to calculate and obtain a plurality of second fitness values;
[0027] Determine the second individuals corresponding to the first a% second fitness values with the smallest values among the plurality of second fitness values;
[0028] replacing a% of the second individuals in the second population with a% of the first individuals to obtain a third population;
[0029] Taking the third population as the first population, and returning to execute the step of substituting a plurality of individuals in the first population into the fitness function until the number of iterations reaches a preset iteration threshold, thereby obtaining a target population;
[0030] The individual with the largest fitness value in the target population is determined as the allocation strategy for the M security resources.
[0031] In a possible implementation manner, when N alarms are received, determining M security resources corresponding to the N alarms includes:
[0032] When receiving the alarm information, determining N alarms in the alarm information and state information and attribute information corresponding to each of the plurality of security resources in the security resource set;
[0033] For each of the security resources, matching the alarm information with the attribute information based on the state information;
[0034] The security resources corresponding to the M attribute information matching the alarm information are determined as the M security resources corresponding to the N alarms.
[0035] In a second aspect, an embodiment of the present application provides a device for determining a resource allocation strategy, the device comprising:
[0036] A first determination module is used to determine M security resources corresponding to the N alarms when N alarms are received, wherein the security resources are used to process the alarms, and M and N are positive integers;
[0037] an acquisition module, used to acquire a processing success rate function corresponding to the N alarms and a processing capacity corresponding to each of the M security resources, wherein the processing success rate function is used to determine a processing success rate of the M security resources for the N alarms, and the processing capacity is a maximum number of alarms that can be processed simultaneously by the security resources;
[0038] A construction module, used to construct a resource allocation model with the processing success rate function as an objective function and with the number of alarms processed simultaneously by the security resources being no greater than the processing capacity as a constraint condition;
[0039] The second determination module is used to solve the maximization problem of the resource allocation model by using an optimization algorithm, and determine the optimal solution as the allocation strategy of the M security resources.
[0040] In a third aspect, an embodiment of the present application provides an electronic device, the device comprising: a processor and a memory storing computer program instructions;
[0041] When the processor executes the computer program instructions, the processor implements any possible implementation method of the first aspect described above.
[0042] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having computer program instructions stored thereon, which, when executed by a processor, implements a method in any possible implementation method of the first aspect described above.
[0043] In a fifth aspect, an embodiment of the present application provides a computer program product. When instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes a method as any possible implementation method in the first aspect above.
[0044] The method, device, equipment, computer-readable storage medium and computer program product for determining the resource allocation strategy of the embodiment of the present application obtain the processing success rate function corresponding to the N alarms and the processing capacity corresponding to each of the M security resources when N alarms are received, and construct a resource allocation model with the processing success rate function as the objective function and the constraint that the number of alarms processed simultaneously by the security resources is not greater than the processing capacity, and then solve the maximization problem of the resource allocation model using the optimization algorithm, determine the optimal solution as the allocation strategy of the M security resources, and dynamically configure the security resources. Since the alarm and the security resources are optimally matched each time after receiving the alarm, even when the security resources change and / or the number of alarms surges, it is possible to ensure both the timeliness of the alarm processing and the rationality of the resource utilization, thereby improving the utilization rate of the security resources and the efficiency of the alarm processing, and improving the reliability of SOAR. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0046] Figure 1 It is a schematic diagram of the overall structure of a resource allocation algorithm based on a security orchestration engine provided in an embodiment of the present application;
[0047] Figure 2 It is a structural diagram of a resource allocation engine provided in an embodiment of the present application;
[0048] Figure 3 It is a flowchart of a method for determining a resource allocation strategy provided in an embodiment of the present application;
[0049] Figure 4 It is a structural diagram of a device for determining a resource allocation strategy provided in an embodiment of the present application;
[0050] Figure 5 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0051] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.
[0052] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0053] As mentioned in the background technology section, at present, SOAR's response methods and response devices are fixed in the process, and there is little consideration for the availability of security resources, load balancing, processing response time, etc. Specifically, in the planning process definition stage, security operations personnel must first confirm whether the security equipment is available and have a deep understanding of the security equipment functions, equipment interfaces, etc.; the premise for the smooth execution of the process is that the equipment is online and available, and security operations personnel need to monitor whether the alarm equipment is available.
[0054] The main problems are as follows:
[0055] 1) Lack of flexibility in security equipment configuration. New security equipment goes online and old equipment goes offline, which requires manual configuration in the process (script). On the one hand, security operators are required to understand historical scripts and the functions and interfaces of new and old equipment. However, security operators generally focus on the formulation of security rules, and it takes extra time to understand alarm equipment. On the other hand, manual configuration requires changes to the script, which is prone to errors and omissions, causing problems in script operation and failure to handle alarms in a timely manner.
[0056] 2) Surge requests cannot be allocated dynamically. When the number of alarms to be processed is small, the fixed security device call solution can cope well, but when the number of security processing requests surges, alarm processing will become a bottleneck. Due to the designated security processing device, the surge in security requests may be concentrated on a certain security device, resulting in poor real-time performance or even device downtime. For example, in the scenario of a DDoS attack, the number of requests to block the source IP surges. Since the alarm device call solution is fixed in the script, these requests are concentrated on a specific processing device, which will cause a serious decrease in the timeliness of processing or even a crash.
[0057] Thus, in order to solve the problems of the prior art, the embodiments of the present application provide a method, apparatus, device, computer-readable storage medium and computer program product for determining a resource allocation strategy. Among them, the method for determining a resource allocation strategy can be implemented based on a resource allocation engine. The resource allocation engine can be set in a security orchestration engine.
[0058] The overall structural diagram of the resource allocation algorithm based on the security orchestration engine can be shown as follows: Figure 1 As shown. Figure 1 It can be seen that compared with the current technical solution, the embodiment of the present application adds a resource allocation engine to manage security resources. When the process (script) executes to the "issuing processing commands" link, the current technical solution will directly call the security resources specified in the script to process the alarm. The solution in the embodiment of the application adds a "resource allocation engine" to manage security resources and realize automatic allocation of security resources.
[0059] In addition, the structural diagram of the resource allocation engine can be as follows Figure 2 As shown. Figure 2 The explanation of each module is as follows.
[0060] Resource collection: Resource collection is a collection of security resources, a combination of various security devices (blocking devices, cleaning devices, etc.). Security resources have the following attributes: maximum number of connections (processing capacity), processing alarm type, processing speed, processing parameters, etc.
[0061] Resource management module: manages resource collections and pushes resource status to resource adapters. It includes the following functions: (1) resource registration, management of alarm device addition or deletion, management of alarm device interface changes, etc.; (2) survival check, regular check of the status of each security device (whether it is online, whether it has reached the maximum capacity, etc.), and confirmation of whether the device is available; (3) status management, update the security device status according to the survival check results; (4) push security device status to resource adapters.
[0062] Alarm management module: collects alarm information that needs to be processed, including alarm type, processing measures, processing requirements, etc., and pushes the collected alarm information to the resource adapter.
[0063] Resource adapter: processes the information pushed by the resource management module and the alarm management module, and matches the resource subset for the alarm according to the alarm processing requirements (the processing measures to be taken, the timeliness of the processing, etc.).
[0064] Resource scheduler: Based on the matching results pushed by the resource adapter and a certain security resource allocation algorithm, the alarm is allocated to a specific alarm device.
[0065] The following is an introduction to the method for determining the resource allocation strategy provided in the embodiment of the present application.
[0066] Figure 3 FIG. 1 is a flow chart showing a method for determining a resource allocation strategy provided by an embodiment of the present application. Figure 3 As shown, the method for determining the resource allocation strategy provided in the embodiment of the present application includes the following steps:
[0067] S310, when N alarms are received, determining M security resources corresponding to the N alarms, where the security resources are used to process the alarms, and M and N are positive integers;
[0068] S320, obtaining a processing success rate function corresponding to the N alarms and a processing capacity corresponding to each of the M security resources, wherein the processing success rate function is used to determine the processing success rate of the M security resources for the N alarms, and the processing capacity is the maximum number of alarms that the security resources can process simultaneously;
[0069] S330, constructing a resource allocation model with the processing success rate function as the objective function and the number of alarms processed simultaneously by the security resources being no greater than the processing capacity as the constraint condition;
[0070] S340: Solve the maximization problem of the resource allocation model using an optimization algorithm, and determine the optimal solution as an allocation strategy for M security resources.
[0071] The method for determining the resource allocation strategy of the embodiment of the present application obtains the processing success rate function corresponding to the N alarms and the processing capacity corresponding to each of the M security resources when N alarms are received, takes the processing success rate function as the objective function, and constructs a resource allocation model with the constraint that the number of alarms processed simultaneously by the security resources is not greater than the processing capacity, and then uses the optimization algorithm to solve the maximization problem of the resource allocation model, and determines the optimal solution as the allocation strategy of the M security resources, so that the security resources can be dynamically configured. Since the alarm and the security resources are optimally matched each time after receiving the alarm, even if the security resources change and / or the number of alarms increases sharply, it is possible to ensure both the timeliness of the alarm processing and the rationality of the resource utilization, thereby improving the utilization rate of the security resources and the efficiency of the alarm processing, and improving the reliability of SOAR.
[0072] The specific implementation methods of the above steps are introduced below.
[0073] In some embodiments, in S310, the security resources may be used to process the alarm. The security resources may include security equipment (ie, alarm processing equipment).
[0074] As an example, the alarm management module can receive alarm information and push the alarm information to the resource adapter. After receiving the alarm information, the resource adapter can first determine the N alarms in the alarm information, and then determine the M security resources corresponding to the N alarms in the security resource set. Among them, the relationship between alarms and security resources can be one-to-one, one-to-many, many-to-one, or many-to-many, which is not limited here. That is, one alarm can be handled by one security resource or by multiple security resources. One security resource can handle one alarm or multiple alarms.
[0075] Based on this, in order to determine the accuracy of the security resources, in some embodiments, the above S310 may specifically include:
[0076] When receiving the alarm information, determine N alarms in the alarm information and state information and attribute information corresponding to each of the plurality of security resources in the security resource set;
[0077] For each security resource, match the alarm information and attribute information based on the status information;
[0078] The security resources corresponding to the M attribute information matching the alarm information are determined as the M security resources corresponding to the N alarms.
[0079] Here, the security resource set may include multiple security resources and attribute information corresponding to each of the multiple security resources. The attribute information may include static information such as the maximum number of connections (processing capacity) of the security resource, the type of alarm to be processed, the processing speed, and the processing parameters. The maximum number of connections (processing capacity) of the security resource may be the maximum number of alarms that the security resource can process simultaneously. In addition, the alarm information may also include the alarm type, processing measures, and processing requirements corresponding to each of the N alarms. In addition, the status information may be dynamic information such as whether the security resource is online and whether the maximum number of connections has been reached, as determined by the resource management module.
[0080] As an example, the resource management module can manage the status of multiple security resources in the security resource set, determine the status information, and push the status information of the security resource set to the resource adapter. The resource adapter can determine the status of each security resource in the security resource set according to the status information. When the status is an available status, the alarm information and the attribute information are matched. The matching of the alarm information and the attribute information can be that the security resource corresponding to the attribute information can process a certain alarm in the alarm information.
[0081] In this way, by matching the alarm information and attribute information for each security resource based on the status information, that is, by considering not only the static attribute information but also the dynamic status information of the security resources when determining the M security resources corresponding to N alarms, it can be ensured that the M security resources are all available and capable of processing the alarm information, thereby improving the accuracy of determining the security resources.
[0082] In some embodiments, in S320, if the number of alarms b corresponding to a security resource is less than or equal to the processing capacity c of the security resource, the security resource can process b alarms at the same time. If the number of alarms b corresponding to the security resource is greater than the processing capacity c of the security resource, the security resource can prioritize the first c alarms according to the order of arrival of the b alarms.
[0083] In addition, the processing result of the security resource on the alarm may be a successful processing or a failed processing. After determining the processing result of each alarm, the processing success rate of the M security resources on the N alarms can be determined. Before the security resource actually processes the alarm, the processing result of the security resource on the alarm may be uncertain, and therefore, the processing success rate corresponding to the N alarms may be uncertain. Therefore, in order to determine the processing success rate of the M security resources on the N alarms, the processing success rate function may be obtained first, and then the processing success rate function may be solved.
[0084] Based on this, in some embodiments, the above-mentioned obtaining of the processing success rate function corresponding to the N alarms may specifically include:
[0085] Obtain the processing result function corresponding to the alarm. The processing result function is used to determine the processing result of the security resource on the alarm;
[0086] Construct a processing success rate function based on the processing result function and N.
[0087] Here, if N alarms are encoded as an alarm set N = {1, 2, ..., n, ..., N}, and the processing result function is recorded as A(n), then the processing success rate function η(n) can be expressed by the following formula (1):
[0088]
[0089] In actual situations, in order to ensure the security of the system, the timeliness of alarm processing is usually required. That is, the processing of the alarm by the security resource must be completed within the specified time. Therefore, if the actual processing time of the alarm by the security resource is greater than the processing time threshold corresponding to the alarm, it can be determined that the processing result of the alarm is a processing failure. If the actual processing time of the alarm by the security resource is less than or equal to the processing time threshold corresponding to the alarm, it can be determined that the processing result of the alarm is a processing success.
[0090] Based on this, for alarm n, n∈N, if the actual processing time of security resources for alarm n is recorded as t n , the processing time threshold corresponding to alarm n is recorded as Then the processing result function A(n) can be expressed by the following formula (2):
[0091]
[0092] In formula (2), if the function value is 0, it can be determined that the processing result is a processing failure, and if the function value is 1, it can be determined that the processing result is a processing success.
[0093] Based on this, the processing success rate function η(n) can also be expressed by the following formula (3):
[0094]
[0095] In addition, the security resource can process the alarms in the order in which they arrive. That is, if an alarm has arrived at the security resource, but the security resource is processing other alarms and cannot process the alarm, the alarm can be processed after the previous alarm is processed.
[0096] Based on this, in order to improve the accuracy of the processing result function, in some embodiments, the above-mentioned processing result function corresponding to the alarm may specifically include:
[0097] Obtaining a stay time function and a stay time threshold corresponding to the alarm, wherein the stay time function is used to determine the stay time of the alarm in the security resource;
[0098] A processing result function is constructed based on the stay time function and the stay time threshold.
[0099] Here, the sojourn time may include the waiting time for processing and the processing time. Therefore, by constructing the processing result function based on the sojourn time function and the sojourn time threshold, the accuracy of the processing result function can be improved.
[0100] Based on this, in some embodiments, the above-mentioned acquisition of the stay time function corresponding to the alarm may specifically include:
[0101] Under the condition that the security resources process alarms in a first-come-first-served manner and the arrival of alarms at the security resources follows a negative exponential distribution, the average processing rate of the security resources, the average arrival rate of alarms, and the processing capacity are obtained;
[0102] Based on the M / M / S queue model, the average stay time function corresponding to the security resources is constructed according to the average processing rate, the average arrival rate of alarms and the processing capacity;
[0103] The average sojourn time function corresponding to the safety resource is determined as the sojourn time function of the alarm corresponding to the safety resource.
[0104] Here, the M security resource codes can be recorded as M = {1, 2, ..., m, ..., M}. When alarm n is assigned to security resource m, assuming that each alarm is in parallel, security resource m processes the alarm in a first-come-first-served manner, and the average processing rate of the security resource is μ m , the average arrival rate of the alarm is λ m , the processing capacity of the security resource (maximum number of connections) is If the alarm arrival follows a negative exponential distribution, then based on the M / M / S queue model, the average residence time function T of the alarm in security resource m is m It can be expressed by the following formula (4):
[0105]
[0106] In formula (4),
[0107] In some embodiments, if the alarm n needs to be connected to multiple security resources for simultaneous processing, it can be used Indicates the time required to complete the processing of the alarm n. If c is defined n,m Indicates the association between alarm n and security resource m. If alarm n is assigned to security resource m, there may be cn,m =1, otherwise c n,m = 0. Based on this, the residence time of alarm n in security resource m can be expressed as: T n,m =c n,m T m , and then we can have
[0108] Based on this, the processing success rate function can also be expressed by the following formula (5):
[0109]
[0110] In some embodiments, in S330, the constraint condition may be expressed by the following formula (6):
[0111]
[0112] Based on this, the resource allocation model can be expressed by the following formula (7):
[0113]
[0114] In some embodiments, in S340, the optimization algorithm may include a simulated annealing algorithm, a genetic algorithm, an ant colony algorithm, etc. Since the genetic algorithm generally uses a fitness function to measure the pros and cons of each solution, when the optimization algorithm is a genetic algorithm, the objective function may be determined as the fitness function. Specifically, the fitness function may be expressed by the following formula (8):
[0115]
[0116] Based on this, the resource allocation model can also be expressed by the following formula (9):
[0117]
[0118] Since the fitness function value can change with the resource allocation strategy, the optimal resource allocation strategy can be determined by solving the maximization problem of the fitness function under constraints through a genetic algorithm.
[0119] Based on this, in some embodiments, the above S340 may specifically include:
[0120] A first population is randomly generated, which includes multiple individuals, each of which corresponds to a resource allocation strategy;
[0121] Substituting multiple individuals in the first population into the fitness function, and calculating multiple first fitness values;
[0122] Determine the first individuals corresponding to the first a% first fitness values having the largest values among the multiple first fitness values;
[0123] Perform crossover and mutation on the first population to obtain the second population;
[0124] Substituting multiple individuals in the second population into the fitness function, and calculating multiple second fitness values;
[0125] Determine the second individuals corresponding to the first a% second fitness values with the smallest values among the plurality of second fitness values;
[0126] Replace a% of the second individuals in the second population with a% of the first individuals to obtain a third population;
[0127] The third population is used as the first population, and the process returns to substitute multiple individuals in the first population into the fitness function until the number of iterations reaches the preset iteration threshold, thereby obtaining the target population.
[0128] The individual with the largest fitness value in the target population is determined as the allocation strategy for M security resources.
[0129] Here, the specific solution steps can be as follows:
[0130] Step 1: Encoding and population initialization. The security resources are encoded using the decimal method. There are M security devices in total, and the corresponding codes are 1 to M. If the population size is s, then the population P = [P1, P2, ..., P s ] T , P k =[p k,1 ,p k,2 ,...,p k,N ],1≤k≤s,p k,n ∈[0,M]. Among them, p k,n = m means that alarm n is assigned to security resource m, corresponding to c n,m =1,c n,m' =0,m≠m'. p k,n = 0 means that alarm n is not assigned to any security resource. In addition, set the maximum number of iterations i max . Let i = 0, and randomly generate a population P(i). Each individual in the population is a possible allocation scheme, and the population's mutation probability and crossover probability are allocated as p mu and p cr .
[0131] Step 2: Calculate the fitness value of each individual in the population through the fitness function, and sort the fitness values of multiple individuals in descending order. Select the individuals with fitness values in the top a% as elite individuals. The set of elite individuals is E(i).
[0132] Step 3: Perform a crossover operation on the population P(i) according to the following formulas (10) and (11):
[0133]
[0134]
[0135] In formula (10) and formula (11), rand(*) is a random number generated in [0,1]; cp is a crossover position, which is a random integer in [1,N].
[0136] Step 4: Perform mutation operation on population P(i) according to the following formula (12):
[0137]
[0138] In formula (12), rand(*) is a random number generated in [0,1]; mp is the mutation position, which is a random integer in [1,N]; the mutation result is b, and b≠p k,mu .
[0139] Step 5, let the population after crossover and mutation be Q(i), calculate the fitness value of Q(i) and sort it in descending order of fitness value, and replace the individuals in the bottom a% of P(i) with E(i) to form a new population Q′.
[0140] Step 6, let i = i + 1, P (i) = Q', if i ≤ i max , then return to step 2; otherwise, select the individual with the largest fitness value from P(i), and determine the resource allocation strategy corresponding to the individual with the largest fitness value as the allocation strategy corresponding to the M security resources, and the algorithm ends.
[0141] Based on the method for determining the resource allocation strategy provided in the above embodiment, the present application also provides a specific implementation of the device for determining the resource allocation strategy. Please refer to the following embodiment.
[0142] like Figure 4 As shown, the resource allocation strategy determination device 400 provided in the embodiment of the present application includes the following modules:
[0143] A first determination module 410 is used to determine M security resources corresponding to the N alarms when N alarms are received, where the security resources are used to process the alarms, and M and N are positive integers;
[0144] An acquisition module 420 is used to acquire a processing success rate function corresponding to the N alarms and a processing capacity corresponding to each of the M security resources, wherein the processing success rate function is used to determine the processing success rate of the M security resources for the N alarms, and the processing capacity is the maximum number of alarms that the security resources can process simultaneously;
[0145] A construction module 430 is used to construct a resource allocation model with a processing success rate function as an objective function and a constraint condition that the number of alarms processed simultaneously by security resources is not greater than the processing capacity;
[0146] The second determination module 440 is used to solve the maximization problem of the resource allocation model by using an optimization algorithm, and determine the optimal solution as the allocation strategy of the M security resources.
[0147] The resource allocation strategy determination device 400 is described in detail below, as shown below:
[0148] In some embodiments, the acquisition module 420 may specifically include:
[0149] The acquisition submodule is used to obtain the processing result function corresponding to the alarm, and the processing result function is used to determine the processing result of the security resource on the alarm;
[0150] A submodule is constructed to construct a processing success rate function based on the processing result function and N.
[0151] In some embodiments, the acquisition submodule may specifically include:
[0152] An acquisition unit, used to acquire a stay time function and a stay time threshold corresponding to the alarm, the stay time function being used to determine the stay time of the alarm in the security resource;
[0153] The construction unit is used to construct a processing result function based on the stay time function and the stay time threshold.
[0154] In some embodiments, the acquisition unit may specifically include:
[0155] An acquisition subunit, used for acquiring an average processing rate of the security resources, an average arrival rate of the alarms, and a processing capacity when the security resources process the alarms in a first-come-first-served manner and the alarms arrive at the security resources in a negative exponential distribution;
[0156] A construction subunit is used to construct an average sojourn time function corresponding to the security resource based on the M / M / S queue model according to the average processing rate, the average arrival rate of the alarms and the processing capacity;
[0157] The determination subunit is used to determine the average stay time function corresponding to the safety resource as the stay time function of the alarm corresponding to the safety resource.
[0158] In some of the embodiments, the objective function is a fitness function and the optimization algorithm is a genetic algorithm.
[0159] In some embodiments, the second determining module 440 may specifically include:
[0160] A generation submodule is used to randomly generate a first population, the first population includes multiple individuals, and each individual corresponds to a resource allocation strategy;
[0161] A first calculation submodule is used to substitute a plurality of individuals in the first population into the fitness function to calculate and obtain a plurality of first fitness values;
[0162] A first determination submodule is used to determine the first individuals corresponding to the first a% of the first fitness values with the largest values among the multiple first fitness values;
[0163] A processing submodule, used for performing crossover and mutation on the first population to obtain a second population;
[0164] A second calculation submodule is used to substitute multiple individuals in the second population into the fitness function to calculate and obtain multiple second fitness values;
[0165] A second determination submodule is used to determine the second individuals corresponding to the first a% of the second fitness values with the smallest values among the multiple second fitness values;
[0166] A replacement submodule is used to replace a% of the second individuals in the second population with a% of the first individuals to obtain a third population;
[0167] An execution submodule is used to take the third population as the first population, and return to execute to substitute multiple individuals in the first population into the fitness function until the number of iterations reaches a preset iteration threshold, thereby obtaining a target population;
[0168] The third determination submodule is used to determine the individual with the largest fitness value in the target population as the allocation strategy for the M security resources.
[0169] In some embodiments, the first determining module 410 may specifically include:
[0170] A fourth determination submodule is used to determine, when receiving the alarm information, N alarms in the alarm information and state information and attribute information corresponding to each of the plurality of security resources in the security resource set;
[0171] A matching submodule, for matching alarm information and attribute information based on status information for each security resource;
[0172] The fifth determining submodule determines the security resources corresponding to the M attribute information matching the alarm information as the M security resources corresponding to the N alarms.
[0173] The determination device of the resource allocation strategy of the embodiment of the present application obtains the processing success rate function corresponding to the N alarms and the processing capacity corresponding to each of the M security resources when receiving N alarms, takes the processing success rate function as the objective function, and constructs a resource allocation model with the constraint that the number of alarms processed simultaneously by the security resources is not greater than the processing capacity, and then uses the optimization algorithm to solve the maximization problem of the resource allocation model, and determines the optimal solution as the allocation strategy of the M security resources, so that the security resources can be dynamically configured. Since the alarm and the security resources are optimally matched each time after receiving the alarm, even if the security resources change and / or the number of alarms increases sharply, it can ensure the timeliness of the alarm processing and the rationality of the resource utilization, thereby improving the utilization rate of the security resources and the efficiency of the alarm processing, and improving the reliability of SOAR.
[0174] Based on the method for determining the resource allocation strategy provided in the above embodiment, the embodiment of the present application also provides a specific implementation of the electronic device. Figure 5 A schematic diagram of an electronic device 500 provided in an embodiment of the present application is shown.
[0175] The electronic device 500 may include a processor 510 and a memory 520 storing computer program instructions.
[0176] Specifically, the processor 510 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0177] The memory 520 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 520 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 520 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 520 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 520 is a non-volatile solid-state memory.
[0178] The memory may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Thus, typically, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to the first aspect of the present application.
[0179] The processor 510 implements any one of the resource allocation strategy determination methods in the above embodiments by reading and executing computer program instructions stored in the memory 520 .
[0180] In one example, the electronic device 500 may further include a communication interface 530 and a bus 540. Figure 5 As shown, the processor 510, the memory 520, and the communication interface 530 are connected via a bus 540 and communicate with each other.
[0181] The communication interface 530 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.
[0182] Bus 540 includes hardware, software or both, and the parts of electronic equipment are coupled to each other. For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front side bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 540 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the application considers any suitable bus or interconnection.
[0183] Exemplarily, the electronic device 500 may be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA).
[0184] The electronic device can execute the method for determining the resource allocation strategy in the embodiment of the present application, thereby realizing the combination of Figure 3 and Figure 4 A method and device for determining a resource allocation strategy are described.
[0185] In addition, in combination with the method for determining the resource allocation strategy in the above embodiment, the embodiment of the present application can provide a computer-readable storage medium for implementation. The computer-readable storage medium stores computer program instructions; when the computer program instructions are executed by the processor, any one of the methods for determining the resource allocation strategy in the above embodiment is implemented.
[0186] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.
[0187] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0188] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.
[0189] The above reference is according to the method of the embodiment of the present application, the flow chart of the device (system) and the computer program product and / or the block diagram described various aspects of the present application.It should be understood that each square box in the flow chart and / or the block diagram and the combination of each square box in the flow chart and / or the block diagram can be realized by computer program instructions.These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the realization of the function / action specified in one or more square boxes of the flow chart and / or the block diagram.Such a processor can be but is not limited to a general-purpose processor, a special-purpose processor, a special application processor or a field programmable logic circuit.It can also be understood that each square box in the block diagram and / or the flow chart and the combination of the square boxes in the block diagram and / or the flow chart can also be realized by the dedicated hardware that performs the specified function or action, or can be realized by the combination of dedicated hardware and computer instructions.
[0190] The above is only a specific implementation of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.
Claims
1. A method for determining a resource allocation strategy, characterized in that: include: In the case of receiving N alarms, determining M security resources corresponding to the N alarms, the security resources being used to process the alarms, where M and N are positive integers; Obtaining a processing success rate function corresponding to the N alarms and a processing capacity corresponding to each of the M security resources, wherein the processing success rate function is used to determine a processing success rate of the M security resources for the N alarms, and the processing capacity is a maximum number of alarms that can be processed simultaneously by the security resources; A resource allocation model is constructed with the processing success rate function as the objective function and with the number of alarms processed simultaneously by the security resources being no greater than the processing capacity as a constraint condition; The maximization problem of the resource allocation model is solved using an optimization algorithm, and the optimal solution is determined as the allocation strategy of the M security resources.
2. The method according to claim 1, characterized in that The obtaining of the processing success rate function corresponding to the N alarms includes: Obtaining a processing result function corresponding to the alarm, wherein the processing result function is used to determine a processing result of the security resource on the alarm; The processing success rate function is constructed based on the processing result function and N.
3. The method according to claim 2, characterized in that The function of obtaining the processing result corresponding to the alarm includes: Acquire a stay time function and a stay time threshold corresponding to the alarm, wherein the stay time function is used to determine the stay time of the alarm in the security resource; The processing result function is constructed based on the stay time function and the stay time threshold.
4. The method according to claim 3, characterized in that The acquiring of the sojourn time function corresponding to the alarm comprises: In the case where the security resource processes the alarm in a first-come-first-served manner and the alarms arrive at the security resource in a negative exponential distribution, obtaining an average processing rate of the security resource, an average arrival rate of the alarms, and a processing capacity; Based on the M / M / S queue model, constructing an average sojourn time function corresponding to the security resource according to the average processing rate, the average arrival rate of alarms and the processing capacity; An average sojourn time function corresponding to the safety resource is determined as a sojourn time function of the alarm corresponding to the safety resource.
5. The method according to claim 1, characterized in that The objective function is a fitness function, and the optimization algorithm is a genetic algorithm.
6. The method according to claim 5, characterized in that The method of solving the maximization problem of the resource allocation model by using an optimization algorithm and determining the optimal solution as the allocation strategy of the M security resources includes: Randomly generate a first population, the first population includes a plurality of individuals, each of the individuals corresponds to a resource allocation strategy; Substituting a plurality of individuals in the first population into the fitness function to calculate and obtain a plurality of first fitness values; Determine the first individuals corresponding to the first a% first fitness values having the largest values among the plurality of first fitness values; Performing crossover and mutation on the first population to obtain a second population; Substituting a plurality of individuals in the second population into the fitness function to calculate and obtain a plurality of second fitness values; Determine the second individuals corresponding to the first a% second fitness values with the smallest values among the plurality of second fitness values; replacing a% of the second individuals in the second population with a% of the first individuals to obtain a third population; Taking the third population as the first population, and returning to execute the step of substituting a plurality of individuals in the first population into the fitness function until the number of iterations reaches a preset iteration threshold, thereby obtaining a target population; The individual with the largest fitness value in the target population is determined as the allocation strategy for the M security resources.
7. The method according to claim 1, characterized in that The step of determining, upon receiving N alarms, M security resources corresponding to the N alarms includes: When receiving the alarm information, determining N alarms in the alarm information and state information and attribute information corresponding to each of the plurality of security resources in the security resource set; For each of the security resources, matching the alarm information with the attribute information based on the state information; The security resources corresponding to the M attribute information matching the alarm information are determined as the M security resources corresponding to the N alarms.
8. A device for determining a resource allocation strategy, characterized in that: The device comprises: A first determination module is used to determine M security resources corresponding to the N alarms when N alarms are received, wherein the security resources are used to process the alarms, and M and N are positive integers; an acquisition module, used to acquire a processing success rate function corresponding to the N alarms and a processing capacity corresponding to each of the M security resources, wherein the processing success rate function is used to determine a processing success rate of the M security resources for the N alarms, and the processing capacity is a maximum number of alarms that can be processed simultaneously by the security resources; A construction module, used to construct a resource allocation model with the processing success rate function as an objective function and with the number of alarms processed simultaneously by the security resources being no greater than the processing capacity as a constraint condition; The second determination module is used to solve the maximization problem of the resource allocation model by using an optimization algorithm, and determine the optimal solution as the allocation strategy of the M security resources.
9. An electronic device, characterized in that: The electronic device comprises: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, the method for determining the resource allocation strategy according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the method for determining a resource allocation strategy according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Resource allocation method, device and equipment and computer storage medium
CN112256436A
Remediating gaps between usage allocation of hardware resource and capacity allocation of hardware resource
US20120159367A1
Anomaly detection and alarming based on capacity and placement planning
US20160112245A1
System for monitoring and optimizing computing resource usage of cloud based computing application
US20230043579A1
System, method, and apparatus for providing dynamic, prioritized spectrum management and utilization
US20230110731A1
Cited By
Resource configuration method and device of RF control system, storage medium and equipment
CN120751503A
A resource configuration method and device of an RF control system, a storage medium and an equipment
CN120751503B
