Vulnerability identification method and system

By integrating network traffic analysis tools and session log management, an isolated forest model is established to identify session anomalies, achieving efficient detection and protection of session-level security vulnerabilities, and solving the problems of session vulnerability identification systems in the existing technology when facing complex network attacks. deficiencies and improved security threat response capabilities.

CN118740491AInactive Publication Date: 2024-10-01BEIJING JINGCHENG HUAFU TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410992430.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-23
Publication Date
2024-10-01
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing session vulnerability identification system relies on traffic detection and IP address monitoring, which cannot fully capture subtle abnormal behaviors at the session level. It is vulnerable to disguise and deformation attacks, resulting in inability to detect sessions promptly and accurately in the face of complex network attacks. Level security vulnerabilities pose serious security threats.

Method used

A vulnerability identification system including an information collection module, information processing module, identification module and decision-making module is used to collect data through integrated network traffic analysis tools and session log management, perform data preprocessing and feature extraction, and establish an isolated forest model for conversation Vulnerability identification, obtain the session abnormality index, and obtain the assessment strategy plan through preset abnormal session vulnerability assessment threshold matching, and implement specific marking and control measures.

Benefits of technology

It improves the response speed and reliability of security vulnerability detection at the session level, effectively prevents data leakage and unauthorized access, enhances the ability to identify complex session behaviors, promptly curbs potential security threats, and improves the ability to protect user privacy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118740491A_ABST
    Figure CN118740491A_ABST
Patent Text Reader

Abstract

The invention discloses a vulnerability identification method and system, and relates to the technical field of network security. When the system runs, an information acquisition module acquires network data packet information and session log record information through an integrated network flow analysis tool and session log management to form a network session acquisition data group; preprocessing and feature extraction are carried out through an information processing module, a processed network session collection data set is formed, an isolated forest model is established for the processed network session collection data set through an identification module, session vulnerability identification is carried out, and a session anomaly index Yczs is obtained; through the decision module, matching is performed through a preset abnormal session vulnerability evaluation threshold H, a session vulnerability evaluation strategy scheme is obtained, and specific execution marking is performed according to the content of the scheme, so that the response speed and reliability are improved, data leakage and unauthorized access can be effectively prevented, and unauthorized operation and access are reduced as much as possible.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of network security technology, and in particular to a vulnerability identification method and system. Background Art

[0002] In the field of network security, vulnerability identification is one of the key technologies to ensure the security of information systems. With the rapid development of the Internet and the popularization of its applications, the forms and means of network attacks have become more and more complex and diverse. Session vulnerability identification is a very important aspect. Session vulnerabilities involve security issues when users interact with the system. Common ones include session hijacking and session fixation attacks. These vulnerabilities may lead to unauthorized access and data leakage.

[0003] Existing session vulnerability identification systems usually rely on traffic detection and IP address monitoring. However, these methods have certain limitations. For example, detection methods based only on traffic and IP addresses often cannot fully capture subtle abnormal behaviors at the session level. In addition, these methods are vulnerable to camouflage and deformation attacks, allowing attackers to bypass detection mechanisms. Therefore, how to more effectively detect security vulnerabilities at the session level has become an important topic in current network security research and practice.

[0004] The above-mentioned status quo and deficiencies often cause the session vulnerability identification system to be powerless in the face of complex network attacks, especially when attackers exploit session vulnerabilities to launch attacks. If these anomalies cannot be detected in a timely and accurate manner, serious security threats will be posed. For example, session hijacking attacks can enable attackers to obtain session permissions without the user's knowledge, thereby performing unauthorized operations and access. This type of attack can lead to the leakage of user privacy information. Summary of the invention

[0005] In view of the deficiencies in the prior art, the present invention provides a vulnerability identification method and system, which solves the problems mentioned in the background technology.

[0006] To achieve the above objectives, the present invention is implemented through the following technical solutions: a vulnerability identification system, including an information collection module, an information processing module, an identification module and a decision module;

[0007] The information collection module collects network data packet information and session log record information through an integrated network traffic analysis tool and session log management to form a network session collection data group;

[0008] The information processing module pre-processes the network session collection data group, including data cleaning for data filtering, data normalization for multi-source data formatting and feature extraction for network session characteristic information extraction, to form a processed network session collection data group;

[0009] The identification module establishes an isolation forest model for the processed network session collection data group to identify session vulnerabilities and obtain a session anomaly index Yczs;

[0010] The decision module matches the preset abnormal session vulnerability assessment threshold H with the session anomaly index Yczs to obtain the session vulnerability assessment strategy solution, and performs specific execution marking according to the content of the session vulnerability assessment strategy solution.

[0011] Preferably, the information collection module includes a network unit and a log unit;

[0012] The network unit uses integrated network traffic analysis tools, including Wireshark and Tcpdump, to capture network data packets entering and leaving the network in real time. At the same time, through the mirror port deployed on the network switch, a packet capture tool is used to capture all network data packets entering and leaving the network, and the captured network data packets are simultaneously parsed to extract relevant session information, including source IP address, destination IP address, port number, protocol type, data packet size and timestamp;

[0013] The target IP address is parsed for geographical location information of the IP address in the network traffic by using an IP geographical location database or API, and the parsed geographical location information is associated with the session data to form network data packet information;

[0014] The log unit collects system logs, application logs and session management logs, and filters the log categories to obtain log information related to the session, including login logs, session creation and destruction logs, and simultaneously parses the session logs to obtain feature information related to the session, including session ID, user ID, login time, logout time and operation records, and then screens abnormal sessions, including abnormal login attempts, session timeouts and repeated use of session IDs, to form processed session log record information;

[0015] The network session collection data group is obtained by combining network data packet information and processed session log record information.

[0016] Preferably, the information processing module includes a preprocessing unit and an extraction unit;

[0017] The preprocessing unit preprocesses the network session collection data group, including data cleaning to filter data and data normalization to format multi-source data;

[0018] Data filtering includes detecting duplicate data, deleting duplicate data, identifying invalid data, filtering invalid data, and detecting missing data, including the use of regular expressions, interpolation, box plots, and Pandas analysis tools;

[0019] The extraction unit performs feature extraction on the preprocessed network session collection data group, including network session characteristic information extraction, wherein the information extraction includes basic feature extraction, statistical feature extraction and behavior feature extraction.

[0020] Preferably, the recognition module includes a modeling unit and a training unit;

[0021] The modeling unit performs feature selection on the processed network session collection data group to remove redundant or irrelevant features and reduce the complexity of the model, including filtering method, wrapping method and embedding method, and uses the Pearson correlation coefficient information between continuous variables selected by the correlation coefficient feature and the independence information between categorical variables selected by the chi-square test feature as input data of the isolation forest model to establish the isolation forest model;

[0022] Among them, the filtering method includes correlation coefficient and chi-square test, the wrapping method includes recursive feature elimination, and the embedding method includes feature importance based on tree model;

[0023] The training unit initializes the established isolation forest model, including setting the number of model parameter trees, subsample size and maximum depth, and obtains the session anomaly index Yczs after training.

[0024] Preferably, the correlation coefficient feature selection is performed by the following formula:

[0025]

[0026] Where px,y is the Pearson correlation coefficient between variables X and Y, with a range of [-1,1], Cov(X,Y) represents the covariance between variables X and Y, indicating the degree of joint change of the two variables, σ X Represents the standard deviation of variable X, specifically the degree of dispersion of variable X, σ Y It represents the standard deviation of variable Y, which specifically indicates the degree of discreteness of variable Y. X is obtained by extracting all feature columns from the data set to form a feature variable matrix, which specifically represents the input data used for learning by the model. Y is obtained by extracting the target column from the data set to form a target variable vector, which specifically represents the output result of the model.

[0027] Among them, the covariance Cov(X,Y) is obtained by the following calculation formula:

[0028]

[0029] Where, X i represents the i-th observation value of variable X, Y i represents the i-th observation value of variable Y, represents the mean of variable X, represents the mean of the variable Y, n represents the number of data points, specifically the total number of samples of the observed values, and i represents the i-th observed value;

[0030] Standard deviation X and standard deviation σ Y Obtained through the following calculation formula:

[0031]

[0032]

[0033] Preferably, the chi-square test feature selection is obtained by the following calculation formula:

[0034]

[0035] In the formula, χ 2 represents the chi-square statistic, chi-square statistic χ 2 It is used to measure the difference between the observed value and the expected value. q represents the frequency of observations of the qth category, specifically the actual observed value, E q represents the expected value frequency of the qth category;

[0036] Among them, the observation frequency of the i-th category is O q Obtained by the frequency of a certain category actually counted in the data set;

[0037] The expected value frequency E of the qth class q Obtained through the following calculation formula:

[0038]

[0039] In the formula, R p represents the total frequency of the pth row, which is the sum of all categories in the row, C p represents the total frequency of the pth column, specifically the sum of all categories in the column, and Z represents the total number of samples, specifically the sum of all observations.

[0040] Preferably, the session anomaly index Yczs is obtained by the following calculation formula:

[0041]

[0042] Where, E(h(x)) is the expected value of the path length of data point X, specifically the average path length of data point X in the isolated tree, h(x) is the isolated path length, specifically the path length from the root node of the tree to the data point x, c(n) is the expected value of the path length, specifically depends on the number of data points n, n is the number of data points, specifically the total number of samples in the isolated tree, when the number of data points n is larger, the expected value c(n) of the path length is longer;

[0043] The expected value of the path length c(n) is obtained by the following approximate formula:

[0044]

[0045] Wherein, H(n-1) represents the n-1th Harmonic number, specifically representing the series of natural logarithms.

[0046] Preferably, the decision module includes a matching unit and an execution unit;

[0047] The matching unit matches the preset relevant information with the required comparison value, including matching the preset abnormal session vulnerability assessment threshold H with the session anomaly index Yczs to obtain a session vulnerability assessment strategy solution;

[0048] The execution unit performs specific execution marking according to the content of the session vulnerability assessment strategy solution, the execution includes restricting and locking the session, and the marking includes marking the session user and classifying the session abnormality log.

[0049] Preferably, the session vulnerability assessment strategy scheme is obtained by the following matching method:

[0050] When the session anomaly index Yczs is less than the abnormal session vulnerability assessment threshold H, the results of the session assessment anomaly solution are obtained, the current session is marked as abnormal, and the anomaly is controlled by restricting session activities, terminating sessions, locking accounts, or triggering automatic response scripts. The session information is synchronously recorded in the session anomaly log classification, and the target IP of the session user is controlled, including adding blacklists and adding IP segments to blacklists.

[0051] The session anomaly index Yczs ≥ the abnormal session vulnerability assessment threshold H, and the session assessment result without abnormality is obtained, and no abnormal control is performed on the session.

[0052] A vulnerability identification method comprises the following steps:

[0053] Step 1: The collection module collects network data packet information and session log record information through integrated network traffic analysis tools and session log management to form a network session collection data group;

[0054] Step 2: The information processing module pre-processes the network session collection data group, including data cleaning for data filtering, data normalization for multi-source data formatting and feature extraction for network session characteristic information extraction, to form a processed network session collection data group;

[0055] Step 3: The recognition module establishes an isolation forest model for the processed network session collection data group to identify session vulnerabilities and obtain the session anomaly index Yczs;

[0056] Step 4: The decision module matches the preset abnormal session vulnerability assessment threshold H with the session anomaly index Yczs, obtains the session vulnerability assessment strategy plan, and performs specific execution marking according to the content of the session vulnerability assessment strategy plan.

[0057] The present invention provides a vulnerability identification method and system, which have the following beneficial effects:

[0058] (1) When the system is running, the information collection module collects network data packet information and session log record information through the integrated network traffic analysis tool and session log management to form a network session collection data group. The information processing module performs preprocessing and feature extraction to form a processed network session collection data group. The identification module establishes an isolation forest model for the processed network session collection data group to identify session vulnerabilities and obtain the session anomaly index Yczs. The decision module matches the preset abnormal session vulnerability assessment threshold H to obtain the session vulnerability assessment strategy plan, and performs specific execution marking according to the plan content, so as to improve the response speed and reliability, effectively prevent data leakage and unauthorized access, and more effectively detect security vulnerabilities at the session level, detect these anomalies in a timely and accurate manner, reduce unauthorized operations and access as much as possible, and further improve the protection of user privacy.

[0059] (2) The modeling unit performs feature selection on the processed network conversation collection data group to remove redundant or irrelevant features and reduce the complexity of the model, including filtering method, wrapping method and embedding method. The Pearson correlation coefficient information between continuous variables selected by correlation coefficient feature and the independence information between categorical variables selected by chi-square test feature are used as input data of the isolation forest model to establish the isolation forest model, thereby ensuring that the model can fully utilize the independence information between categorical features and further enhance the recognition ability of complex conversation behaviors. After training, the conversation anomaly index Yczs is obtained to more accurately capture abnormal conversations.

[0060] (3) By matching the preset abnormal session vulnerability assessment threshold H with the session anomaly index Yczs, the session vulnerability assessment strategy is obtained to adaptively determine whether the session is abnormal. When an abnormality occurs, it can automatically identify and quickly take countermeasures, including restricting session activities, terminating sessions, locking accounts, or triggering automatic response scripts, so as to promptly curb potential security threats. BRIEF DESCRIPTION OF THE DRAWINGS

[0061] Figure 1 A schematic diagram of a vulnerability identification system block diagram of the present invention;

[0062] Figure 2 The figure is a schematic diagram of the steps of a vulnerability identification method of the present invention. DETAILED DESCRIPTION

[0063] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all 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.

[0064] In the field of network security, vulnerability identification is one of the key technologies to ensure the security of information systems. With the rapid development of the Internet and the popularization of its applications, the forms and means of network attacks have become more and more complex and diverse. Session vulnerability identification is a very important aspect. Session vulnerabilities involve security issues when users interact with the system. Common ones include session hijacking and session fixation attacks. These vulnerabilities may lead to unauthorized access and data leakage.

[0065] Existing session vulnerability identification systems usually rely on traffic detection and IP address monitoring. However, these methods have certain limitations. For example, detection methods based only on traffic and IP addresses often cannot fully capture subtle abnormal behaviors at the session level. In addition, these methods are vulnerable to camouflage and deformation attacks, allowing attackers to bypass detection mechanisms. Therefore, how to more effectively detect security vulnerabilities at the session level has become an important topic in current network security research and practice.

[0066] The above-mentioned status quo and deficiencies often cause the session vulnerability identification system to be powerless in the face of complex network attacks, especially when attackers exploit session vulnerabilities to launch attacks. If these anomalies cannot be detected in a timely and accurate manner, serious security threats will be posed. For example, session hijacking attacks can enable attackers to obtain session permissions without the user's knowledge, thereby performing unauthorized operations and access. This type of attack can lead to the leakage of user privacy information.

[0067] Example 1

[0068] The present invention provides a vulnerability identification system, please refer to Figure 1 , including information collection module, information processing module, identification module and decision-making module;

[0069] The information collection module collects network data packet information and session log record information through an integrated network traffic analysis tool and session log management to form a network session collection data group;

[0070] The information processing module pre-processes the network session collection data group, including data cleaning for data filtering, data normalization for multi-source data formatting and feature extraction for network session characteristic information extraction, to form a processed network session collection data group;

[0071] The identification module establishes an isolation forest model for the processed network session collection data group to identify session vulnerabilities and obtain a session anomaly index Yczs;

[0072] The decision module matches the preset abnormal session vulnerability assessment threshold H with the session anomaly index Yczs to obtain the session vulnerability assessment strategy solution, and performs specific execution marking according to the content of the session vulnerability assessment strategy solution.

[0073] In this embodiment, the information collection module collects network data packet information and session log record information through an integrated network traffic analysis tool and session log management to form a network session collection data group, which is preprocessed and feature extracted through the information processing module to form a processed network session collection data group. The identification module establishes an isolation forest model for the processed network session collection data group to identify session vulnerabilities, obtains the session anomaly index Yczs, matches the preset abnormal session vulnerability assessment threshold H through the decision module, obtains the session vulnerability assessment strategy plan, and performs specific execution marking according to the content of the plan, so as to improve the response speed and reliability, effectively prevent data leakage and unauthorized access, and more effectively detect security vulnerabilities at the session level, detect these anomalies in a timely and accurate manner, reduce unauthorized operations and access as much as possible, and further improve the protection capability of user privacy.

[0074] Example 2

[0075] This embodiment is explained in Example 1, please refer to Figure 1 ,Specifically: the information collection module includes a network unit and a log unit;

[0076] The network unit uses integrated network traffic analysis tools, including Wireshark and Tcpdump, to capture network data packets entering and leaving the network in real time. At the same time, through the mirror port deployed on the network switch, a packet capture tool is used to capture all network data packets entering and leaving the network, and the captured network data packets are simultaneously parsed to extract relevant session information, including source IP address, destination IP address, port number, protocol type, data packet size and timestamp;

[0077] The target IP address is parsed for geographical location information of the IP address in the network traffic by using an IP geographical location database or API, and the parsed geographical location information is associated with the session data to form network data packet information;

[0078] The log unit collects system logs, application logs and session management logs, and filters the log categories to obtain log information related to the session, including login logs, session creation and destruction logs, and simultaneously parses the session logs to obtain feature information related to the session, including session ID, user ID, login time, logout time and operation records, and then screens abnormal sessions, including abnormal login attempts, session timeouts and repeated use of session IDs, to form processed session log record information;

[0079] The network session collection data group is obtained by combining network data packet information and processed session log record information.

[0080] The information processing module includes a preprocessing unit and an extraction unit;

[0081] The preprocessing unit preprocesses the network session collection data group, including data cleaning to filter data and data normalization to format multi-source data;

[0082] Data filtering includes detecting duplicate data, deleting duplicate data, identifying invalid data, filtering invalid data, and detecting missing data, including the use of regular expressions, interpolation, box plots, and Pandas analysis tools;

[0083] The extraction unit performs feature extraction on the preprocessed network session collection data group, including network session characteristic information extraction, wherein the information extraction includes basic feature extraction, statistical feature extraction and behavioral feature extraction;

[0084] Basic feature extraction includes session ID, source IP address, destination IP address, port number, protocol type, packet size, and timestamp;

[0085] Statistical features extracted include the number of requests per second, session duration, mean and standard deviation of packet size, request interval, number of logins, and number of login failures;

[0086] Behavioral feature extraction includes access frequency from different IP addresses, geographic location changes, session ID reuse, abnormal login attempts, and session timeouts.

[0087] Example 3

[0088] This embodiment is explained in Example 1, please refer to Figure 1 ,Specifically: the recognition module includes a modeling unit and a training unit;

[0089] The modeling unit performs feature selection on the processed network session collection data group to remove redundant or irrelevant features and reduce the complexity of the model, including filtering method, wrapping method and embedding method, and uses the Pearson correlation coefficient information between continuous variables selected by the correlation coefficient feature and the independence information between categorical variables selected by the chi-square test feature as input data of the isolation forest model to establish the isolation forest model;

[0090] Among them, the filtering method includes correlation coefficient and chi-square test, the wrapping method includes recursive feature elimination, and the embedding method includes feature importance based on tree model;

[0091] The training unit initializes the established isolation forest model, including setting the number of model parameter trees, subsample size and maximum depth, and obtains the session anomaly index Yczs after training.

[0092] Correlation coefficient feature selection is performed using the following formula:

[0093]

[0094] Where px,y is the Pearson correlation coefficient between variables X and Y, with a range of [-1,1], Cov(X,Y) represents the covariance between variables X and Y, indicating the degree of joint change of the two variables, σ X Represents the standard deviation of variable X, specifically the degree of dispersion of variable X, σ Y It represents the standard deviation of variable Y, which specifically indicates the degree of discreteness of variable Y. X is obtained by extracting all feature columns from the data set to form a feature variable matrix, which specifically represents the input data used for learning by the model. Y is obtained by extracting the target column from the data set to form a target variable vector, which specifically represents the output result of the model.

[0095] Among them, the covariance Cov(X,Y) is obtained by the following calculation formula:

[0096]

[0097] Where, X irepresents the i-th observation value of variable X, Y i represents the i-th observation value of variable Y, represents the mean of variable X, represents the mean of the variable Y, n represents the number of data points, specifically the total number of samples of the observed values, and i represents the i-th observed value;

[0098] Standard deviation X and standard deviation σ Y Obtained through the following calculation formula:

[0099]

[0100]

[0101] The chi-square test feature selection is obtained by the following calculation formula:

[0102]

[0103] In the formula, χ 2 represents the chi-square statistic, chi-square statistic χ 2 It is used to measure the difference between the observed value and the expected value. q represents the frequency of observations of the qth category, specifically the actual observed value, E q represents the expected value frequency of the qth category;

[0104] Among them, the observation frequency of the i-th category is O q Obtained by the frequency of a certain category actually counted in the data set;

[0105] The expected value frequency E of the qth class q Obtained through the following calculation formula:

[0106]

[0107] In the formula, R p represents the total frequency of the pth row, which is the sum of all categories in the row, C p represents the total frequency of the pth column, specifically the sum of all categories in the column, and Z represents the total number of samples, specifically the sum of all observations.

[0108] The session anomaly index Yczs is obtained by the following calculation formula:

[0109]

[0110] Where, E(h(x)) is the expected value of the path length of data point X, specifically the average path length of data point X in the isolated tree, h(x) is the isolated path length, specifically the path length from the root node of the tree to the data point x, c(n) is the expected value of the path length, specifically depends on the number of data points n, n is the number of data points, specifically the total number of samples in the isolated tree, when the number of data points n is larger, the expected value c(n) of the path length is longer;

[0111] The expected value of the path length c(n) is obtained by the following approximate formula:

[0112]

[0113] Wherein, H(n-1) represents the n-1th Harmonic number, specifically representing the series of natural logarithms.

[0114] In this embodiment, the modeling unit performs feature selection on the processed network conversation collection data group to remove redundant or irrelevant features and reduce the complexity of the model, including filtering method, wrapping method and embedding method. The Pearson correlation coefficient information between continuous variables selected by correlation coefficient feature and the independence information between categorical variables after chi-square test feature selection are used as input data of the isolation forest model to establish the isolation forest model, ensuring that the model can fully utilize the independence information between categorical features, further enhancing the ability to recognize complex conversation behaviors, and obtaining the conversation anomaly index Yczs after training to more accurately capture abnormal conversations.

[0115] Example 4

[0116] This embodiment is explained in Example 1, please refer to Figure 1 ,Specifically: the decision module includes a matching unit and an execution unit;

[0117] The matching unit matches the preset relevant information with the required comparison value, including matching the preset abnormal session vulnerability assessment threshold H with the session anomaly index Yczs to obtain a session vulnerability assessment strategy solution;

[0118] The execution unit performs specific execution marking according to the content of the session vulnerability assessment strategy solution, the execution includes restricting and locking the session, and the marking includes marking the session user and classifying the session abnormality log.

[0119] The session vulnerability assessment strategy scheme is obtained by matching:

[0120] When the session anomaly index Yczs is less than the abnormal session vulnerability assessment threshold H, the results of the session assessment anomaly solution are obtained, the current session is marked as abnormal, and the anomaly is controlled by restricting session activities, terminating sessions, locking accounts, or triggering automatic response scripts. The session information is synchronously recorded in the session anomaly log classification, and the target IP of the session user is controlled, including adding blacklists and adding IP segments to blacklists.

[0121] The session anomaly index Yczs ≥ the abnormal session vulnerability assessment threshold H, and the session assessment result without abnormality is obtained, and no abnormal control is performed on the session.

[0122] In this embodiment, by matching the preset abnormal session vulnerability assessment threshold H with the session anomaly index Yczs, a session vulnerability assessment strategy is obtained to adaptively determine whether a session is abnormal. When an abnormality occurs, it can automatically identify and quickly take countermeasures, including limiting session activities, terminating sessions, locking accounts, or triggering automatic response scripts, thereby promptly curbing potential security threats.

[0123] Example 5

[0124] A vulnerability identification method, please refer to Figure 2 , specifically: including the following steps:

[0125] Step 1: The collection module collects network data packet information and session log record information through integrated network traffic analysis tools and session log management to form a network session collection data group;

[0126] Step 2: The information processing module pre-processes the network session collection data group, including data cleaning for data filtering, data normalization for multi-source data formatting and feature extraction for network session characteristic information extraction, to form a processed network session collection data group;

[0127] Step 3: The recognition module establishes an isolation forest model for the processed network session collection data group to identify session vulnerabilities and obtain the session anomaly index Yczs;

[0128] Step 4: The decision module matches the preset abnormal session vulnerability assessment threshold H with the session anomaly index Yczs, obtains the session vulnerability assessment strategy plan, and performs specific execution marking according to the content of the session vulnerability assessment strategy plan.

[0129] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. A vulnerability identification system, characterized in that: It includes information collection module, information processing module, identification module and decision-making module; The information collection module collects network data packet information and session log record information through an integrated network traffic analysis tool and session log management to form a network session collection data group; The information processing module pre-processes the network session collection data group, including data cleaning for data filtering, data normalization for multi-source data formatting and feature extraction for network session characteristic information extraction, to form a processed network session collection data group; The identification module establishes an isolation forest model for the processed network session collection data group to identify session vulnerabilities and obtain a session anomaly index Yczs; The decision module matches the preset abnormal session vulnerability assessment threshold H with the session anomaly index Yczs to obtain the session vulnerability assessment strategy solution, and performs specific execution marking according to the content of the session vulnerability assessment strategy solution.

2. A vulnerability identification system according to claim 1, characterized in that: The information collection module includes a network unit and a log unit; The network unit uses integrated network traffic analysis tools, including Wireshark and Tcpdump, to capture network data packets entering and leaving the network in real time. At the same time, through the mirror port deployed on the network switch, a packet capture tool is used to capture all network data packets entering and leaving the network, and the captured network data packets are simultaneously parsed to extract relevant session information, including source IP address, destination IP address, port number, protocol type, data packet size and timestamp; The target IP address is parsed for geographical location information of the IP address in the network traffic by using an IP geographical location database or API, and the parsed geographical location information is associated with the session data to form network data packet information; The log unit collects system logs, application logs and session management logs, and filters the log categories to obtain log information related to the session, including login logs, session creation and destruction logs, and simultaneously parses the session logs to obtain feature information related to the session, including session ID, user ID, login time, logout time and operation records, and then screens abnormal sessions, including abnormal login attempts, session timeouts and repeated use of session IDs, to form processed session log record information; The network session collection data group is obtained by combining network data packet information and processed session log record information.

3. A vulnerability identification system according to claim 1, characterized in that: The information processing module includes a preprocessing unit and an extraction unit; The preprocessing unit preprocesses the network session collection data group, including data cleaning to filter data and data normalization to format multi-source data; Data filtering includes detecting duplicate data, deleting duplicate data, identifying invalid data, filtering invalid data, and detecting missing data, including the use of regular expressions, interpolation, box plots, and Pandas analysis tools; The extraction unit performs feature extraction on the preprocessed network session collection data group, including network session characteristic information extraction, wherein the information extraction includes basic feature extraction, statistical feature extraction and behavior feature extraction.

4. A vulnerability identification system according to claim 1, characterized in that: The recognition module includes a modeling unit and a training unit; The modeling unit performs feature selection on the processed network session collection data group to remove redundant or irrelevant features and reduce the complexity of the model, including filtering method, wrapping method and embedding method, and uses the Pearson correlation coefficient information between continuous variables selected by the correlation coefficient feature and the independence information between categorical variables selected by the chi-square test feature as input data of the isolation forest model to establish the isolation forest model; Among them, the filtering method includes correlation coefficient and chi-square test, the wrapping method includes recursive feature elimination, and the embedding method includes feature importance based on tree model; The training unit initializes the established isolation forest model, including setting the number of model parameter trees, subsample size and maximum depth, and obtains the session anomaly index Yczs after training.

5. A vulnerability identification system according to claim 4, characterized in that: Correlation coefficient feature selection is performed using the following formula: Where px,y is the Pearson correlation coefficient between variables X and Y, with a range of [-1,1], Cov(X,Y) represents the covariance between variables X and Y, indicating the degree of joint change of the two variables, σ X Represents the standard deviation of variable X, specifically the degree of dispersion of variable X, σ Y It represents the standard deviation of variable Y, which specifically indicates the degree of discreteness of variable Y. X is obtained by extracting all feature columns from the data set to form a feature variable matrix, which specifically represents the input data used for learning by the model. Y is obtained by extracting the target column from the data set to form a target variable vector, which specifically represents the output result of the model. Among them, the covariance Cov(X,Y) is obtained by the following calculation formula: Where, X i represents the i-th observation value of variable X, Y i represents the i-th observation value of variable Y, represents the mean of variable X, represents the mean of the variable Y, n represents the number of data points, specifically the total number of samples of the observed values, and i represents the i-th observed value; Standard deviation X and standard deviation σ Y Obtained through the following calculation formula:

6. A vulnerability identification system according to claim 4, characterized in that: The chi-square test feature selection is obtained by the following calculation formula: In the formula, χ 2 represents the chi-square statistic, chi-square statistic χ 2 It is used to measure the difference between the observed value and the expected value. q represents the frequency of observations of the qth category, specifically the actual observed value, E q represents the expected value frequency of the qth category; Among them, the observation frequency of the i-th category is O q Obtained by the frequency of a certain category actually counted in the data set; The expected value frequency E of the qth class q Obtained through the following calculation formula: In the formula, R p represents the total frequency of the pth row, which is the sum of all categories in the row, C p represents the total frequency of the pth column, specifically the sum of all categories in the column, and Z represents the total number of samples, specifically the sum of all observations.

7. A vulnerability identification system according to claim 1, characterized in that: The session anomaly index Yczs is obtained by the following calculation formula: Where, E(h(x)) is the expected value of the path length of data point X, specifically the average path length of data point X in the isolated tree, h(x) is the isolated path length, specifically the path length from the root node of the tree to the data point x, c(n) is the expected value of the path length, specifically depends on the number of data points n, n is the number of data points, specifically the total number of samples in the isolated tree, when the number of data points n is larger, the expected value c(n) of the path length is longer; The expected value of the path length c(n) is obtained by the following approximate formula: Wherein, H(n-1) represents the n-1th Harmonic number, specifically representing the series of natural logarithms.

8. A vulnerability identification system according to claim 1, characterized in that: The decision module includes a matching unit and an execution unit; The matching unit matches the preset relevant information with the required comparison value, including matching the preset abnormal session vulnerability assessment threshold H with the session anomaly index Yczs to obtain a session vulnerability assessment strategy solution; The execution unit performs specific execution marking according to the content of the session vulnerability assessment strategy solution, the execution includes restricting and locking the session, and the marking includes marking the session user and classifying the session abnormality log.

9. A vulnerability identification system according to claim 1, characterized in that: The session vulnerability assessment strategy scheme is obtained by matching: When the session anomaly index Yczs is less than the abnormal session vulnerability assessment threshold H, the results of the session assessment anomaly solution are obtained, the current session is marked as abnormal, and the anomaly is controlled by restricting session activities, terminating sessions, locking accounts, or triggering automatic response scripts. The session information is synchronously recorded in the session anomaly log classification, and the target IP of the session user is controlled, including adding blacklists and adding IP segments to blacklists. The session anomaly index Yczs ≥ the abnormal session vulnerability assessment threshold H, and the session assessment result without abnormality is obtained, and no abnormal control is performed on the session.

10. A vulnerability identification method, comprising a vulnerability identification system according to any one of claims 1 to 9, characterized in that: The following steps are involved: Step 1: The collection module collects network data packet information and session log record information through integrated network traffic analysis tools and session log management to form a network session collection data group; Step 2: The information processing module pre-processes the network session collection data group, including data cleaning for data filtering, data normalization for multi-source data formatting and feature extraction for network session characteristic information extraction, to form a processed network session collection data group; Step 3: The recognition module establishes an isolation forest model for the processed network session collection data group to identify session vulnerabilities and obtain the session anomaly index Yczs; Step 4: The decision module matches the preset abnormal session vulnerability assessment threshold H with the session anomaly index Yczs, obtains the session vulnerability assessment strategy plan, and performs specific execution marking according to the content of the session vulnerability assessment strategy plan.