Terminal security monitoring method and system based on knowledge graph
By constructing a terminal knowledge graph, combining terminal functions and attack records, and using knowledge reasoning for security monitoring and protection, the shortcomings of terminal security monitoring in the existing technology are solved, and efficient security monitoring and protection of power grid terminals are achieved.
Patent Information
- Application Number
- CN202410953710.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-16
- Publication Date
- 2024-09-27
AI Technical Summary
The existing technology lacks a terminal security monitoring technical solution based on knowledge graphs, and cannot effectively monitor and protect intelligently accessed terminal equipment in the power grid from network attacks.
The first knowledge relationship is constructed by obtaining the terminal asset number and function, and the second knowledge relationship is constructed by obtaining the attacked records. The terminal knowledge graph is constructed by combining the two, and knowledge reasoning is used for security monitoring and protection, and the graph is dynamically updated to track the association relationship.
It realizes the construction of knowledge graph based on terminal functions and attack records, captures associated terminals for security monitoring, dynamically tracks the first and second knowledge relationships, and improves terminal security and network protection efficiency.
Smart Images

Figure CN118713907A
Abstract
Description
[0001] The present application relates to the field of terminal security technology, and specifically to a terminal security monitoring method and system based on a knowledge graph. Background Art
[0002] With the application of network technology in the power grid, more terminals are connected to the power grid in a more intelligent way to realize the intelligent operation of the power grid. However, more terminals are exposed to network attacks, so it is necessary to monitor the security of the terminals.
[0003] The knowledge reasoning function of knowledge graph technology can realize the simple and efficient establishment of connections between things and can accurately and efficiently complete connection-based retrieval. This feature is suitable for building connections between terminals in the power grid. Therefore, research on terminal security monitoring based on knowledge graphs is necessary.
[0004] In summary, the existing technology lacks a technical solution for terminal security monitoring based on knowledge graphs. Summary of the invention
[0005] The purpose of this application is to provide a terminal security monitoring method and system based on knowledge graph to solve the technical problems raised in the above background technology.
[0006] To achieve the above objectives, this application discloses the following technical solutions:
[0007] In a first aspect, the present application discloses a terminal security monitoring method based on a knowledge graph, wherein each terminal constitutes a terminal network, and the method comprises:
[0008] S1: Obtain a terminal asset number and a corresponding terminal function, and construct a first knowledge relationship based on the terminal function;
[0009] S2: Acquire a terminal attack record, and construct a second knowledge relationship based on the terminal attack record;
[0010] S3: constructing a terminal knowledge graph based on the first knowledge relationship and the second knowledge relationship;
[0011] S4: Run the terminal knowledge graph to perform security monitoring on the terminal;
[0012] S5: Update the terminal knowledge graph.
[0013] Preferably, step S1 further comprises:
[0014] S11: Preset terminal function chain, the terminal function chain is used to characterize the link of each terminal in the power grid when performing power grid operation tasks, and perform function numbering based on the link, the function number is specifically Ter i_j, where i means that the terminal is in the i-th link in the power grid, and i_j means that the terminal is the j-th terminal in the i-th link in the power grid;
[0015] S12: The terminal asset number obtained by the function number is merged to obtain a comprehensive number of each terminal, and the comprehensive number is specifically Ter n_i_j , where n is the asset number;
[0016] S13: Calculate the first knowledge association based on the function number, and establish the first knowledge relationship between the terminals that satisfy Δi|≤α, where |Δi represents the absolute value of the difference in the numbers of the links where the two terminals are located and represents the first knowledge association, and α is a preset first knowledge association threshold.
[0017] Preferably, step S2 further comprises:
[0018] S21: based on the obtained terminal attack record, obtaining the time when the terminal is attacked;
[0019] S22: Calculate the second knowledge association based on the time series, and establish the second knowledge relationship between terminals that satisfy Δt|≤β, where Δt represents the absolute value of the difference in attack time between the two terminals and characterizes the second knowledge association, and β is a preset attack association time threshold.
[0020] Preferably, step S3 further comprises:
[0021] S31: Acquire the first knowledge relationship and the second knowledge relationship;
[0022] S32: Based on the comprehensive number, overlap the repeated terminals in the first knowledge relationship and the second knowledge relationship, and retain the first knowledge relationship and the second knowledge relationship between the terminal and other terminals;
[0023] S33: Output the merged first knowledge relationship and the second knowledge relationship obtained in step S32 and define them as the terminal knowledge graph.
[0024] Preferably, step S4 further comprises:
[0025] S41: Obtaining real-time attack information of each terminal and inputting it into the terminal knowledge graph;
[0026] S42: the terminal knowledge graph performs knowledge reasoning based on the comprehensive number of the terminal in the real-time attacked information to obtain other terminals that have any one or more of the first knowledge relationship and the second knowledge relationship with the terminal;
[0027] S43: Perform network security protection on the other terminals obtained in step S42.
[0028] Preferably, step S5 further comprises:
[0029] S51: Acquire the other terminals obtained in step S42;
[0030] S52: traverse the terminal network to determine whether a new terminal that does not exist in the other terminals obtained in step S42 appears, if yes, execute step S53, otherwise, repeat steps S51-S52;
[0031] S53: Based on the newly added terminal, execute steps S1-S3 to update the terminal knowledge graph.
[0032] In a second aspect, the present application discloses a terminal security monitoring system based on a knowledge graph, wherein each terminal constitutes a terminal network, and the system includes:
[0033] A knowledge relationship building module, wherein the knowledge relationship building module is configured to: obtain a terminal asset number and a corresponding terminal function, and build a first knowledge relationship based on the terminal function; obtain a terminal attack record, and build a second knowledge relationship based on the terminal attack record;
[0034] A terminal knowledge graph construction module, wherein the terminal knowledge graph construction module is configured to construct a terminal knowledge graph based on the first knowledge relationship and the second knowledge relationship;
[0035] The terminal knowledge graph operation and update module is configured to: run the terminal knowledge graph, perform security monitoring on the terminal and update the terminal knowledge graph.
[0036] Preferably, the knowledge relationship construction module performs the following steps when constructing the first knowledge relationship and the second knowledge relationship:
[0037] S11: Preset terminal function chain, the terminal function chain is used to characterize the link of each terminal in the power grid when performing power grid operation tasks, and perform function numbering based on the link, the function number is specifically Ter i_j , where i means that the terminal is in the i-th link in the power grid, and i_j means that the terminal is the j-th terminal in the i-th link in the power grid;
[0038] S12: The terminal asset number obtained by the function number is merged to obtain a comprehensive number of each terminal, and the comprehensive number is specifically Ter n_i_j , where n is the asset number;
[0039] S13: Calculate the first knowledge association based on the function number, and establish the first knowledge relationship between the terminals that satisfy Δi≤α, where |Δi represents the absolute value of the difference in the numbers of the links where the two terminals are located and represents the first knowledge association, and α is a preset first knowledge association threshold;
[0040] S21: based on the obtained terminal attack record, obtaining the time when the terminal is attacked;
[0041] S22: Calculate the second knowledge association based on the time series, and establish the second knowledge relationship between terminals that satisfy Δt≤β, where Δt represents the absolute value of the difference in attack time between the two terminals and characterizes the second knowledge association, and β is a preset attack association time threshold.
[0042] Preferably, the terminal knowledge graph construction module performs the following steps when constructing the terminal knowledge graph:
[0043] S31: Acquire the first knowledge relationship and the second knowledge relationship;
[0044] S32: Based on the comprehensive number, overlap the repeated terminals in the first knowledge relationship and the second knowledge relationship, and retain the first knowledge relationship and the second knowledge relationship between the terminal and other terminals;
[0045] S33: Output the merged first knowledge relationship and the second knowledge relationship obtained in step S32 and define them as the terminal knowledge graph.
[0046] Preferably, the terminal knowledge graph operation update module executes the following steps when updating the terminal knowledge graph:
[0047] S41: Obtaining real-time attack information of each terminal and inputting it into the terminal knowledge graph;
[0048] S42: the terminal knowledge graph performs knowledge reasoning based on the comprehensive number of the terminal in the real-time attacked information to obtain other terminals that have any one or more of the first knowledge relationship and the second knowledge relationship with the terminal;
[0049] S43: Performing network security protection on the other terminals obtained in step S42;
[0050] S51: Acquire the other terminals obtained in step S42;
[0051] S52: traverse the terminal network to determine whether a new terminal that does not exist in the other terminals obtained in step S42 appears, if yes, execute step S53, otherwise, repeat steps S51-S52;
[0052] S53: Based on the newly added terminal, execute steps S1-S3 to update the terminal knowledge graph.
[0053] Beneficial effects: The knowledge graph-based terminal security monitoring method and system of the present application realizes the construction of a knowledge graph for the terminal based on the terminal function by constructing the first knowledge relationship; realizes the construction of a knowledge graph for the terminal based on the attack record by constructing the second knowledge relationship; realizes the fusion of the first knowledge relationship and the second knowledge relationship by constructing the terminal knowledge graph; realizes terminal security monitoring that uses knowledge reasoning to capture associated terminals by running the knowledge graph; and realizes dynamic tracking of the first knowledge relationship, the second knowledge relationship and the terminal by updating the terminal knowledge graph. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.
[0055] Figure 1 A flowchart of a terminal security monitoring method based on a knowledge graph provided in an embodiment of the present application;
[0056] Figure 2 A schematic block diagram of a terminal security monitoring system based on a knowledge graph provided in an embodiment of the present application. DETAILED DESCRIPTION
[0057] The technical solutions in the embodiments of the present application are described clearly and completely below. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present application.
[0058] In this article, the term "comprising" is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of more restrictions, the elements defined by the sentence "comprising..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0059] The first aspect of this embodiment discloses Figure 1A terminal security monitoring method based on a knowledge graph is shown, where each terminal constitutes a terminal network, and the method includes:
[0060] S1: Obtain the terminal asset number and the corresponding terminal function, and construct a first knowledge relationship based on the terminal function;
[0061] S2: Obtain terminal attack records, and construct a second knowledge relationship based on the terminal attack records;
[0062] S3: construct a terminal knowledge graph based on the first knowledge relationship and the second knowledge relationship;
[0063] S4: Run the terminal knowledge graph to perform security monitoring on the terminal;
[0064] S5: Update the terminal knowledge graph.
[0065] By constructing the first knowledge relationship, it is possible to construct a knowledge graph for the terminal based on the terminal function; by constructing the second knowledge relationship, it is possible to construct a knowledge graph for the terminal based on the attack records; by constructing the terminal knowledge graph, it is possible to merge the first knowledge relationship with the second knowledge relationship; by running the knowledge graph, it is possible to use knowledge reasoning to capture terminal security monitoring of associated terminals; by updating the terminal knowledge graph, it is possible to dynamically track the first knowledge relationship and the second knowledge relationship and the terminal.
[0066] Specifically, step S1 also includes:
[0067] S11: Preset terminal function chain. The terminal function chain is used to characterize the link of each terminal in the power grid when performing power grid operation tasks, and to perform function numbering based on the link. The specific function number is Ter i_j , where i means that the terminal is in the i-th link in the power grid, and i_j means that the terminal is the j-th terminal in the i-th link in the power grid;
[0068] S12: The terminal asset number obtained by the function number is integrated to obtain the comprehensive number of each terminal. The comprehensive number is Ter n_i_j , where n is the asset number;
[0069] S13: Calculate the first knowledge association based on the function number, and establish a first knowledge relationship between the terminals that satisfy Δi≤α, where Δi represents the absolute value of the difference in the numbers of the links where the two terminals are located and characterizes the first knowledge association, and α is a preset first knowledge association threshold. It should be noted that the first knowledge association threshold in this embodiment is an empirical value known to technicians in this field and formulated based on the actual operation of the power grid; in a simple example 1, for example, α=1 means that a first knowledge relationship will be established between terminals in adjacent links; in a simple example 2, the terminals in the upper and lower adjacent joints both have a first knowledge relationship in function, and at this time α=2.
[0070] Specifically, step S2 also includes:
[0071] S21: based on the obtained terminal attack record, obtain the time when the terminal is attacked;
[0072] S22: Calculate the second knowledge association based on the time series, and establish a second knowledge relationship between terminals that satisfy |Δt|≤β, where |Δt| represents the absolute value of the difference in attack time between the two terminals and characterizes the second knowledge association, and β is a preset attack association time threshold. It should be noted that the attack association time threshold in this embodiment is an empirical value known to technicians in this field and formulated based on the actual operation of power grid terminal security. In a simple example 3, for example, β=20s, that is, the second knowledge relationship exists between the terminal corresponding to the attacked record in which the attack time difference before and after the terminal is 20 seconds and the terminal.
[0073] Specifically, step S3 also includes:
[0074] S31: Acquire a first knowledge relationship and a second knowledge relationship;
[0075] S32: Based on the comprehensive number, overlap the repeated terminals in the first knowledge relationship and the second knowledge relationship, and retain the first knowledge relationship and the second knowledge relationship between the terminal and other terminals;
[0076] S33: Output the merged first knowledge relationship and second knowledge relationship obtained in step S32 and define them as a terminal knowledge graph.
[0077] Specifically, step S4 also includes:
[0078] S41: Obtain real-time attack information of each terminal and input it into the terminal knowledge graph;
[0079] S42: The terminal knowledge graph performs knowledge reasoning based on the comprehensive number of the terminal in the real-time attacked information to obtain other terminals that have any one or more of the first knowledge relationship and the second knowledge relationship with the terminal;
[0080] S43: Perform network security protection on other terminals obtained in step S42.
[0081] Specifically, step S5 also includes:
[0082] S51: Acquire other terminals obtained in step S42;
[0083] S52: traverse the terminal network to determine whether a new terminal that does not exist in the other terminals obtained in step S42 appears. If yes, execute step S53; otherwise, repeat steps S51-S52;
[0084] S53: Based on the newly added terminal, execute steps S1-S3 to update the terminal knowledge graph.
[0085] The second aspect of this embodiment discloses Figure 2 A terminal security monitoring system based on a knowledge graph is shown, each terminal constitutes a terminal network, and the system includes:
[0086] The knowledge relationship building module is configured to: obtain the terminal asset number and the corresponding terminal function, and build a first knowledge relationship based on the terminal function; obtain the terminal attack record, and build a second knowledge relationship based on the terminal attack record;
[0087] A terminal knowledge graph construction module, the terminal knowledge graph construction module is configured to construct a terminal knowledge graph based on the first knowledge relationship and the second knowledge relationship;
[0088] The terminal knowledge graph operation and update module is configured to: run the terminal knowledge graph, perform security monitoring on the terminal and update the terminal knowledge graph.
[0089] Specifically, the knowledge relationship construction module performs the following steps when constructing the first knowledge relationship and the second knowledge relationship:
[0090] S11: Preset terminal function chain. The terminal function chain is used to characterize the link of each terminal in the power grid when performing power grid operation tasks, and to perform function numbering based on the link. The specific function number is Ter i_j , where i means that the terminal is in the i-th link in the power grid, and i_j means that the terminal is the j-th terminal in the i-th link in the power grid;
[0091] S12: The terminal asset number obtained by the function number is integrated to obtain the comprehensive number of each terminal. The comprehensive number is Ter n_i_j , where n is the asset number;
[0092] S13: Calculate the first knowledge association based on the function number, and establish a first knowledge relationship between the terminals that satisfy Δi|≤α, where |Δi represents the absolute value of the difference in the numbers of the links where the two terminals are located and represents the first knowledge association, and α is a preset first knowledge association threshold;
[0093] S21: based on the obtained terminal attack record, obtain the time when the terminal is attacked;
[0094] S22: Calculate the second knowledge association based on the time series, and establish a second knowledge relationship between terminals that satisfy Δt|≤β, where Δt represents the absolute value of the difference in attack time between the two terminals and represents the second knowledge association, and β is a preset attack association time threshold.
[0095] Specifically, the terminal knowledge graph construction module performs the following steps when constructing the terminal knowledge graph:
[0096] S31: Acquire a first knowledge relationship and a second knowledge relationship;
[0097] S32: Based on the comprehensive number, overlap the repeated terminals in the first knowledge relationship and the second knowledge relationship, and retain the first knowledge relationship and the second knowledge relationship between the terminal and other terminals;
[0098] S33: Output the merged first knowledge relationship and second knowledge relationship obtained in step S32 and define them as a terminal knowledge graph.
[0099] Specifically, the terminal knowledge graph running update module executes the following steps when running to update the terminal knowledge graph:
[0100] S41: Obtain real-time attack information of each terminal and input it into the terminal knowledge graph;
[0101] S42: The terminal knowledge graph performs knowledge reasoning based on the comprehensive number of the terminal in the real-time attacked information to obtain other terminals that have any one or more of the first knowledge relationship and the second knowledge relationship with the terminal;
[0102] S43: Perform network security protection on other terminals obtained in step S42;
[0103] S51: Acquire other terminals obtained in step S42;
[0104] S52: traverse the terminal network to determine whether a new terminal that does not exist in the other terminals obtained in step S42 appears. If yes, execute step S53; otherwise, repeat steps S51-S52;
[0105] S53: Based on the newly added terminal, execute steps S1-S3 to update the terminal knowledge graph.
[0106] In summary, the terminal security monitoring method and system based on the knowledge graph of this embodiment realizes the construction of a knowledge graph for the terminal based on the terminal function by constructing the first knowledge relationship; realizes the construction of a knowledge graph for the terminal based on the attack record by constructing the second knowledge relationship; realizes the fusion of the first knowledge relationship and the second knowledge relationship by constructing the terminal knowledge graph; realizes terminal security monitoring that captures associated terminals using knowledge reasoning by running the knowledge graph; and realizes dynamic tracking of the first knowledge relationship, the second knowledge relationship and the terminal by updating the terminal knowledge graph.
[0107] In the embodiments provided in the present application, it should be understood that the embodiments described herein can be implemented in hardware, software, firmware, middleware, code or any appropriate combination thereof. For hardware implementation, the processor can be implemented in one or more of the following units: application specific integrated circuit (ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), processor, controller, microcontroller, microprocessor, other electronic units designed to implement the functions described herein or their combination. For software implementation, part or all of the flow of the embodiment can be completed by instructing the relevant hardware through a computer program. When implemented, the above program can be stored in a computer-readable storage medium or transmitted as one or more instructions or codes on a computer-readable storage medium. Computer-readable storage media include computer storage media and communication media, wherein the communication medium includes any medium that is convenient for transmitting a computer program from one place to another. The storage medium can be any available medium that a computer can access. The computer-readable storage medium can include but is not limited to RAM, ROM, EEPROM, CD-ROM or other optical disk storage, disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of an instruction or data structure and can be accessed by a computer.
[0108] Finally, it should be noted that the above is only a preferred embodiment of the present application and is not intended to limit the present application. Although the present application has been described in detail with reference to the aforementioned embodiments, it is still possible for those skilled in the art to modify the technical solutions described in the aforementioned embodiments or to make equivalent substitutions for some of the technical features therein. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A terminal security monitoring method based on knowledge graph, wherein each terminal constitutes a terminal network, characterized in that: The method includes: S1: Obtain a terminal asset number and a corresponding terminal function, and construct a first knowledge relationship based on the terminal function; S2: Acquire a terminal attack record, and construct a second knowledge relationship based on the terminal attack record; S3: constructing a terminal knowledge graph based on the first knowledge relationship and the second knowledge relationship; S4: Run the terminal knowledge graph to perform security monitoring on the terminal; S5: Update the terminal knowledge graph.
2. According to claim 1, the terminal security monitoring method based on knowledge graph is characterized in that: Step S1 also includes: S11: Preset terminal function chain, the terminal function chain is used to characterize the link of each terminal in the power grid when performing power grid operation tasks, and perform function numbering based on the link, the function number is specifically Ter i_j , where i means that the terminal is in the i-th link in the power grid, and i_j means that the terminal is the j-th terminal in the i-th link in the power grid; S12: The terminal asset number obtained by the function number is merged to obtain a comprehensive number of each terminal, and the comprehensive number is specifically Ter n_i_j , where n is the asset number; S13: Calculate the first knowledge association based on the function number, and establish the first knowledge relationship between the terminals that satisfy Δi≤α, where |Δi represents the absolute value of the number difference between the links of the two terminals and represents the first knowledge association, and α is the preset first knowledge association threshold.
3. The terminal security monitoring method based on knowledge graph according to claim 2 is characterized in that: Step S2 also includes: S21: based on the obtained terminal attack record, obtaining the time when the terminal is attacked; S22: Calculate the second knowledge association based on the time series, and establish the second knowledge relationship between terminals that satisfy Δt|≤β, where Δt represents the absolute value of the difference in attack time between the two terminals and characterizes the second knowledge association, and β is a preset attack association time threshold.
4. The terminal security monitoring method based on knowledge graph according to claim 3 is characterized in that: Step S3 also includes: S31: Acquire the first knowledge relationship and the second knowledge relationship; S32: Based on the comprehensive number, overlap the repeated terminals in the first knowledge relationship and the second knowledge relationship, and retain the first knowledge relationship and the second knowledge relationship between the terminal and other terminals; S33: Output the merged first knowledge relationship and the second knowledge relationship obtained in step S32 and define them as the terminal knowledge graph.
5. The terminal security monitoring method based on knowledge graph according to claim 4 is characterized in that: Step S4 also includes: S41: Obtaining real-time attack information of each terminal and inputting it into the terminal knowledge graph; S42: the terminal knowledge graph performs knowledge reasoning based on the comprehensive number of the terminal in the real-time attacked information to obtain other terminals that have any one or more of the first knowledge relationship and the second knowledge relationship with the terminal; S43: Perform network security protection on the other terminals obtained in step S42.
6. The terminal security monitoring method based on knowledge graph according to claim 5 is characterized in that: Step S5 also includes: S51: Acquire the other terminals obtained in step S42; S52: traverse the terminal network to determine whether a new terminal that does not exist in the other terminals obtained in step S42 appears, if yes, execute step S53, otherwise, repeat steps S51-S52; S53: Based on the newly added terminal, execute steps S1-S3 to update the terminal knowledge graph.
7. A terminal security monitoring system based on knowledge graph, wherein each terminal constitutes a terminal network, characterized in that: The system includes: A knowledge relationship building module, wherein the knowledge relationship building module is configured to: obtain a terminal asset number and a corresponding terminal function, and build a first knowledge relationship based on the terminal function; obtain a terminal attack record, and build a second knowledge relationship based on the terminal attack record; A terminal knowledge graph construction module, wherein the terminal knowledge graph construction module is configured to construct a terminal knowledge graph based on the first knowledge relationship and the second knowledge relationship; The terminal knowledge graph operation and update module is configured to: run the terminal knowledge graph, perform security monitoring on the terminal and update the terminal knowledge graph.
8. The terminal security monitoring system based on knowledge graph according to claim 7 is characterized in that: The knowledge relationship construction module performs the following steps when constructing the first knowledge relationship and the second knowledge relationship: S11: Preset terminal function chain, the terminal function chain is used to characterize the link of each terminal in the power grid when performing power grid operation tasks, and perform function numbering based on the link, the function number is specifically Ter i_j , where i means that the terminal is in the i-th link in the power grid, and i_j means that the terminal is the j-th terminal in the i-th link in the power grid; S12: The terminal asset number obtained by the function number is merged to obtain a comprehensive number of each terminal, and the comprehensive number is specifically Ter n_i_j , where n is the asset number; S13: Calculate the first knowledge association based on the function number, and establish the first knowledge relationship between the terminals that satisfy Δi|≤α, where |Δi represents the absolute value of the difference in the numbers of the links where the two terminals are located and represents the first knowledge association, and α is a preset first knowledge association threshold; S21: based on the obtained terminal attack record, obtaining the time when the terminal is attacked; S22: Calculate the second knowledge association based on the time series, and establish the second knowledge relationship between terminals that satisfy Δt|≤β, where |Δt represents the absolute value of the difference in attack time between the two terminals and characterizes the second knowledge association, and β is a preset attack association time threshold.
9. The terminal security monitoring system based on knowledge graph according to claim 8 is characterized in that: The terminal knowledge graph construction module performs the following steps when constructing the terminal knowledge graph: S31: Acquire the first knowledge relationship and the second knowledge relationship; S32: Based on the comprehensive number, overlap the repeated terminals in the first knowledge relationship and the second knowledge relationship, and retain the first knowledge relationship and the second knowledge relationship between the terminal and other terminals; S33: Output the merged first knowledge relationship and the second knowledge relationship obtained in step S32 and define them as the terminal knowledge graph.
10. The terminal security monitoring system based on knowledge graph according to claim 9 is characterized in that: The terminal knowledge graph operation update module executes the following steps when updating the terminal knowledge graph: S41: Obtaining real-time attack information of each terminal and inputting it into the terminal knowledge graph; S42: the terminal knowledge graph performs knowledge reasoning based on the comprehensive number of the terminal in the real-time attacked information to obtain other terminals that have any one or more of the first knowledge relationship and the second knowledge relationship with the terminal; S43: Performing network security protection on the other terminals obtained in step S42; S51: Acquire the other terminals obtained in step S42; S52: traverse the terminal network to determine whether a new terminal that does not exist in the other terminals obtained in step S42 appears, if yes, execute step S53, otherwise, repeat steps S51-S52; S53: Based on the newly added terminal, execute steps S1-S3 to update the terminal knowledge graph.
