User threat behavior-oriented data description analysis method and system

The LSTM neural network model and attention mechanism layer are used to preprocess and analyze massive security logs, identify and generate threat portraits, solve the problem of low efficiency in network attack scene restoration and traceability in the existing technology, and achieve efficient and accurate threat identification. Behavior recognition and analysis.

CN118740465APending Publication Date: 2024-10-01AVIATION IND INFORMATION CENT
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410899544.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-05
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

Existing technology cannot effectively identify and restore network attack scenarios and trace attack sources from massive security logs, and cannot conduct comprehensive analysis from multiple dimensions such as threat actors, threat targets, and threat means, resulting in low efficiency and poor accuracy of network security analysis.

Method used

The LSTM neural network model is used for data preprocessing and word embedding, combined with the attention mechanism layer and Dropout regularization technology, to train the user threat behavior recognition model, identify threat behaviors and generate threat portraits.

Benefits of technology

It achieves comprehensive analysis of network intrusion threats from multiple dimensions, effectively restores the threat process, reduces manual identification costs, and improves identification efficiency and accuracy. It is suitable for areas such as network security, business risk control, and information security compliance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118740465A_ABST
    Figure CN118740465A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of information security, and relates to a user threat behavior-oriented data description analysis method and system. The method comprises the following steps: firstly, carrying out data preprocessing to screen user behaviors, and secondly, constructing an action tag sequence through minimum threat behavior actions, and taking the action tag sequence as the input of an LSTM neural network to train a user threat behavior recognition neural network model; carrying out attention weight calculation on hidden layer output of the LSTM network so as to improve the weight ratio of the minimum threat behavior action; evaluating the neural network model obtained by training; and finally, performing threat behavior identification by using the model, identifying information such as a threat method, a threat habit and a threat intention generated in a threat behavior process, and describing a user threat behavior portrait.
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 in particular relates to a data characterization and analysis method and system for user threat behavior. Background Art

[0002] In recent years, with the rapid development and application of emerging technologies such as the Internet, cloud computing, and big data, the threat intrusion behaviors against networks and information systems have also increased significantly. More and more units or organizations are facing the risk of various attacks such as ransomware, network intrusion, data theft, and page tampering. In order to deal with these threats, enterprises usually configure a variety of security protection devices such as application firewall WAF (Web Application Firewall, referred to as: WAF), intrusion prevention system IPS (Intrusion Prevention System, referred to as IPS), sandbox, etc. to prevent the damage caused by threat intrusion events. But at the same time, the massive alarm information generated by various security protection devices has brought great challenges to network security managers and operation and maintenance personnel. For example, in a manufacturing enterprise with a 1GB traffic scenario, the application firewall WAF device generates about 50,000 alarm logs every day, and the intrusion prevention system IPS device generates about 80,000 alarm logs every day. Not only is the amount of alarm log data huge, but the format of the alarm log also varies greatly due to different manufacturers and devices, which brings great difficulty to network attack analysis. Therefore, how to discover truly harmful security events from massive security logs, and further associate and infer based on event characteristics to achieve goals such as attack scenario restoration, attack source tracing, and user threat behavior profiling, is one of the main requirements for conducting network security analysis in the context of big data threat situation awareness.

[0003] However, if the truly harmful security events are found from the massive security logs manually, the labor cost is high, the efficiency is slow, and the manual recognition error rate is high. In the prior art, Chinese Patent (CN111901296A) discloses a method for detecting network attack behaviors, but the performance and generalization ability of its LSTM network model are relatively poor, and it is impossible to accurately identify attack behaviors and generate attack behavior portraits. Chinese Patent (CN115361215A) discloses a network attack behavior detection method based on a causal graph, but it only analyzes network flow data packets, and can only simply find out that there is an attack behavior at a certain time point or time period, and cannot truly restore the attack scene and attack source. Chinese Patent (CN116389133A) discloses an attack behavior identification method for edge computing networks, but the detection methods of Patent 3 and Patent 2 are similar, and only the flow data is detected, and the attack scene and attack source cannot be truly restored.

[0004] In summary, existing technologies are unable to analyze attack behaviors and generate portraits from multiple dimensions such as threat actors, threat targets, and threat methods. Summary of the invention

[0005] The purpose of the present invention is to provide a method and system for characterizing and analyzing data of user threat behaviors, so as to solve the above-mentioned technical problems.

[0006] To solve this technical problem, the technical solution of the present invention is:

[0007] On the one hand, a data characterization and analysis method for user threat behavior is provided. The method first performs data preprocessing on log information to obtain a detection sequence composed of all alarm logs after data preprocessing;

[0008] This step is the first step of the method, which is to preprocess the collected data. This step is to convert data of different dimensions into the same scale after cleaning, transformation and standardization, so as to facilitate subsequent model training.

[0009] Secondly, each log corresponding to the user behavior action in the detection sequence is embedded into a word vector by a word conversion tool, and then the word vector is used as the input of the LSTM neural network to train the user threat behavior recognition neural network model; the attention weight is calculated for the hidden layer output of the LSTM network to increase the weight ratio of the minimum threat behavior action; and the trained neural network model is evaluated;

[0010] The user threat behavior attack is expressed in the form of the following set:

[0011]

[0012] Here, attack represents the attack sequence composed of all the minimum threat behavior actions in a user's threat behavior. represents the minimum threat behavior action, its position represents the temporal relationship of the minimum threat behavior action in this attack sequence, m represents the category of the minimum threat behavior action, and n represents the number of times the minimum threat behavior action is executed;

[0013] Finally, the model is used to identify threat behaviors, identify threat methods, threat habits, threat intentions and other information generated during the threat behavior process, and characterize the user's threat behavior profile.

[0014] The minimum threat behavior action refers to the log in the alarm log that represents a user threat behavior. The log file attributes include: behavior type, occurrence time, and occurrence location. Threat behavior information such as category, time, and location can be obtained from the log data and extracted from the basic information of the data itself.

[0015] According to the behavior type in the log attributes (i.e., action feature attributes), the minimum threat behavior actions are classified, including: data theft, system destruction, and virus attacks.

[0016] Data theft refers to the illegal transmission of data and its acquisition by others; system crash refers to the inability to enter the system, most of which is an error during the startup process, displaying an error message with white text on a black background, or the computer cannot enter the desktop when the system starts, keeps restarting or has a black screen; virus attack refers to a set of computer instructions or program codes that are compiled or inserted into computer programs to destroy computer functions or data, affect computer use and are able to replicate themselves.

[0017] The neural network model consists of an input layer, a word embedding layer (also called a Word Embedding layer), an LSTM layer, an attention mechanism layer, and an output layer;

[0018] The word embedding layer is responsible for converting the minimum threat behavior action label sequence contained in the input layer into a word vector. The dictionary size is the same as the length of the minimum threat behavior action set contained in different attack modes. The LSTM layer uses a single-layer LSTM network to process the temporal relationship between the minimum threat behavior actions. Its input size is the same as the word embedding layer input size. The LSTM network can process more information in parallel, thereby improving the model's representation ability and learning efficiency.

[0019] Dropout regularization technology is introduced in LSTM, and the inactivation rate is set to 0.4-0.6. That is, the hidden units of some random inactivation are used to prevent the model from overfitting; by introducing Dropout, the LSTM network is forced to learn to extract features from multiple different neuron combinations, which makes the model more robust to changes in input data and improves its ability to generalize to new data.

[0020] The deactivation rate is a hyperparameter that can be adjusted according to specific tasks and data. Preferably, it is set to 0.5 in the present invention to achieve the best performance.

[0021] The attention mechanism layer uses the tanh function for weighted calculation to maximize the weight ratio of the minimum threatening behavior action;

[0022] The output layer uses the sigmoid function for normalization calculation and outputs the probability value that the sequence detected by the current time window content belongs to the attack behavior sequence.

[0023] Among them, the role of the Word Embedding layer is to convert words in natural language into dense vectors (Dense Vector) that can be understood by computers.

[0024] The data preprocessing refers to screening the user behaviors in the alarm log according to the data collection rules to filter out the user behaviors that are not of concern; the data preprocessing includes: data cleaning, data conversion and data standardization.

[0025] Data cleaning can remove duplicate, erroneous or incomplete data. Data conversion converts data from different sources and formats so that they can be processed uniformly. Data standardization normalizes data so that data of different dimensions and ranges can be compared and analyzed on a unified scale.

[0026] The data after standardization has the following characteristics: the difference between different data of the same feature is mainly reflected in the degree of deviation from the center, and is no longer affected by the original value. The mean of the data distribution is 0 and the standard deviation is 1, which is convenient for analysis and comparison. The correlation between data is eliminated, and the weights between different features are more reasonable, which is conducive to preventing overfitting and underfitting and improving the generalization ability of the model.

[0027] On the other hand, the present invention also provides a data characterization and analysis system for user threat behavior, the analysis system comprising:

[0028] The log processing module is used to perform data preprocessing on the log information to obtain a detection sequence consisting of all alarm logs after the data preprocessing is completed;

[0029] The word vector module is used to embed each log corresponding to the user behavior action in the detection sequence using the word conversion tool to obtain a word vector;

[0030] The model training and evaluation module is used to use the word vector as the input of the LSTM neural network to train the user threat behavior recognition neural network model; calculate the attention weight of the hidden layer output of the LSTM network to increase the weight ratio of the minimum threat behavior action; and evaluate the trained neural network model;

[0031] Threat behavior identification module, used to use the model to identify threat behaviors and identify threat methods, threat habits, threat intentions and other information generated during threat behaviors

[0032] The portrait characterization module is used to characterize the user's threat behavior based on the threat behavior identified by the model.

[0033] The analysis system also includes a data preprocessing module.

[0034] The beneficial effects of the present invention are:

[0035] (1) Based on a variety of different data sources, this paper describes network intrusion threats from multiple dimensions such as threat actors, threat targets, and threat methods. This information is then correlated and analyzed. By comprehensively analyzing the characteristics of network intrusions, this paper effectively restores the threat process, analyzes the threat actor's intentions, and achieves a complete construction of a user threat behavior portrait.

[0036] (2) The present invention has a wide range of application scenarios and can be applied in the following scenarios: 1. Network security: used to detect and prevent threatening behaviors such as network attacks and virus transmission. 2. Business risk control: used to identify and prevent threatening behaviors such as fraud and money laundering. 3. Information security compliance: used to identify and prevent illegal behaviors, such as illegal access and illegal downloading of information.

[0037] (3) The present invention trains a behavior recognition model through a neural network, and then uses the behavior recognition model to identify and analyze massive logs, and finally generates a portrait based on the recognition results. It is not only low-cost but also has a wide range of application scenarios. The system of the present invention can be deployed in scenarios where monitoring and recognition are required.

[0038] (4) This method is applicable to various scenarios where user threat behavior detection is required, including but not limited to network security, business risk control, security and confidentiality. User behavior data in these fields are usually complex and involve different threat behaviors. For example, in the field of network security, network attack behaviors that need to be detected include but are not limited to phishing attacks, malware, DDoS attacks, etc.; in the field of business risk control, fraud behaviors that need to be detected include but are not limited to credit card fraud, money laundering, etc.; in the field of security and confidentiality, criminal behaviors that need to be detected include but are not limited to data theft, data extortion, etc. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the technical solutions implemented in the present invention, the following is a brief explanation of the drawings required to be used in the examples of the present invention. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0040] Figure 1 Identify the network structure diagram of the user threat behavior model;

[0041] Figure 2 A schematic diagram of collecting logs from multiple different products according to different protocols;

[0042] Figure 3 This is a schematic diagram of the log collection protocol and method;

[0043] Figure 4 This is a schematic diagram of the complex log format collected;

[0044] Figure 5 This is a schematic diagram of log enrichment;

[0045] Figure 6 The formatted log after conversion;

[0046] Figure 7 is a functional block diagram of the system of the present invention;

[0047] Figure 8 Screenshot of the original logs for printing and burning involved in the data collection process (partial illustration);

[0048] Fig. 9 This is a screenshot of the original log of power on and off involved in the data collection process (partial illustration);

[0049] Fig.10 This is a screenshot of the original email log involved in the data collection process (partial illustration);

[0050] Fig.11 This is a screenshot of the log data after data preprocessing (partial schematic);

[0051] Fig.12 This is a screenshot of the preprocessed log data after word vectorization (partial diagram). DETAILED DESCRIPTION

[0052] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution 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 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.

[0053] The features of various aspects of the embodiments of the present invention will be described in detail below. In the detailed description below, many specific details are proposed to fully understand the present invention. However, it is obvious to those skilled in the art that the present invention can also be implemented without these specific details. The following description of the embodiments is only for a better understanding of the present invention by illustrating examples of the present invention. The present invention is not limited to any specific settings and methods provided below, but covers all product structures, any improvements, replacements, etc. of methods covered without departing from the spirit of the present invention.

[0054] In the various drawings and the following description, well-known structures and techniques are not shown to avoid unnecessarily obscuring the present invention.

[0055] In the accompanying drawings related to the embodiments of the present invention, Figure 1 This is a network structure diagram of the user threat behavior identification model of the method of the present invention, Figure 7 The logic modules of the data characterization and analysis system for user threat behavior of the present invention are combined into a principle diagram. Figures 2 to 6 It is a schematic diagram of a system example interface of the data characterization and analysis system of the present invention.

[0056] like Figure 7 The present invention is shown as an analysis system, comprising:

[0057] The log processing module is used to perform data preprocessing on the log information to obtain a detection sequence consisting of all alarm logs after the data preprocessing is completed;

[0058] The word vector module is used to embed each log corresponding to the user behavior action in the detection sequence using the word conversion tool to obtain a word vector;

[0059] The model training and evaluation module is used to use the word vector as the input of the LSTM neural network to train the user threat behavior recognition neural network model; calculate the attention weight of the hidden layer output of the LSTM network to increase the weight ratio of the minimum threat behavior action; and evaluate the trained neural network model;

[0060] A threat behavior identification module is used to use the model to identify threat behaviors and identify threat methods, threat habits, threat intentions and other information generated during the threat behavior process;

[0061] The portrait characterization module is used to characterize the user's threat behavior based on the threat behavior identified by the model.

[0062] The detailed steps of the data characterization and analysis method for user threat behavior of the present invention are as follows:

[0063] Before using logs for model training, the present invention includes actions such as log data collection and log data preprocessing.

[0064] 1. Data Collection

[0065] 1. Determine the data source: Collect data about user threat behaviors from various security devices, support the collection of log information generated by various assets through traffic monitors and log aggregation functions (typical log information such as Figure 8 The assets include but are not limited to: information systems, information equipment, storage devices, security products, application systems, etc. Logs include but are not limited to network traffic, system logs, social media data, security monitoring logs, etc. The collection protocols support syslog, ftp, jdbc, icmp, http, webservice, etc.

[0066] 2. Define data collection rules: Determine the rules and standards for data collection, such as the time range, data type, data format, etc.

[0067] Specifically, please refer to the data collection interface diagram of the analysis system of the present invention. Figure 2 and 3 As shown, the process of data collection is:

[0068] a) Massive, multi-source, and heterogeneous alarm logs are connected to the big data stream parsing and normalization engine in various ways. These data streams are placed in the original rules of Kafka;

[0069] b) Use the log parsing task and log normalization task as consumers of Kafka's original rules, consume the data stream in the Kafka original rules, and convert it into a log-level normalized structure;

[0070] c) Based on the defined security event normalization structure, the normalized log is converted into a normalized security event, and the event feature information missing in the log is supplemented based on the incoming threat intelligence or local context semantics. Then, the event understanding task acts as a generator to write the event stream into the new rule. At this time, the event storage task acts as a consumer to write the data stream in the event rule into the hive database, or call the graph database storage plug-in to convert the streaming data into a graph structure and store it in the graph database.

[0071] It can be seen that after the original logs go through the main processes of log parsing, log normalization, and event understanding, it is possible to quickly understand multi-source logs into normalized security events. The normalization engine for massive, multi-source, and heterogeneous data based on the big data streaming framework solves the problem of parsing and normalizing massive data.

[0072] Specifically, see Figure 4 and 5 As shown, Figure 4 For example, a complex log is a collected log, and available standard values ​​in the log are proposed to align with the standard values ​​of the system of the present invention. Figure 5 For data enrichment, complex data is enriched and converted into identifiable identifiers. For example, the collected value is "1", and after enrichment, "1" means "high risk".

[0073] 2. Data Preprocessing

[0074] The system of the present invention supports formatting and storing log data in various formats generated by different assets through data parsing, cleaning, filtering, data standardization, etc.

[0075] 1. Data cleaning: Remove duplicate, erroneous or incomplete data to ensure data accuracy and completeness.

[0076] Missing values: There are values ​​in the data that are not filled in. This may be because some information was not recorded or the data was lost during the data collection process.

[0077] Outliers: Data contains values ​​that are significantly deviated from the normal range, such as a person's height being a negative number or a person's age exceeding the maximum life expectancy of an average person.

[0078] Redundant data: The data contains duplicate or useless information, such as multiple records of the same time and place.

[0079] Format error: The data is not in the correct format, such as the wrong date format or wrong data type.

[0080] 2. Data conversion: Convert data from different sources and formats so that they can be processed uniformly. The converted logs are as follows: Figure 6 The converted data has the following characteristics:

[0081] Structured: The data is organized into a table or matrix, where each column represents a feature and each row represents a data point.

[0082] Normalization: The dimension and range of the data are standardized so that the value of each feature is within a relatively uniform range.

[0083] Purity: Noise and redundant information in the data are removed, improving the accuracy and reliability of the data.

[0084] Readability: The format and labels of the data are clear and concise, which facilitates subsequent processing and analysis.

[0085] 3. Data standardization: Standardize the data and convert data of different dimensions into the same scale to facilitate subsequent model training. The data standardization here is directly completed by a data processing module. Specifically, data standardization includes the following steps:

[0086] Data normalization: scaling the range of data to a relatively small interval, usually between [-1, 1] or [0, 1]. This step can make data of different dimensions comparable.

[0087] Data centering: Adjust the mean of the data to 0 so that the center of the data distribution coincides with the origin. This step can make the characteristics of the data unaffected by the dimension and mean.

[0088] Data scaling: Adjust the standard deviation of the data to 1 so that the distribution ratio of the data is equal to the original ratio. This step can make the characteristics of the data not affected by the dimension and ratio.

[0089] The data after standardization has the following characteristics: the difference between different data of the same feature is mainly reflected in the degree of deviation from the center, and is no longer affected by the original value. The mean of the data distribution is 0 and the standard deviation is 1, which is convenient for analysis and comparison. The correlation between data is eliminated, and the weights between different features are more reasonable, which is conducive to preventing overfitting and underfitting and improving the generalization ability of the model.

[0090] The collected data logs are preprocessed to obtain preprocessed logs, and then the preprocessed log data is imported into the trained LSTM neural network model. The model will output a result log and the output result obtained by the training model.

[0091] 3. Perform model training in the model training and evaluation module

[0092] 1. Training model: Use the preprocessed data to train the LSTM neural network model and optimize the model parameters to improve the accuracy and generalization ability of the model.

[0093] 2. Model evaluation: Evaluate the trained model through cross-validation, ROC curve and other methods to determine the performance and effect of the model. Specifically,

[0094] The neural network model consists of an input layer, a word embedding layer (also called a Word Embedding layer), an LSTM layer, an attention mechanism layer, and an output layer;

[0095] The word embedding layer is responsible for converting the minimum threat behavior action label sequence contained in the input layer into a word vector. The dictionary size is the same as the length of the minimum threat behavior action set contained in different attack modes, and the word embedding size is uniformly set to 20 characters.

[0096] The LSTM layer uses a single-layer LSTM network to process the temporal relationship between the minimum threat behavior actions. Its input size is the same as the word embedding layer input size. The hidden layer has 128 neurons. By setting 128 neurons, the LSTM network can process more information in parallel, thereby improving the representation ability and learning efficiency of the model.

[0097] Dropout regularization technology is introduced in LSTM, and the inactivation rate is set to 0.5. That is, random inactivation of general hidden units is used to prevent model overfitting; by introducing Dropout (i.e., discarding method), the LSTM network is forced to learn to extract features from multiple different neuron combinations, which makes the model more robust to changes in input data and improves its ability to generalize to new data.

[0098] The specific training process of the user threat behavior identification model is as follows:

[0099] (1) The input layer is a detection sequence consisting of all alarm logs after data preprocessing;

[0100] (2) Each log in the sequence corresponding to the user behavior action is embedded into a word vector using word2vec (word to vector). Word2vec is a tool for converting words into vector form.

[0101] (3) Input the word vector matrix into the LSTM layer to retain the key information in the long sequence and obtain the hidden layer output h1, h2, …, hn;

[0102] (4) Add the attention mechanism Attention in the hidden layer, calculate the attention weight distribution for each action, obtain the probability distribution values ​​a1, a2, ..., an, and weight all probability distributions to obtain the attention value of the current detection sequence;

[0103] (5) Finally, the sigmoid function is used to calculate whether the current detection sequence is a threatening behavior sequence.

[0104] The user threat behavior identification model in this embodiment adopts the Adam (Adaptive MomentEstimation) algorithm as the optimization model. The Adam algorithm can integrate the Momentum algorithm (impulse algorithm or momentum algorithm) and the RMSProp (Root Mean Square Propagation) algorithm, and uses exponential moving average calculation to reduce the fluctuation range and accelerate convergence.

[0105] After obtaining the user threat behavior identification model, the model is also evaluated. The evaluation process is:

[0106] (1) Apply the trained decision tree model to the test data set to obtain the model's prediction results.

[0107] (2) Compare the model’s prediction results with the true labels of the test data set and calculate the model’s evaluation indicators such as accuracy, precision, and recall.

[0108] (3) Through cross-validation, ROC curve (Receiver Operating Characteristic Curve, ROC curve for short) and other methods, the model is evaluated more comprehensively to determine the performance and effect of the model.

[0109] 4. Threat Behavior Identification

[0110] After the user threat behavior identification model passes the evaluation, the threat behavior identification process is as follows:

[0111] 1. Input data: Input the user behavior data to be identified into the trained model.

[0112] 2. Identify threats: Use the model output to determine whether the user behavior is a threatening behavior.

[0113] 3. Result output: Output identification results, including the type of threatening behavior, time and place of occurrence, threatening methods generated during the threatening behavior, threatening habits, threatening intentions and other information.

[0114] In addition, when describing the user threat behavior profile, this article can describe the user threat behavior in the form of the following set:

[0115]

[0116] Here, attack represents the attack sequence composed of all the minimum threat behavior actions in a user's threat behavior. Represents the minimum threat behavior action, and its location represents the temporal relationship of the minimum threat behavior action in this attack sequence. m represents the category of the minimum threat behavior action, and n represents the number of times the minimum threat behavior action is executed. Among them, the category of the minimum threat behavior action includes the type of threat behavior, the time of occurrence, the location of occurrence, the threat method generated during the threat behavior, the threat habit, the threat intention and other information. The minimum threat behavior action refers to the log recorded in the alarm log that represents a user threat behavior. The log file attributes include: behavior type, occurrence time, and occurrence location;

[0117] Threat behavior information such as category, time, and location can be obtained from log data and extracted from the basic information of the data itself.

[0118] According to the behavior type (i.e., action feature attribute) in the log attributes, the minimum threat behavior actions are classified, including: data theft, system crash, and virus attack. Data theft generally refers to data being illegally transmitted and obtained by others; general system crash is manifested as being unable to enter the system, most of which are errors during the startup process, displaying an error prompt with white text on a black background, or the computer cannot enter the desktop when the system starts, and keeps restarting or the screen is black; virus attack refers to a set of computer instructions or program codes compiled or inserted into computer programs that destroy computer functions or data, affect computer use, and can replicate themselves.

[0119] In the above expression, for example, a threat attack against the SSH (Secure Shell, SSH for short) port can be described as:

[0120]

[0121] Among them, attack.ssh cracking Represents threat attacks against SSH ports. This means that the attacker performed n port scans to determine the open status of the port when conducting an SSH threat attack. It means that the attacker has carried out n password threats after confirming the target.

[0122] In a specific data characterization and analysis process such as 1) to 3):

[0123] Step 1) Collect data by connecting the system to the printing and burning system, host audit software, mail system and other data sources, and clean the data to form the collected original log. Figure 8 , Fig. 9 , Fig.10 They are respectively illustrations of the original log data for printing and burning, power on and off, and email.

[0124] Step 2) obtain the data preprocessing log by data preprocessing; the log after data preprocessing is as follows: Fig.11 As shown, the data preprocessing log is sorted in time format as follows:

[0125] {"place_conduct":"Behavior location","behavior_time":"Behavior time","action":"Behavior type","behavioral_description":"Behavior description","actor":"Behavior subject","logTime":"Log time"}

[0126] Step 3) Use the word2vec tool to embed the preprocessed log data into word vectors. The output log diagram after word vectorization is as follows: Fig.12 As shown in the figure, the word vector output log is imported into the model for calculation to obtain the risk value. The format of the output log after word vectorization is arranged according to the action type as follows:

[0127] {"place_conduct":"Behavior location","behavior_time":"Behavior time","behavior_type":"Behavior type""behavioral_description":"Behavior description","actor":"Behavior subject","logTime":"Log time","attack":"Risk value"}

[0128] In a specific application scenario, behaviors that steal corporate data include: abnormal printing behavior (such as printing without turning on the computer), abnormal email behavior, abnormal power on and off, etc.

[0129] like Fig.11 and Fig.12 As shown, take Chen Yu's printout on November 4 as an example ( Fig.11 The 137th row of data in the figure shows that the printing before the shutdown on November 3 was not recorded as a risk value, while the files printed after the shutdown on November 3 without turning on the computer were recorded as possible illegal printing ( Fig.11 The data from lines 163 to 170 in the figure are 8 times in total). According to the neural network model, the risk value is recorded as 0.7582 (e.g. Fig.12 31 in the ).

[0130] For employees stealing corporate data through the printing and burning system, it is recorded as Among them, A1 is abnormal power on / off behavior, with a risk value of 0.9248; A2 is abnormal printing behavior, with a risk value of 0.7582; A3 is abnormal email behavior, with a risk value of 0.8123;

[0131] For employee Chen Yu, there were eight abnormal printings, but no abnormal power on / off or abnormal email behavior.

[0132]

[0133] 1. After the attack behavior attack is calculated according to the risk value, a risk can be prompted when the calculated value is greater than a certain value, for example, a risk reminder can be set when the value is greater than 4. For example, in the above embodiment, 6.0656 is greater than 4 (this threshold 4 is defined and judged based on experience), then the behavior can be considered to be risky, and it is considered that this employee frequently copies materials and steals corporate data. The employee's behavior of stealing data by copying is identified, and a profile of the employee is formed.

[0134] When the threshold is exceeded, the user behavior is judged to be risky, and an alarm is issued. When the alarm is issued, the type of the user's risky behavior is also displayed (i.e., how many times the user has risky behavior on A1, how many times the user has risked on A2, etc., time and place, etc.), so as to form a profile. If the total risk value does not exceed the threshold, no risk reminder is given.

[0135] 2. The abnormal behavior of the present invention is defined and identified based on the employee's operating behavior. For example, A1 is an abnormal power on / off behavior. When an employee has an abnormal power on / off behavior, the identified behavior is abnormal power on / off. Similarly, when an employee sends an email in violation of the regulations, the identified behavior is sending an email in violation of the regulations.

[0136] 3. Under what circumstances is it considered abnormal power on and off? For example, during non-working hours or sensitive times, such as 9 pm to 5 am, this time period is non-working hours or sensitive time. If the computer is turned on at this time, it is considered abnormal power on and off. Similarly, when sending emails, sending emails to whitelisted users or other users outside the LAN at abnormal times can be considered as sending emails in violation of regulations. Therefore, the definition of risky behavior is actually set according to actual needs and may not be uniform. Different companies have different security management requirements or different working methods, and the definition of identifying risky behaviors is not exactly the same.

[0137] 3. After the original log is processed, it becomes a data log that can be imported into the model. After the original log is processed, in fact, all the processed log data needs to be imported into the model for calculation. First, we set a total risk value (threshold 4 mentioned in the previous article). When a log passes through the model and When the total risk value calculated by the formula exceeds the threshold, the data corresponding to the log will be identified as the log of the risky person. The rest of the log data that does not exceed the risk threshold can be identified as normal behavior and no profiling is required.

[0138] In the embodiment, the three behaviors of power on / off, printing and email are not related to each other and can be independent or more behaviors can be added as detection elements. How to judge whether these behaviors are risky can be set according to the company's internal security compliance requirements (management regulations).

[0139] For example, we set the normal power on and off time to 7:00-22:00. Then the power on and off behavior outside this time range can be considered as a risk. Similarly, abnormal printing behavior has been mentioned in the previous content. For example, if the computer is not turned on, but the computer's corresponding networked printer prints after the computer is turned off, it can be considered that the employee has printed privately. Whether a certain behavior of an employee is risky may be related to the time and method of the behavior (for example, behavior in the middle of the night is generally abnormal). Which behaviors are defined as risks are definitely defined by humans, and different units may have different definitions. This is also completely understandable. For example, if you are on night shift, then operating a computer at night is definitely normal behavior.

[0140] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the field can easily think of various equivalent modifications or substitutions within the technical scope disclosed by the present invention, and these modifications or substitutions should all be covered within the protection scope of the present invention.

Claims

1. A data characterization and analysis method for user threat behavior, characterized by: The method first performs data preprocessing on the log information to obtain a detection sequence consisting of all alarm logs after the data preprocessing is completed; Secondly, each log corresponding to the user behavior action in the detection sequence is embedded into a word vector by a word conversion tool, and then the word vector is used as the input of the LSTM neural network to train the user threat behavior recognition neural network model; the attention weight is calculated for the hidden layer output of the LSTM network to increase the weight ratio of the minimum threat behavior action; and the trained neural network model is evaluated; The user threat behavior attack is expressed in the form of the following set: Here, attack represents the attack sequence composed of all the minimum threat behavior actions in a user's threat behavior. represents the minimum threat behavior action, its position represents the temporal relationship of the minimum threat behavior action in this attack sequence, m represents the category of the minimum threat behavior action, and n represents the number of times the minimum threat behavior action is executed; Finally, the model is used to identify threat behaviors, identify threat methods, threat habits, and threat intention information generated during the threat behavior process, and characterize the user's threat behavior profile.

2. The method according to claim 1, characterized in that: The minimum threatening behavior action refers to a log in the alarm log that indicates a user threatening behavior. The log file attributes include: behavior type, occurrence time, and occurrence location.

3. The method according to claim 2, characterized in that: The minimum threat behavior actions are classified according to the behavior type in the log attributes, including: data theft, system destruction, and virus attack.

4. The method according to claim 3, characterized in that: Data theft refers to the illegal transmission of data and its acquisition by others; system crash refers to the inability to enter the system, most of which is an error during the startup process, displaying an error message with white text on a black background, or the computer cannot enter the desktop when the system starts, keeps restarting or has a black screen; virus attack refers to a set of computer instructions or program codes that are compiled or inserted into computer programs to destroy computer functions or data, affect computer use and are able to replicate themselves.

5. The method according to claim 1, characterized in that: The neural network model consists of an input layer, a word embedding layer, an LSTM layer, an attention mechanism layer, and an output layer; The word embedding layer is responsible for converting the minimum threat behavior action label sequence contained in the input layer into a word vector. The dictionary size is the same as the length of the minimum threat behavior action set contained in different attack modes. The LSTM layer uses a single-layer LSTM network to process the temporal relationship between the minimum threat behavior actions. Its input size is the same as that of the word embedding layer. Dropout is introduced into LSTM, and the inactivation rate is set to 0.4-0.6, that is, some hidden units are randomly inactivated to prevent the model from overfitting, thereby improving its ability to generalize to new data.

6. The method according to claim 5, characterized in that: The dropout rate was set to 0.

5.

7. The method according to claim 5, characterized in that: The attention mechanism layer uses the tanh function for weighted calculation to maximize the weight ratio of the minimum threatening behavior action.

8. The method according to claim 5, characterized in that: The output layer uses the sigmoid function for normalization calculation and outputs the probability value that the sequence detected by the current time window content belongs to the attack behavior sequence.

9. The method according to claim 1, characterized in that: The data preprocessing refers to screening the user behaviors in the alarm log according to the data collection rules to filter out the user behaviors that are not of concern; Data preprocessing includes: data cleaning, data conversion and data standardization.

10. A data characterization and analysis system for user threat behavior, implementing the method according to any one of claims 1 to 9, characterized in that: The analysis system comprises: The log processing module is used to perform data preprocessing on the log information to obtain a detection sequence consisting of all alarm logs after the data preprocessing is completed; The word vector module is used to embed each log corresponding to the user behavior action in the detection sequence using the word conversion tool to obtain a word vector; The model training and evaluation module is used to use the word vector as the input of the LSTM neural network to train the user threat behavior recognition neural network model; calculate the attention weight of the hidden layer output of the LSTM network to increase the weight ratio of the minimum threat behavior action; and evaluate the trained neural network model; A threat behavior identification module is used to use the model to identify threat behaviors and identify threat methods, threat habits, and threat intention information generated during the threat behavior process; The portrait characterization module is used to characterize the user's threat behavior based on the threat behavior identified by the model.