A security risk intelligent assessment and prevention and control method of a library management system
By constructing an asset topology map and risk propagation cost matrix for the library management system, generating an optimized prevention and control execution sequence and updating it in real time, the problem of spatiotemporal joint assessment and dynamic closed-loop prevention and control of security risk assessment and prevention in the library management system is solved, thereby improving emergency response efficiency and adaptability.
Patent Information
- Application Number
- CN202611311897.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-27
- Publication Date
- 2026-11-20
AI Technical Summary
The existing library management system's security risk assessment and prevention methods lack a spatiotemporal joint assessment and dynamic closed-loop prevention and control mechanism, resulting in long emergency response times, wasted resources, and the potential for risks to spread across regions.
By collecting multi-source heterogeneous security data, an asset topology map is constructed, a risk propagation cost matrix is established, unconstrained prevention and control node pairs are identified, an optimized prevention and control execution sequence is generated, and the risk propagation cost matrix is updated in real time to dynamically adjust the prevention and control order.
This achieves the fastest and least residual risk prevention sequence, reducing the need for security operations personnel to switch between different data centers and management interfaces, and improving emergency response efficiency and adaptability.
Smart Images

Figure CN123145012A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of information security technology for smart libraries, specifically to a method for intelligent assessment and prevention of security risks in a library management system. Background Technology
[0002] The library management system is the core infrastructure for the operation of a smart library, undertaking key operations such as document resource management, user authentication, borrowing and circulation services, and digital resource access. With the deepening of digital transformation in libraries, modern library management systems have evolved from simple catalog systems into complex cyber-physical systems integrating cloud computing, the Internet of Things, big data, and artificial intelligence. Their security boundaries have expanded from traditional network boundaries to a converged domain encompassing physical space, information space, and user behavior space. Library security risks include information security threats such as network attacks, data breaches, and ransomware encryption; physical security risks such as physical equipment theft, fire hazards, and unauthorized personnel presence; and operational security risks such as abnormal user behavior, abuse of privileges, and unauthorized downloads. These risks exhibit complex transmission and coupling relationships. For example, breaches of network boundaries can lead to user data leaks, which in turn can trigger identity theft and physical access control bypass, forming a risk transmission chain across spatial boundaries.
[0003] Currently, the security risk assessment and prevention of library management systems mainly rely on regular manual inspections, static security baseline checks, and the deployment of discrete security devices. Manual assessments depend entirely on the experience of security management personnel to determine risk levels and response sequences. Different personnel assess risks with varying priorities, and the execution sequence of prevention measures is solely aimed at meeting compliance checks, neglecting the transmission paths and propagation speed of risks within the asset topology. This results in security operations personnel having to switch extensively between different computer rooms, security devices, and management interfaces, leading to a high proportion of ineffective operations and waiting time in the total emergency response time. Furthermore, while existing security management platforms centrally collect logs from various security devices, achieving alarm aggregation and display, they essentially still rely on manual analysis and work order dispatch for discrete alarms. They haven't addressed the issue of optimizing the generation of prevention sequences themselves. Once a prevention work order is generated, it becomes a static document, unable to dynamically adjust the subsequent response sequence based on the actual evolution of risks and the effectiveness of prevention measures during the handling process.
[0004] With the development of smart library construction and situational awareness technology, some libraries have introduced security situational awareness platforms. These platforms visualize the overall network security status through traffic probes and log collection. However, these platforms are only used for macro-level display of risk situations and post-event tracing, and do not form a closed-loop linkage with the optimization of prevention and control sequences. Summary of the Invention
[0005] The purpose of this invention is to provide a method for intelligent assessment and prevention of security risks in library management systems. This addresses the common lack of spatiotemporal joint assessment and dynamic closed-loop prevention and control mechanisms for the risks of multi-space integration in libraries, as mentioned in the background. If the initial prevention and control sequence is not optimal due to insufficient consideration of asset topology association and risk transmission path, the entire emergency response process still needs to be completed item by item according to the predetermined work order and then reviewed and optimized afterwards. This rigid execution process not only causes unnecessary waste of emergency response time and security operation and maintenance resources, but may also lead to the problem of risk spreading across domains due to the lag in prevention and control.
[0006] To achieve the above objectives, the present invention provides the following technical solution:
[0007] A method for intelligent assessment and prevention of security risks in a library management system includes the following steps:
[0008] S1: Collect multi-source heterogeneous security data from the library management system, extract the attribute information and topological connection relationships of each asset node, and construct an asset topology map;
[0009] S2: Based on the current security situation, retrieve the set of prevention and control nodes that meet the risk isolation logic from the security baseline rule base, and construct the initial risk transmission directed graph with the directed risk transmission dependency relationship between the prevention and control nodes as the edge;
[0010] S3: Extract the historical occurrence frequency and impact weight of each risk node in historical security events, and combine them with the node association strength in the asset topology map to establish a risk propagation cost matrix with prevention and control nodes as units and the risk potential value being the weighted sum of the probability of risk occurrence and the degree of asset impact.
[0011] S4: Identify adjacent control node pairs that do not have a directed risk transmission path in the initial risk transmission directed graph, form an unconstrained control node pair set, and calculate the marginal risk attenuation caused by exchanging the execution order of the two control nodes in the unconstrained control node pair according to the risk propagation cost matrix.
[0012] S5: Using the marginal risk decay as the decision variable, minimizing the total residual risk of the prevention and control execution sequence as the objective, and the directed risk transmission dependency as the hard constraint, solve the optimal prevention and control node sorting strategy to generate an optimized prevention and control execution sequence.
[0013] S6: The optimized prevention and control execution sequence is sent to the security prevention and control execution terminal, the actual evolution data and prevention and control effect data of risk nodes are collected in real time, the risk propagation cost matrix is dynamically corrected, and the prevention and control measures that have not been executed are automatically reordered.
[0014] Preferably, in step S1, the specific process of constructing the asset topology map is as follows:
[0015] The system collects network traffic logs, host operation logs, database access logs, RFID access control data, video surveillance data, and user behavior logs from the library management system. It extracts logical service instances and their access interface objects for each asset node, obtains the physical ports and service dependency information associated with the asset node from the access interface objects, and establishes physical connection and logical call relationships between asset nodes based on the physical ports and service dependency information. It also extracts the coordinate location information of the area where each physical asset is located and the local location coordinates of the asset equipment in its computer room or reading area from the library building floor plan. The system overlays the regional coordinate information with the local location coordinates to generate the global physical location coordinates of the asset node.
[0016] Each asset node is assigned a unique asset identifier, and the corresponding asset type is extracted. The asset types include server equipment, network equipment, storage equipment, terminal equipment, RFID reading and writing equipment, monitoring equipment, and paper document assets. The asset identifier, the asset type, the regional coordinate location information, and the global physical location coordinates are recorded as a set of records and associated with the logical service instance and the physical connection relationship to construct an asset topology map.
[0017] Preferably, in step S2, the specific construction process of the initial risk transmission directed graph is as follows:
[0018] Based on the current security alerts, a target risk event to be addressed is identified. Risk propagation rule records related to the target risk event are retrieved from the security baseline rule base. These risk propagation rule records include control nodes, the sequential relationship between control nodes, and the security isolation logic upon which the sequential relationship is based. The retrieved risk propagation rule records are traversed, and each control node involved is created as a vertex in a directed graph. Each vertex contains the corresponding control node identifier. Based on the sequential relationship between control nodes recorded in the risk propagation rule records, directed edges are established between the vertices corresponding to two control nodes with a sequential relationship. The direction of the directed edges points from the control node executed first to the control node executed later. Each directed edge contains the security isolation logic type upon which the sequential relationship is based. Based on the directed graph vertices and directed edges, an initial risk propagation directed graph is constructed, where the vertices represent control nodes and the directed edges represent directed risk propagation dependencies.
[0019] Preferably, in step S3, the specific process of extracting the historical occurrence frequency of each risk node in historical security events is as follows:
[0020] IoT security sensors deployed throughout the library collect real-time security environment parameters, including network traffic baseline offset, system load rate, concurrent user access volume, current time period, and open area status. Based on these parameters, current security environment tags are generated, including tags for opening hours, closing hours, peak exam periods, and holidays. Historical security event records are retrieved, each containing a risk node identifier, single event impact level, and historical security environment tag. Records matching the historical security environment tag with the current security environment tag are selected from these records. The impact levels of all single events corresponding to the same risk node identifier are extracted and a weighted average is calculated to obtain the historical frequency of each risk node in the current security environment.
[0021] Preferably, if the number of filtered records is zero, then the global historical occurrence frequency of the risk node in all historical records is used as the historical occurrence frequency.
[0022] Preferably, in step S3, the specific construction process of the risk propagation cost matrix is as follows:
[0023] Extract the global physical location coordinates and logical correlation of each asset node from the asset topology map, and calculate the correlation between any two different control nodes. With prevention and control nodes The risk propagation distance between the nodes is calculated by dividing the risk propagation distance by a preset average risk propagation rate. Risk transmission to prevention and control nodes Estimated transmission time; acquisition of prevention and control nodes Based on the historical frequency of occurrence and asset impact weight in the current security environment, the estimated propagation time is compared with the control nodes. The risk potential value under the current security environment is multiplied by preset propagation cost weights and prevention and control cost weights, and then summed to obtain the value from the prevention and control node. Spread to prevention and control points And trigger the prevention and control node The risk of transmission; using prevention and control nodes as row and column indexes, for any two different prevention and control nodes... and The risk propagation cost is filled into the matrix. Line number column, when equal The risk propagation cost matrix is constructed by setting the elements of the time matrix to 0.
[0024] Preferably, in step S4, the specific calculation process for the marginal risk decay is as follows:
[0025] Obtain an unconstrained prevention and control node pair from the set of unconstrained prevention and control node pairs. The unconstrained prevention and control node pair consists of a first prevention and control node and a second prevention and control node. There is no directed risk transmission path between the first prevention and control node and the second prevention and control node.
[0026] In the current optimized prevention and control execution sequence, the positions of the first prevention and control node and the second prevention and control node in the sequence are determined, and the prevention and control node immediately preceding the position in the sequence is obtained as the previous neighbor node, and the prevention and control node immediately following the position in the sequence is obtained as the next neighbor node.
[0027] From the risk propagation cost matrix, extract the first risk cost from the previous neighbor node to the first prevention and control node, the second risk cost from the first prevention and control node to the second prevention and control node, and the third risk cost from the second prevention and control node to the next neighbor node. Summate the first risk cost, the second risk cost, and the third risk cost to obtain the local propagation cost before the exchange.
[0028] From the risk propagation cost matrix, extract the fourth risk cost from the previous neighbor node to the second prevention and control node, the fifth risk cost from the second prevention and control node to the first prevention and control node, and the sixth risk cost from the first prevention and control node to the next neighbor node. Summate the fourth risk cost, the fifth risk cost, and the sixth risk cost to obtain the exchanged local propagation cost.
[0029] Subtracting the local propagation cost after the exchange from the local propagation cost before the exchange yields the marginal risk attenuation of the execution order of the first and second prevention and control nodes.
[0030] Preferably, in step S5, the specific process for generating the optimized prevention and control execution sequence is as follows:
[0031] Multiple topological sorts are performed on the initial risk transmission directed graph. During each topological sort, when there are multiple prevention and control nodes in the initial risk transmission directed graph that do not have a directed risk transmission dependency relationship with them as the endpoint, different of the above prevention and control nodes are selected as the current output nodes to generate multiple valid initial prevention and control execution sequences.
[0032] Each valid initial prevention and control execution sequence is taken as the current prevention and control execution sequence. The unconstrained prevention and control node pair with the largest positive marginal risk decay value is selected from the marginal risk decay value list as the target exchange node pair. The target exchange node pair consists of a first prevention and control node and a second prevention and control node. The execution order of the first prevention and control node and the second prevention and control node is exchanged in the current prevention and control execution sequence to obtain the updated current prevention and control execution sequence.
[0033] Based on the updated current prevention and control execution sequence, recalculate the marginal risk decay of unconstrained prevention and control node pairs affected by this exchange and update the marginal risk decay list. Repeat the above steps until there are no unconstrained prevention and control node pairs with positive marginal risk decay in the marginal risk decay list, and obtain the corresponding locally optimal prevention and control execution sequence. Calculate the total residual risk of each locally optimal prevention and control execution sequence, and select the locally optimal prevention and control execution sequence with the smallest total residual risk as the optimized prevention and control execution sequence output.
[0034] Preferably, if there are two or more locally optimal prevention and control execution sequences with equal and minimum total residual risks, the locally optimal prevention and control execution sequence with the least consumption of prevention and control resources is selected as the optimized prevention and control execution sequence output.
[0035] Preferably, in step S6, the specific process of automatically reordering the unexecuted prevention and control measures is as follows:
[0036] Receive the current prevention and control node execution completion feedback reported by the security and control execution terminal. The execution completion feedback includes the actual processing time of the current prevention and control node and the actual risk propagation time from the previous prevention and control node to the current prevention and control node. Update the actual processing time and the actual risk propagation time to the corresponding matrix element positions in the risk propagation cost matrix to obtain the corrected risk propagation cost matrix.
[0037] Extract the unexecuted prevention and control nodes from the optimized prevention and control execution sequence, and combine them with the directed risk transmission dependencies between the unexecuted prevention and control nodes in the initial risk transmission directed graph to identify pairs of unexecuted unconstrained prevention and control nodes that do not have a dependency path.
[0038] Based on the modified risk propagation cost matrix, the marginal risk decay of each pair of unconstrained prevention and control nodes that have not performed is calculated. The unconstrained prevention and control node pairs with positive marginal risk decay values and the largest values are selected for sequential exchange, and the unexecuted sequence is updated.
[0039] Repeat the steps of selecting unexecuted unconstrained prevention and control node pairs, exchanging their order, and updating the unexecuted sequence until there are no unexecuted unconstrained prevention and control node pairs with positive marginal risk decay values. Then, send the final unexecuted sequence as the reordered unexecuted prevention and control sequence to the security prevention and control execution terminal.
[0040] Compared with the prior art, the beneficial effects of the present invention are:
[0041] 1) This invention collects multi-source heterogeneous security data from the library management system to construct an asset topology map containing the global physical location coordinates and logical relationships of each asset node. It also extracts the historical occurrence frequency of each risk node in the current security environment from historical security events, and establishes a risk propagation cost matrix by weighting the estimated propagation time with the risk potential value of the next node. It is understood that library asset nodes are distributed across different floors, computer rooms, and even different physical areas, resulting in order-of-magnitude differences in the risk propagation distance between nodes. The historical occurrence frequency implies the risk evolution characteristics under different time periods and business loads. The risk propagation cost matrix quantifies the total cost of risk transmission and triggering response between any two control nodes. Based on this, using the directed risk propagation dependency relationship in the initial directed risk propagation graph as a hard constraint, it identifies adjacent node pairs without dependent paths, calculates the difference in local propagation costs before and after the exchange to obtain the marginal risk attenuation amount, and selects the pair with the largest positive value for iterative exchange. This process extends the traditional pure logical sequence optimization to a joint optimization of logic and spatiotemporal factors. This allows the final optimized prevention and control execution sequence to automatically prioritize nodes with long risk propagation paths and long handling times at the beginning of the sequence. This avoids security operations personnel switching between different data centers and different management interfaces multiple times, achieving the fastest global risk propagation blocking and the lowest residual risk in the sequence arrangement.
[0042] 2) This invention utilizes IoT security sensors deployed throughout the library to collect real-time data on network traffic baseline offset, system load rate, concurrent user access volume, current time period, and open area status. This generates security environment labels for opening hours, closing hours, peak exam periods, and holidays. Based on the impact level of events under the same environment label in historical security event records, the historical frequency of occurrence under the current environment is calculated. If there are insufficient matching records, the system automatically reverts to the global average. It is understandable that the actual probability and impact range of the same risk node differ significantly under different environmental conditions (e.g., high concurrent user access during opening hours, maintenance windows after closing, and a surge in electronic resource access during exam weeks). The environment label matching mechanism can extract the risk sample closest to the current scenario from historical data, making the risk potential estimate closer to reality. Simultaneously, the risk propagation cost matrix presets propagation cost weights and prevention cost weights, allowing adjustment of the relative importance of propagation blocking and handling time consumption based on the severity level of different security events or business periods. This mechanism enables risk assessment to move away from relying on fixed templates and instead become closely coupled with real historical data and current environmental conditions. The generated prevention and control sequence can adaptively adjust the node order to match the current risk evolution characteristics, thus avoiding the suboptimal sequence problem caused by risk estimation bias.
[0043] 3) During the handling phase, this invention continuously receives the actual handling time and actual risk propagation time reported by the security control execution terminal, updates the corresponding matrix elements in the risk propagation cost matrix in real time, and extracts the control nodes that have not yet been executed from the original optimized sequence. Combining this with the directed risk propagation dependencies in the initial directed risk propagation graph, it re-identifies pairs of unexecuted, unconstrained control nodes without dependent paths. Based on the corrected risk propagation cost matrix, it recalculates the marginal risk decay and iteratively exchanges the results, generating a reordered sequence of unexecuted control nodes. It is understood that the initial optimized sequence is optimized offline based on historical statistical data. However, in actual handling, deviations may occur, such as the handling time of a risk node exceeding expectations, the actual risk propagation path changing due to temporary isolation measures, or sudden changes in the on-site environment causing the original weights to become inapplicable. Continuing to execute the remaining control measures in the original order would accumulate unnecessary waiting and risk diffusion time. This invention, through real-time feedback and online reordering, instantly feeds back the real data observed during execution to the risk propagation model and only performs local re-optimization on the control nodes that have not yet been executed. This closed-loop mechanism ensures that the remaining prevention and control measures are always implemented in the optimal order estimated by the latest data, achieving a technological leap from "one-time offline planning" to "continuous online adaptive scheduling", minimizing emergency response time and improving safety and prevention effectiveness. Attached Figure Description
[0044] Figure 1 This is a schematic diagram of the intelligent assessment and prevention method for security risks in the library management system of the present invention. Detailed Implementation
[0045] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0046] Please see Figure 1 As shown, this invention provides an intelligent assessment and prevention method for security risks in a library management system, comprising the following steps:
[0047] S1: Collect multi-source heterogeneous security data from the library management system, extract the attribute information and topological connection relationships of each asset node, and construct an asset topology map;
[0048] Acquire full security data from the library management system. This data, in a standardized format, covers the configuration and operational information of all asset nodes within the library's cyber-physical system, including logical service instances, access interface objects, and associated physical ports and service dependency descriptions for each asset. For example, the access interface of a document database server records the core switch port number connected to its service port, thus establishing a physical connection between the server and the switch. Simultaneously, acquire the library's building floor plan and computer room layout. These drawings detail the area number of each physical asset (such as servers in the computer room, surveillance cameras in the corridors, and RFID inspection equipment in the reading area), as well as the local coordinates of that device within its area (e.g., position 2U in rack 3). Overlay the area coordinates with the local coordinates to generate the global physical location coordinates of each asset node. For example, if the coordinates of a network computer room on the first floor are set to (50, 30), and the local coordinates of a server within the computer room are (2.5, 1.2), then its global coordinates are (52.5, 31.2). Assign a unique asset identifier to each asset node and label its asset type (e.g., server equipment, network equipment, RFID reader / writer, etc.). Finally, the asset identifier, asset type, regional coordinates, and global physical location coordinates are recorded as a set of records and associated with the corresponding logical service instances and physical connections to form an asset topology map. This map provides the precise spatial location and logical association of each prevention and control node for subsequent steps, enabling the quantification and calculation of the propagation distance of risk between different nodes.
[0049] S2: Based on the current security situation, retrieve the set of prevention and control nodes that meet the risk isolation logic from the security baseline rule base, and construct the initial risk transmission directed graph with the directed risk transmission dependency relationship between the prevention and control nodes as the edge;
[0050] The security baseline rule base pre-stores emergency response rules for various security incidents. Each rule includes the control nodes, the order of control nodes, and the security isolation logic upon which this order is based (e.g., "Blocking the network attack source must precede isolating the infected host; otherwise, it may lead to lateral spread of the attack"). Based on the current security alerts, a target risk event to be handled is identified (e.g., an abnormal port scan is detected in a certain area). All risk propagation rule records related to this event are retrieved from the baseline rule base. These records are traversed, and each involved control node is created as a vertex in a directed graph, with the node identifier recorded in the vertex. For each order relationship, a directed edge is established between the corresponding two vertices, pointing from the control node executed first to the control node executed later, with the type of security isolation logic indicated on the edge. For example, if the rule requires "first block the attack source IP of the perimeter firewall (node A), then isolate the infected terminal (node C)," then the edge A→C is established. All vertices and edges are combined to form a directed acyclic graph, i.e., the initial risk propagation directed graph. This diagram strictly expresses the safety logic constraints that must be followed in prevention and control measures. Any violation of the execution order of directed edges will lead to the failure of risk isolation or secondary disasters.
[0051] S3: Extract the historical occurrence frequency and impact weight of each risk node in historical security events, and combine them with the node association strength in the asset topology map to establish a risk propagation cost matrix with prevention and control nodes as units and the risk potential value being the weighted sum of the probability of risk occurrence and the degree of asset impact.
[0052] First, IoT security sensors deployed throughout the library collect real-time security environment parameters, including network traffic baseline offset, system load rate, concurrent user access volume, current time period, and open area status, generating current security environment labels (e.g., "opening hours," "peak exam period," "normal load"). Records matching the current label are selected from historical security event logs. The impact level of all single events corresponding to the same risk node is extracted and a weighted average is calculated to obtain the historical occurrence frequency of each risk node in the current environment. If there are insufficient matching records, the global occurrence frequency of the node in all historical records is used as a substitute. For example, a certain type of SQL injection attack typically occurs three times more frequently than usual during exam weeks due to a surge in access to electronic resources; the environment labeling mechanism makes the risk potential estimate closer to reality.
[0053] Then, the global physical location coordinates and logical correlation of each asset node are extracted from the asset topology map. For any two different control nodes... and The risk propagation distance is calculated by combining the physical spatial distance and the logical link hop count, and then divided by the preset average risk propagation rate (e.g., network risks propagate at 2 logical hops per second, and physical risks propagate at 5 meters per minute) to obtain the distance from the node. Risk transmission to nodes Estimated propagation time. Obtain node. Historical frequency of occurrence and asset impact weight in the current environment (core business servers have a higher weight than ordinary terminals). Estimated propagation time and nodes. The risk potential value is multiplied by the preset propagation cost weight and prevention and control cost weight respectively, and then summed to obtain the value from the node. propagation to nodes And trigger the node The cost of risk transmission in handling the situation. For example, assuming the transmission cost has a weight of 0.4 and the prevention and control cost has a weight of 0.6, if from... arrive The propagation takes 30 seconds, and the node... If the risk potential is 0.8, then the risk propagation cost = 0.4 × 30 + 0.6 × 0.8 × 100 = 60 (after normalization). Using the prevention and control nodes as row and column indices, for any... ≠ Fill the risk propagation cost into the matrix. Line number List, = The time element is set to 0 to form a risk propagation cost matrix. This matrix quantifies the total cost of risk transmission and triggering action between any two nodes, providing basic data for subsequent sequence optimization.
[0054] S4: Identify adjacent control node pairs that do not have a directed risk transmission path in the initial risk transmission directed graph, form an unconstrained control node pair set, and calculate the marginal risk attenuation caused by exchanging the execution order of the two control nodes in the unconstrained control node pair according to the risk propagation cost matrix.
[0055] The initial risk propagation directed graph is traversed to find all node pairs without directed paths (including direct and indirect paths). For example, in the initial sequence [A, B, C, D], if there is only one dependent edge A→C, then the node pairs (A, B), (B, C), and (C, D) are considered unconstrained because there is no path. However, it should be noted that adjacent node pairs refer to two control nodes that are adjacent in the current execution sequence. First, the initial risk propagation directed graph is topologically sorted to obtain the initial execution sequence (e.g., [A, B, C, D]). In this sequence, each pair of adjacent nodes is checked in turn to see if there is a directed risk propagation path. If not, it is added to the set of unconstrained control node pairs. For example, if A and B are adjacent in the sequence and have no dependency, then (A, B) is an unconstrained control node pair; if B and C are adjacent and have no dependency, then (B, C) is also an unconstrained control node pair.
[0056] For each unconstrained control node pair (denoted as the first control node X and the second control node Y, with X preceding Y), find the node preceding X (the preceding neighbor Pre) and the node following Y (the following neighbor Next) in the sequence. Extract the costs of Pre→X, X→Y, and Y→Next from the risk propagation cost matrix, and sum them to obtain the local propagation cost before the exchange; then extract the costs of Pre→Y, Y→X, and X→Next, and sum them to obtain the local propagation cost after the exchange. Subtract the value of the exchanged offspring from the value of the generation before the exchange to obtain the marginal risk decay of exchanging X and Y. If this decay is positive, it indicates that the local propagation cost is reduced and the risk decay is greater after the exchange. For example, if Pre→X=20, X→Y=15, Y→Next=25, the total cost before the exchange is 60; if Pre→Y=18, Y→X=12, X→Next=20, the total cost after the exchange is 50, then the marginal decay is +10, indicating that the exchange is advantageous; if the total cost after the exchange is 65, then the marginal decay is -5, indicating that the exchange is disadvantageous. This calculation only involves four local nodes, avoiding global recalculation and is highly efficient.
[0057] S5: Using the marginal risk decay as the decision variable, minimizing the total residual risk of the prevention and control execution sequence as the objective, and the directed risk transmission dependency as the hard constraint, solve the optimal prevention and control node sorting strategy to generate an optimized prevention and control execution sequence.
[0058] First, the initial risk propagation directed graph is topologically sorted to generate an initial valid sequence as the current prevention and control execution sequence. Then, based on the current sequence, the marginal risk decay of all unconstrained adjacent prevention and control node pairs is calculated, forming a list of marginal risk decay values. The node pair with the largest positive marginal risk decay value (i.e., the pair with the largest decrease in local cost and the largest risk decay after swapping) is selected as the target swap node pair. The positions of the two nodes in this node pair are swapped in the current sequence to obtain a new current sequence. Since the swap only affects local adjacency, only the marginal risk decay of the unconstrained prevention and control node pairs related to these two nodes needs to be recalculated, and the list updated. This process is repeated until there are no longer any positive marginal risk decay values in the list; at this point, the current sequence is the optimized prevention and control execution sequence.
[0059] For example, given the initial sequence [A, B, C, D, E], calculations show that the marginal decay of swapping (C, D) is +15 (the maximum positive value), so the swap is performed to obtain [A, B, D, C, E]. Then, the marginal decay of the adjacent node pairs (B, D), (D, C), and (C, E) is recalculated. If positive values are still found, swaps continue until convergence. This method employs a greedy strategy, selecting the most advantageous swap each time. Under the premise of satisfying all risk propagation dependencies, it can quickly approach the globally optimal execution order with the minimum total residual risk. Local swaps effectively reduce the switching operations and risk waiting time for security operations personnel between different data centers and management interfaces. To avoid getting trapped in local optima with a single initial sequence, this invention uses a multi-starting-point topology sorting strategy, performing greedy optimization from multiple different valid initial sequences, and finally selecting the sequence with the minimum total residual risk as the final output.
[0060] S6: The optimized prevention and control execution sequence is sent to the security prevention and control execution terminal, the actual evolution data and prevention and control effect data of risk nodes are collected in real time, the risk propagation cost matrix is dynamically corrected, and the prevention and control measures that have not been executed are automatically reordered.
[0061] The generated optimized prevention and control execution sequence is distributed to the handheld security prevention and control execution terminals (such as security operation and maintenance tablets or smart work order terminals) of security operation and maintenance personnel via the security operation and maintenance network. Operation and maintenance personnel execute each step of the prevention and control measures according to the current sequence displayed on the terminal. Upon completion of each prevention and control node, the terminal automatically records the actual handling time of that node (the time from the start of handling to the completion of verification) and the actual risk propagation time from the previous prevention and control node to the current node (calculated by real-time risk evolution data obtained through the terminal's built-in positioning module and security probe). After the operation and maintenance personnel click to confirm, the terminal reports these two time-related data to the system via the security network. Upon receiving the feedback, the system immediately updates the corresponding elements in the risk propagation cost matrix. Specifically, the actual handling time replaces the estimated handling time of that node in the original matrix (i.e., the diagonal element in the matrix), and the actual risk propagation time replaces the corresponding position of the estimated propagation time from the previous node to the current node in the original matrix. For example, if the estimated cost from node X to node Y in the original matrix is 30 seconds of propagation + 60 seconds of handling = 90, but the actual measured propagation time is 25 seconds and the handling time is 75 seconds, then the cost is updated to 100. This yields the corrected risk propagation cost matrix.
[0062] Simultaneously, a subset of unexecuted prevention and control nodes is extracted from the original optimized prevention and control execution sequence, maintaining their current order as an unexecuted sequence. Combining the directed risk propagation dependencies in the initial risk propagation directed graph, adjacent node pairs without dependent paths (i.e., unexecuted unconstrained prevention and control node pairs) are identified in this unexecuted sequence. Based on the corrected risk propagation cost matrix, the marginal risk decay of these unexecuted unconstrained prevention and control node pairs is recalculated, and the unexecuted sequence is iteratively optimized using the same greedy exchange strategy as S5, generating a reordered unexecuted prevention and control sequence. Finally, the reordered sequence is redeployed to the security prevention and control execution terminal to guide operations personnel to continue execution. This process is repeated, dynamically adjusting the remaining sequence based on actual handling data after each prevention and control node is completed, achieving closed-loop adaptive optimization of the security prevention and control handling process.
[0063] Understandably, even if the initial optimized sequence is no longer optimal due to historical data deviations (such as the actual handling time of a certain node being much longer than the average) or unexpected on-site situations (such as changes in risk propagation paths due to temporary network isolation or the need for detours due to equipment failure), the model can be corrected in real time during execution, and the remaining handling paths can be replanned. This avoids the efficiency loss caused by the traditional "one-time generation, rigid execution" of security work orders. By combining multi-source data fusion, real-time risk monitoring, dynamic risk modeling, and local search, this invention significantly improves the execution efficiency and adaptability of the library management system's security emergency response.
[0064] In a preferred embodiment of the present invention, the specific construction process of constructing the asset topology map in step S1 is as follows:
[0065] First, multi-source heterogeneous security data from the library management system is obtained. This data records the configuration and operation information of all asset nodes (referred to as asset devices, such as application servers, database servers, core switches, aggregation switches, access switches, firewalls, intrusion detection systems, RFID inspection equipment, access controllers, surveillance cameras, self-service borrowing and returning machines, retrieval terminals, etc.) within the library's cyber-physical system in a standardized format. Each asset device contains one or more logical service instances (such as "document retrieval service" or "user authentication service"), and each logical service is associated with an access interface object (the access interface is equivalent to the logical entry point for the asset device to communicate with the outside world, and different access interfaces correspond to different communication protocol types). During data collection, starting from the logical service instance of each asset device, the corresponding access interface object is found. Then, the physical port and service dependency description information associated with the asset device are read from the access interface object (e.g., "database service port is connected to core switch port 5" or "RFID middleware service depends on user authentication service"). The reason why physical port and dependency information can be obtained from the access interface is that the CMDB configuration management library uses the service dependency description field to bind the logical communication interface with the actual hardware port and service call relationship. This establishes a one-to-one physical connection relationship between each asset device and network device, as well as a logical call relationship between services, thereby clarifying the network topology and business topology between library assets. Simultaneously, the library's architectural floor plan, computer room layout plan, and equipment rack U-position distribution plan were obtained. These drawings graphically depict the area number and coordinates of each physical asset (e.g., servers in the network server room, surveillance cameras on the corridor ceiling, RFID inspection antennas on the bookshelves in the reading area) on the library's overall floor plan (e.g., "the lower left corner of the network server room on the first floor is (50 meters, 30 meters) in the library's overall coordinate system"). The drawings also detailed the local coordinates of the asset within its area (e.g., "a server is located at position 20U in rack 3 of this server room, with its center 2.5 meters from the left wall and 1.2 meters from the front wall"). By spatially superimposing the area coordinates and the local coordinates (i.e., adding a local offset to the area coordinates), the global physical coordinates of the asset node within the entire library are obtained (e.g., adding a local offset of (2.5, 1.2) to the lower left corner of the server room (50, 30) yields the global coordinates (52.5, 31.2)).
[0066] The regional coordinates provide the broad location of the functional area to which the equipment belongs, while the local coordinates provide the precise location of the equipment within that area. Overlaying these two coordinates uniquely identifies the precise locations that security and maintenance personnel need to reach and operate on-site. Next, each asset node is assigned a unique asset identifier throughout the entire library (e.g., "S-1F-NOC-R03-U20" represents a 20U server in rack 3 of the network server room on the first floor). Simultaneously, the asset type corresponding to that asset node is extracted from drawing annotations or equipment attributes. Asset types include server equipment, network equipment, storage equipment, terminal equipment, RFID readers / writers, monitoring equipment, and paper document assets (e.g., a server is labeled as "server equipment," and an RFID inspection device is labeled as "RFID reader / writer"). Finally, the four pieces of information—asset identifier, asset type, regional coordinates, and global physical location coordinates—are recorded as a set and associated with the logical service instance associated with the asset node and the previously established physical connection relationship (for example, associating server S-1F-NOC-R03-U20 with the literature database service it runs, and storing the network connection relationship of the server rack). The collection of records for all asset nodes together constitutes the asset topology map.
[0067] In another preferred embodiment of the present invention, the specific construction process of the initial risk transmission directed graph in step S2 is as follows:
[0068] First, the target risk event to be addressed is determined based on the current security alerts. For example, if the current security event is that the library's OPAC retrieval server has been subjected to an SQL injection attack and is suspected of having gained database privileges, then the target risk event is this injection attack and its potential data leakage and lateral movement. All risk propagation rule records related to this target risk event are retrieved from the security baseline rule base. The security baseline rule base is a knowledge base that pre-stores emergency response logic for various security events. Each rule record includes the control nodes, the order of control nodes, and the security isolation logic on which this order is based (for example, a rule record states: first block the attack source IP at the perimeter firewall, then isolate the infected server network; the logic is to prevent the attack source from continuing to launch injections or lateral movement). During retrieval, the baseline database is searched according to the type of the target risk event, and all rule records related to this event or that this event may cause secondary risks are extracted. The process iterates through each risk propagation rule record. For each prevention and control node appearing in the record, it checks whether the node has already been created as a directed graph vertex. If not, a new vertex is created, recording the unique identifier of the prevention and control node (e.g., node A represents "blocking the attack source IP", node C represents "isolating the infected server"). Then, based on the order of events recorded in the rule record, a directed edge is established between the vertices corresponding to the two prevention and control nodes with an order relationship. The direction of the edge is from the prevention and control node executed first to the prevention and control node executed later, and the security isolation logic type based on this order is marked on the edge (e.g., "preventing lateral spread" is marked on the edge A→C). For example, the rule "block the attack source IP first (A), then isolate the infected server (C)" establishes a directed edge A→C between vertices A and C; the rule "freeze the database high-privilege account first (D), then perform memory forensics (E)" establishes a directed edge D→E. After all rule records have been processed, a graph structure is obtained with prevention and control nodes as vertices and directed risk propagation dependencies as edges. Since the rules governing the order of emergency response do not allow for circular dependencies (otherwise there would be no executable response sequence), this graph must be a directed acyclic graph.
[0069] Understandably, this involves transforming the textualized safety rules scattered across the baseline library into a graph structure that can be directly processed by a computer. Each vertex represents a specific action, and each directed edge represents an irreversible sequence constraint. By constructing an initial directed graph of risk propagation, it becomes clear which actions have mandatory sequential dependencies and which have no dependencies. This graph forms the constraint basis for subsequent topology sorting and sequence optimization: only based on the directed edges in this graph can an initial execution sequence satisfying all risk propagation dependencies be generated; and only based on the path relationships between vertices in this graph can "unconstrained control node pairs" (i.e., node pairs without directed paths) be accurately identified in subsequent steps, thus enabling safe sequence swap optimization.
[0070] In another preferred embodiment of the present invention, the specific process of extracting the historical occurrence frequency of each risk node in historical security events in step S3 is as follows:
[0071] Specifically, network traffic probes, host agents, temperature and humidity sensors, and access control status collectors are deployed at key locations such as the library's network exit, core computer room, low-voltage electrical rooms on each floor, and server area. The network traffic probes collect full traffic through mirror ports and extract baseline offset features. The host agents collect system load indicators such as CPU utilization, memory usage, and disk I / O. The access control status collectors obtain the open and closed status of each area. The current time period is read directly from the system clock and compared with the preset library opening schedule or academic calendar to divide it into opening hours, closing hours, peak exam periods, or holidays. These collected continuous numerical environmental parameters are discretized into tags. The network traffic baseline offset is compared with a preset abnormal threshold range. When the traffic is consistently within a high offset range, it is marked as a high load tag; when it is within a normal range, it is marked as a normal load tag. User concurrent access volume is compared with the academic calendar. Exam weeks are marked as exam peak periods, winter and summer vacations as holidays, and regular teaching weeks as routine periods. The current time period is directly mapped to either an opening or closing time period tag based on the time interval it belongs to. These are combined to generate the current security environment tag. The source of historical security event records is the handling log automatically uploaded to the security management platform by the security control execution terminal after each emergency response. Each log is automatically generated the moment the operations and maintenance personnel click to confirm the completion of a certain control node. The record includes the risk node identifier corresponding to the control node, the event impact level from clicking to start the handling to clicking to confirm the completion, and the historical security environment tags collected and archived by the same IoT security sensor on the day of the handling. When calculating the risk propagation cost of a current event, the generated current security environment label is used to traverse historical security event records. Each historical security environment label is compared to the current security environment label to ensure complete consistency. All historical records with consistent labels are aggregated and grouped according to risk node identifiers. A weighted average of the impact level of each single event within each group is calculated. This is done by multiplying the impact level by the corresponding weight, summing the results, and then dividing by the number of records. This yields the historical occurrence frequency of that risk node in the current security environment. If a risk node has never occurred under the current security environment label (i.e., the number of selected records is zero), the environment label selection criteria are discarded. The overall weighted average of the impact levels of all single events of that risk node across all historical records, regardless of the environment label, is then calculated to obtain the global historical occurrence frequency. This ensures that a usable frequency parameter is available for any risk node.
[0072] It is understandable that in actual security operations, the probability and scope of occurrence of the same type of risk may vary significantly under different environmental conditions, such as peak access times for electronic resources during exam weeks, maintenance windows during winter and summer vacations, and large user access during opening hours. If the average is calculated using all historical data regardless of the environment, the risk characteristics under different conditions will be mixed together, resulting in a fuzzy average that does not represent any actual scenario. Using such a fuzzy value to guide the optimization of prevention and control sequences may lead to the selected sequences being inefficient in actual handling. By using IoT security sensors to perceive the current security environment in real time and match it with historical data under the same environmental tags, the extracted historical occurrence frequency can more realistically reflect the expected probability of the risk occurring during the current business period, current load level, and current opening status. This helps emergency response to shorten the total handling time as much as possible while ensuring safety, and reduces the need for security maintenance personnel to switch back and forth between different areas within the venue.
[0073] In another preferred embodiment of the present invention, if the number of filtered records is zero, the global historical occurrence frequency of the risk node in all historical records shall be used as the historical occurrence frequency.
[0074] In another preferred embodiment of the present invention, the specific construction process of the risk propagation cost matrix in step S3 is as follows:
[0075] Specifically, the global physical location coordinates and logical correlation of each asset node are first extracted from the asset topology map. The global physical location coordinates are obtained by analyzing multi-source heterogeneous security data and building floor plans in step S1, and then superimposing the absolute coordinates of the area to which each asset node belongs in the library's overall floor plan with the local offset coordinates of the device in the area. The logical correlation is derived from service call relationships and network hop count. After extracting the coordinates and correlation of all prevention and control nodes, the risk propagation distance between any two different prevention and control nodes is calculated. This distance calculation adopts a weighted fusion of physical Manhattan distance and logical hop count. Taking physical distance as an example, it is the absolute value of the difference between the global physical location coordinates of the two prevention and control nodes in the horizontal axis direction plus the absolute value of the difference in the horizontal axis direction, plus the difference between floors in the vertical direction multiplied by the floor conversion coefficient. The floor conversion coefficient reflects the equivalent distance conversion relationship between people going up and down stairs or taking elevators and horizontal walking. At the same time, the logical network hop count between the two nodes is calculated and multiplied by the network propagation coefficient. The equivalent value of physical distance and the equivalent value of logical distance are weighted and fused according to risk type. The risk propagation distance calculated in this way can reflect the actual path length that risk needs to travel from one asset to another, including both the logical propagation in cyberspace and the spatial propagation of physical movement and handling by maintenance personnel. Then, the calculated risk propagation distance is divided by the preset average risk propagation rate. This average propagation rate is the average speed at which risks propagate in the library network and physical space, statistically derived from a large number of historical security events. Dividing the distance by the rate yields the estimated propagation time required for the risk to travel from control node i to control node j, in seconds or minutes. Next, the historical occurrence frequency and asset impact weight of control node j in the current security environment are obtained. The frequency is derived from the weighted average occurrence frequency calculated by collecting current environmental parameters through IoT security sensors and matching them with historical environmental records in the aforementioned steps of this embodiment. The asset impact weight is pre-assigned based on the importance of the business carried by the asset (e.g., the weight of the core database is 1.0, and the weight of the ordinary retrieval terminal is 0.3), reflecting the degree of impact caused by the risk breach at the node under the current business period and current load level. Next, the estimated propagation time is multiplied by a preset propagation cost weight, and the risk potential value of control node j (the normalized product of the frequency of occurrence and the impact weight) is multiplied by a preset control cost weight. The two products are then added together to obtain the risk propagation cost from control node i to control node j and triggering control node j to take action. The propagation cost weight and control cost weight can be configured according to the importance attached to blocking the propagation speed and the thoroughness of the action in the actual security incident response. For example, when encountering rapidly spreading threats such as ransomware, the propagation cost weight can be appropriately increased to prioritize blocking the propagation path. When encountering high-impact threats such as data breaches, the control cost weight can be increased to prioritize the disposal of high-value assets.Finally, a square matrix is constructed using all prevention and control nodes as row and column indices. For any two different prevention and control nodes i and j, the risk propagation cost calculated above is filled into the i-th row and j-th column of the matrix. For positions where the row and column indices are equal, i.e., the risk propagation cost between the prevention and control node and itself, it is directly set to zero, because there is no propagation or triggering process from a certain prevention and control node to itself. This forms a risk propagation cost matrix with zero diagonal elements and the remaining elements being the risk propagation cost.
[0076] It is understandable that by constructing a risk propagation cost matrix, each matrix element quantifies the total cost of the complete atomic action of "the risk from one node to the next node and triggering its response." This allows for direct querying of the complete transfer cost between any two prevention and control nodes during subsequent rearrangement of the prevention and control sequence, without needing to separately calculate and temporarily add the propagation and response times. Introducing propagation cost weights and prevention and control cost weights also enables the system to flexibly adjust the optimization focus based on different security event types, enhancing the engineering adaptability of the solution. This ensures that the generated optimized prevention and control execution sequence is not only compliant in terms of risk propagation dependencies but also as short as possible in the actual response path. This helps emergency response effectively compress the total time from alarm confirmation to risk elimination while meeting security constraints, reducing unnecessary back-and-forth switching by security personnel within the facility, and improving overall emergency response efficiency and the work experience of security personnel.
[0077] In another preferred embodiment of the present invention, the specific calculation process for the marginal risk decay in step S5 is as follows:
[0078] First, select one unconstrained prevention and control node pair from the established set of unconstrained prevention and control node pairs. This pair consists of a first prevention and control node A and a second prevention and control node B. There is no directed risk propagation path between A and B in the initial directed risk propagation graph. This means that processing A or B first will not violate the security isolation logic. For example, A is "blocking a certain attack source IP," and B is "collecting and storing logs from another network segment." There is no order constraint between them, so they can participate in subsequent exchange judgments as an unconstrained prevention and control node pair. Then, in the currently optimized prevention and control execution sequence, find the positions of A and B. Since they are adjacent node pairs, they are next to each other in the sequence. Assume a segment of the sequence is "..., P, A, B, Q, ...", where P is the prevention and control node immediately before A, called the preceding adjacent node, and Q is the prevention and control node immediately after B, called the following adjacent node. For example, the current sequence is [P, A, B, Q, E], where P is blocking boundary firewall access control, A is blocking the attack source IP, B is isolating the infected terminal, and Q is resetting the database account password. The reason for locating P and Q in this step is that swapping the order of A and B only affects the cost of the local path from P to A to B to Q, without changing the total cost of other parts of the sequence. Therefore, we only need to calculate the change in the transfer cost between these four nodes, avoiding global recalculation.
[0079] Next, the transfer costs between the four nodes in a specific order are read from the previously constructed risk propagation cost matrix. The risk propagation cost matrix has pre-calculated the weighted cost of "risk propagation from node X to node Y and triggering Y's action" between any two nodes. First, the cost CPA for propagation from P to A, the cost CAB for propagation from A to B, and the cost CBQ for propagation from B to Q are extracted. These three are added together to obtain the total local propagation cost before the exchange, Cbefore = CPA + CAB + CBQ. This is because in the unexchanged order, the risk propagates from P to A after being handled, triggering A's action, then from A to B and triggering B's action, and finally from B to Q and triggering Q's action. The total cost of these three propagations and actions is the sum of these three items. Then, the cost CPB for propagation from P to B, the cost CBA for propagation from B to A, and the cost CAQ for propagation from A to Q are extracted. These three are added together to obtain the total local propagation cost after the exchange, Cafter = CPB + CBA + CAQ. After the exchange, the risk is directly transmitted from P to B, triggering B's response, then from B to A, triggering A's response, and finally from A to Q, triggering Q's response. The corresponding costs are the sum of CPB, CBA, and CAQ. Finally, the difference ΔR = Cbefore - Cafter, obtained by subtracting the local propagation cost after the exchange from the cost before the exchange, represents the marginal risk attenuation resulting from the order of exchanging the first control node A with the second control node B. If ΔR is positive, it indicates that the local propagation cost is reduced and the risk attenuation is greater after the exchange, making the exchange beneficial; if ΔR is negative, the cost increases after the exchange, and the exchange should not be conducted. For example, assuming CPA is 20, CAB is 15, CBQ is 25, and Cbefore is 60; and CPB is 18, CBA is 12, CAQ is 20, and Cafter is 50, then ΔR is +10, indicating that the exchange reduces the local path risk cost by 10 units and should be performed. Conversely, if CPB is 22, CBA is 18, CAQ is 25, and Cafter is 65, then ΔR is -5, indicating that the exchange worsens the local path and should not be performed. By calculating the marginal risk decay of each unconstrained control node pair, the system can select the node pair with the largest positive ΔR value for exchange in each iteration, thereby gradually reducing the total residual risk and achieving optimization of the local order.
[0080] In another preferred embodiment of the present invention, the specific process of generating the optimized prevention and control execution sequence in step S5 is as follows:
[0081] The initial risk propagation directed graph constructed in step S2 is read. Each vertex in this graph corresponds to a prevention and control node, and each directed edge corresponds to a directed risk propagation dependency relationship from the first prevention and control node to the next. The basic process of topology sorting is to repeatedly select prevention and control nodes that do not have directed risk propagation dependencies ending at themselves from the graph, and remove that node and all directed edges originating from it from the graph, until all prevention and control nodes have been output. In a single topology sorting process, when multiple prevention and control nodes satisfy the above conditions exist at a certain moment, the conventional approach is to arbitrarily select one of them for output. However, this embodiment introduces a branching strategy here. For example, in an initial risk propagation directed graph, neither the prevention and control node "Block Attack Source IP" nor the prevention and control node "Collect System Log Snapshot" has a directed risk propagation dependency relationship ending at itself, that is, neither of them has any prevention and control node that must be executed before them. In the first topology sort, "Block Attack Source IP" is selected as the first output node, and in the second topology sort, "Collect System Log Snapshot" is selected as the first output node. Each topology sort makes a different choice when encountering multiple optional nodes, thus generating multiple valid initial prevention and control execution sequences with different node orders. All valid initial prevention and control execution sequences satisfy all directed risk propagation dependencies in the initial risk propagation directed graph, meaning that the starting point of any directed edge is always before the ending point in the sequence. The total number of topology sorts can be set based on the number of optional branch nodes in the initial risk propagation directed graph; for example, it can be set to generate all possible topology sort results, or an upper limit can be set for the number generated.
[0082] The first legitimate initial prevention and control execution sequence is taken as the first current prevention and control execution sequence. From the marginal risk decay list generated in step S4, all unconstrained prevention and control node pairs corresponding to this sequence and their marginal risk decay values are read. A positive marginal risk decay value indicates a reduction in local propagation cost and greater risk attenuation after the exchange; its magnitude represents the extent of cost reduction. All entries in the list are traversed, and all unconstrained prevention and control node pairs with positive marginal risk decay values are selected. The pair with the largest value is then chosen as the target exchange node pair. For example, if the current marginal risk decay list contains three pairs of unconstrained prevention and control node pairs: the first pair consists of "blocking the attack source IP" and "collecting network traffic snapshots," with a marginal risk decay value of +15; the second pair consists of "isolating infected terminals" and "resetting database passwords," with a marginal risk decay value of +5; and the third pair consists of "collecting system logs" and "restarting application services," with a marginal risk decay value of -8, then the first pair is selected as the target exchange node pair. Locate the positions of the first prevention and control node "blocking the attack source IP" and the second prevention and control node "collecting network traffic snapshots" in the sequence, swap their order, and keep the relative positions of the remaining prevention and control nodes in the sequence unchanged to obtain the updated current prevention and control execution sequence.
[0083] After the exchange, the adjacency relationships of some node pairs in the sequence change. Affected node pairs include the target exchanged node pair itself and the newly formed adjacency pairs. For each affected unconstrained control node pair, following the marginal risk decay calculation method in step S4, the corresponding previous and subsequent neighboring node transfer costs are re-extracted from the risk propagation cost matrix. The difference in local propagation costs before and after the exchange is recalculated to obtain the updated marginal risk decay, which replaces the original value in the marginal risk decay list. For unconstrained control node pairs unaffected by this exchange, their marginal risk decay remains unchanged. After the update, the node pair with the largest positive value is searched again for the next round of exchange. This process is repeated iteratively, with each round of exchange further reducing the total residual risk of the sequence. When a search in a certain round finds that there are no positive entries in the marginal risk decay list, it indicates that the current sequence can no longer further reduce the total residual risk through any single adjacency exchange, meaning it has reached a locally optimal state under the initial sequence. The sequence at this point is saved as the locally optimal control execution sequence corresponding to the legal initial control execution sequence. After completing the greedy iterative exchange optimization of the first legal initial prevention and control execution sequence, the second, third and all legal initial prevention and control execution sequences are read in sequence. The above complete greedy iterative exchange process is performed on each sequence to obtain the corresponding local optimal prevention and control execution sequence.
[0084] For each locally optimal prevention and control execution sequence, starting from the first prevention and control node in the sequence, the risk propagation cost of the previous prevention and control node being transferred to the next prevention and control node and triggering the subsequent prevention and control node's action is read sequentially from the risk propagation cost matrix. All transfer costs are summed to obtain the total residual risk of the sequence. For example, if a locally optimal sequence contains five prevention and control nodes, the risk propagation costs from the starting point to the first prevention and control node, the first to the second, the second to the third, the third to the fourth, and the fourth to the fifth prevention and control nodes are read respectively. The sum of these five costs is the total residual risk of the sequence. The total residual risks of each locally optimal sequence are compared, and the sequence with the smallest total residual risk is selected as the final optimized prevention and control execution sequence. When there are two or more locally optimal sequences with equal and minimum total residual risks, the sequence with the lowest resource consumption is selected as the optimized execution sequence. Resource consumption is calculated by weighting the number of maintenance personnel required for each control node, the expected time window, and the number of required tools and equipment. If resource consumption is still the same, the sequence with the most concentrated global physical location coordinate distribution of the control nodes is selected as the optimized execution sequence. The concentration of global physical location coordinate distribution is the reciprocal of the sum of the dispersion of the global physical location coordinates of each control node in the sequence across all spatial dimensions. The smaller the dispersion, the more concentrated the movement paths of the maintenance personnel.
[0085] This embodiment uses a multi-starting-point topological sorting and optimal output method to enable greedy iterative exchange optimization to explore a wider feasible solution space from multiple different initial sequences. This effectively reduces the risk that a single initial sequence may fall into a poor local optimum, improves the overall quality of the final output optimization and control execution sequence, and further compresses the total residual risk of emergency response while strictly satisfying the risk transmission dependency constraint.
[0086] In another preferred embodiment of the present invention, if there are two or more locally optimal prevention and control execution sequences with equal and minimum total residual risks, the locally optimal prevention and control execution sequence with the least consumption of prevention and control resources is selected as the optimized prevention and control execution sequence output.
[0087] In another preferred embodiment of the present invention, the specific process of automatically reordering the unexecuted prevention and control measures in step S6 is as follows:
[0088] After completing the handling of each control node on the security control execution terminal, the security operations and maintenance personnel click the corresponding confirmation button for that control node. The security control execution terminal automatically generates an execution completion feedback record. This feedback record contains two actual measurements. The first is the actual handling time of the current control node, which is obtained by the security control execution terminal recording the time difference between the moment the operations and maintenance personnel click the start handling button and the moment they click the confirmation button. For example, before the operations and maintenance personnel arrive at a certain rack, they click start handling to block the IP on the terminal, complete the firewall policy configuration, verify its effectiveness, and then click confirmation. The terminal automatically calculates the number of seconds elapsed between the two clicks, which is the actual handling time of that control node. Secondly, the actual risk propagation time from the previous control node to the current control node is determined by the security control execution terminal continuously recording the real-time physical location coordinates of the maintenance personnel through its built-in wireless positioning module. Simultaneously, security probes continuously monitor changes in risk indicators. When the maintenance personnel complete the previous control node and click confirm, the terminal records the location coordinates, timestamp, and risk status at that moment as the propagation starting point. When the maintenance personnel arrive at the current control node and click start handling, the terminal records the location coordinates, timestamp, and risk status at that moment as the propagation ending point. Subtracting the two timestamps and combining them with the actual changes in risk indicators yields the actual risk propagation time from the previous control node to the current control node. For example, if the maintenance personnel walk from the previous data center to the current data center after completing handling, the terminal records the time of leaving the previous data center and the time of arriving at the current data center through its positioning module. Simultaneously, the security probe records the actual change in risk indicators during this time. The combination of these two data points represents the actual risk propagation time.
[0089] Then, these two actual measurements are updated to the corresponding matrix elements in the risk propagation cost matrix. Specifically, the row and column intersection where the risk propagation cost shifts from the previous control node to the current control node is located is found. This position originally stores the risk propagation cost from the previous control node to the current control node, triggering the current control node's response. In step S3, this risk propagation cost is obtained by weighted summation of the estimated propagation time and the risk potential value. During the update, the estimated propagation time associated with this position is replaced with the actual risk propagation time reported this time, and the response time associated with this position is also replaced with the actual response time reported this time. This yields the corrected risk propagation cost matrix. Compared to the initial matrix built based on historical averages and estimated propagation rates, the corrected matrix incorporates personalized factors such as the actual risk propagation speed and the proficiency of maintenance personnel in the current emergency, thus more accurately reflecting the true risk propagation cost of this event.
[0090] Next, unexecuted prevention and control nodes are extracted from the optimized prevention and control execution sequence. The extraction method involves removing completed prevention and control nodes from the optimized sequence based on the currently reported completed prevention and control node markers, retaining the portion of the sequence that follows the currently completed nodes but has not yet been confirmed as completed by operations personnel. These remaining prevention and control nodes constitute the unexecuted sequence. Then, the directed risk transmission dependencies between these unexecuted prevention and control nodes in the initial risk transmission directed graph are used to identify unexecuted unconstrained prevention and control node pairs. The identification principle is the same as step S4: check whether there is a directed risk transmission path between any two unexecuted prevention and control nodes in the initial risk transmission directed graph. If, starting from the first node, it is impossible to reach the second node along the directed edge direction regardless of how many intermediate nodes are traversed, and it is also impossible to reach the first node from the second node, then this node pair is an unexecuted unconstrained prevention and control node pair. For example, in an unexecuted sequence, there are three prevention and control nodes: database password reset, log forensic analysis, and endpoint malware detection. Tracing along the directed edges in the initial risk transmission directed graph reveals that neither database password reset nor log forensic analysis can reach the other along the directed edges, thus forming an unexecuted unconstrained prevention and control node pair. However, endpoint malware detection has a directed risk transmission dependency relationship in the initial risk transmission directed graph, where log forensic analysis points to it. This indicates that log forensics must be completed to secure evidence before malware detection can be performed to avoid destroying the evidence. Therefore, there is a dependency path between endpoint malware detection and log forensic analysis, and they cannot form an unconstrained prevention and control node pair.
[0091] Subsequently, based on the revised risk propagation cost matrix, and following the same marginal risk decay calculation method as in step S5, the marginal risk decay of each identified pair of unexecuted unconstrained control nodes is calculated. The calculation method involves determining the preceding and following adjacent nodes of the node pair in the unexecuted sequence, extracting the local propagation costs before and after the exchange from the revised risk propagation cost matrix, and subtracting the local propagation cost after the exchange from the local propagation cost before the exchange to obtain the marginal risk decay. Then, from all calculated marginal risk decay values, the unexecuted unconstrained control node pair with the largest positive value is selected, and the positions of the first and second control nodes in this pair are swapped in the unexecuted sequence to obtain the updated unexecuted sequence. This process of searching for node pairs with the largest positive marginal risk decay values from the remaining unexecuted unconstrained control node pairs, exchanging them, and updating the sequence is repeated. After each exchange, only the marginal risk decay of the unexecuted unconstrained control node pairs affected by this exchange is recalculated; the marginal risk decay of the remaining node pairs remains unchanged. When a round of searching reveals that the marginal risk decay of all pairs of unexecuted unconstrained control nodes is no longer positive, it indicates that the current unexecuted sequence has reached a local optimum, and the total residual risk cannot be further reduced through any single adjacent swap. The unexecuted sequence at this point is then used as the reordered unexecuted control sequence and distributed to the security control execution terminal through the security operations network. Operations personnel continue to execute subsequent actions according to the new sequence.
[0092] Through the above process, the optimized prevention and control execution sequence can dynamically adjust the remaining unexecuted sequences based on the actual time consumption data of executed nodes during actual handling. This promptly responds to time deviations caused by factors such as personnel differences, changes in the on-site environment, and different actual risk evolution paths during actual handling, ensuring that subsequent prevention and control sequences always make optimization decisions based on the latest actual data. Each time a prevention and control node is completed, the system obtains a new set of actual time consumption data and updates the risk propagation cost matrix, essentially performing an online calibration of the cost model. Then, the remaining unexecuted sequences are reordered based on the calibrated cost model. This closed-loop mechanism linking handling and planning ensures that safety work orders are no longer static commands, but rather dynamic guidance plans that continuously self-correct as handling progresses. It retains the insurmountable constraints of risk transmission dependence while continuously compressing the total residual risk of remaining handling through real-time data feedback, further shortening the overall handling time of emergency events and reducing unnecessary trips to the site for maintenance personnel.
[0093] Although embodiments of the invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the appended claims and their equivalents.
Claims
1. A method for intelligent assessment and prevention of security risks in a library management system, characterized in that, Includes the following steps: S1: Collect multi-source heterogeneous security data from the library management system, extract the attribute information and topological connection relationships of each asset node, and construct an asset topology map; S2: Based on the current security situation, retrieve the set of prevention and control nodes that meet the risk isolation logic from the security baseline rule base, and construct the initial risk transmission directed graph with the directed risk transmission dependency relationship between the prevention and control nodes as the edge; S3: Extract the historical occurrence frequency and impact weight of each risk node in historical security events, and combine them with the node association strength in the asset topology map to establish a risk propagation cost matrix with prevention and control nodes as units and the risk potential value being the weighted sum of the probability of risk occurrence and the degree of asset impact. S4: Identify adjacent control node pairs that do not have a directed risk transmission path in the initial risk transmission directed graph, form an unconstrained control node pair set, and calculate the marginal risk attenuation caused by exchanging the execution order of the two control nodes in the unconstrained control node pair according to the risk propagation cost matrix. S5: Using the marginal risk decay as the decision variable, minimizing the total residual risk of the prevention and control execution sequence as the objective, and the directed risk transmission dependency as the hard constraint, solve the optimal prevention and control node sorting strategy to generate an optimized prevention and control execution sequence. S6: The optimized prevention and control execution sequence is sent to the security prevention and control execution terminal, the actual evolution data and prevention and control effect data of risk nodes are collected in real time, the risk propagation cost matrix is dynamically corrected, and the prevention and control measures that have not been executed are automatically reordered.
2. The intelligent security risk assessment and prevention method for a library management system according to claim 1, characterized in that, In S1, the specific process of constructing the asset topology map is as follows: Collect network traffic logs, host operation logs, database access logs, RFID access control data, video surveillance data, and user behavior logs from the library management system; extract logical service instances and their access interface objects for each asset node; obtain the physical port and service dependency information associated with the asset node from the access interface object; and establish physical connection relationships and logical call relationships between asset nodes based on the physical port and service dependency information. The coordinate location information of each physical asset and the local location coordinates of the asset equipment in its computer room or reading area are extracted from the library building floor plan. The coordinate location information of the area and the local location coordinates are superimposed to generate the global physical location coordinates of the asset node. Each asset node is assigned a unique asset identifier, and the asset type corresponding to the asset node is extracted. The asset types include server equipment, network equipment, storage equipment, terminal equipment, RFID reading and writing equipment, monitoring equipment, and paper document assets. The asset identifier, asset type, regional coordinate location information, and global physical location coordinates are recorded as a set of records and associated with the logical service instance and the physical connection relationship to construct an asset topology map.
3. The intelligent security risk assessment and prevention method for a library management system according to claim 1, characterized in that, In S2, the specific construction process of the initial risk transmission directed graph is as follows: Based on the current security alerts, a target risk event to be handled is identified. Risk transmission rule records that are related to the target risk event are retrieved from the security baseline rule base. The risk transmission rule records include control nodes, the sequential relationship between control nodes, and the security isolation logic on which the sequential relationship is based. The retrieved risk transmission rule records are traversed, and each prevention and control node involved is created as a directed graph vertex. The directed graph vertex contains the corresponding prevention and control node identifier. According to the order relationship between the prevention and control nodes recorded in the risk transmission rule records, a directed edge is established between the directed graph vertices corresponding to two prevention and control nodes with an order relationship. The direction of the directed edge is from the prevention and control node executed first to the prevention and control node executed later. The directed edge contains the security isolation logic type on which the order relationship is based. Based on the vertices and edges of the directed graph, an initial risk transmission directed graph is constructed, in which the vertices represent prevention and control nodes and the edges represent directed risk transmission dependencies.
4. The intelligent security risk assessment and prevention method for a library management system according to claim 1, characterized in that, In step S3, the specific process of extracting the historical occurrence frequency of each risk node in historical security events is as follows: IoT security sensors deployed throughout the library collect real-time security environment parameters, including network traffic baseline offset, system load rate, concurrent user access volume, current time period, and open area status. Based on these parameters, current security environment tags are generated, including tags for opening hours, closing hours, peak exam periods, and holidays. Historical security event records are also retrieved, with each record containing a risk node identifier, the impact level of a single event, and historical security environment tags. From the historical security event records, records whose historical security environment labels match the current security environment labels are selected. The impact level of all single events corresponding to the same risk node identifier is extracted and the weighted average is calculated to obtain the historical occurrence frequency of each risk node in the current security environment.
5. The intelligent security risk assessment and prevention method for a library management system according to claim 4, characterized in that, It also includes using the global historical occurrence frequency of the risk node in all historical records as the historical occurrence frequency if the number of filtered records is zero.
6. The intelligent security risk assessment and prevention method for a library management system according to claim 1, characterized in that, In S3, the specific construction process of the risk propagation cost matrix is as follows: Extract the global physical location coordinates and logical correlation of each asset node from the asset topology map, and calculate the correlation between any two different control nodes. With prevention and control nodes The risk propagation distance between the nodes is calculated by dividing the risk propagation distance by a preset average risk propagation rate. Risk transmission to prevention and control nodes Estimated transmission time; acquisition of prevention and control nodes Based on the historical frequency of occurrence and asset impact weight in the current security environment, the estimated propagation time is compared with the control nodes. The risk potential value under the current security environment is multiplied by preset propagation cost weights and prevention and control cost weights, and then summed to obtain the value from the prevention and control node. Spread to prevention and control points And trigger the prevention and control node The risk of transmission cost; using prevention and control nodes as row and column indexes, for any two different prevention and control nodes... and The risk propagation cost is filled into the matrix. Line 1 column, when equal The risk propagation cost matrix is constructed by setting the elements of the time matrix to 0.
7. The intelligent security risk assessment and prevention method for a library management system according to claim 1, characterized in that, In S4, the specific calculation process for the marginal risk decay is as follows: Obtain an unconstrained prevention and control node pair from the set of unconstrained prevention and control node pairs. The unconstrained prevention and control node pair consists of a first prevention and control node and a second prevention and control node. There is no directed risk transmission path between the first prevention and control node and the second prevention and control node. In the current optimized prevention and control execution sequence, the positions of the first prevention and control node and the second prevention and control node in the sequence are determined, and the prevention and control node immediately preceding the position in the sequence is obtained as the previous neighbor node, and the prevention and control node immediately following the position in the sequence is obtained as the next neighbor node. From the risk propagation cost matrix, extract the first risk cost from the previous neighbor node to the first prevention and control node, the second risk cost from the first prevention and control node to the second prevention and control node, and the third risk cost from the second prevention and control node to the next neighbor node. Summate the first risk cost, the second risk cost, and the third risk cost to obtain the local propagation cost before the exchange. From the risk propagation cost matrix, extract the fourth risk cost from the previous neighbor node to the second prevention and control node, the fifth risk cost from the second prevention and control node to the first prevention and control node, and the sixth risk cost from the first prevention and control node to the next neighbor node. Summate the fourth risk cost, the fifth risk cost, and the sixth risk cost to obtain the exchanged local propagation cost. Subtracting the local propagation cost after the exchange from the local propagation cost before the exchange yields the marginal risk attenuation of the execution order of the first and second prevention and control nodes.
8. The intelligent security risk assessment and prevention method for a library management system according to claim 1, characterized in that, In S5, the specific process for generating the optimized prevention and control execution sequence is as follows: Multiple topological sorts are performed on the initial risk transmission directed graph. During each topological sort, when there are multiple prevention and control nodes in the initial risk transmission directed graph that do not have a directed risk transmission dependency relationship with them as the endpoint, different of the above prevention and control nodes are selected as the current output nodes to generate multiple valid initial prevention and control execution sequences. Each valid initial prevention and control execution sequence is taken as the current prevention and control execution sequence. The unconstrained prevention and control node pair with the largest positive marginal risk decay value is selected from the marginal risk decay value list as the target exchange node pair. The target exchange node pair consists of a first prevention and control node and a second prevention and control node. The execution order of the first prevention and control node and the second prevention and control node is exchanged in the current prevention and control execution sequence to obtain the updated current prevention and control execution sequence. Based on the updated current prevention and control execution sequence, recalculate the marginal risk decay of unconstrained prevention and control node pairs affected by this exchange and update the marginal risk decay list. Repeat the above steps until there are no unconstrained prevention and control node pairs with positive marginal risk decay in the marginal risk decay list, and obtain the corresponding locally optimal prevention and control execution sequence. Calculate the total residual risk of each locally optimal prevention and control execution sequence, and select the locally optimal prevention and control execution sequence with the smallest total residual risk as the optimized prevention and control execution sequence output.
9. The intelligent security risk assessment and prevention method for a library management system according to claim 8, characterized in that, It also includes selecting the locally optimal prevention and control execution sequence with the least consumption of prevention and control resources as the output of the optimized prevention and control execution sequence if there are two or more locally optimal prevention and control execution sequences with equal and minimum total residual risks.
10. The intelligent security risk assessment and prevention method for a library management system according to claim 1, characterized in that, In S6, the specific process of automatically reordering the unexecuted prevention and control measures is as follows: Receive the current prevention and control node execution completion feedback reported by the security and control execution terminal. The execution completion feedback includes the actual processing time of the current prevention and control node and the actual risk propagation time from the processing of the previous prevention and control node to the current prevention and control node. The actual processing time and the actual risk propagation time are updated to the corresponding matrix element positions in the risk propagation cost matrix to obtain the corrected risk propagation cost matrix. Extract the unexecuted prevention and control nodes from the optimized prevention and control execution sequence, and combine them with the directed risk transmission dependencies between the unexecuted prevention and control nodes in the initial risk transmission directed graph to identify pairs of unexecuted unconstrained prevention and control nodes that do not have a dependency path. Based on the modified risk propagation cost matrix, the marginal risk decay of each pair of unconstrained prevention and control nodes that have not performed is calculated. The unconstrained prevention and control node pairs with positive marginal risk decay values and the largest values are selected for sequential exchange, and the unexecuted sequence is updated. Repeat the steps of selecting unexecuted unconstrained prevention and control node pairs, exchanging their order, and updating the unexecuted sequence until there are no unexecuted unconstrained prevention and control node pairs with positive marginal risk decay values. Then, send the final unexecuted sequence as the reordered unexecuted prevention and control sequence to the security prevention and control execution terminal.
