Terminal abnormal access control method and system based on deep transfer learning

Through deep transfer learning and cluster-free identification technology, combined with attribute-based encryption, a dynamic access control system is constructed, which solves the problems of internal attacks and abnormal access in distribution network big data, and realizes the control of distribution network big data. Efficient security management.

CN118611950APending Publication Date: 2024-09-06ELECTRIC POWER RESEARCH INSTITUTE OF STATE GRID SHANDONG ELECTRIC POWER COMPANY
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410811532.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-21
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

Existing access control models, such as role-based access control, attribute-based access control and behavior-based access control, are difficult to effectively prevent internal attacks and abnormal access to distribution network big data, and lack flexibility and dynamics, making it impossible to Adapt to the diversity and variability of distribution network big data.

Method used

The terminal abnormal access control method based on deep transfer learning is used to extract the user's access records from the log files of the distribution network, build the user's access matrix, use the deep neural network to extract the user's behavioral feature vector, and combine it with cluster-free recognition and attribute-based encryption technology to achieve dynamic access control and real-time anomaly detection.

Benefits of technology

It effectively protects the security and privacy of distribution network big data, realizes dynamic access control for users at different levels, improves detection accuracy and generalization capabilities, can monitor and block abnormal access in real time, and ensures data confidentiality and user privacy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118611950A
    Figure CN118611950A
Patent Text Reader

Abstract

The invention belongs to the field of power system and network security, and provides a terminal abnormal access control method and system based on deep transfer learning, and the method comprises the steps: extracting an access record of a user from a log file of a power distribution network, and constructing an access matrix of the user; dividing the access matrix of the user into a training set and a test set, and performing deep learning on the training set to obtain a behavior feature vector of the user as a basic model; performing non-clustering identification on the test set, identifying suspicious access records, performing calibration, feeding back a result to the basic model, and improving and upgrading the basic model to obtain a final model; encrypting an access request of a user by utilizing attribute-based encryption; and monitoring the real-time access behavior of the user by utilizing the final model, comparing the real-time access behavior with the predicted expected behavior, judging whether the access behavior of the user is abnormal or not, and determining the abnormal degree and type. According to the method, the security and privacy of the power distribution network big data can be effectively protected.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of power system and network security, and specifically relates to a terminal abnormal access control method and system based on deep transfer learning. Background Art

[0002] The statements in this section merely provide background information related to the present invention and do not necessarily constitute prior art.

[0003] The distribution network is an important part of the power system, responsible for delivering electricity from the transmission network to the end user. With the development of smart grids, the amount and type of data in the distribution network are increasing, including power load, power quality, grid topology, equipment status, fault diagnosis, user behavior, etc. These data constitute the big data of the distribution network. The big data of the distribution network has the characteristics of massive, multi-source, multi-dimensional, dynamic, and heterogeneous, and has important value and significance for the operation, management, optimization, and innovation of the distribution network.

[0004] However, the security and privacy of distribution network big data also face severe challenges. On the one hand, distribution network big data involves the interests of multiple entities, such as power companies, government departments, third-party service providers, and end users. These entities have different data requirements and data permissions, and it is necessary to implement fine-grained access control on distribution network big data to prevent data leakage, tampering, and forgery. On the other hand, in the process of collecting, storing, transmitting, processing, and sharing distribution network big data, there may be various internal and external threats, such as malicious attacks, illegal intrusions, and abnormal access. It is necessary to implement real-time monitoring and abnormal detection of distribution network big data to ensure data integrity and availability.

[0005] According to the inventors' understanding, various access control models are currently commonly used to control internal attacks and abnormal access, but these models all have certain disadvantages: Role-based access control (RBAC) model: This model is a commonly used access control model that abstracts users and permissions into roles and operations, and implements access control for users through the allocation and authorization of roles and operations. The advantages of this model are simplicity and ease of management, but its disadvantages are lack of flexibility and dynamism, and it cannot adapt to the diversity and variability of distribution network big data, nor can it effectively prevent internal attacks and abnormal access.

[0006] Attribute-based access control (ABAC) model: This model is a new type of access control model that abstracts users and resources into attributes and implements access control for users through attribute matching and calculation. The advantages of this model are flexibility and dynamism, and the ability to adapt to the diversity and variability of distribution network big data. However, its disadvantages are complexity, difficulty in management, and inability to effectively prevent internal attacks and abnormal access.

[0007] Behavior-based access control (BBAC) model: This model is an access control model based on machine learning. It builds user behavior patterns by analyzing users' historical access records, and then compares users' real-time access behaviors with expected behavior patterns to determine whether users have abnormal behaviors, thereby achieving dynamic access control for users. The advantage of this model is that it can use data mining and machine learning technologies to detect and prevent abnormal access in a timely manner, but the disadvantage is that it needs to continuously update and adjust users' behavior patterns, otherwise it will lead to overfitting or underfitting of the model, reducing the accuracy and adaptability of the model. Summary of the invention

[0008] In order to solve the above problems, the present invention proposes a terminal abnormal access control method and system based on deep transfer learning. The present invention can effectively protect the security and privacy of distribution network big data, implement dynamic access control strategies for users of different levels, and utilize cluster-free recognition methods and manual calibration methods to improve generalization ability and detection accuracy.

[0009] According to some embodiments, the present invention adopts the following technical solutions: A terminal abnormal access control method based on deep transfer learning includes the following steps: Extract user access records from the log files of the distribution network and construct the user access matrix; The user's access matrix is ​​divided into a training set and a test set. Deep learning is performed on the training set to obtain the user's behavior feature vector as the basic model. Perform cluster-free identification on the test set, identify suspicious access records, perform calibration, feed the results back to the basic model, improve and upgrade the basic model, and obtain the final model; Utilize attribute-based encryption to encrypt user access requests; The final model is used to monitor the user's real-time access behavior and compare it with the predicted expected behavior to determine whether the user's access behavior is abnormal, and to determine the degree and type of abnormality.

[0010] As an optional implementation, the access record includes user attributes, accessed resources, access time and access results, wherein the user attributes include some of the user's identity, role, authority, responsibility, reputation, preference and historical information, the accessed resources include some of the data, equipment, service and application information, the access time includes some of the date, time period, duration and frequency information of the access, and the access results include some of the success or failure of the access, feedback, evaluation, satisfaction and trust information.

[0011] As an optional implementation, the deep learning is performed through a deep neural network, which includes an input layer, a hidden layer and an output layer, wherein the input layer is used to receive the user's access matrix, the hidden layer is used to perform nonlinear transformation and feature extraction on the user's access matrix, and the output layer is used to output the user's behavior feature vector.

[0012] As an optional implementation, when performing cluster-free identification on the test set, an isolation forest algorithm is used to perform cluster-free identification.

[0013] As a further step, the specific process of cluster-free identification on the test set includes: For each user’s access matrix in the training set, an isolation tree is constructed; Isolate each access record in the access matrix on a leaf node and record the depth of the leaf node as the abnormality score of the access record; Repeat the above steps for the access matrices of all users in the training set to construct multiple isolated trees to form an isolation forest. For each access record, calculate its average anomaly score in all isolated trees as the final anomaly score of the access record. For each user's access matrix in the test set, the constructed isolation forest is used to calculate the final anomaly score of each access record. If the score is lower than a preset threshold, the access record is considered suspicious and calibrated to determine whether the access record is abnormal. The calibration results are fed back into the model to improve and upgrade the basic model to obtain the final model.

[0014] Furthermore, the process of constructing an isolation tree includes: If the access matrix has only one access record or reaches the preset maximum depth, the access matrix is ​​taken as a leaf node and the construction ends; Otherwise, randomly select an access record and record it as , the machine selects a value within the range of the information, recorded as ,according to and The size of the access matrix is ​​divided into two sub-matrices, in which the k-th information of all access records in the sub-matrix is ​​smaller than , the kth information of all access records in the other submatrix is ​​greater than or equal to , take these two sub-matrices as the left and right child nodes of the current node, and recursively construct the left and right subtrees.

[0015] As an optional implementation method, the specific process of encrypting the user's access request using attribute-based encryption includes using an identity-based attribute-based encryption algorithm to perform attribute-based encryption, dynamically generating access keys based on the attributes of the user and the environment, achieving fine-grained access control over distribution network data, and controlling user access rights.

[0016] As a further step, the specific process includes: The data owner defines an access policy for the data based on the sensitivity and security of the data. The policy is an attribute-based Boolean expression that indicates which attributes a user must meet to access the data. The data owner uses a master key and a public key to encrypt the data to obtain a ciphertext, and stores the ciphertext in the data center of the distribution network; The user applies for an access key from a trusted attribute authority based on his or her identity and environment attributes. The attribute authority verifies and signs the user's attributes using the master key and public key, generates an access key, and sends the access key to the user. The user sends an access request to the data center of the distribution network, which includes the user's access key and the identifier of the data that the user wants to access; The data center determines whether the user has the authority to access the data based on the data access policy and the user's access key. If the user has the authority to access the data, the data center sends the ciphertext of the data to the user. If not, the data center denies the user's access request. After receiving the ciphertext of the data, the user uses his or her own access key to decrypt the ciphertext, obtain the plaintext of the data, and securely access the data; if the user's access key and the data access policy do not match, the user cannot decrypt the data or access the data.

[0017] As an optional implementation, the final model is used to monitor the user's real-time access behavior, compare it with the predicted expected behavior, and determine whether the user's access behavior is abnormal. The specific process of determining the degree and type of abnormality includes: The user sends an access request to the data center of the distribution network, which includes the user's access key and the identifier of the data that the user wants to access; The data center determines whether the user has the authority to access the data based on the data access policy and the user's access key. If the user has the authority to access the data, the data center sends the ciphertext of the data to the user. If not, the data center denies the user's access request. After receiving the ciphertext of the data, the user uses his own access key to decrypt the ciphertext, obtain the plaintext of the data, and access the data securely; The final model monitors the user's real-time access behavior and compares it with the predicted expected behavior. If the deviation between the user's access behavior and the preset threshold exceeds the set value, the user's access request is rejected, the user's access key is invalid, the user's access frequency exceeds the set range, the user's access location is abnormal, the user's access time is abnormal, the user's access result is abnormal, the user's access resource is abnormal, the user's access method is abnormal, the user's access purpose is abnormal, the user's access relationship is abnormal, or the user's access impact is abnormal, the user's access behavior is considered abnormal.

[0018] A terminal abnormal access control system based on deep transfer learning, comprising: The access matrix building module is configured to extract the user's access records from the log files of the distribution network and build the user's access matrix; The model building module is configured to divide the user's access matrix into a training set and a test set, perform deep learning on the training set, and obtain the user's behavior feature vector as a basic model; The model optimization module is configured to perform cluster-free identification on the test set, identify suspicious access records, perform calibration, feed the results back to the basic model, improve and upgrade the basic model, and obtain the final model; an encryption module configured to encrypt the user's access request using attribute-based encryption; The access control module is configured to use the final model to monitor the user's real-time access behavior, compare it with the predicted expected behavior, determine whether the user's access behavior is abnormal, and determine the degree and type of abnormality.

[0019] Compared with the prior art, the present invention has the following beneficial effects: The present invention adopts a deep learning method, uses the user's access matrix as input, extracts the user's behavioral feature vector as a basic model, and is used to predict the user's expected behavior. It can effectively capture the nonlinear, temporal and contextual information in the user's access matrix, and improve the model's predictive and generalization capabilities.

[0020] The present invention adopts a cluster-free identification method and utilizes an isolation forest algorithm to identify outliers in a user's access matrix, which can effectively identify outliers in the user's access matrix without specifying the number and shape of clusters in advance, thereby improving the detection efficiency and accuracy of the model.

[0021] The present invention adopts a manual calibration method, feeds back the results of cluster-free identification into the model, improves and upgrades the basic model to obtain the final model, and can effectively utilize manual experience and judgment to improve the reliability and stability of the model.

[0022] The present invention adopts the attribute-based encryption method to encrypt the user's access request, dynamically generate access keys according to the attributes and behaviors of the user and the environment, and control the user's access rights. This can effectively realize fine-grained access control of distribution network data while ensuring the confidentiality of the data and the privacy of the user.

[0023] The present invention adopts a method for detecting abnormal behavior, uses the final model to monitor the user's real-time access behavior, and compares it with the predicted expected behavior. If the user's access behavior is found to be abnormal, corresponding measures are taken according to the degree and type of the abnormality, such as warning, restricting, rejecting or disconnecting the user's access. The operation is simple and the accuracy is high.

[0024] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.

[0026] Figure 1 is a framework diagram of a terminal abnormal access control model based on deep transfer learning in an embodiment; Figure 2 is a flowchart of a deep neural network of an embodiment; Figure 3 is a schematic diagram of attribute encryption and abnormal behavior detection in one embodiment; Figure 4 is a structural diagram of a deep adaptive network of an embodiment. DETAILED DESCRIPTION

[0027] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

[0028] It should be noted that the following detailed descriptions are all illustrative and intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.

[0029] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit exemplary embodiments according to the present invention. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprising" and / or "including" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.

[0030] In the absence of conflict, the embodiments in this application and the features in the embodiments may be combined with each other.

[0031] Embodiment 1 A terminal abnormal access control method based on deep transfer learning, such as Figure 1 As shown, the following steps are included: S101: Extract the user's access records from the log files of the distribution network, including the user's attributes, accessed resources, access time, access results, etc., and construct the user's access matrix. The user's attributes may include the user's identity, role, authority, responsibility, reputation, preference, history, etc. The accessed resources may include data, equipment, services, applications, etc. The access time may include the date, time period, duration, frequency, etc. of the access. The access results may include the success or failure of the access, feedback, evaluation, satisfaction, trust, etc.

[0032] The user access matrix of this embodiment can be represented by a two-dimensional array or a sparse matrix, in which each row represents a user, each column represents the information of an access record, and each element represents the value of a user for the information of an access record.

[0033] S102: Divide the user's access matrix into a training set and a test set, perform deep learning on the training set, and obtain the user's behavior feature vector as a basic model for predicting the user's expected behavior.

[0034] Deep learning is performed using a deep neural network (DNN), which includes an input layer, a hidden layer, and an output layer, where the input layer receives the user's access matrix, the hidden layer performs nonlinear transformation and feature extraction on the user's access matrix, and the output layer outputs the user's behavior feature vector.

[0035] The deep neural network of this embodiment is implemented using a long short-term memory network (LSTM), which can capture the timing information and context information in the user's access matrix and improve the prediction and generalization capabilities of the model.

[0036] S103: Perform cluster-free identification on the test set, identify suspicious access records, manually calibrate them, feed the results back to the model, improve and upgrade the basic model, and obtain the final model for detecting abnormal user behavior.

[0037] In this embodiment, cluster-free identification is performed using an isolation forest algorithm, which can effectively identify outliers in the user's access matrix without specifying the number and shape of clusters in advance, thereby improving the detection efficiency and accuracy of the model.

[0038] S104: Utilize attribute-based encryption to encrypt the user's access request, dynamically generate access keys based on the attributes and behaviors of the user and the environment, control the user's access rights, and achieve secure access to distribution network data.

[0039] In this embodiment, attribute-based encryption is performed using an identity-based attribute-based encryption (IB-ABE) scheme, which can dynamically generate access keys based on the attributes of the user and the environment to achieve fine-grained access control of distribution network data while ensuring data confidentiality and user privacy.

[0040] S105: Using the final model, monitor the user's real-time access behavior and compare it with the predicted expected behavior. If the user's access behavior is found to be abnormal, take corresponding measures according to the degree and type of abnormality, such as warning, restricting, rejecting or disconnecting the user's access. The detection of abnormal behavior is based on multiple indicators, including but not limited to the deviation of the user's access behavior from the preset threshold, whether the user's access request is rejected, whether the user's access key is invalid, whether the user's access frequency is abnormal, whether the user's access location is abnormal, whether the user's access time is abnormal, whether the user's access result is abnormal, whether the user's access resource is abnormal, whether the user's access method is abnormal, whether the user's access purpose is abnormal, whether the user's access relationship is abnormal, whether the user's access impact is abnormal, etc.

[0041] S106: Use deep transfer learning to continuously optimize and update the final model to achieve dynamic adaptation and learning of distribution network big data. Deep transfer learning is performed using a deep adaptive network (DAN), which can effectively solve the distribution offset problem between different data sources and improve the migration and generalization capabilities of the model.

[0042] The structure of the deep adaptive network of this embodiment is as follows: Figure 4 As shown, the network includes a source domain network, a target domain network and an adaptive layer, wherein the source domain network and the target domain network share the same deep neural network structure, receive source domain data and target domain data respectively, and output source domain features and target domain features. The adaptive layer aligns and matches the source domain features and the target domain features to reduce the distance between the two and realize feature migration.

[0043] Specifically, both the source domain network and the target domain network are constructed using the long short-term memory network (LSTM), which can capture the temporal information and contextual information in the user's access matrix and improve the prediction and generalization capabilities of the model. The adaptive layer is constructed using the multi-kernel maximum mean difference (MK-MMD) loss function, which can effectively measure the distribution difference between the source domain features and the target domain features. By minimizing the loss function, feature alignment and matching are achieved. As shown in the following formula: ; in, and Respectively represent the output features of the source domain network and the target domain network for the i-th source domain data and the j-th target domain data, and Represent the number of source domain data and target domain data respectively, Represents a multi-kernel feature space, which is composed of multiple different kernel functions, such as Gaussian kernel, Laplace kernel, polynomial kernel, etc.

[0044] Through deep transfer learning, this embodiment can effectively utilize the commonalities and differences between source domain data and target domain data, realize dynamic adaptation and learning of distribution network big data, and improve the adaptability and stability of the model.

[0045] Each step is described in detail below.

[0046] In this embodiment, the structure of the deep neural network is as follows Figure 2 As shown, the process of deep learning includes the following steps: S201: The input layer receives the user's access matrix and divides the user's access matrix into multiple time steps in chronological order. Each time step corresponds to information of an access record. For example, the t-th time step corresponds to information of the t-th access record, which is recorded as .

[0047] S202: The hidden layer performs nonlinear transformation and feature extraction on the user's access matrix. This embodiment uses a bidirectional long short-term memory network (BiLSTM), which can capture the timing information and context information in the user's access matrix, thereby improving the prediction and generalization capabilities of the model.

[0048] The hidden layer includes multiple BiLSTM units, each of which includes a forward LSTM unit and a reverse LSTM unit. Each LSTM unit includes an input gate, a forget gate, an output gate, and a memory cell. Each LSTM unit receives the output and memory state of the previous time step and the input of the current time step, and calculates the output and memory state of the current time step by the following formula: Input gate; Forget the Gate; Output gate; Memory cells; Output; in , , , , , , , are the parameters of the network, sigmoid and tanh are activation functions, * represents matrix multiplication, [] represents vector concatenation, , , , , They represent the input gate, forget gate, output gate, memory cell and output of the tth time step respectively.

[0049] The forward LSTM unit starts from the first time step and processes the input of each time step in chronological order to obtain the forward output. ; The reverse LSTM unit starts from the last time step, processes the input of each time step in reverse time order, and obtains the reverse output The BiLSTM unit concatenates the forward output and the reverse output to obtain a bidirectional output. , the output can contain both the previous and next timing information and context information.

[0050] S203: The output layer outputs the user's behavior feature vector, and the output of the hidden layer As input, through a fully connected layer and a softmax layer, the user's behavior feature vector is obtained , which represents the probability distribution of the user's access behavior at the tth time step, as shown in the following formula: ; in, , is the parameter of the network, and softmax is the normalization function, making Each element in is between 0 and 1, and the sum is 1.

[0051] Through deep learning, this embodiment can effectively extract the user's behavior feature vector from the user's access matrix as a basic model to predict the user's expected behavior, thereby improving the model's prediction ability and generalization ability.

[0052] In this embodiment, the non-clustering identification process in the above steps mainly includes the following steps: S301: Divide the user's access matrix into a training set and a test set, perform cluster-free identification on the training set, and identify suspicious access records. In this embodiment, manual calibration is performed, and the results are fed back to the model to improve and upgrade the basic model to obtain the final model for detecting abnormal user behavior. Cluster-free identification is performed using the Isolation Forest algorithm, which can effectively identify outliers in the user's access matrix without specifying the number and shape of clusters in advance, thereby improving the detection efficiency and accuracy of the model.

[0053] Specifically, the method without clustering recognition is as follows: First, for each user's access matrix in the training set, an isolation tree is constructed. The tree is a binary tree, and its construction process is as follows: If the access matrix has only one access record or reaches the preset maximum depth, the access matrix is ​​used as a leaf node and the construction ends.

[0054] Otherwise, randomly select an access record, such as the kth information, recorded as , and then randomly select a value within the range of the information, recorded as ,according to and The size of the access matrix is ​​divided into two sub-matrices, in which the k-th information of all access records in the sub-matrix is ​​smaller than , the kth information of all access records in the other submatrix is ​​greater than or equal to , take these two sub-matrices as the left and right child nodes of the current node, and recursively construct the left and right subtrees.

[0055] In this way, each access record in the access matrix can be isolated on a leaf node, and the depth of the leaf node is recorded as the abnormality score of the access record. The smaller the score, the easier it is to isolate the access record and the more likely it is to be abnormal.

[0056] Secondly, for the access matrices of all users in the training set, repeat the above steps to construct multiple isolated trees to form an isolation forest. For each access record, calculate its average anomaly score in all isolated trees as the final anomaly score of the access record. The smaller the score, the more likely the access record is to be abnormal.

[0057] Again, for the access matrix of each user in the test set, the constructed isolation forest is used to calculate the final anomaly score of each access record. If the score is lower than a preset threshold, the access record is considered suspicious and requires manual calibration to determine whether the access record is abnormal.

[0058] Finally, the results of manual calibration are fed back into the model to improve and upgrade the basic model to obtain the final model for detecting abnormal user behavior.

[0059] The process of attribute-based encryption and anomaly detection in the above process is as follows: Figure 3 As shown in the figure, the process of how a user's access request is encrypted and decrypted through attribute-based encryption includes the following steps: S401: The data owner defines an access policy for the data based on the sensitivity and security of the data. The policy is an attribute-based Boolean expression that indicates which attributes the user needs to meet to access the data. For example, A AND (B OR C) indicates that the user needs to have both attribute A and attribute B or attribute C. The data owner encrypts the data using a master key and a public key to obtain a ciphertext, which is then stored in the data center of the distribution network.

[0060] S402: The user applies for an access key from a trusted attribute authority based on his or her identity and environment attributes. The key is an attribute-based key that indicates which attributes the user has, for example, {A, B, D} indicates that the user has attributes A, B, and D. The attribute authority verifies and signs the user's attributes using the master key and public key, generates an access key, and sends the access key to the user.

[0061] S403: The user sends an access request (Access Request) to the data center of the distribution network. The request contains the user's access key and the identifier (Data ID) of the data that the user wants to access. For example, {A, B, D}, 001 means that the user has attributes A, B, and D and wants to access data 001. The data center determines whether the user has the authority to access the data based on the data access policy and the user's access key. If so, the ciphertext of the data is sent to the user. If not, the user's access request is rejected.

[0062] S404: After receiving the ciphertext of the data, the user uses his own access key to decrypt the ciphertext, obtain the plaintext of the data, and securely access the data. If the user's access key does not match the data access policy, the user cannot decrypt the data or access the data.

[0063] Through attribute-based encryption, the model of the present invention can effectively encrypt and decrypt user access requests, dynamically generate access keys according to the attributes and behaviors of users and the environment, control user access rights, and achieve secure access to distribution network data.

[0064] Secondly, the figure illustrates the process of how users’ real-time access behaviors are monitored and compared through the final model, which includes the following steps: S501: The user sends an access request (Access Request) to the data center of the distribution network. The request contains the user's access key and the identifier (Data ID) of the data that the user wants to access. For example, {A, B, D}, 001 means that the user has attributes A, B, and D, and wants to access data 001.

[0065] S502: The data center determines whether the user has the authority to access the data based on the data access policy and the user's access key. If the user has the authority to access the data, the data center sends the ciphertext of the data to the user. If not, the data center denies the user's access request.

[0066] S503: After receiving the ciphertext of the data, the user uses his own access key to decrypt the ciphertext, obtains the plaintext of the data, and securely accesses the data.

[0067] S504: The final model monitors the user's real-time access behavior and compares it with the predicted expected behavior. If the user's access behavior is found to be abnormal, corresponding measures are taken according to the degree and type of abnormality, such as warning, restricting, denying or disconnecting the user's access.

[0068] S505: The detection of abnormal behavior is based on multiple indicators, including but not limited to the deviation of the user's access behavior from a preset threshold, whether the user's access request is rejected, whether the user's access key is invalid, whether the user's access frequency is abnormal, whether the user's access location is abnormal, whether the user's access time is abnormal, whether the user's access result is abnormal, whether the user's access resource is abnormal, whether the user's access method is abnormal, whether the user's access purpose is abnormal, whether the user's access relationship is abnormal, whether the user's access impact is abnormal, etc.

[0069] By detecting abnormal behaviors, the present invention can effectively identify and prevent malicious access or misoperation by users, and ensure the security and integrity of distribution network data.

[0070] Embodiment 2 A terminal abnormal access control system based on deep transfer learning, comprising: The access matrix building module is configured to extract the user's access records from the log files of the distribution network and build the user's access matrix; The model building module is configured to divide the user's access matrix into a training set and a test set, perform deep learning on the training set, and obtain the user's behavior feature vector as a basic model; The model optimization module is configured to perform cluster-free identification on the test set, identify suspicious access records, perform calibration, feed the results back to the basic model, improve and upgrade the basic model, and obtain the final model; an encryption module configured to encrypt the user's access request using attribute-based encryption; The access control module is configured to use the final model to monitor the user's real-time access behavior, compare it with the predicted expected behavior, determine whether the user's access behavior is abnormal, and determine the degree and type of abnormality.

[0071] In this embodiment, the deep learning of the model building module is performed through a deep neural network, which includes an input layer, a hidden layer and an output layer, wherein the input layer is used to receive the user's access matrix, the hidden layer is used to perform nonlinear transformation and feature extraction on the user's access matrix, and the output layer is used to output the user's behavior feature vector.

[0072] In this embodiment, when the model optimization module performs cluster-free identification on the test set, the isolation forest algorithm is used for cluster-free identification, and its functional module mainly performs the following steps: For each user’s access matrix in the training set, an isolation tree is constructed; Isolate each access record in the access matrix on a leaf node and record the depth of the leaf node as the abnormality score of the access record; Repeat the above steps for the access matrices of all users in the training set to construct multiple isolated trees to form an isolation forest. For each access record, calculate its average anomaly score in all isolated trees as the final anomaly score of the access record. For each user's access matrix in the test set, the constructed isolation forest is used to calculate the final anomaly score of each access record. If the score is lower than a preset threshold, the access record is considered suspicious and calibrated to determine whether the access record is abnormal. The calibration results are fed back into the model to improve and upgrade the basic model to obtain the final model.

[0073] In this embodiment, the process of constructing an isolation tree by the model optimization module includes: If the access matrix has only one access record or reaches the preset maximum depth, the access matrix is ​​taken as a leaf node and the construction ends; Otherwise, randomly select an access record and record it as , the machine selects a value within the range of the information, recorded as ,according to and The size of the access matrix is ​​divided into two sub-matrices, in which the k-th information of all access records in the sub-matrix is ​​smaller than , the kth information of all access records in the other submatrix is ​​greater than or equal to , take these two sub-matrices as the left and right child nodes of the current node, and recursively construct the left and right subtrees.

[0074] The encryption module uses attribute-based encryption to encrypt the user's access request. The specific process includes using an identity-based attribute-based encryption algorithm to perform attribute-based encryption, dynamically generating access keys according to the attributes of the user and the environment, realizing fine-grained access control of distribution network data, and controlling the user's access rights.

[0075] The specific execution process of its functional modules includes: The data owner defines an access policy for the data based on the sensitivity and security of the data. The policy is an attribute-based Boolean expression that indicates which attributes a user must meet to access the data. The data owner uses a master key and a public key to encrypt the data to obtain a ciphertext, and stores the ciphertext in the data center of the distribution network; The user applies for an access key from a trusted attribute authority based on his or her identity and environment attributes. The attribute authority verifies and signs the user's attributes using the master key and public key, generates an access key, and sends the access key to the user. The user sends an access request to the data center of the distribution network, which includes the user's access key and the identifier of the data that the user wants to access; The data center determines whether the user has the authority to access the data based on the data access policy and the user's access key. If the user has the authority to access the data, the data center sends the ciphertext of the data to the user. If not, the data center denies the user's access request. After receiving the ciphertext of the data, the user uses his or her own access key to decrypt the ciphertext, obtain the plaintext of the data, and securely access the data; if the user's access key and the data access policy do not match, the user cannot decrypt the data or access the data.

[0076] In this embodiment, the access control module is configured to execute: The user sends an access request to the data center of the distribution network, which includes the user's access key and the identifier of the data that the user wants to access; The data center determines whether the user has the authority to access the data based on the data access policy and the user's access key. If the user has the authority to access the data, the data center sends the ciphertext of the data to the user. If not, the data center denies the user's access request. After receiving the ciphertext of the data, the user uses his own access key to decrypt the ciphertext, obtain the plaintext of the data, and access the data securely; The final model monitors the user's real-time access behavior and compares it with the predicted expected behavior. If the deviation between the user's access behavior and the preset threshold exceeds the set value, the user's access request is rejected, the user's access key is invalid, the user's access frequency exceeds the set range, the user's access location is abnormal, the user's access time is abnormal, the user's access result is abnormal, the user's access resource is abnormal, the user's access method is abnormal, the user's access purpose is abnormal, the user's access relationship is abnormal, or the user's access impact is abnormal, the user's access behavior is considered abnormal.

[0077] It should be understood by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of an all-hardware embodiment, an all-software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of one or more computer-usable storage media (including but not limited to disk storage, CD - ROM , optical storage, etc.).

[0078] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0079] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0080] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0081] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made by those skilled in the art within the spirit and principle of the present invention without creative labor shall be included in the protection scope of the present invention.

Claims

1. A terminal abnormal access control method based on deep transfer learning, characterized in that: The following steps are involved: Extract user access records from the log files of the distribution network and construct the user access matrix; The user's access matrix is ​​divided into a training set and a test set. Deep learning is performed on the training set to obtain the user's behavior feature vector as the basic model. Perform cluster-free identification on the test set, identify suspicious access records, perform calibration, feed the results back to the basic model, improve and upgrade the basic model, and obtain the final model; Utilize attribute-based encryption to encrypt user access requests; The final model is used to monitor the user's real-time access behavior and compare it with the predicted expected behavior to determine whether the user's access behavior is abnormal, and to determine the degree and type of abnormality.

2. A terminal abnormal access control method based on deep transfer learning as claimed in claim 1, characterized in that: The access record includes the user's attributes, the resources accessed, the time of access and the results of the access, wherein the user's attributes include the user's identity, role, authority, responsibility, reputation, preference and historical information; the resources accessed include data, equipment, service and application information; the time of access includes the date, time period, duration and frequency of access; the results of access include the success or failure of the access, feedback, evaluation, satisfaction and trust information.

3. The terminal abnormal access control method based on deep transfer learning as claimed in claim 1 is characterized in that: The deep learning is performed through a deep neural network, which includes an input layer, a hidden layer and an output layer, wherein the input layer is used to receive the user's access matrix, the hidden layer is used to perform nonlinear transformation and feature extraction on the user's access matrix, and the output layer is used to output the user's behavior feature vector.

4. The method for controlling abnormal terminal access based on deep transfer learning as claimed in claim 1, characterized in that: When performing cluster-free identification on the test set, the isolation forest algorithm is used for cluster-free identification.

5. A terminal abnormal access control method based on deep transfer learning as claimed in claim 4, characterized in that: The specific process of cluster-free identification on the test set includes: For each user’s access matrix in the training set, an isolation tree is constructed; Isolate each access record in the access matrix on a leaf node and record the depth of the leaf node as the abnormality score of the access record; Repeat the above steps for the access matrices of all users in the training set to construct multiple isolated trees to form an isolation forest. For each access record, calculate its average anomaly score in all isolated trees as the final anomaly score of the access record. For each user's access matrix in the test set, the constructed isolation forest is used to calculate the final anomaly score of each access record. If the score is lower than a preset threshold, the access record is considered suspicious and calibrated to determine whether the access record is abnormal. The calibration results are fed back into the model to improve and upgrade the basic model to obtain the final model.

6. A terminal abnormal access control method based on deep transfer learning as claimed in claim 5, characterized in that: The process of building an isolation tree includes: If the access matrix has only one access record or reaches the preset maximum depth, the access matrix is ​​taken as a leaf node and the construction ends; Otherwise, randomly select an access record and record it as , the machine selects a value within the range of the information, recorded as ,according to and The size of the access matrix is ​​divided into two sub-matrices, in which the k-th information of all access records in the sub-matrix is ​​smaller than , the kth information of all access records in the other submatrix is ​​greater than or equal to , take these two sub-matrices as the left and right child nodes of the current node, and recursively construct the left and right subtrees.

7. The terminal abnormal access control method based on deep transfer learning as claimed in claim 1 is characterized in that: The specific process of encrypting user access requests using attribute-based encryption includes using an identity-based attribute-based encryption algorithm to perform attribute-based encryption, dynamically generating access keys based on the attributes of the user and the environment, and realizing fine-grained access control over distribution network data and controlling user access rights.

8. The method for controlling abnormal terminal access based on deep transfer learning as claimed in claim 7, characterized in that: The specific process includes: The data owner defines an access policy for the data based on the sensitivity and security of the data. The policy is an attribute-based Boolean expression that indicates which attributes a user must meet to access the data. The data owner uses a master key and a public key to encrypt the data to obtain a ciphertext, and stores the ciphertext in the data center of the distribution network; The user applies for an access key from a trusted attribute authority based on his or her identity and environment attributes. The attribute authority verifies and signs the user's attributes using the master key and public key, generates an access key, and sends the access key to the user. The user sends an access request to the data center of the distribution network, which includes the user's access key and the identifier of the data that the user wants to access; The data center determines whether the user has the authority to access the data based on the data access policy and the user's access key. If the user has the authority to access the data, the data center sends the ciphertext of the data to the user. If not, the data center denies the user's access request. After receiving the ciphertext of the data, the user uses his or her own access key to decrypt the ciphertext, obtain the plaintext of the data, and securely access the data; if the user's access key and the data access policy do not match, the user cannot decrypt the data or access the data.

9. The method for controlling abnormal terminal access based on deep transfer learning as claimed in claim 1, characterized in that: The final model is used to monitor the user's real-time access behavior and compare it with the predicted expected behavior to determine whether the user's access behavior is abnormal. The specific process of determining the degree and type of abnormality includes: The user sends an access request to the data center of the distribution network, which includes the user's access key and the identifier of the data that the user wants to access; The data center determines whether the user has the authority to access the data based on the data access policy and the user's access key. If the user has the authority to access the data, the data center sends the ciphertext of the data to the user. If not, the data center denies the user's access request. After receiving the ciphertext of the data, the user uses his own access key to decrypt the ciphertext, obtain the plaintext of the data, and access the data securely; The final model monitors the user's real-time access behavior and compares it with the predicted expected behavior. If the deviation between the user's access behavior and the preset threshold exceeds the set value, the user's access request is rejected, the user's access key is invalid, the user's access frequency exceeds the set range, the user's access location is abnormal, the user's access time is abnormal, the user's access result is abnormal, the user's access resource is abnormal, the user's access method is abnormal, the user's access purpose is abnormal, the user's access relationship is abnormal, or the user's access impact is abnormal, the user's access behavior is considered abnormal.

10. A terminal abnormal access control system based on deep transfer learning, characterized in that: include: The access matrix building module is configured to extract the user's access records from the log files of the distribution network and build the user's access matrix; The model building module is configured to divide the user's access matrix into a training set and a test set, perform deep learning on the training set, and obtain the user's behavior feature vector as a basic model; The model optimization module is configured to perform cluster-free identification on the test set, identify suspicious access records, perform calibration, feed the results back to the basic model, improve and upgrade the basic model, and obtain the final model; an encryption module configured to encrypt the user's access request using attribute-based encryption; The access control module is configured to use the final model to monitor the user's real-time access behavior, compare it with the predicted expected behavior, determine whether the user's access behavior is abnormal, and determine the degree and type of abnormality.

Citation Information

Cited By

  • Beidou map information security monitoring system and monitoring method

    CN118779848A

  • URL permission modulation method based on machine learning

    CN120105383A

  • A URL authority modulation method based on machine learning

    CN120105383B