Power system camouflage detection method and system based on dynamic strategy
The power system camouflage detection method through dynamic strategies uses risk assessment and hierarchical access control to solve the problem of artificial intelligence camouflage intrusion, improve the security of the power system, and ensure the security of data and communication networks.
Patent Information
- Application Number
- CN202410879875.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-02
- Publication Date
- 2024-10-29
AI Technical Summary
Artificial intelligence camouflage leads to the problem of power system intrusion. Existing technology cannot effectively protect the privacy of power grid data and the security of communication networks.
A power system camouflage detection method based on dynamic policies is adopted to obtain user account information and behavior logs, construct risk assessment indicators, dynamically generate a set of identity authentication methods, and perform encrypted access based on hierarchical access control to avoid masquerading intrusions.
The security of the power system is improved. Through multi-factor dynamic verification and hierarchical encryption access control, disguised intrusions by artificial intelligence tools are effectively avoided, and data protection and communication network security are enhanced.
Smart Images

Figure CN118862032A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of electric power safety detection, and in particular relates to a dynamic strategy-based electric power system masquerade detection method and system. Background Art
[0002] With the rapid development of my country's economy in recent years, the traditional power grid has transformed into a smart grid. The massive data added to the power system is more diverse than that of the traditional power grid, and the sources and distribution are also more extensive. The massive data added to the power system has a higher granularity, and the security and privacy of this data need to be guaranteed. However, the transformation from the traditional power grid to the smart power system needs to be carried out step by step. Among them, the primary task is to protect the privacy of power grid-related data and ensure the computing performance of the core of the power system's availability and the security of the communication network. At present, artificial intelligence camouflage is prevalent, which can easily lead to the problem of power system intrusion. Summary of the invention
[0003] In order to solve the deficiencies in the prior art, the present invention provides a power system masquerade detection method and system based on a dynamic strategy to solve the current technical problem of power system intrusion caused by artificial intelligence masquerade.
[0004] In order to solve the above technical problems, the present invention adopts the following technical solutions.
[0005] The present invention first discloses a method for detecting power system masquerade based on a dynamic strategy, the method comprising the following steps:
[0006] Step 1: Obtain user account information to be authenticated in the power system and corresponding user big data business behavior log;
[0007] Step 2, in response to the identity authentication instruction, constructing a risk assessment indicator using the user account information and the identity authentication scheme, making a decision on the identity authentication scheme, and dynamically generating a user identity authentication method set, wherein the set includes a plurality of randomly selected authentication methods and a plurality of answers;
[0008] Step 3, sending the user identity authentication method set to the client logged in by the user account information, receiving the answer information returned by the client, and determining that the client has passed the identity authentication if the answer information corresponds to the correct answer in the set, and generating an identity authentication warning message if the answer information does not correspond to the correct answer;
[0009] Step 4: When the client passes the identity authentication, hierarchical access control is performed on the user based on the user identity information and attribute information.
[0010] The present invention further includes the following preferred embodiments:
[0011] The step 2 further comprises:
[0012] Step 2.1: Build a user account risk assessment indicator model based on the total number of different accounts in each role in the user account information, user role level, account registration time, account login times, and account operation frequency;
[0013] Step 2.2: Determine the weight of each indicator using a comprehensive weighting method, conduct a risk assessment on the user account risk based on the user account risk assessment indicator model, and classify the user account risk level into low risk, relatively low risk, medium risk, high risk, and extremely high risk levels;
[0014] Step 2.3: Construct an identity authentication scheme risk assessment model, and classify the identity authentication scheme according to the password, auxiliary equipment, real-name verification, biometrics, and special identification equipment required for identity authentication;
[0015] Step 2.4: Determine the complexity of the set of authentication schemes used based on the risk level of the user account, and set support for different authentication methods based on the big data business behavior logs of the user account.
[0016] The step of performing risk assessment on the user account risk based on the user account risk assessment indicator model further includes:
[0017] Use comprehensive weighted approach to conduct risk assessment:
[0018]
[0019] Where: E i The range of x is 0 to 1; ij is the indicator value; n is the total number of indicators; m is the number of users in each role;
[0020] Calculate the user account behavior risk level R value, the specific formula is as follows:
[0021] R=E1W1+E2W2+E3W3+E4W4+E5W5
[0022] Among them, E1, E2, E3, E4, and E5 respectively represent the total number of different accounts in each role, user role level, account registration time, account login times, and account operation frequency; W1, W2, W3, W4, and W5 respectively represent the weights of the above indicators.
[0023] The step of setting support for different identity authentication methods further includes:
[0024]
[0025] Where f represents the set of identity authentication schemes selected by the user; n represents the total number of selected identity authentication schemes; s i represents the support of method i; p i represents the frequency of use of method i; c i represents the number of successful uses of method i; Ci represents the total number of times authentication method i is used; rand(y i ) represents the random selection of authentication scheme, ω i Represents the weight of authentication scheme i, divided according to the level.
[0026] This step represents randomly selecting a set of authentication schemes until the cumulative support is greater than or equal to 1.
[0027] The step 4 further comprises:
[0028] The trusted third party generates system parameters params and root master key MK0, generates master keys for the first-layer trusted entities, and the first-layer trusted entities use system parameters params and their own master keys to generate master keys for the lower-layer trusted entities.
[0029] The internal trusted entity uses the system parameters and the master key of the layer as input to generate a master key for the lower layer trusted entity belonging to itself, and the layer entity extracts the private key for the relevant attribute user;
[0030] Generate real-time verification identity key TK for user u i,u ;
[0031] Generate corresponding identity key and attribute key for user u in the domain;
[0032] When encrypting, the data owner first determines the identity information of the receiver with access rights and generates the receiver identity information set R; and determines the attribute information of the receiver with access rights, and uses the attribute information to generate a hierarchical attribute access control structure A;
[0033] The data owner inputs the private keys of all user identity information in R and all attribute structures in A together with the power data to be encrypted into the data encryption module; the power grid user u uses the receiver's identity ID set R, the attribute access structure A to which the receiver belongs, all user public keys in R, all attribute public keys in A, and the real-time verification identity identification key TK i,u As input, the encrypted smart grid data ciphertext CT is finally output;
[0034] When decrypting the ciphertext CT, the user sends a data access request to the external storage server and sends the certificate to the server; the server uses the public key to verify the certificate and verify whether the user has passed the user authentication; if the LID exists and is in the set, the server retrieves the user's attribute private key respectively; if the user's data access request is a read request and the user's attribute private key is retrieved, the corresponding ciphertext is decrypted according to the user level and its corresponding authority.
[0035] The present invention also discloses a dynamic strategy-based power system masquerade detection system using the above-mentioned dynamic strategy-based power system masquerade detection method, comprising:
[0036] An acquisition module is used to obtain user account information to be authenticated in the power system and the corresponding user big data business behavior log;
[0037] A risk assessment module, for responding to an identity authentication instruction, constructing a risk assessment indicator using user account information and an identity authentication scheme, making a decision on the identity authentication scheme, and dynamically generating a user identity authentication method set, wherein the set includes a plurality of randomly selected authentication methods and a plurality of answers;
[0038] An identity authentication module, used to send the user identity authentication method set to the client logged in by the user account information, receive the answer information returned by the client, and determine that the client has passed the identity authentication if the answer information corresponds to the correct answer in the set, and generate an identity authentication warning message when the answer information does not correspond to the correct answer;
[0039] The hierarchical access control module is used to perform hierarchical access control on the user based on the user identity information and attribute information when the client passes the identity authentication.
[0040] Accordingly, the present application also discloses a terminal, including a processor and a storage medium;
[0041] The storage medium is used to store instructions;
[0042] The processor is used to operate according to the instructions to execute the steps of the power system masquerade detection method based on the dynamic strategy.
[0043] Correspondingly, the present application also discloses a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps of the aforementioned dynamic strategy-based power system masquerade detection method are implemented.
[0044] The beneficial effect of the present invention is that, compared with the prior art, the present invention provides a method and system for detecting masquerading of an electric power system based on a dynamic strategy, which avoids the masquerading intrusion of artificial intelligence tools through a multi-factor dynamic verification mechanism based on behavior analysis and hierarchical encrypted access control based on identity information and attributes, thereby improving the security of the electric power system. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 It is a flow chart of the dynamic strategy-based power system masquerade detection method in the present invention. DETAILED DESCRIPTION
[0046] In order to make the purpose, technical solution and advantages of the present invention more clear, the technical solution of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention.
[0047] The embodiments described in this application are only some embodiments of the present invention, not all embodiments. Based on the spirit of the present invention, other embodiments obtained by ordinary technicians in this field without creative work are all within the protection scope of the present invention.
[0048] In view of the shortcomings of the prior art, the present invention proposes a method and system for detecting masquerading in a power system based on a dynamic strategy, and establishes a multi-factor dynamic verification mechanism based on behavior analysis and hierarchical encrypted access control based on identity information and attributes. First, the user account information to be authenticated and the corresponding user big data business behavior log are obtained, and risk assessment is performed according to the user identity information and behavior log; in response to the authentication instruction, risk assessment indicators are constructed using the user account and the identity authentication scheme respectively, and the identity authentication scheme is decided, and a user identity authentication method set is dynamically generated, which includes a plurality of randomly selected authentication methods and multiple answers; the user identity authentication method set is sent to the client logged in by the user account to be authenticated; the answer confirmation information returned by the client logged in by the user account to be authenticated is received, and when the answer confirmation information does not correspond, an identity authentication warning information is generated. After the multi-factor dynamic verification mechanism is passed, the system assigns the logged-in user a real-time verification identity for multi-key identity authentication, and then performs encrypted access control according to the user level based on the identity information and attributes, that is, read and write data operations are performed according to the user level and data permissions, so as to improve the security of the power system and avoid masquerading intrusion.
[0049] See also Figure 1 As shown, the power system masquerade detection method based on dynamic strategy disclosed by the present invention includes the following steps:
[0050] Step 1: Obtain the user account information to be authenticated in the power system and the corresponding user big data business behavior log.
[0051] First, a multi-factor dynamic verification mechanism based on behavior analysis is implemented. The user account information to be authenticated in the power system and the corresponding user big data business behavior log are obtained to perform risk assessment based on the user account information and behavior log.
[0052] Preferably, users with different identities are divided into different levels. The user identities in the power system have level attributes, different identities have different permissions, and different permission levels S are divided according to the user levels.
[0053] Step 2: In response to the identity authentication instruction, construct a risk assessment indicator using the user account information and the identity authentication scheme, make a decision on the identity authentication scheme, and dynamically generate a user identity authentication method set, wherein the set includes a plurality of randomly selected authentication methods and a plurality of answers.
[0054] The step 2 further comprises the following steps:
[0055] Step 2.1: Construct a user account risk assessment indicator model based on indicators such as the total number of different accounts in each role in the user account information, user role level, account registration time, account login times, and account operation frequency.
[0056] Step 2.2: Determine the weight of each indicator using a comprehensive weighted method, conduct a risk assessment on the user account risk based on the user account risk assessment indicator model, and divide the user account risk level into low risk, relatively low risk, medium risk, high risk, and extremely high risk levels.
[0057] Specifically, the comprehensive weighted method is used for risk assessment, and the formula is as follows:
[0058]
[0059] Where: E i The range of x is 0 to 1; ij is the indicator value; n is the total number of indicators; m is the number of users in each role.
[0060] Secondly, calculate the user account behavior risk level R value. The specific formula is as follows:
[0061] R=E1W1+E2W2+E3W3+E4W4+E5W5
[0062] Among them, E1, E2, E3, E4, and E5 respectively represent the total number of different accounts in each role, user role level, account registration time, account login times, and account operation frequency; W1, W2, W3, W4, and W5 respectively represent the weights of the above indicators.
[0063] Based on the user level S and behavioral risk level R, users are divided into five levels: low risk, lower risk, medium risk, high risk, and extremely high risk.
[0064] Step 2.3: Construct a risk assessment model for identity authentication schemes, and classify the identity authentication schemes according to the passwords, auxiliary devices, real-name verification, biometrics, special identification devices, etc. required for identity authentication.
[0065] Step 2.4: Determine the complexity of the set of authentication schemes used based on the risk assessment level of the user account, and set support for different authentication methods based on the big data business behavior logs of the user account. The support is evaluated based on the frequency of use and success rate of the method.
[0066]
[0067] Where f represents the set of identity authentication schemes selected by the user; n represents the total number of selected identity authentication schemes; s i represents the support of method i; p i represents the frequency of use of method i; c i Represents the number of successful uses of method i; C i Represents the total number of times authentication method i is used; rand(y i ) represents the random selection of authentication scheme, ω i Represents the weight of authentication scheme i, divided according to the level.
[0068] This step represents randomly selecting a set of authentication schemes until the cumulative support is greater than or equal to 1.
[0069] Step 3: Send the user authentication method set to the client logged in by the user account information, receive the answer information returned by the client, and if the answer information corresponds to the correct answer in the set, determine that the client has passed the authentication; if the answer information does not correspond to the correct answer, generate an authentication warning message.
[0070] The answer information returned by the client is divided into a deterministic answer and an indeterminate answer. The deterministic answer has a unique correct value, and the indeterminate answer corresponds to an error range. The verification is successful only when all answers are correct values or within the error range, otherwise the verification fails.
[0071] Step 4: When the client passes the identity authentication, hierarchical access control is performed on the user based on the user identity information and attribute information.
[0072] After the above-mentioned multi-factor dynamic verification mechanism is passed, the system assigns the logged-in user a real-time verification identity for multi-key identity authentication, and then performs encrypted access control based on the identity information and attribute information according to the user level, that is, read and write data operations according to user level and data permissions.
[0073] An encrypted file can be decrypted by multiple keys. In terms of algorithm structure, it supports both identity information and attribute information; different user roles in the power system correspond to different identity information and attribute information, so as to make judgments and screen when accessing different data to manage user operations.
[0074] The encryption and decryption keys are hierarchical. When decrypting power data, the private keys of power data users with decryption permissions have a hierarchical relationship. Similarly, when the power system generates private keys for relevant departments, there is also a hierarchical relationship. The private keys at the higher level can decrypt the ciphertext at the lower level, but vice versa.
[0075] The step 4 specifically comprises the following steps:
[0076] Step 4.1: The trusted third party generates system parameters params and root master key MK0, generates a master key for the first-layer trusted entity, and the first-layer trusted entity uses the system parameters params and its own master key to generate a master key for the lower-layer trusted entity.
[0077] Step 4.2: The internal trusted entity uses the system parameters generated by initialization and the master key of this layer as input to generate a master key for its own lower-layer trusted entity. At the same time, the entity of this layer extracts the private key for the relevant attribute user.
[0078] Step 4.3: After user u passes the test, generate a real-time verification identity key TK for user u i,u .
[0079] Step 4.4: Generate the corresponding identity key and attribute key for user u in the domain.
[0080] Step 4.5: When encrypting, the data owner first determines two sets of data: one is to determine the identity information of the receiver with access rights and generate the receiver identity information set R; the other is to determine the attribute information of the receiver with access rights and use these attributes to generate a hierarchical attribute access control structure A. After the determination is completed, the data owner inputs the private keys of all user identity information in R and the private keys of all attribute structures in A together with the power data D to be encrypted into the data encryption module. The power grid user u takes the receiver's identity ID set R, the attribute access structure A to which the receiver belongs, the public keys of all users in R, the public keys of all attributes in A, and the real-time verification identity key as input, and finally outputs the encrypted smart grid data ciphertext CT.
[0081] Step 4.6: When decrypting the ciphertext CT, the user sends a data access request to the external storage server and sends the certificate to the server; the server uses the public key to verify the certificate and verify whether the user has passed the user authentication; if the LID does not exist or the LID is not in the set, the server terminates the operation; if the real-time verification identity key LID exists and is in the set, the server retrieves the user's attribute private key respectively; if the user's data access request is a read request and the user's attribute private key is retrieved, the corresponding ciphertext is decrypted according to the user level and its corresponding authority.
[0082] The beneficial effect of the present invention is that, compared with the prior art, the present invention provides a method and system for detecting masquerading of an electric power system based on a dynamic strategy, which avoids the masquerading intrusion of artificial intelligence tools through a multi-factor dynamic verification mechanism based on behavior analysis and hierarchical encrypted access control based on identity information and attributes, thereby improving the security of the electric power system.
[0083] The present invention may be a system, a method and / or a computer program product. The present invention also discloses a dynamic strategy-based power system masquerade detection system based on the aforementioned dynamic strategy-based power system masquerade detection method, comprising:
[0084] An acquisition module is used to obtain user account information to be authenticated in the power system and the corresponding user big data business behavior log;
[0085] A risk assessment module, for responding to an identity authentication instruction, constructing a risk assessment indicator using user account information and an identity authentication scheme, making a decision on the identity authentication scheme, and dynamically generating a user identity authentication method set, wherein the set includes a plurality of randomly selected authentication methods and a plurality of answers;
[0086] An identity authentication module, used to send the user identity authentication method set to the client logged in by the user account information, receive the answer information returned by the client, and determine that the client has passed the identity authentication if the answer information corresponds to the correct answer in the set, and generate an identity authentication warning message when the answer information does not correspond to the correct answer;
[0087] The hierarchical access control module is used to perform hierarchical access control on the user based on the user identity information and attribute information when the client passes the identity authentication.
[0088] Based on the spirit of the present invention, those skilled in the art can easily think that a computer program product can be obtained based on the aforementioned dynamic strategy-based power system masquerade detection method. The computer program product may include a computer-readable storage medium, which carries computer-readable program instructions for enabling a processor to implement various aspects of the present disclosure. That is, the present application also includes a terminal, including a processor and a storage medium; the storage medium is used to store instructions; the processor is used to operate according to the instructions to execute the steps of the aforementioned dynamic strategy-based power system masquerade detection method.
[0089] Computer readable storage medium can be a tangible device that can keep and store the instructions used by the instruction execution device. Computer readable storage medium can be, for example, - but not limited to - electrical storage device, magnetic storage device, optical storage device, electromagnetic storage device, semiconductor storage device or any suitable combination of the above. More specific examples (non-exhaustive list) of computer readable storage medium include: portable computer disk, hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static random access memory (SRAM), portable compact disk read-only memory (CD-ROM), digital versatile disk (DVD), memory stick, floppy disk, mechanical encoding device, for example, punch card or groove protrusion structure with instructions stored thereon and any suitable combination of the above. Computer readable storage medium used here is not interpreted as instantaneous signal itself, such as radio wave or other free propagating electromagnetic wave, electromagnetic wave propagated by waveguide or other transmission medium (for example, light pulse by optical fiber cable) or electrical signal transmitted by wire.
[0090] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.
[0091] The computer program instructions for performing the operation of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages-such as Smalltalk, C++, etc., and conventional procedural programming languages-such as "C" language or similar programming languages. Computer-readable program instructions may be executed completely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network-including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA) may be personalized by utilizing the state information of a computer-readable program instruction, and the electronic circuit may execute a computer-readable program instruction, thereby realizing various aspects of the present disclosure.
[0092] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents, and any modifications or equivalent replacements that do not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.
Claims
1. A method for detecting masquerade in a power system based on a dynamic strategy, characterized in that: The following steps are involved: Step 1: Obtain user account information to be authenticated in the power system and corresponding user big data business behavior log; Step 2, in response to the identity authentication instruction, constructing a risk assessment indicator using the user account information and the identity authentication scheme, making a decision on the identity authentication scheme, and dynamically generating a user identity authentication method set, wherein the set includes a plurality of randomly selected authentication methods and a plurality of answers; Step 3, sending the user identity authentication method set to the client logged in by the user account information, receiving the answer information returned by the client, and determining that the client has passed the identity authentication if the answer information corresponds to the correct answer in the set, and generating an identity authentication warning message if the answer information does not correspond to the correct answer; Step 4: When the client passes the identity authentication, hierarchical access control is performed on the user based on the user identity information and attribute information.
2. The method for detecting power system masquerade based on dynamic strategy according to claim 1, characterized in that: The step 2 further comprises: Step 2.1: Build a user account risk assessment indicator model based on the total number of different accounts in each role in the user account information, user role level, account registration time, account login times, and account operation frequency; Step 2.2: Determine the weight of each indicator using a comprehensive weighting method, conduct a risk assessment on the user account risk based on the user account risk assessment indicator model, and classify the user account risk level into low risk, relatively low risk, medium risk, high risk, and extremely high risk levels; Step 2.3: Construct an identity authentication scheme risk assessment model, and classify the identity authentication scheme according to the password, auxiliary equipment, real-name verification, biometrics, and special identification equipment required for identity authentication; Step 2.4: Determine the complexity of the set of authentication schemes used based on the risk level of the user account, and set support for different authentication methods based on the big data business behavior logs of the user account.
3. The method for detecting power system masquerade based on dynamic strategy according to claim 2 is characterized in that: The step of performing risk assessment on the user account risk based on the user account risk assessment indicator model further includes: Use comprehensive weighted approach to conduct risk assessment: Where: E i The range of x is 0 to 1; ij is the indicator value; n is the total number of indicators; m is the number of users in each role; Calculate the user account behavior risk level R value, the specific formula is as follows: R=E1W1+E2W2+E3W3+E4W4+E5W5 Among them, E1, E2, E3, E4, and E5 respectively represent the total number of different accounts in each role, user role level, account registration time, account login times, and account operation frequency; W1, W2, W3, W4, and W5 respectively represent the weights of the above indicators.
4. The method for detecting power system masquerade based on dynamic strategy according to claim 3 is characterized in that: The step of setting support for different identity authentication methods further includes: f represents the set of identity authentication schemes selected by the user; n represents the total number of selected identity authentication schemes; s i represents the support of method i; p i represents the frequency of use of method i; c i represents the number of successful uses of method i; Ci represents the total number of times authentication method i is used; rand(y i ) represents the random selection of authentication schemes, and ωi represents the weight of authentication scheme i according to the level.
5. The method for detecting power system masquerade based on dynamic strategy according to claim 4 is characterized in that: The step 4 further comprises: The trusted third party generates system parameters params and root master key MK0, generates master keys for the first-layer trusted entities, and the first-layer trusted entities use system parameters params and their own master keys to generate master keys for the lower-layer trusted entities. The internal trusted entity uses the system parameters and the master key of the layer as input to generate a master key for the lower layer trusted entity belonging to itself, and the layer entity extracts the private key for the relevant attribute user; Generate real-time verification identity key TK for user u i,u ; Generate corresponding identity key and attribute key for user u in the domain; When encrypting, the data owner first determines the identity information of the receiver with access rights and generates the receiver identity information set R; and determines the attribute information of the receiver with access rights, and uses the attribute information to generate a hierarchical attribute access control structure A; The data owner inputs the private keys of all user identity information in R and all attribute structures in A together with the power data to be encrypted into the data encryption module; the power grid user u uses the receiver's identity ID set R, the attribute access structure A to which the receiver belongs, all user public keys in R, all attribute public keys in A, and the real-time verification identity identification key TK i,u As input, the encrypted smart grid data ciphertext CT is finally output; When decrypting the ciphertext CT, the user sends a data access request to the external storage server and sends the certificate to the server; the server uses the public key to verify the certificate and verify whether the user has passed the user authentication; if the real-time verification identity key LID exists and is in the set, the server retrieves the user's attribute private key respectively; if the user's data access request is a read request and the user's attribute private key is retrieved, the corresponding ciphertext is decrypted according to the user level and its corresponding authority.
6. A power system masquerade detection system based on dynamic strategy, characterized in that: include: An acquisition module is used to obtain user account information to be authenticated in the power system and the corresponding user big data business behavior log; A risk assessment module, for responding to an identity authentication instruction, constructing a risk assessment indicator using user account information and an identity authentication scheme, making a decision on the identity authentication scheme, and dynamically generating a user identity authentication method set, wherein the set includes a plurality of randomly selected authentication methods and a plurality of answers; An identity authentication module, used to send the user identity authentication method set to the client logged in by the user account information, receive the answer information returned by the client, and determine that the client has passed the identity authentication if the answer information corresponds to the correct answer in the set, and generate an identity authentication warning message when the answer information does not correspond to the correct answer; The hierarchical access control module is used to perform hierarchical access control on the user based on the user identity information and attribute information when the client passes the identity authentication.
7. The power system masquerade detection system based on dynamic strategy according to claim 6 is characterized in that: The risk assessment module is further used to: Build a user account risk assessment indicator model based on the total number of different accounts in each role in the user account information, user role level, account registration time, account login times, and account operation frequency; Determine the weight of each indicator by using a comprehensive weighting method, conduct a risk assessment on the user account risk based on the user account risk assessment indicator model, and classify the user account risk level into low risk, relatively low risk, medium risk, high risk, and extremely high risk levels; Constructing a risk assessment model for identity authentication schemes, and grading the identity authentication schemes according to the passwords, auxiliary devices, real-name verification, biometrics, and special identification devices required for identity authentication; Determine the complexity of the set of authentication schemes used based on the risk level of the user account, and set support for different authentication methods based on the big data business behavior logs of the user account.
8. The power system masquerade detection system based on dynamic strategy according to claim 7 is characterized in that: The risk assessment module is further used to: Use comprehensive weighted approach to conduct risk assessment: Where: E i The range of x is 0 to 1; ij is the indicator value; n is the total number of indicators; m is the number of users in each role; Calculate the user account behavior risk level R value, the specific formula is as follows: R=E1W1+E2W2+E3W3+E4W4+E5W5 Among them, E1, E2, E3, E4, and E5 respectively represent the total number of different accounts in each role, user role level, account registration time, account login times, and account operation frequency; W1, W2, W3, W4, and W5 respectively represent the weights of the above indicators.
9. The dynamic strategy-based power system masquerade detection system according to claim 8, characterized in that: The risk assessment module is further used to: f represents the set of identity authentication schemes selected by the user; n represents the total number of selected identity authentication schemes; s i represents the support of method i; p i represents the frequency of use of method i; c i Represents the number of successful uses of method i; Ci represents the total number of times authentication method i is used; rand(y i ) represents the random selection of authentication scheme, ω i Represents the weight of authentication scheme i, divided according to the level.
10. The power system masquerade detection system based on dynamic strategy according to claim 9 is characterized in that: The hierarchical access control module is further used to: The trusted third party generates system parameters params and root master key MK0, generates master keys for the first-layer trusted entities, and the first-layer trusted entities use system parameters params and their own master keys to generate master keys for the lower-layer trusted entities. The internal trusted entity uses the system parameters and the master key of the layer as input to generate a master key for the lower layer trusted entity belonging to itself, and the layer entity extracts the private key for the relevant attribute user; Generate real-time verification identity key TK for user u i,u ; Generate corresponding identity key and attribute key for user u in the domain; When encrypting, the data owner first determines the identity information of the receiver with access rights and generates the receiver identity information set R; and determines the attribute information of the receiver with access rights, and uses the attribute information to generate a hierarchical attribute access control structure A; The data owner inputs the private keys of all user identity information in R and all attribute structures in A together with the power data to be encrypted into the data encryption module; the power grid user u uses the receiver's identity ID set R, the attribute access structure A to which the receiver belongs, all user public keys in R, all attribute public keys in A, and the real-time verification identity identification key TK i,u As input, the encrypted smart grid data ciphertext CT is finally output; When decrypting the ciphertext CT, the user sends a data access request to the external storage server and sends the certificate to the server; The server verifies the certificate using the public key and verifies whether the user has passed the user authentication; If the LID exists and is in the set, the server retrieves the user's attribute private key respectively; if the user's data access request is a read request and the user's attribute private key is retrieved, the corresponding ciphertext is decrypted according to the user level and its corresponding authority.
11. A terminal comprising a processor and a storage medium; characterized in that: The storage medium is used to store instructions; The processor is used to operate according to the instructions to execute the steps of the dynamic strategy-based power system masquerade detection method according to any one of claims 1-5.
12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the dynamic strategy-based power system masquerade detection method described in any one of claims 1 to 5 are implemented.
