Information security risk event factor relationship and path association analysis method and device

By constructing an information security risk event graph and establishing an entity relationship representation learning model, and using reinforcement learning to train the model, the problems of high subjectivity and high computational complexity of risk analysis methods in the existing technology are solved, and the global correlation of information security risk events is achieved. analysis and efficient identification.

CN114880664BInactive Publication Date: 2024-10-15BEIJING INFORMATION SCI & TECH UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210354648.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-06
Publication Date
2024-10-15
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing information security risk analysis methods rely on human judgment, are highly subjective, are difficult to analyze from a global perspective, lack correlation analysis, and have high computational complexity, making them unsuitable for large-scale networks.

Method used

By constructing an information security risk event graph, an entity relationship representation learning model and a risk event path association learning model are established, and the reinforcement learning training model is used to mine the association chain of the risk event path and realize the association analysis of risk event element relationships and paths.

Benefits of technology

It realizes risk identification and interpretability analysis in risk assessment, makes full use of the relationship between knowledge elements and the correlation between knowledge from the global perspective of risk events, and provides efficient use of data and correlation analysis support.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114880664B_ABST
    Figure CN114880664B_ABST
Patent Text Reader

Abstract

The present invention provides a method and device for analyzing the relationship and path association of information security risk event elements. The method comprises: taking the information security risk event element type as an entity, constructing an information security risk event graph; establishing an entity relationship representation learning model, inputting entity triples consisting of entities and relationships into a trained model, outputting a low-dimensional dense vector representing the semantic similarity of entity relationships, establishing a risk event path association learning model, training the model using reinforcement learning, and obtaining an association chain of risk event paths through the interaction between an intelligent agent and an environment. The present invention improves the efficiency and effect of risk identification by constructing an information security risk event graph and using risk element relationship analysis and risk path association analysis models for risk analysis.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of information security technology, and specifically relates to a method and device for analyzing the relationship between elements and paths of information security risk events. Background Art

[0002] While the Internet has brought convenience to people's lives, it has also caused many cyber security risk events. Cyberspace security professionals have a deeper understanding that establishing an information security management system to implement active defense against risk events is an effective way to deal with the increasingly prominent cyberspace security issues. Information security risk assessment is a key means to establish and safeguard the active defense system for cyberspace security. Accurately analyzing the relationship between risk event elements and quickly exploring the risk event correlation path is the key to ensuring the quality of the information security management system, and has always been a top priority in the field of information security risk assessment.

[0003] Information security risk assessment refers to the assessment of the impact of risk events or accidents in the field of information security and the possible extent of losses. It is a key step in building an information security management system. Its process mainly includes risk assessment preparation, risk factor identification, risk analysis, risk evaluation and treatment. Risk analysis methods refer to the methods of analyzing risk events in the process of risk assessment. It is an important work link in risk assessment. It is generally divided into qualitative analysis methods, quantitative analysis methods, and qualitative and quantitative fusion methods. Common information security risk analysis methods include hierarchical analysis method, gray evaluation method, methods based on DS evidence theory, and methods based on Bayesian networks. Among them, the hierarchical analysis method decomposes complex problems into hierarchical combination factors, and then analyzes the relationship between risk factors and risks. The problem is that it is often limited and affected by the experts' own knowledge, experience and knowledge field, and lacks a unified measurement standard and weight determination method. It is impossible to conduct an overall quantitative evaluation of the entire system, and is only suitable for information security risk analysis processes with a small number of indicators and a small amount of data statistical calculations. The gray evaluation method is guided by the gray correlation analysis theory and is a risk analysis method based on expert judgment. The problem with this method is that the correlation can only reflect the positive correlation of data columns, not the negative correlation, and it is difficult to define the degree of the geometric curve of the time variable. The method based on DS evidence theory makes analytical decisions on the uncertainty of network security by combining multiple evidences. This method requires that the synthetic evidence must be independent of each other, but the association of various information in the network is inevitable, so this method has certain limitations. The method based on Bayesian network decomposes the joint probability distribution of all variables into the product of conditional probabilities, and represents the conditional independence and dependency relationship between the joint probability and its variables in the form of a graph. Bayesian network is only applicable to acyclic attack graphs, and the computational complexity is very high. It faces the problem of combinatorial explosion. The efficiency of the inference algorithm is limited by the size of the nodes and is not suitable for large-scale networks.

[0004] In general, the existing risk analysis methods have the following problems: information security risk analysis requires domain knowledge, and the existing risk analysis methods rely on human judgment in analyzing the relationship between risk factors and their impact, which is highly subjective; most of the existing risk analysis methods focus on local areas, making it difficult to analyze and consider problems from a global perspective, and cannot make full use of knowledge and the dependencies between knowledge, and lack correlation analysis; most of the existing risk analysis methods are isolated analyses, focusing on quantitative methods, and lack the explainability of reasoning logic in the risk chain. Summary of the invention

[0005] In order to solve the above problems existing in the prior art, the present invention provides a method and device for analyzing the relationship between information security risk event elements and paths.

[0006] In order to achieve the above object, the present invention adopts the following technical solutions.

[0007] In a first aspect, the present invention provides a method for analyzing the relationship between information security risk event elements and paths, comprising the following steps:

[0008] Step 101, taking the information security risk event element type as an entity, constructing an information security risk event graph, where the nodes of the graph represent entities and the edges represent the relationships between entities;

[0009] Step 102, establishing an entity relationship representation learning model, inputting entity triples consisting of entities and relationships into the trained model, and outputting a low-dimensional dense vector representing the semantic similarity of the entity relationship;

[0010] Step 103, establish a risk event path association learning model, use reinforcement learning to train the model, and obtain the association chain of the risk event path through the interaction between the intelligent agent and the environment.

[0011] Furthermore, the information security risk event element types include: threats, vulnerabilities, assets, and security attributes.

[0012] Furthermore, the relationships between entities include information security domain relationships and event logic type relationships. Information security domain relationships include: utilization, influence, and possession; event logic type relationships include: extension, cause and effect, condition, and timing.

[0013] Furthermore, the step 102 further includes:

[0014] Move the head entity h and the tail entity t along the normal vector w of the hyperplane r Projection to relation d r On the corresponding hyperplane, where ‖w r ‖2=1, the head entity vector and tail entity vector after projection are expressed as:

[0015] h1=hw r T hw r

[0016] t1=tw r T tw r

[0017] In the formula, h1 and t1 are the head entity vector and tail entity vector after projection respectively;

[0018] The scoring function after projection is expressed as:

[0019] f(h,t)=‖h1+d r -t1‖=‖(hw r T hw r )+d r -(tw r T tw r )‖

[0020] Where f(h,t) is the scoring function after projection;

[0021] The average number of tail entities tph under different combinations of head entities in the information security field relationship and event logic relationship, as well as the average number of head entities hpt under different combinations of tail entities in the information security field relationship and logic relationship are counted. The head entity of the positive sample triple is replaced with probability tph / (tph+pht), and the tail entity in the positive sample triple is replaced with probability hpt / (tph+pht). The loss function is defined as:

[0022] L=∑ (h,r,t)∈S ∑ (h’,r,t’)∈S’ max{[γ+f(h,t)-f(h',t')],0}

[0023] Where S represents the set of positive sample triplets in risk events, S' represents the set of negative sample triplets in risk events, r represents the information security field relationship and event logical relationship, and γ is a hyperparameter greater than 0, which represents the interval between positive sample triplets and negative sample triplets.

[0024] Furthermore, the Markov tuple environment in the reinforcement learning is:

[0025] Status: S t =MulTrans(E), which means the low-dimensional dense vector obtained by inputting the entity triple E into the entity relationship representation learning model MulTrans;

[0026] Action: A s={(e c ,a,e n )∈E:S={s t}; a∈R; e c ,e n ∈E};

[0027] State transition probability: P = {s′|(s,a); s∈S, a∈A};

[0028] Reward function: R = r g +r c +r s , r g 、r c 、r s They are global reward, path-related reward and single-step negative reward respectively.

[0029] In a second aspect, the present invention provides an information security risk event factor relationship and path association analysis device, comprising:

[0030] An event graph construction module is used to construct an information security risk event graph with information security risk event element types as entities. The nodes of the graph represent entities, and the edges represent the relationships between entities.

[0031] The first model building module is used to build an entity relationship representation learning model, input entity triples consisting of entities and relationships into the trained model, and output a low-dimensional dense vector representing the semantic similarity of the entity relationship;

[0032] The second model building module is used to establish a risk event path association learning model, use reinforcement learning to train the model, and obtain the association chain of the risk event path through the interaction between the intelligent agent and the environment.

[0033] Furthermore, the information security risk event element types include: threats, vulnerabilities, assets, and security attributes.

[0034] Furthermore, the relationships between entities include information security domain relationships and event logic type relationships. Information security domain relationships include: utilization, influence, and possession; event logic type relationships include: extension, cause and effect, condition, and timing.

[0035] Furthermore, the first model building module is also used for:

[0036] Move the head entity h and the tail entity t along the normal vector w of the hyperplane r Projection to relation d r On the corresponding hyperplane, where ‖w r ‖2=1, the head entity vector and tail entity vector after projection are expressed as:

[0037] h1=hwr T hw r

[0038] t1=tw r T tw r

[0039] In the formula, h1 and t1 are the head entity vector and tail entity vector after projection respectively;

[0040] The scoring function after projection is expressed as:

[0041] f(h,t)=‖h1+d r -t1‖=‖(hw r T hw r )+d r -(tw r T tw r )‖

[0042] Where f(h,t) is the scoring function after projection;

[0043] The average number of tail entities tph under different combinations of head entities in the information security field relationship and event logic relationship, as well as the average number of head entities hpt under different combinations of tail entities in the information security field relationship and logic relationship are counted. The head entity of the positive sample triple is replaced with probability tph / (tph+pht), and the tail entity in the positive sample triple is replaced with probability hpt / (tph+pht). The loss function is defined as:

[0044] L=∑ (h,r,t)∈S ∑ (h’,r,t’)∈S’ max{[γ+f(h,t)-f(h',t')],0}

[0045] Where S represents the set of positive sample triplets in risk events, S' represents the set of negative sample triplets in risk events, r represents the information security field relationship and event logical relationship, and γ is a hyperparameter greater than 0, which represents the interval between positive sample triplets and negative sample triplets.

[0046] Furthermore, the Markov tuple environment in the reinforcement learning is:

[0047] Status: S t =MulTrans(E), which means the low-dimensional dense vector obtained by inputting the entity triple E into the entity relationship representation learning model MulTrans;

[0048] Action: A s ={(e c ,a,e n)∈E:S={s t}; a∈R; e c ,e n ∈E};

[0049] State transition probability: P = {s′|(s,a); s∈S, a∈A};

[0050] Reward function: R = r g +r c +r s , r g 、r c 、r s They are global reward, path-related reward and single-step negative reward respectively.

[0051] Compared with the prior art, the present invention has the following beneficial effects.

[0052] The present invention constructs an information security risk event graph by taking information security risk event element types as entities, organizes and manages the original data entities composed of risk elements and the relationships between them, and can fully maintain the objectivity of data and methods; the present invention fully utilizes the knowledge element relationships and the associations between knowledge under the global perspective of risk events by establishing an entity relationship representation learning model and a risk event path association learning model, realizes the conversion of events and event relationships into distributed vector representations and association analysis, provides efficient use of data, and provides support for data association analysis; the risk event path association learning model established by the present invention models a reinforcement learning environment based on the vector space of events and event relationships, so that the reinforcement learning agent can mine event element relationships and path association information in the process of interacting with the environment, identify risks in risk assessment, and realize explainable risk analysis. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] Figure 1 The present invention is a flowchart of a method for analyzing the relationship between information security risk event elements and paths according to an embodiment of the present invention.

[0054] Figure 2 Schematic diagram of the risk factor relationship and path association analysis framework.

[0055] Figure 3 This is a schematic diagram of the overall process of the analysis model.

[0056] Figure 4 Schematic diagram of path-related reward calculation.

[0057] Figure 5 The present invention is a block diagram of an information security risk event factor relationship and path association analysis device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0058] In order to make the purpose, technical solution and advantages of the present invention clearer and more understandable, the present invention is further described below in conjunction with the accompanying drawings and specific implementation methods. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0059] Figure 1 The flowchart of a method for analyzing the relationship between information security risk event elements and paths according to an embodiment of the present invention includes the following steps:

[0060] Step 101, taking information security risk event element types as entities, constructing an information security risk event graph, where nodes of the graph represent entities and edges represent relationships between entities;

[0061] Step 102, establishing an entity relationship representation learning model, inputting entity triples consisting of entities and relationships into the trained model, and outputting a low-dimensional dense vector representing the semantic similarity of the entity relationship;

[0062] Step 103, establish a risk event path association learning model, use reinforcement learning to train the model, and obtain the association chain of the risk event path through the interaction between the intelligent agent and the environment.

[0063] This embodiment constructs an information security risk event graph for event elements (threats, vulnerabilities, assets, and security attributes) in information security risk assessment, uses an entity relationship representation learning model to map event element triplets into low-dimensional dense vectors, defines a Markov tuple of a reinforcement learning agent learning environment, designs a strategy network deep learning method for the interaction between reinforcement learning agents and the environment, and implements risk relationship path association analysis reasoning. The risk factor relationship and path association analysis framework diagram and the overall analysis model process diagram are shown in the figure below. Figure 2 , 3 shown.

[0064] In this embodiment, step 101 is mainly used to construct an information security risk event graph. In this embodiment, the information security risk event elements are first classified (the classification can be performed according to the national standard (GB / T 20984-2007) "Information Security Technology Information Security Risk Assessment Specification"), and the risk event element type is used as an entity to construct an information security risk event graph, and the entity is represented as a node of the graph, and the relationship between the entities is represented as an edge connecting the nodes. This embodiment does not limit the event element type and the relationship between events, and the following embodiments will analyze the types and relationships in detail.

[0065] In this embodiment, step 102 is mainly used to establish an entity relationship representation learning model. The entity relationship representation learning model is established to represent the semantic information describing the entity relationship as a low-dimensional dense real-valued vector. The distance between the vectors represents the similarity between the entities. The smaller the distance, the higher the semantic similarity, and vice versa. Therefore, the input of the entity relationship representation learning model (generally denoted as MulTrans) is designed to be an entity triple consisting of entities and relationships, and the output is a low-dimensional dense real-valued vector of the triple, which can represent the semantic similarity of the entity relationship.

[0066] In this embodiment, step 103 is mainly used to establish a risk event path association learning model. This embodiment uses reinforcement learning to train the model, and obtains the association chain of the risk event path through the interaction between the agent and the environment. Reinforcement learning belongs to unsupervised machine learning, which includes 5 core components: environment, agent, state, action, and reward. Reinforcement learning regards learning as a trial and evaluation process. The agent selects an action for the environment. After the environment accepts the action, the state changes, and a reward value is generated and fed back to the agent. The agent selects the next action based on the reward value and the current state of the environment. The principle of selection is to maximize the positive reward value.

[0067] As an optional embodiment, the information security risk event element types include: threat, vulnerability, asset, and security attribute.

[0068] This embodiment provides four specific risk event element types. In this embodiment, risk event element types include threats, vulnerabilities, assets, and security attributes. Threats refer to possible causal factors that pose potential damage to assets, such as "hackers input malicious SQL statements." Vulnerabilities refer to weak links in assets that may be exploited by threats, such as "Web does not review user input parameters." Assets refer to valuable information or resources that are protected by security policies, such as "databases." Security attributes refer to the information security characteristics of assets, such as "confidentiality." The four risk element event types, i.e., entities, can be represented by symbols as follows:

[0069] Et={(S+V+O)|(S+V)|(V+O)}

[0070] Ev={(S+V+O)|(S+V)|(V+O)}

[0071] Ea={S}

[0072] Esp = {S}

[0073] Among them, Et represents a threat event entity, Ev represents a vulnerability event entity, Ea represents an asset entity, and Esp represents a security attribute entity. S represents the subject of the event, V represents the action set of the event, and O represents the object of the event. "+" represents concatenation, and "|" represents or. For example, "hacker inputs malicious SQL statement" is a threat event, "hacker" is the subject S of this threat event, "input" is the action V of this event, and "malicious SQL statement" is the object of this threat event. "Hacker inputs malicious SQL statement" is expressed as (Et) = "hacker" (S) + "input" (V) + "malicious SQL statement" (O); for example, {"hacker (S) input (V) malicious SQL statement (O)" | "hacker (S) attack (V)"}.

[0074] As an optional embodiment, the relationship between entities includes information security domain relationship and event logic type relationship. The information security domain relationship includes: utilization, influence, and possession; the event logic type relationship includes: extension, cause and effect, condition, and timing.

[0075] This embodiment provides a specific relationship between entities. In this embodiment, entity relationships are divided into two categories: the first category is information security field relationships, including utilization, influence, and possession; the second category is event logic type relationships, including extension, cause and effect, condition, and timing. For ease of understanding, an example is given below for each relationship.

[0076] Exploitation: "Hackers enter malicious SQL statements" using "Web does not check user input parameters."

[0077] Impact: "Web does not sanitize user input parameters" affects "database".

[0078] Has: "Database" has "confidentiality".

[0079] Extension: "Hacker enters malicious SQL statements" and "hacker attack".

[0080] Cause and effect: “Database attacked” and “confidentiality breached”.

[0081] Conditions: "Web does not check user input parameters" and "hackers gain administrator privileges";

[0082] Time series: "Hacker enters malicious SQL statements" and "Hacker obtains administrator privileges".

[0083] Information security domain relations are generally represented by Rd, and event logic type relations are generally represented by Rl. The triples composed of entities and relations have the following forms:

[0084] Form 1: (Et, Rd, Ev). For example (threat, exploit, vulnerability)

[0085] Form 2: (Ev, Rd&Rl, Ea). For example (Vulnerability, Impact&Event Logic, Asset)

[0086] Form 3: (Ea, Rd, Esp). For example, (asset, has, security attributes).

[0087] The path association form between events is: (Et, F, Esp). For example (threat, attack & event logic, security attribute). Where F represents the association path, which can be expressed as: F = {EsRs...ExRx...ReEe}, Es is the starting entity of the association path, Rs is the starting relationship of the association path, Ex is the intermediate entity of the association path, Rx is the intermediate relationship of the association path, Re is the end relationship of the association path, and Ee is the end entity of the association path.

[0088] As an optional embodiment, the step 102 further includes:

[0089] Move the head entity h and the tail entity t along the normal vector w of the hyperplane r Projection to relation d r On the corresponding hyperplane, where ‖w r ‖2=1, the head entity vector and tail entity vector after projection are expressed as:

[0090] h1=hw r T hw r

[0091] t1=tw r T tw r

[0092] In the formula, h1 and t1 are the head entity vector and tail entity vector after projection respectively;

[0093] The scoring function after projection is expressed as:

[0094] f(h,t)=‖h1+d r -t1‖=‖(hw r T hw r )+d r -(tw r T tw r )‖

[0095] Where f(h,t) is the scoring function after projection;

[0096] The average number of tail entities tph under different combinations of head entities in the information security field relationship and event logic relationship, as well as the average number of head entities hpt under different combinations of tail entities in the information security field relationship and logic relationship are counted. The head entity of the positive sample triple is replaced with probability tph / (tph+pht), and the tail entity in the positive sample triple is replaced with probability hpt / (tph+pht). The loss function is defined as:

[0097] L=∑ (h,r,t)∈S ∑ (h’,r,t’)∈S’ max{[γ+f(h,t)-f(h',t')],0}

[0098] Where S represents the set of positive sample triplets in risk events, S' represents the set of negative sample triplets in risk events, r represents the information security field relationship and event logical relationship, and γ is a hyperparameter greater than 0, which represents the interval between positive sample triplets and negative sample triplets.

[0099] In this embodiment, considering that there are a large number of entities in the information security risk event elements, the number of relationships is relatively small, but there are generally one-to-many, many-to-one and many-to-many complex relationships, the head entity and the tail entity are projected onto the hyperplane corresponding to the relationship vector along the normal vector of the hyperplane. In actual processing, the head and tail entities are low-dimensional dense vectors, but the head and tail entities can be regarded as two points, and the line segment connecting the two points is the relationship; extended to three dimensions, the two points of the relationship line segment can be regarded as different entities (different points) projected on the plane where the relationship is located, so that a relationship can correspond to different head and tail entity pairs, thereby solving the one-to-many problem.

[0100] In this embodiment, during the learning process of the risk event entity relationship, the positive sample triples (data in the original data set) make the scoring function as small as possible, and the negative sample triples (new triples obtained by replacing the original triples with the head entity or the tail entity) increase the distance. In order to ensure that the scoring function of the risk event factor negative sample triples is as large as possible, while considering the replacement of the head and tail entities, this embodiment also considers the replacement of the event domain relationship and the combination of logical relationships. Since the closer the triple is to the facts, the lower the score function, if the triple is inconsistent with the facts, the farther the distance, the higher the score, so the replacement of the relationship can make the negative sample more inconsistent with the facts, and the scoring function is as large as possible. When collecting negative samples, in order to further effectively reduce false negative examples (false negative examples refer to negative triples generated by the screening method, which are actually positive triples already stored in the knowledge graph), the average number of tail entities of the head entity under different combinations of domain relations and logical relations is counted, denoted as tph, and the average number of head entities of the tail entity under different combinations of domain relations and logical relations is counted, denoted as hpt; then the head entity of the positive sample triplet is replaced with probability tph / (tph+pht), and the tail entity in the positive sample triplet is replaced with probability hpt / (tph+pht).

[0101] As an optional embodiment, the Markov tuple environment in the reinforcement learning is:

[0102] Status: S t =MulTrans(E), which means the low-dimensional dense vector obtained by inputting the entity triple E into the entity relationship representation learning model MulTrans;

[0103] Action: A s ={(e c ,a,e n )∈E:S={s t}; a∈R; e c ,e n ∈E};

[0104] State transition probability: P = {s′|(s,a); s∈S, a∈A};

[0105] Reward function: R = r g +r c +r s , r g 、r c 、r s They are global reward, path-related reward and single-step negative reward respectively.

[0106] This embodiment provides a Markov tuple environment representation in reinforcement learning. A Markov decision process consists of a four-tuple, including state, action, state transition probability and reward function. The state of this embodiment can be represented as St =MulTrans(E), is the low-dimensional dense vector obtained by inputting the entity triple E into the entity relationship representation learning model MulTrans. Actions are elements in the relationship set. The state transition probability is the probability of transitioning to a new state after action a in the current state. The reward function of this embodiment includes three parts: global reward, path-related reward, and single-step negative reward. The following are the determination methods of the three rewards:

[0107] Global reward: If the agent successfully reaches the target state from the starting state during the interaction with the environment, a positive reward is given to the agent; otherwise, no reward is given.

[0108] Path association reward: When the action sequence selected by the agent is on the path of the target entity, and the similarity between the sum vector of the relationship vector of the agent's action sequence and the association vector increases or reaches a certain threshold (set as a hyperparameter), the agent is given a positive path association reward. The schematic diagram of the sum vector and association vector of the path relationship vector is shown in Figure 4 shown.

[0109] Single-step negative reward: A negative reward is given when the action selected by the agent deviates from the target entity path and the single-step path similarity decreases.

[0110] This embodiment can motivate the shortest target path through global rewards; can increase path relevance through path-related rewards; can inhibit the action from deviating from the target path and reduce non-path relevance through single-step negative rewards. Therefore, an effective risk path relevance chain can be obtained through overall rewards.

[0111] Figure 5 The present invention is a schematic diagram of a device for analyzing the relationship between information security risk event elements and paths, the device comprising:

[0112] An event graph construction module 11 is used to construct an information security risk event graph with information security risk event element types as entities, where nodes of the graph represent entities and edges represent relationships between entities;

[0113] The first model building module 12 is used to build an entity relationship representation learning model, input entity triples consisting of entities and relationships into the trained model, and output a low-dimensional dense vector representing the semantic similarity of the entity relationship;

[0114] The second model building module 13 is used to build a risk event path association learning model, use reinforcement learning to train the model, and obtain the association chain of the risk event path through the interaction between the intelligent agent and the environment.

[0115] The device of this embodiment can be used to perform Figure 1The technical solution of the method embodiment shown has similar implementation principles and technical effects, which will not be described in detail here. The same is true for the following embodiments, which will not be described in detail.

[0116] As an optional embodiment, the information security risk event element types include: threat, vulnerability, asset, and security attribute.

[0117] As an optional embodiment, the relationship between entities includes information security domain relationship and event logic type relationship. The information security domain relationship includes: utilization, influence, and possession; the event logic type relationship includes: extension, cause and effect, condition, and timing.

[0118] As an optional embodiment, the first model building module 12 is further used for:

[0119] Move the head entity h and the tail entity t along the normal vector w of the hyperplane r Projection to relation d r On the corresponding hyperplane, where ‖w r ‖2=1, the head entity vector and tail entity vector after projection are expressed as:

[0120] h1=hw r T hw r

[0121] t1=tw r T tw r

[0122] In the formula, h1 and t1 are the head entity vector and tail entity vector after projection respectively;

[0123] The scoring function after projection is expressed as:

[0124] f(h,t)=‖h1+d r -t1‖=‖(hw r T hw r )+d r -(tw r T tw r )‖

[0125] Where f(h,t) is the scoring function after projection;

[0126] The average number of tail entities tph under different combinations of head entities in the information security field relationship and event logic relationship, as well as the average number of head entities hpt under different combinations of tail entities in the information security field relationship and logic relationship are counted. The head entity of the positive sample triple is replaced with probability tph / (tph+pht), and the tail entity in the positive sample triple is replaced with probability hpt / (tph+pht). The loss function is defined as:

[0127] L=∑ (h,r,t)∈S ∑ (h’,r,t’)∈S’ max{[γ+f(h,t)-f(h',t')],0}

[0128] Where S represents the set of positive sample triplets in risk events, S' represents the set of negative sample triplets in risk events, r represents the information security field relationship and event logical relationship, and γ is a hyperparameter greater than 0, which represents the interval between positive sample triplets and negative sample triplets.

[0129] As an optional embodiment, the Markov tuple environment in the reinforcement learning is:

[0130] Status: S t =MulTrans(E), which means the low-dimensional dense vector obtained by inputting the entity triple E into the entity relationship representation learning model MulTrans;

[0131] Action: A s ={(e c ,a,e n )∈E:S={s t}; a∈R; e c ,e n ∈E};

[0132] State transition probability: P = {s′|(s,a); s∈S, a∈A};

[0133] Reward function: R = r g +r c +r s , r g 、r c 、r s They are global reward, path-related reward and single-step negative reward respectively.

[0134] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims

1. A method for analyzing the relationship between elements and paths of information security risk events, characterized in that: The following steps are involved: Step 101, taking the information security risk event element type as an entity, constructing an information security risk event graph, where the nodes of the graph represent entities and the edges represent the relationships between entities; Step 102, establishing an entity relationship representation learning model, inputting entity triples consisting of entities and relationships into the trained model, and outputting a low-dimensional dense vector representing the semantic similarity of the entity relationship; Step 103, establishing a risk event path association learning model, using reinforcement learning to train the model, and obtaining an association chain of the risk event path through the interaction between the agent and the environment; The relationships between entities include information security domain relationships and event logic type relationships. Information security domain relationships include: utilization, influence, and possession; event logic type relationships include: extension, cause and effect, condition, and timing. The step 102 further includes: Move the head entity h and the tail entity t along the normal vector w of the hyperplane r Projection to relation d r On the corresponding hyperplane, where ∥w r ∥2=1, the head entity vector and tail entity vector after projection are expressed as: h1=h-w r T hw r t1=t-w r T tw r In the formula, h1 and t1 are the head entity vector and tail entity vector after projection respectively; The scoring function after projection is expressed as: f(h,t)=∥h1+d r -t1∥=∥(h-w r T hw r )+d r -(t-w r T tw r )∥ Where f(h,t) is the scoring function after projection; The average number of tail entities tph under different combinations of head entities in the information security field relationship and event logic relationship, as well as the average number of head entities hpt under different combinations of tail entities in the information security field relationship and logic relationship are counted. The head entity of the positive sample triple is replaced with probability tph / (tph+pht), and the tail entity in the positive sample triple is replaced with probability hpt / (tph+pht). The loss function is defined as: L=∑ (h,r,t)∈S ∑ (h’,r,t’)∈S’ max{[γ+f(h,t)-f(h’,t’)],0} In the formula, S represents the set of positive sample triplets in risk events, S' represents the set of negative sample triplets in risk events, r represents the information security field relationship and event logic relationship, γ is a hyperparameter greater than 0, which represents the interval between positive sample triplets and negative sample triplets; The Markov tuple environment in the reinforcement learning is: Status:s t =MulTrans(E), which means the low-dimensional dense vector obtained by inputting the entity triple E into the entity relationship representation learning model MulTrans; Action: A s ={(e c ,a,e n )∈E:S={s t }; a∈R; e c ,e n ∈E}; where a is the action of the current state and R is the relationship set; State transition probability: P = {s′|(s,a); s, s′∈S, a∈R}; Reward function: Reward = r g +r c +r s , r g 、r c 、r s They are global reward, path-related reward and single-step negative reward. The determination methods of the three rewards are as follows: Global reward: If the agent successfully reaches the target state from the starting state during the interaction with the environment, the agent will be given a positive reward; otherwise, no reward; Path association reward: When the action sequence selected by the agent is on the path of the target entity, and the similarity between the sum vector of the relationship vector of the agent's action sequence and the association vector increases to the set threshold, the agent is given a positive path association reward; Single-step negative reward: A negative reward is given when the action selected by the agent deviates from the target entity path and the single-step path similarity decreases.

2. The information security risk event factor relationship and path association analysis method according to claim 1 is characterized in that: The information security risk event element types include: threats, vulnerabilities, assets, and security attributes.

3. An information security risk event factor relationship and path association analysis device, characterized in that: include: An event graph construction module is used to construct an information security risk event graph with information security risk event element types as entities. The nodes of the graph represent entities, and the edges represent the relationships between entities. The first model building module is used to build an entity relationship representation learning model, input entity triples consisting of entities and relationships into the trained model, and output a low-dimensional dense vector representing the semantic similarity of the entity relationship; The second model building module is used to establish a risk event path association learning model, use reinforcement learning to train the model, and obtain the association chain of the risk event path through the interaction between the intelligent agent and the environment; The relationships between entities include information security domain relationships and event logic type relationships. Information security domain relationships include: utilization, influence, and possession; event logic type relationships include: extension, cause and effect, condition, and timing. The first model building module is also used for: Move the head entity h and the tail entity t along the normal vector w of the hyperplane r Projection to relation d r On the corresponding hyperplane, where ∥w r ∥2=1, the head entity vector and tail entity vector after projection are expressed as: h1=h-w r T hw r t1=t-w r T tw r In the formula, h1 and t1 are the head entity vector and tail entity vector after projection respectively; The scoring function after projection is expressed as: f(h,t)=∥h1+d r -t1∥=∥(h-w r T hw r )+d r -(t-w r T tw r )∥ Where f(h,t) is the scoring function after projection; The average number of tail entities tph under different combinations of head entities in the information security field relationship and event logic relationship, as well as the average number of head entities hpt under different combinations of tail entities in the information security field relationship and logic relationship are counted. The head entity of the positive sample triple is replaced with probability tph / (tph+pht), and the tail entity in the positive sample triple is replaced with probability hpt / (tph+pht). The loss function is defined as: L=∑ (h,r,t)∈S ∑ (h’,r,t’)∈S’ max{[γ+f(h,t)-f(h’,t’)],0} In the formula, S represents the set of positive sample triplets in risk events, S' represents the set of negative sample triplets in risk events, r represents the information security field relationship and event logic relationship, γ is a hyperparameter greater than 0, which represents the interval between positive sample triplets and negative sample triplets; The Markov tuple environment in the reinforcement learning is: Status:s t =MulTrans(E), which means the low-dimensional dense vector obtained by inputting the entity triple E into the entity relationship representation learning model MulTrans; Action: A s ={(e c ,a,e n )∈E:S={s t }; a∈R; e c ,e n ∈E}; where a is the action of the current state and R is the relationship set; State transition probability: P = {s′|(s,a); s, s′∈S, a∈R}; Reward function: Reward = r g +r c +r s , r g 、r c 、r s They are global reward, path-related reward and single-step negative reward. The determination methods of the three rewards are as follows: Global reward: If the agent successfully reaches the target state from the starting state during the interaction with the environment, the agent will be given a positive reward; otherwise, no reward; Path association reward: When the action sequence selected by the agent is on the path of the target entity, and the similarity between the sum vector of the relationship vector of the agent's action sequence and the association vector increases to the set threshold, the agent is given a positive path association reward; Single-step negative reward: A negative reward is given when the action selected by the agent deviates from the target entity path and the single-step path similarity decreases.

4. The information security risk event element relationship and path association analysis device according to claim 3 is characterized in that: The information security risk event element types include: threats, vulnerabilities, assets, and security attributes.