Business dynamic access control method and access control device of new energy terminal
By conducting identity verification and traffic behavior analysis on access requests from new energy terminals, calculating terminal trust, and generating dynamic protection solutions, the problem of low access security when new energy terminals are connected to new energy stations is solved, and a dynamic and reliable solution is achieved. business security access.
Patent Information
- Application Number
- CN202411068686.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-05
- Publication Date
- 2024-10-11
AI Technical Summary
The identity authentication process of new energy terminals is simple, and access interaction behavior is not monitored, resulting in low access security when accessing new energy stations and increasing the risk of data leakage.
By receiving access requests from new energy terminals, perform terminal identity verification, obtain business access traffic data, analyze traffic behavior characteristics, calculate terminal trust, determine access permissions, track and monitor all access behaviors, and generate dynamic protection solutions to improve security. sex.
It improves the security of terminal identity authentication, enhances access security when new energy terminals are connected to new energy stations, reduces the risk of data leakage, and achieves dynamic and reliable business security access.
Smart Images

Figure CN118764299A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of terminal access security technology, and in particular to a service dynamic access control method, an access control device and a computer program product for a new energy terminal. Background Art
[0002] With the development of new energy plants and stations, new energy terminals have emerged. New energy terminals are usually connected to the new energy station business system to sense and monitor them. For this reason, the security of access to new energy terminals is very important. In the current access control of new energy terminals, the identity authentication of new energy terminals is relatively simple. The identity authentication is completed only by matching the terminal identity identifier. However, this method cannot guarantee the security of terminal identity authentication. At the same time, before transmitting information to the authentication server, no single packet verification is performed. The behavior of the authentication server opening the port to receive information without single packet verification will increase the risk of data leakage. At the same time, there is less analysis of traffic data. Even if there is an analysis of access traffic data, it is only a simple check to see if there is an abnormality in the IP address of the access data, and no specific and comprehensive analysis of the access traffic data is performed, resulting in unreliable evaluation of the trust of traffic behavior. After the new energy terminal is connected to the new energy station business system, its interactive behavior is not monitored, and abnormal behavior in the interactive behavior cannot be detected in time, which may lead to abnormal events and data leakage. It will pose a greater threat to the business applications of new energy stations, and the security of business access will not achieve the expected effect. Summary of the invention
[0003] The main purpose of the present application is to provide a dynamic access control method, access control device and computer program product for new energy terminals, so as to at least solve the problems in the prior art of simple processing of terminal identity authentication and failure to monitor terminal access interaction behavior, resulting in low access security when new energy terminals access business applications of new energy stations.
[0004] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a method for dynamic business access control of a new energy terminal is provided, comprising: receiving an access request sent by a new energy terminal, and performing terminal identity authentication according to the access request, wherein the access request includes the identity information of the new energy terminal; when the terminal identity authentication is passed, obtaining the business access traffic data of the new energy terminal, and analyzing the traffic behavior characteristics according to the business access traffic data to obtain abnormal traffic data; calculating the terminal trust degree according to the abnormal traffic data and the identity information to determine the access right of the new energy terminal; controlling the new energy terminal to perform data interaction according to the access right, and tracking and monitoring all access behaviors of the new energy terminal to obtain monitoring behavior information; obtaining the trust value in the data interaction process according to the monitoring behavior information, and determining the corresponding dynamic protection scheme according to the trust value, wherein the trust value indicates the degree of trust in the new energy terminal, and the dynamic protection scheme is the security protection strategy of the new energy terminal when performing business access.
[0005] Optionally, an access request sent by a new energy terminal is received, and terminal identity authentication is performed according to the access request, including: performing preliminary identity authentication on the identity information and pre-stored identity information, the pre-stored identity information being identity information pre-stored in the new energy station; if the identity information is inconsistent with the pre-stored identity information, it is determined that the preliminary identity authentication has failed; if the identity information is consistent with the pre-stored identity information, it is determined that the preliminary identity authentication has passed, and a security authentication factor is generated according to the identity information, the security authentication factor includes a QR code, a voice verification code and a software token; single-packet verification is performed on the data packet sent by the new energy terminal, and the single-packet verification at least includes verifying whether the data packet is in accordance with The preset rules are sent to verify whether the freshness of the data packet meets the preset conditions, whether there are no traces of tampering, whether there are no traces of replay, and whether the preset encryption method is used for encryption; if the single packet verification passes, the authentication server is controlled to receive the security authentication factor, so that the authentication server compares the security authentication factor with the authentication information, and the authentication information is the information uploaded by the new energy terminal according to the security authentication factor, including a QR code, a voice verification code and a software token; if the security authentication factor is inconsistent with the authentication information, it is determined that the terminal identity authentication has failed; if the security authentication factor is consistent with the authentication information, it is determined that the terminal identity authentication has passed.
[0006] Optionally, analyzing the traffic behavior characteristics according to the business access traffic data to obtain abnormal traffic data includes: screening the historical business access traffic data to obtain valid historical business access traffic data; clustering the valid historical business access traffic data using a clustering algorithm to obtain historical traffic feature data, wherein the traffic feature data at least includes data packet data, message protocol, and source port number; recording the frequency distribution value of each characteristic value corresponding to each of the historical traffic feature data within a unit period, wherein the characteristic value is a value representing the characteristic of the historical traffic feature data; calculating the entropy value corresponding to each of the historical traffic feature data according to a first formula, wherein the first formula is is the entropy value of the i-th historical traffic characteristic data, P i is the i-th historical traffic characteristic data, n is the number of the characteristic values in the unit period, j represents the j-th characteristic value in the historical traffic characteristic data, r j is the frequency distribution value of the jth characteristic value of the ith historical traffic characteristic data occurring within the unit period, and σ is the correction coefficient; screen out all the historical traffic characteristic data whose entropy values are less than the preset entropy value, and determine them as valid historical traffic characteristic data; construct a traffic baseline based on the valid historical traffic characteristic data, and the traffic baseline is a normal baseline formed by the characteristic values corresponding to the historical traffic characteristic data; compare the characteristic values in the business access traffic data with the traffic baseline; when the characteristic values in the business access traffic data are less than the traffic baseline, determine the business access traffic data as the abnormal traffic data.
[0007] Optionally, historical business access traffic data is screened to obtain valid historical business access traffic data, including: dividing all the historical business access traffic data into multiple sample data packets, each of the sample data packets including a predetermined number of the historical business access traffic data; recording the number of each attribute in each sample data packet, the attribute number being the number of times each attribute appears in the sample data packet, the attributes including at least a source port number and a source destination IP; calculating the ratio between the attribute number and the predetermined number to obtain the information entropy corresponding to each sample data packet, the information entropy being used to characterize the stability of the historical business access traffic data; when the information entropy is greater than a set information entropy threshold, filtering out the sample data packet; when the information entropy is greater than a set information entropy threshold, retaining the corresponding sample data packet; determining the valid historical business access traffic data based on the business access traffic data corresponding to all retained sample data packets.
[0008] Optionally, the terminal trust is calculated according to the abnormal traffic data and the identity information to determine the access rights of the new energy terminal, including: inputting the abnormal traffic data and the identity information into a trust calculation model, and outputting the terminal trust of the new energy terminal, the trust calculation model being a convergence model obtained by inputting a sample data set into a deep neural network for training; querying the access rights table according to the terminal trust to obtain the access rights corresponding to the new energy terminal, the access rights table being a table for recording different terminal trust rights corresponding to different access rights in a database.
[0009] Optionally, a corresponding dynamic protection scheme is determined according to the trust value, including: when the trust value is less than the median value of the interval, it is determined that the access behavior of the new energy terminal is in a safe interval, and the dynamic protection scheme is determined to continuously monitor the interaction process of the new energy terminal, and the median value of the interval is the median value of a preset threshold interval; when the trust value is greater than the median value of the interval and less than or equal to the maximum value of the preset threshold interval, the dynamic protection scheme is determined to issue a warning message and build a protection firewall; when the trust value is greater than the maximum value of the preset threshold interval, the dynamic protection scheme is determined to control the new energy terminal to terminate the interaction.
[0010] Optionally, after obtaining the trust value in the data interaction process according to the monitoring behavior information and determining the corresponding dynamic protection scheme according to the trust value, the method also includes: obtaining a first number and a second number, the first number being the number of times the trust value is greater than the median of the interval, and the second number being the number of times the trust value is less than or equal to the maximum value of the preset threshold interval; updating the access permission of the new energy terminal according to the first number and the second number to obtain the latest access permission of the new energy terminal; adjusting the access behavior of the new energy terminal according to the latest access permission to redefine the access behavior of the new energy terminal.
[0011] According to another aspect of the present application, a business dynamic access control device for a new energy terminal is provided, and the device includes: a receiving unit, which is used to receive an access request sent by a new energy terminal, and perform terminal identity authentication according to the access request, and the access request includes the identity information of the new energy terminal; a first acquisition unit, which is used to obtain the business access flow data of the new energy terminal when the terminal identity authentication is passed, and analyze the flow behavior characteristics according to the business access flow data to obtain abnormal flow data; a calculation unit, which is used to calculate the terminal trust according to the abnormal flow data and the identity information to determine the access rights of the new energy terminal; a control unit, which is used to control the new energy terminal to perform data interaction according to the access rights, and at the same time track and monitor all access behaviors of the new energy terminal to obtain monitoring behavior information; a determination unit, which is used to obtain the trust value in the data interaction process according to the monitoring behavior information, and determine the corresponding dynamic protection scheme according to the trust value, wherein the trust value represents the degree of trust in the new energy terminal, and the dynamic protection scheme is the security protection strategy of the new energy terminal when performing business access.
[0012] According to another aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute any one of the methods described in claims 1 to 7.
[0013] According to another aspect of the present application, a computer program product is provided, comprising computer instructions, wherein when the computer instructions are executed by a processor, any one of the methods described above is implemented.
[0014] Applying the technical solution of the present application, in the business dynamic access control method of the new energy terminal, first, receive the access request sent by the new energy terminal, and perform terminal identity authentication according to the above access request, the above access request includes the identity information of the above new energy terminal; then, if the above terminal identity authentication is passed, obtain the business access flow data of the above new energy terminal, and analyze the flow behavior characteristics according to the above business access flow data to obtain abnormal flow data; then, calculate the terminal trust degree according to the above abnormal flow data and the above identity information to determine the access rights of the above new energy terminal; then, control the above new energy terminal to perform data interaction according to the above access rights, and track and monitor all access behaviors of the above new energy terminal to obtain monitoring behavior information; finally, obtain the trust value in the data interaction process according to the above monitoring behavior information, and determine the corresponding dynamic protection scheme according to the above trust value, the above trust value represents the degree of trust in the above new energy terminal, and the above dynamic protection scheme is the security protection strategy for the above new energy terminal when performing business access. The present application receives the access request sent by the new energy terminal, and performs terminal identity authentication according to the above access request to improve the security of terminal identity authentication. According to the business access traffic data of the above-mentioned new energy terminal, the traffic baseline is used to analyze the traffic behavior characteristics to obtain abnormal traffic data, and the terminal trust is calculated based on the abnormal traffic data and the terminal identity information, and then the access rights are obtained. The traffic analysis is added to the terminal access rights consideration to make the obtained access rights more reliable and to avoid the risk of terminal access as much as possible. All behaviors of the new energy terminal are tracked and monitored, and the monitoring behavior information is obtained to generate a dynamic protection plan, which can timely discover the abnormal access behavior that occurs in the interaction between the new energy terminal and the business application of the new energy station, and timely protect it, avoiding data leakage and perception errors of the new energy station business application, and realizing dynamic and reliable business security access for new energy terminals. This application solves the problem that the processing of terminal identity authentication in the prior art is simple and the terminal access interaction behavior is not monitored, resulting in low access security when the new energy terminal accesses the business application of the new energy station. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 A hardware structure block diagram of a mobile terminal for executing a method for dynamic service access control of a new energy terminal provided in an embodiment of the present application is shown;
[0016] Figure 2 A schematic diagram of a process flow of a method for dynamic access control of services of a new energy terminal provided according to an embodiment of the present application is shown;
[0017] Figure 3 A structural block diagram of a service dynamic access control device for a new energy terminal provided according to an embodiment of the present application is shown.
[0018] The above drawings include the following reference numerals:
[0019] 102, processor; 104, memory; 106, transmission device; 108, input and output devices. DETAILED DESCRIPTION
[0020] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0021] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0022] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0023] As introduced in the background technology, in the identity authentication of new energy terminals in the prior art, the processing of identity authentication is relatively simple, and the identity authentication is completed only by matching the terminal identity identifier, and the access traffic data is not analyzed in detail and comprehensively, resulting in unreliable evaluation of the trust of traffic behavior. After the new energy terminal accesses the new energy station business system, its interactive behavior is not monitored, and abnormal behavior in the interactive behavior cannot be detected in time, which may lead to abnormal events and data leakage. In order to solve the problem of simple processing of terminal identity authentication and failure to monitor terminal access interactive behavior in the prior art, resulting in low access security when the new energy terminal accesses the business application of the new energy station, the embodiments of the present application provide a business dynamic access control method, access control device and computer program product for new energy terminals.
[0024] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention.
[0025] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 FIG. 1 is a hardware structure block diagram of a mobile terminal of a method for dynamic access control of services of a new energy terminal according to an embodiment of the present invention. Figure 1 As shown, the mobile terminal may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the mobile terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.
[0026] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the display method of device information in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, the above method is implemented. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories can be connected to the mobile terminal via a network. Examples of the above-mentioned network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof. The transmission device 106 is used to receive or send data via a network. The above-mentioned specific examples of the network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0027] In this embodiment, a business dynamic access control method for a new energy terminal running on a mobile terminal, a computer terminal or a similar computing device is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0028] Figure 2 1 is a flow chart of a method for dynamic access control of services of a new energy terminal according to an embodiment of the present application. Figure 2 As shown, the method comprises the following steps:
[0029] Step S201, receiving an access request sent by a new energy terminal, and performing terminal identity authentication according to the access request, wherein the access request includes identity information of the new energy terminal.
[0030] Specifically, before the new energy terminal accesses the new energy station business system, the new energy terminal needs to send an access request, which includes various information about the above-mentioned new energy terminal. In order to ensure the security of the access of the new energy terminal, the terminal identity authentication of the new energy terminal is required according to the above-mentioned access request.
[0031] Step S202, when the terminal identity authentication is passed, the service access flow data of the new energy terminal is obtained, and the flow behavior characteristics are analyzed according to the service access flow data to obtain abnormal flow data.
[0032] Specifically, after the identity information of the new energy terminal is determined, the service access flow data of the new energy terminal is obtained, and the flow behavior characteristics are analyzed using the flow baseline according to the service access flow data to screen out abnormal flow data.
[0033] Step S203: Calculate the terminal trust according to the abnormal traffic data and the identity information to determine the access rights of the new energy terminal.
[0034] Specifically, the terminal trust is calculated based on the abnormal traffic data and terminal identity information to obtain access rights. Traffic analysis is added to the terminal access rights considerations to make the obtained access rights more reliable and to avoid terminal access risks as much as possible.
[0035] Step S204, controlling the new energy terminal to perform data interaction according to the access permission, and at the same time tracking and monitoring all access behaviors of the new energy terminal to obtain monitoring behavior information.
[0036] Specifically, the new energy terminal interacts with the new energy station business system based on access rights, and the receiving server tracks and monitors all behaviors of the new energy terminal. It performs protocol compliance analysis, traffic analysis, interaction frequency analysis, access log analysis, sensitive file monitoring, and port monitoring by monitoring the terminal data bus, and calls the interactive security behavior baseline in the end device business scenario to monitor abnormalities in the access process of the new energy terminal device to obtain monitoring behavior information. The above-mentioned monitoring behavior information at least includes the interactive behavior and interactive behavior area of the above-mentioned new energy terminal. The above-mentioned interactive behavior area is the data interaction range of the above-mentioned interactive behavior. The terminal interaction information table is generated according to the monitoring behavior information. The above-mentioned interactive information table includes a normal behavior area and an abnormal behavior area. When the above-mentioned interactive behavior corresponds to the allowed behavior, the above-mentioned interactive behavior area is a normal behavior area; when the above-mentioned interactive behavior does not correspond to the above-mentioned allowed behavior, the above-mentioned interactive behavior area is an abnormal behavior area, and the allowed behavior can be known through the above-mentioned access rights.
[0037] Step S205, obtaining the trust value in the data interaction process according to the above monitoring behavior information, and determining the corresponding dynamic protection scheme according to the above trust value, the above trust value indicates the degree of trust in the above new energy terminal, and the above dynamic protection scheme is the security protection strategy for the above new energy terminal when accessing business.
[0038] Specifically, the trust value of the terminal in the interaction process is quantified based on the interactive security behavior baseline and the number of abnormal behaviors combined with preset expert rules. The number of abnormal behaviors can be found by querying the above interaction information table. The above dynamic protection scheme is determined by comparing the trust value with the preset threshold interval, so as to timely discover abnormal access behaviors that occur in the interaction between the new energy terminal and the business application of the new energy station, and take timely protection, avoiding data leakage and perception errors of the business application of the new energy station, and realizing dynamic and reliable business security access of the new energy terminal.
[0039] In this embodiment, first, an access request sent by a new energy terminal is received, and terminal identity authentication is performed according to the access request, and the access request includes the identity information of the new energy terminal; then, if the terminal identity authentication is passed, the business access flow data of the new energy terminal is obtained, and the flow behavior characteristics are analyzed according to the business access flow data to obtain abnormal flow data; then, the terminal trust is calculated according to the abnormal flow data and the identity information to determine the access rights of the new energy terminal; then, the new energy terminal is controlled to perform data interaction according to the access rights, and all access behaviors of the new energy terminal are tracked and monitored to obtain monitoring behavior information; finally, the trust value in the data interaction process is obtained according to the monitoring behavior information, and the corresponding dynamic protection scheme is determined according to the trust value, and the trust value indicates the degree of trust in the new energy terminal, and the dynamic protection scheme is the security protection strategy for the new energy terminal when performing business access. This application receives an access request sent by a new energy terminal, and performs terminal identity authentication according to the access request, so as to improve the security of terminal identity authentication. According to the business access traffic data of the above-mentioned new energy terminal, the traffic baseline is used to analyze the traffic behavior characteristics to obtain abnormal traffic data, and the terminal trust is calculated based on the abnormal traffic data and the terminal identity information, and then the access rights are obtained. The traffic analysis is added to the terminal access rights consideration to make the obtained access rights more reliable and to avoid the risk of terminal access as much as possible. All behaviors of the new energy terminal are tracked and monitored, and the monitoring behavior information is obtained to generate a dynamic protection plan, which can timely discover the abnormal access behavior that occurs in the interaction between the new energy terminal and the business application of the new energy station, and timely protect it, avoiding data leakage and perception errors of the new energy station business application, and realizing dynamic and reliable business security access for new energy terminals. This application solves the problem that the processing of terminal identity authentication in the prior art is simple and the terminal access interaction behavior is not monitored, resulting in low access security when the new energy terminal accesses the business application of the new energy station.
[0040] In order to enable those skilled in the art to more clearly understand the technical solution of the present application, the implementation process of the service dynamic access control method of the new energy terminal of the present application will be described in detail below in combination with specific embodiments.
[0041] In order to improve the security of terminal identity authentication, in an optional implementation manner, the above step S201 includes:
[0042] Step S201 1, performing preliminary identity verification on the above identity information and pre-stored identity information, where the pre-stored identity information is identity information pre-stored in the new energy station;
[0043] Step S2012, when the identity information is inconsistent with the pre-stored identity information, it is determined that the preliminary identity verification has failed;
[0044] Step S2013, when the identity information is consistent with the pre-stored identity information, it is determined that the preliminary identity verification is passed, and a security authentication factor is generated according to the identity information, and the security authentication factor includes a QR code, a voice verification code and a software token;
[0045] Step S2014, performing single packet verification on the data packet sent by the new energy terminal, the single packet verification at least includes verifying whether the data packet is sent according to a preset rule, whether the freshness of the data packet meets a preset condition, whether there is no tampering trace, whether there is no replay trace, and whether the data packet is encrypted using a preset encryption method;
[0046] Step S2015, when the single-package verification passes, controlling the authentication server to receive the security authentication factor, so that the authentication server compares the security authentication factor with the authentication information, the authentication information being information uploaded by the new energy terminal according to the security authentication factor, including a QR code, a voice verification code and a software token;
[0047] Step S2016, when the security authentication factor is inconsistent with the authentication information, it is determined that the terminal identity authentication has not passed;
[0048] Step S2017: When the security authentication factor is consistent with the authentication information, it is determined that the terminal identity authentication is passed.
[0049] In the above embodiment, the new energy terminal sends an access request, which includes the identity information of the new energy terminal. A preliminary identity authentication is performed based on the identity information in the access request and the identity information pre-stored by the security agent in the new energy station business system. If the identity information in the access request is consistent with the identity information pre-stored by the security agent in the new energy station business system, the preliminary identity authentication is successful; if the preliminary identity authentication fails, a prompt message is issued to perform preliminary identity authentication again; after the preliminary identity authentication is successful, a security authentication factor is generated based on the identity information in the access request. The security authentication factor may include information such as a QR code, a voice verification code, and a software token. The security authentication factor is random and time-effective and can be generated based on the current time and user information; the security authentication factor is sent to the authentication server In the device, before sending the security authentication factor to the authentication server, the new energy terminal is first single-packet verified, and the data packet sent by the receiving terminal is single-packet verified. The single-packet verification specifically includes: verifying whether the data packet is sent according to the preset rules, such as listening to the port knocking situation at the preset port of the authentication server, judging whether the terminal meets the preset knocking method, and then parsing the content of the data packet to obtain data such as timestamp, random string, IP address information, etc., verifying whether the freshness of the data packet meets the preset conditions, whether there are no tampering traces, whether there are no replay traces, whether it is encrypted using the preset encryption method, etc. If the above verifications are passed, the single-packet verification is passed. The single-packet verification can avoid information security in the process of sending messages and avoid being attacked by other data that has not been single-packet verified. After the single-packet verification is passed, the authentication server receives the security authentication factor; the authentication server performs two-way authentication with the new energy terminal based on the security authentication factor, specifically comparing the security authentication factor with the authentication information. If the comparison is consistent, the identity authentication is passed, and the legal identity information of the terminal can be obtained. The legal identity information may include the role information of the new energy terminal.
[0050] In order to comprehensively analyze the service access traffic data, in an optional implementation manner, the above step S202 includes:
[0051] Step S2021, screening the historical service access flow data to obtain valid historical service access flow data;
[0052] Step S2022, clustering the valid historical service access flow data using a clustering algorithm to obtain historical flow characteristic data, wherein the flow characteristic data at least includes data packet data, message protocol and source port number;
[0053] Step S2023, recording the frequency distribution value of each characteristic value corresponding to each of the historical flow characteristic data in a unit period, wherein the characteristic value is a value representing the characteristic of the historical flow characteristic data;
[0054] Step S2024, calculating the entropy value corresponding to each of the historical traffic characteristic data according to the first formula, wherein the first formula is S(P i ) is the entropy value of the i-th historical traffic characteristic data, P i is the i-th historical traffic characteristic data, n is the number of the characteristic values in the unit period, j represents the j-th characteristic value in the historical traffic characteristic data, r j is the frequency distribution value of the jth characteristic value of the i-th historical flow characteristic data occurring in the unit period, and σ is the correction coefficient;
[0055] Step S2025, filtering out all the historical traffic characteristic data whose entropy values are less than a preset entropy value, and determining them as valid historical traffic characteristic data;
[0056] Step S2026, constructing a flow baseline according to the valid historical flow characteristic data, wherein the flow baseline is a normal baseline formed by characteristic values corresponding to the historical flow characteristic data;
[0057] Step S2027, comparing the characteristic value in the service access traffic data with the traffic baseline;
[0058] Step S2028: When the characteristic value in the service access traffic data is less than the traffic baseline, the service access traffic data is determined as the abnormal traffic data.
[0059] In the above embodiment, the historical service access traffic data is first screened to remove redundant data to obtain valid historical service access traffic data. The valid historical service access traffic data is used to select historical traffic feature data through a clustering algorithm. The above historical traffic feature data may include source IP address, source port number, number of data packets and message protocol, etc. The frequency distribution of the historical traffic feature data in a unit period is statistically analyzed. For example, the source port number may have possible feature values such as 21, 22, and 23, and the frequency distribution value of the feature value in the unit period is statistically analyzed. The entropy value of the historical traffic feature data is calculated based on the frequency distribution value. The entropy value calculation formula is the above first formula: The entropy value of historical business access traffic data of different periods is calculated according to the above method, and the entropy value is compared with the preset threshold. The historical traffic feature data with an entropy value less than the preset threshold is selected and determined as the valid historical traffic feature data; based on the characteristic values of all the above valid historical traffic feature data, the characteristic value that appears the most times is used to build a traffic baseline; the characteristic value of the business access traffic data is compared with the traffic baseline, and the business access traffic data with a characteristic value less than the traffic baseline is screened out and determined as abnormal traffic data, that is, the traffic behavior characteristics.
[0060] In order to improve data processing efficiency, in an optional implementation manner, the above step S2021 includes:
[0061] Step S20211, dividing all the historical service access flow data into a plurality of sample data packets, each of the sample data packets including a predetermined amount of the historical service access flow data;
[0062] Step S20212, recording the number of times each attribute appears in each sample data packet, where the number of times each attribute appears in the sample data packet, and the attribute includes at least a source port number and a source destination IP address;
[0063] Step S20213, calculating the ratio between the attribute times and the predetermined number, and obtaining the information entropy corresponding to each of the sample data packets, wherein the information entropy is used to characterize the stability of the historical service access flow data;
[0064] Step S20214, when the information entropy is greater than a set information entropy threshold, the sample data packet is filtered out;
[0065] Step S20215, when the information entropy is greater than the set information entropy threshold, retain the corresponding sample data packet;
[0066] Step S20216: Determine the valid historical business access traffic data based on the business access traffic data corresponding to all retained sample data packets.
[0067] In the above embodiment, after determining the legal identity information of the new energy terminal, the historical business access traffic data packets of the above new energy terminal are sampled according to a preset number of units to obtain a number of sample data packets, and the number of times each attribute in the sample data packet appears in the sample data packet is counted. The information entropy is calculated by the number of times each attribute appears in the sample data packet to remove redundant data. The larger the information entropy, the more unstable the captured business access traffic data is. Therefore, a trade-off analysis is performed on the historical business access traffic data, and the historical business access traffic data after the redundant data is removed is determined as valid historical business access traffic data.
[0068] In order to improve the reliability of access rights of the terminal and avoid the risk of access of new energy terminals, in an optional implementation manner, the above step S203 includes:
[0069] Step S203 1, input the abnormal traffic data and the identity information into a trust calculation model, and output the terminal trust of the new energy terminal, wherein the trust calculation model is a convergence model obtained by inputting a sample data set into a deep neural network for training;
[0070] Step S2032, querying the access permission table according to the terminal trust to obtain the access permission corresponding to the new energy terminal, wherein the access permission table is used to record different terminal trusts corresponding to different access permissions in the database.
[0071] In the above embodiment, the characteristic value of the business access traffic data is compared with the traffic baseline to screen out abnormal traffic data, namely the traffic behavior characteristics. The terminal trust is calculated using a trust calculation model based on the traffic behavior characteristics and the terminal identity information. The trust calculation model is a convergence model obtained by inputting a sample data set into a deep neural network for training. The current access rights of the above-mentioned new energy terminal are determined by querying the access permission table based on the terminal trust.
[0072] In order to timely discover abnormal access behaviors that occur in the interaction between the new energy terminal and the business application of the new energy station and take timely protection measures, in an optional implementation manner, the above step S205 includes:
[0073] Step S2051, when the trust value is less than the median value of the interval, it is determined that the access behavior of the new energy terminal is in a safe interval, and the dynamic protection scheme is determined to continuously monitor the interaction process of the new energy terminal, and the median value of the interval is the median value of the preset threshold interval;
[0074] Step S2052: when the trust value is greater than the median of the interval and less than or equal to the maximum value of the preset threshold interval, the dynamic protection scheme is determined to issue a warning message and build a protection firewall;
[0075] Step S2053: When the trust value is greater than the maximum value of the preset threshold value interval, the dynamic protection scheme is determined to control the new energy terminal to terminate the interaction.
[0076] In the above embodiment, the trust value is compared with the preset threshold interval. If the trust value is less than the median value in the preset threshold interval, it means that the access behavior of the terminal is in a safe interval, and the interaction process is continuously monitored; if the trust value exceeds the median value in the preset threshold interval but does not exceed the preset threshold interval, an alarm message is generated and a protective firewall is constructed; if the trust value exceeds the preset threshold interval, the interaction is terminated. The above is a dynamic protection solution.
[0077] In order to avoid data leakage and perception errors in new energy station business applications and realize dynamic and reliable business security access of new energy terminals, in an optional implementation, after the above step S205, the method further includes:
[0078] Step S301, obtaining a first number and a second number, wherein the first number is the number of times the trust value is greater than the median of the interval, and the second number is the number of times the trust value is less than or equal to the maximum value of the preset threshold interval;
[0079] Step S302, updating the access permission of the new energy terminal according to the first number and the second number to obtain the latest access permission of the new energy terminal;
[0080] Step S303: adjusting the access behavior of the new energy terminal according to the latest access rights to redefine the access behavior of the new energy terminal.
[0081] In the above embodiment, the access right is updated according to the number of times exceeding the median of the preset threshold interval and the number of times exceeding the preset threshold interval in the dynamic protection scheme, and the real-time updated access right is obtained. The access behavior of the new energy terminal is adjusted according to the real-time updated access right, and the access behavior of the new energy terminal is redefined. For example, when the first number or the second number exceeds the first number threshold, the number of copies or data transmissions in the current access right is reduced; when the second number exceeds the first number threshold, the data transmission is directly cancelled.
[0082] This embodiment relates to a specific service dynamic access control method for a new energy terminal, including the following steps:
[0083] Step S1: The new energy terminal sends an access request, performs terminal identity authentication according to the identity information in the access request, and determines the identity information of the new energy terminal;
[0084] Step S2: after determining the identity information of the new energy terminal, obtaining the service access flow data of the new energy terminal, analyzing the flow behavior characteristics using the flow baseline according to the service access flow data, calculating the terminal trust corresponding to the new energy terminal according to the flow behavior characteristics and the terminal identity information, and determining the access authority according to the terminal trust;
[0085] Step S3: Control the new energy terminal to interact with the new energy station business system according to the access rights, and the receiving server tracks and monitors all behaviors of the new energy terminal to obtain monitoring behavior information;
[0086] Step S4: obtaining the trust value in the interaction process between the new energy terminal and the new energy station business system according to the monitoring behavior information to generate a dynamic protection plan;
[0087] Step S5: updating the access rights according to the dynamic protection scheme, obtaining the access rights updated in real time, and adjusting the access behavior of the new energy terminal according to the access rights updated in real time.
[0088] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0089] The embodiment of the present application also provides a business dynamic access control device for a new energy terminal. It should be noted that the business dynamic access control device for a new energy terminal in the embodiment of the present application can be used to execute the business dynamic access control method for a new energy terminal provided in the embodiment of the present application. The device is used to implement the above-mentioned embodiments and preferred implementation modes, and those that have been described will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware for a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceived.
[0090] The following is an introduction to the business dynamic access control device for the new energy terminal provided in an embodiment of the present application.
[0091] Figure 3 1 is a structural block diagram of a service dynamic access control device for a new energy terminal according to an embodiment of the present application. Figure 3 As shown, the device comprises:
[0092] The receiving unit 10 is used to receive an access request sent by the new energy terminal and perform terminal identity authentication according to the access request, wherein the access request includes identity information of the new energy terminal.
[0093] Specifically, before the new energy terminal accesses the new energy station business system, the new energy terminal needs to send an access request, which includes various information about the above-mentioned new energy terminal. In order to ensure the security of the access of the new energy terminal, the terminal identity authentication of the new energy terminal is required according to the above-mentioned access request.
[0094] The first acquisition unit 20 is used to acquire the service access flow data of the new energy terminal when the terminal identity authentication is passed, and analyze the flow behavior characteristics according to the service access flow data to obtain abnormal flow data.
[0095] Specifically, after the identity information of the new energy terminal is determined, the service access flow data of the new energy terminal is obtained, and the flow behavior characteristics are analyzed using the flow baseline according to the service access flow data to screen out abnormal flow data.
[0096] The calculation unit 30 is used to calculate the terminal trust according to the abnormal traffic data and the identity information to determine the access rights of the new energy terminal.
[0097] Specifically, the terminal trust is calculated based on the abnormal traffic data and terminal identity information to obtain access rights. Traffic analysis is added to the terminal access rights considerations to make the obtained access rights more reliable and to avoid terminal access risks as much as possible.
[0098] The control unit 40 is used to control the new energy terminal to perform data interaction according to the access rights, and at the same time track and monitor all access behaviors of the new energy terminal to obtain monitoring behavior information.
[0099] Specifically, the new energy terminal interacts with the new energy station business system based on access rights, and the receiving server tracks and monitors all behaviors of the new energy terminal. It performs protocol compliance analysis, traffic analysis, interaction frequency analysis, access log analysis, sensitive file monitoring, and port monitoring by monitoring the terminal data bus, and calls the interactive security behavior baseline in the end device business scenario to monitor abnormalities in the access process of the new energy terminal device to obtain monitoring behavior information. The above-mentioned monitoring behavior information at least includes the interactive behavior and interactive behavior area of the above-mentioned new energy terminal. The above-mentioned interactive behavior area is the data interaction range of the above-mentioned interactive behavior. The terminal interaction information table is generated according to the monitoring behavior information. The above-mentioned interactive information table includes a normal behavior area and an abnormal behavior area. When the above-mentioned interactive behavior corresponds to the allowed behavior, the above-mentioned interactive behavior area is a normal behavior area; when the above-mentioned interactive behavior does not correspond to the above-mentioned allowed behavior, the above-mentioned interactive behavior area is an abnormal behavior area, and the allowed behavior can be known through the above-mentioned access rights.
[0100] The determination unit 50 is used to obtain the trust value in the data interaction process according to the above-mentioned monitoring behavior information, and determine the corresponding dynamic protection scheme according to the above-mentioned trust value. The above-mentioned trust value represents the degree of trust in the above-mentioned new energy terminal, and the above-mentioned dynamic protection scheme is the security protection strategy for the above-mentioned new energy terminal when performing business access.
[0101] Specifically, the trust value of the terminal in the interaction process is quantified based on the interactive security behavior baseline and the number of abnormal behaviors combined with preset expert rules. The number of abnormal behaviors can be found by querying the above interaction information table. The above dynamic protection scheme is determined by comparing the trust value with the preset threshold interval, so as to timely discover abnormal access behaviors that occur in the interaction between the new energy terminal and the business application of the new energy station, and take timely protection, avoiding data leakage and perception errors of the business application of the new energy station, and realizing dynamic and reliable business security access of the new energy terminal.
[0102] In this embodiment, the receiving unit is used to receive the access request sent by the new energy terminal, and perform terminal identity authentication according to the access request, and the access request includes the identity information of the new energy terminal; the first acquisition unit is used to obtain the business access flow data of the new energy terminal when the terminal identity authentication is passed, and analyze the flow behavior characteristics according to the business access flow data to obtain abnormal flow data; the calculation unit is used to calculate the terminal trust according to the abnormal flow data and the identity information to determine the access rights of the new energy terminal; the control unit is used to control the new energy terminal to perform data interaction according to the access rights, and at the same time track and monitor all access behaviors of the new energy terminal to obtain monitoring behavior information; the determination unit is used to obtain the trust value in the data interaction process according to the monitoring behavior information, and determine the corresponding dynamic protection scheme according to the trust value, the trust value indicates the degree of trust in the new energy terminal, and the dynamic protection scheme is the security protection strategy of the new energy terminal when performing business access. This application receives the access request sent by the new energy terminal, and performs terminal identity authentication according to the access request, so as to improve the security of terminal identity authentication. According to the business access traffic data of the above-mentioned new energy terminal, the traffic baseline is used to analyze the traffic behavior characteristics to obtain abnormal traffic data, and the terminal trust is calculated based on the abnormal traffic data and the terminal identity information, and then the access rights are obtained. The traffic analysis is added to the terminal access rights consideration to make the obtained access rights more reliable and to avoid the risk of terminal access as much as possible. All behaviors of the new energy terminal are tracked and monitored, and the monitoring behavior information is obtained to generate a dynamic protection plan, which can timely discover the abnormal access behavior that occurs in the interaction between the new energy terminal and the business application of the new energy station, and timely protect it, avoiding data leakage and perception errors of the new energy station business application, and realizing dynamic and reliable business security access for new energy terminals. This application solves the problem that the processing of terminal identity authentication in the prior art is simple and the terminal access interaction behavior is not monitored, resulting in low access security when the new energy terminal accesses the business application of the new energy station.
[0103] In order to improve the security of terminal identity authentication, in an optional implementation manner, the receiving unit includes:
[0104] A first verification module performs preliminary identity verification on the above identity information and pre-stored identity information, where the pre-stored identity information is identity information pre-stored in the new energy station;
[0105] A first determination module, when the identity information is inconsistent with the pre-stored identity information, determines that the preliminary identity verification has not been passed;
[0106] A second determination module determines that the preliminary identity verification is passed when the identity information is consistent with the pre-stored identity information, and generates a security authentication factor according to the identity information, wherein the security authentication factor includes a QR code, a voice verification code and a software token;
[0107] The second verification module performs single-packet verification on the data packet sent by the new energy terminal, and the single-packet verification at least includes verifying whether the data packet is sent according to a preset rule, whether the freshness of the data packet meets a preset condition, whether there is no tampering trace, whether there is no replay trace, and whether the data packet is encrypted using a preset encryption method;
[0108] A control module, when the single packet verification passes, controls the authentication server to receive the security authentication factor, so that the authentication server compares the security authentication factor with the authentication information, where the authentication information is information uploaded by the new energy terminal according to the security authentication factor, including a QR code, a voice verification code and a software token;
[0109] A third determination module determines that the terminal identity authentication fails when the security authentication factor and the authentication information are inconsistent;
[0110] The fourth determination module determines that the terminal identity authentication has passed when the security authentication factor is consistent with the authentication information.
[0111] In the above embodiment, the new energy terminal sends an access request, which includes the identity information of the new energy terminal. A preliminary identity authentication is performed based on the identity information in the access request and the identity information pre-stored by the security agent in the new energy station business system. If the identity information in the access request is consistent with the identity information pre-stored by the security agent in the new energy station business system, the preliminary identity authentication is successful; if the preliminary identity authentication fails, a prompt message is issued to perform preliminary identity authentication again; after the preliminary identity authentication is successful, a security authentication factor is generated based on the identity information in the access request. The security authentication factor may include information such as a QR code, a voice verification code, and a software token. The security authentication factor is random and time-effective and can be generated based on the current time and user information; the security authentication factor is sent to the authentication server In the device, before sending the security authentication factor to the authentication server, the new energy terminal is first single-packet verified, and the data packet sent by the receiving terminal is single-packet verified. The single-packet verification specifically includes: verifying whether the data packet is sent according to the preset rules, such as listening to the port knocking situation at the preset port of the authentication server, judging whether the terminal meets the preset knocking method, and then parsing the content of the data packet to obtain data such as timestamp, random string, IP address information, etc., verifying whether the freshness of the data packet meets the preset conditions, whether there are no tampering traces, whether there are no replay traces, whether it is encrypted using the preset encryption method, etc. If the above verifications are passed, the single-packet verification is passed. The single-packet verification can avoid information security in the process of sending messages and avoid being attacked by other data that has not been single-packet verified. After the single-packet verification is passed, the authentication server receives the security authentication factor; the authentication server performs two-way authentication with the new energy terminal based on the security authentication factor, specifically comparing the security authentication factor with the authentication information. If the comparison is consistent, the identity authentication is passed, and the legal identity information of the terminal can be obtained. The legal identity information may include the role information of the new energy terminal.
[0112] In order to comprehensively analyze the service access traffic data, in an optional implementation manner, the first acquisition unit includes:
[0113] The first screening module screens the historical business access flow data to obtain valid historical business access flow data;
[0114] A clustering module, which performs clustering processing on the effective historical service access flow data using a clustering algorithm to obtain historical flow characteristic data, wherein the flow characteristic data at least includes data packet data, message protocol and source port number;
[0115] A recording module, recording the frequency distribution value of each characteristic value corresponding to each of the historical flow characteristic data occurring within a unit period, wherein the characteristic value is a value representing the characteristic of the historical flow characteristic data;
[0116] The calculation module calculates the entropy value corresponding to each of the historical traffic characteristic data according to the first formula, wherein the first formula is S(P i ) is the entropy value of the i-th historical traffic characteristic data, P i is the i-th historical traffic characteristic data, n is the number of the characteristic values in the unit period, j represents the j-th characteristic value in the historical traffic characteristic data, r j is the frequency distribution value of the jth characteristic value of the i-th historical flow characteristic data occurring in the unit period, and σ is the correction coefficient;
[0117] A second screening module is used to screen out all the historical traffic characteristic data whose entropy values are less than a preset entropy value and determine them as valid historical traffic characteristic data;
[0118] A construction module, constructing a flow baseline according to the valid historical flow characteristic data, wherein the flow baseline is a normal baseline formed by characteristic values corresponding to the historical flow characteristic data;
[0119] A comparison module, which compares the characteristic value in the service access flow data with the flow baseline;
[0120] The first determining module determines the service access traffic data as the abnormal traffic data when the characteristic value in the service access traffic data is less than the traffic baseline.
[0121] In the above embodiment, the historical service access traffic data is first screened to remove redundant data to obtain valid historical service access traffic data. The valid historical service access traffic data is used to select historical traffic feature data through a clustering algorithm. The above historical traffic feature data may include source IP address, source port number, number of data packets and message protocol, etc. The frequency distribution of the historical traffic feature data in a unit period is statistically analyzed. For example, the source port number may have possible feature values such as 21, 22, and 23, and the frequency distribution value of the feature value in the unit period is statistically analyzed. The entropy value of the historical traffic feature data is calculated based on the frequency distribution value. The entropy value calculation formula is the above first formula: The entropy value of historical business access traffic data of different periods is calculated according to the above method, and the entropy value is compared with the preset threshold. The historical traffic feature data with an entropy value less than the preset threshold is selected and determined as the valid historical traffic feature data; based on the characteristic values of all the above valid historical traffic feature data, the characteristic value that appears the most times is used to build a traffic baseline; the characteristic value of the business access traffic data is compared with the traffic baseline, and the business access traffic data with a characteristic value less than the traffic baseline is screened out and determined as abnormal traffic data, that is, the traffic behavior characteristics.
[0122] In order to improve data processing efficiency, in an optional implementation manner, the first screening module includes:
[0123] A division submodule, dividing all the historical business access flow data into a plurality of sample data packets, each of which includes a predetermined amount of the historical business access flow data;
[0124] A recording submodule, recording the number of times each attribute appears in each sample data packet, wherein the number of times each attribute appears in the sample data packet, and the attribute at least includes a source port number and a source destination IP;
[0125] A calculation submodule calculates the ratio between the attribute times and the predetermined number to obtain information entropy corresponding to each of the sample data packets, wherein the information entropy is used to characterize the stability of the historical service access flow data;
[0126] A screening submodule, when the information entropy is greater than a set information entropy threshold, screening out the sample data packet;
[0127] A retaining submodule, when the information entropy is greater than a set information entropy threshold, retains the corresponding sample data packet;
[0128] A determination submodule determines the valid historical business access traffic data according to the business access traffic data corresponding to all the retained sample data packets.
[0129] In the above embodiment, after determining the legal identity information of the new energy terminal, the historical business access traffic data packets of the above new energy terminal are sampled according to a preset number of units to obtain a number of sample data packets, and the number of times each attribute in the sample data packet appears in the sample data packet is counted. The information entropy is calculated by the number of times each attribute appears in the sample data packet to remove redundant data. The larger the information entropy, the more unstable the captured business access traffic data is. Therefore, a trade-off analysis is performed on the historical business access traffic data, and the historical business access traffic data after the redundant data is removed is determined as valid historical business access traffic data.
[0130] In order to improve the reliability of access rights of the terminal and avoid the risk of access of the new energy terminal, in an optional implementation manner, the calculation unit includes:
[0131] An input-output module, inputting the abnormal traffic data and the identity information into a trust calculation model, and outputting the terminal trust of the new energy terminal, wherein the trust calculation model is a convergence model obtained by inputting a sample data set into a deep neural network for training;
[0132] The query module queries the access permission table according to the terminal trust to obtain the access permission corresponding to the new energy terminal. The access permission table is used to record different terminal trusts corresponding to different access permissions in the database.
[0133] In the above embodiment, the characteristic value of the business access traffic data is compared with the traffic baseline to screen out abnormal traffic data, namely the traffic behavior characteristics. The terminal trust is calculated using a trust calculation model based on the traffic behavior characteristics and the terminal identity information. The trust calculation model is a convergence model obtained by inputting a sample data set into a deep neural network for training. The current access rights of the above-mentioned new energy terminal are determined by querying the access permission table based on the terminal trust.
[0134] In order to timely discover abnormal access behaviors occurring in the interaction between the new energy terminal and the business application of the new energy station and to perform protection in time, in an optional implementation manner, the above-mentioned determination unit includes:
[0135] A fifth determination module, when the trust value is less than the median value of the interval, determines that the access behavior of the new energy terminal is in a safe interval, determines the dynamic protection scheme to continuously monitor the interaction process of the new energy terminal, and the median value of the interval is the median value of a preset threshold interval;
[0136] A second determination module, when the trust value is greater than the median of the interval and less than or equal to the maximum value of the preset threshold interval, determines the dynamic protection scheme as issuing a warning message and building a protection firewall;
[0137] The third determination module determines the dynamic protection scheme as controlling the new energy terminal to terminate the interaction when the trust value is greater than the maximum value of the preset threshold interval.
[0138] In the above embodiment, the trust value is compared with the preset threshold interval. If the trust value is less than the median value in the preset threshold interval, it means that the access behavior of the terminal is in a safe interval, and the interaction process is continuously monitored; if the trust value exceeds the median value in the preset threshold interval but does not exceed the preset threshold interval, an alarm message is generated and a protective firewall is constructed; if the trust value exceeds the preset threshold interval, the interaction is terminated. The above is a dynamic protection solution.
[0139] In order to avoid data leakage and perception errors in new energy station business applications and realize dynamic and reliable business security access of new energy terminals, in an optional implementation manner, the device also includes:
[0140] A second acquisition unit is used to acquire a first number and a second number, wherein the first number is the number of times the trust value is greater than the median of the interval, and the second number is the number of times the trust value is less than or equal to the maximum value of the preset threshold interval;
[0141] An updating unit, configured to update the access permission of the new energy terminal according to the first number and the second number, and obtain the latest access permission of the new energy terminal;
[0142] An adjustment unit is used to adjust the access behavior of the new energy terminal according to the latest access permission to redefine the access behavior of the new energy terminal.
[0143] In the above embodiment, the access right is updated according to the number of times exceeding the median of the preset threshold interval and the number of times exceeding the preset threshold interval in the dynamic protection scheme, and the real-time updated access right is obtained. The access behavior of the new energy terminal is adjusted according to the real-time updated access right, and the access behavior of the new energy terminal is redefined. For example, when the first number or the second number exceeds the first number threshold, the number of copies or data transmissions in the current access right is reduced; when the second number exceeds the first number threshold, the data transmission is directly cancelled.
[0144] The above-mentioned service dynamic access control device of the new energy terminal includes a processor and a memory, and the above-mentioned receiving unit, the first acquisition unit and the calculation unit are all stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to realize the corresponding functions. The above-mentioned modules are all located in the same processor; or, the above-mentioned modules are located in different processors in any combination.
[0145] The processor includes a kernel, which retrieves the corresponding program unit from the memory. One or more kernels can be set, and the kernel parameters can be adjusted to solve the problem of simple processing of terminal identity authentication and failure to monitor terminal access interaction behavior in the prior art, resulting in low access security when new energy terminals access business applications of new energy stations.
[0146] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0147] An embodiment of the present invention provides a computer-readable storage medium, which includes a stored program, wherein when the program is running, the device where the computer-readable storage medium is located is controlled to execute the business dynamic access control method of the new energy terminal.
[0148] Specifically, the service dynamic access control method of the new energy terminal includes:
[0149] Step S201, receiving an access request sent by a new energy terminal, and performing terminal identity authentication according to the access request, wherein the access request includes identity information of the new energy terminal;
[0150] Step S202, when the terminal identity authentication is passed, obtaining the service access flow data of the new energy terminal, and analyzing the flow behavior characteristics according to the service access flow data to obtain abnormal flow data;
[0151] Step S203, calculating the terminal trust according to the abnormal traffic data and the identity information to determine the access rights of the new energy terminal;
[0152] Step S204, controlling the new energy terminal to perform data interaction according to the access rights, and tracking and monitoring all access behaviors of the new energy terminal to obtain monitoring behavior information;
[0153] Step S205, obtaining the trust value in the data interaction process according to the monitoring behavior information, and determining the corresponding dynamic protection scheme according to the trust value, wherein the trust value indicates the degree of trust in the new energy terminal, and the dynamic protection scheme is the security protection strategy for the new energy terminal when performing business access. An embodiment of the present invention provides a processor, wherein the processor is used to run a program, wherein the program executes the business dynamic access control method of the new energy terminal when running.
[0154] Specifically, the service dynamic access control method of the new energy terminal includes:
[0155] Step S201, receiving an access request sent by a new energy terminal, and performing terminal identity authentication according to the access request, wherein the access request includes identity information of the new energy terminal;
[0156] Step S202, when the terminal identity authentication is passed, obtaining the service access flow data of the new energy terminal, and analyzing the flow behavior characteristics according to the service access flow data to obtain abnormal flow data;
[0157] Step S203, calculating the terminal trust according to the abnormal traffic data and the identity information to determine the access rights of the new energy terminal;
[0158] Step S204, controlling the new energy terminal to perform data interaction according to the access rights, and tracking and monitoring all access behaviors of the new energy terminal to obtain monitoring behavior information;
[0159] Step S205, obtaining the trust value in the data interaction process according to the above monitoring behavior information, and determining the corresponding dynamic protection scheme according to the above trust value, the above trust value indicates the degree of trust in the above new energy terminal, and the above dynamic protection scheme is the security protection strategy for the above new energy terminal when accessing business.
[0160] An embodiment of the present invention provides a new energy terminal service dynamic access control system, which includes a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, at least the following steps are implemented:
[0161] Step S201, receiving an access request sent by a new energy terminal, and performing terminal identity authentication according to the access request, wherein the access request includes identity information of the new energy terminal;
[0162] Step S202, when the terminal identity authentication is passed, obtaining the service access flow data of the new energy terminal, and analyzing the flow behavior characteristics according to the service access flow data to obtain abnormal flow data;
[0163] Step S203, calculating the terminal trust according to the abnormal traffic data and the identity information to determine the access rights of the new energy terminal;
[0164] Step S204, controlling the new energy terminal to perform data interaction according to the access rights, and tracking and monitoring all access behaviors of the new energy terminal to obtain monitoring behavior information;
[0165] Step S205, obtaining the trust value in the data interaction process according to the above monitoring behavior information, and determining the corresponding dynamic protection scheme according to the above trust value, wherein the above trust value indicates the degree of trust in the above new energy terminal, and the above dynamic protection scheme is the security protection strategy for the above new energy terminal when performing business access. The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program that is initialized with at least the following method steps:
[0166] Step S201, receiving an access request sent by a new energy terminal, and performing terminal identity authentication according to the access request, wherein the access request includes identity information of the new energy terminal;
[0167] Step S202, when the terminal identity authentication is passed, obtaining the service access flow data of the new energy terminal, and analyzing the flow behavior characteristics according to the service access flow data to obtain abnormal flow data;
[0168] Step S203, calculating the terminal trust according to the abnormal traffic data and the identity information to determine the access rights of the new energy terminal;
[0169] Step S204, controlling the new energy terminal to perform data interaction according to the access rights, and tracking and monitoring all access behaviors of the new energy terminal to obtain monitoring behavior information;
[0170] Step S205, according to the above monitoring behavior information, the trust value in the data interaction process is obtained, and the corresponding dynamic protection scheme is determined according to the above trust value, the above trust value represents the degree of trust in the above new energy terminal, and the above dynamic protection scheme is the security protection strategy of the above new energy terminal when performing business access. Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by executable program codes of computing devices, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that here, or they can be made into individual integrated circuit modules respectively, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. In this way, the present invention is not limited to any specific combination of hardware and software.
[0171] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0172] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes 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 generate 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.
[0173] 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.
[0174] 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.
[0175] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0176] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0177] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0178] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0179] From the above description, it can be seen that the above embodiments of the present application achieve the following technical effects:
[0180] 1) The business dynamic access control method for new energy terminals of the present application, first, receives the access request sent by the new energy terminal, and performs terminal identity authentication according to the above access request, and the above access request includes the identity information of the above new energy terminal; then, when the above terminal identity authentication is passed, obtains the business access flow data of the above new energy terminal, and analyzes the flow behavior characteristics according to the above business access flow data to obtain abnormal flow data; then, calculates the terminal trust degree according to the above abnormal flow data and the above identity information to determine the access rights of the above new energy terminal; then, controls the above new energy terminal to perform data interaction according to the above access rights, and at the same time tracks and monitors all access behaviors of the above new energy terminal to obtain monitoring behavior information; finally, obtains the trust value in the data interaction process according to the above monitoring behavior information, and determines the corresponding dynamic protection scheme according to the above trust value, the above trust value indicates the degree of trust in the above new energy terminal, and the above dynamic protection scheme is the security protection strategy for the above new energy terminal when performing business access. The present application receives the access request sent by the new energy terminal, and performs terminal identity authentication according to the above access request to improve the security of terminal identity authentication. According to the business access traffic data of the above-mentioned new energy terminal, the traffic baseline is used to analyze the traffic behavior characteristics to obtain abnormal traffic data, and the terminal trust is calculated based on the abnormal traffic data and the terminal identity information, and then the access rights are obtained. The traffic analysis is added to the terminal access rights consideration to make the obtained access rights more reliable and to avoid the risk of terminal access as much as possible. All behaviors of the new energy terminal are tracked and monitored, and the monitoring behavior information is obtained to generate a dynamic protection plan, which can timely discover the abnormal access behavior that occurs in the interaction between the new energy terminal and the business application of the new energy station, and timely protect it, avoiding data leakage and perception errors of the new energy station business application, and realizing dynamic and reliable business security access for new energy terminals. This application solves the problem that the processing of terminal identity authentication in the prior art is simple and the terminal access interaction behavior is not monitored, resulting in low access security when the new energy terminal accesses the business application of the new energy station.
[0181] 2) The business dynamic access control device for the new energy terminal of the present application includes a receiving unit for receiving an access request sent by the new energy terminal and performing terminal identity authentication according to the access request, wherein the access request includes the identity information of the new energy terminal; a first acquisition unit for acquiring the business access flow data of the new energy terminal when the terminal identity authentication is passed, and analyzing the flow behavior characteristics according to the business access flow data to obtain abnormal flow data; a calculation unit for calculating the terminal trust according to the abnormal flow data and the identity information to determine the access rights of the new energy terminal; a control unit for controlling the new energy terminal to perform data interaction according to the access rights, and at the same time tracking and monitoring all access behaviors of the new energy terminal to obtain monitoring behavior information; a determination unit for obtaining the trust value in the data interaction process according to the monitoring behavior information, and determining the corresponding dynamic protection scheme according to the trust value, wherein the trust value indicates the degree of trust in the new energy terminal, and the dynamic protection scheme is the security protection strategy for the new energy terminal when performing business access. The present application receives an access request sent by a new energy terminal, and performs terminal identity authentication according to the access request, thereby improving the security of terminal identity authentication. According to the business access traffic data of the above-mentioned new energy terminal, the traffic baseline is used to analyze the traffic behavior characteristics to obtain abnormal traffic data, and the terminal trust is calculated based on the abnormal traffic data and the terminal identity information, and then the access rights are obtained. The traffic analysis is added to the terminal access rights consideration to make the obtained access rights more reliable and to avoid the risk of terminal access as much as possible. All behaviors of the new energy terminal are tracked and monitored, and the monitoring behavior information is obtained to generate a dynamic protection plan, which can timely discover the abnormal access behavior that occurs in the interaction between the new energy terminal and the business application of the new energy station, and timely protect it, avoiding data leakage and perception errors of the new energy station business application, and realizing dynamic and reliable business security access for new energy terminals. This application solves the problem that the processing of terminal identity authentication in the prior art is simple and the terminal access interaction behavior is not monitored, resulting in low access security when the new energy terminal accesses the business application of the new energy station.
[0182] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A method for dynamic access control of services of a new energy terminal, characterized in that: include: Receiving an access request sent by a new energy terminal, and performing terminal identity authentication according to the access request, wherein the access request includes identity information of the new energy terminal; When the terminal identity authentication is passed, the service access flow data of the new energy terminal is obtained, and the flow behavior characteristics are analyzed according to the service access flow data to obtain abnormal flow data; Calculating the terminal trust according to the abnormal traffic data and the identity information to determine the access rights of the new energy terminal; Controlling the new energy terminal to perform data interaction according to the access permission, and tracking and monitoring all access behaviors of the new energy terminal to obtain monitoring behavior information; The trust value in the data interaction process is obtained according to the monitoring behavior information, and the corresponding dynamic protection scheme is determined according to the trust value, wherein the trust value indicates the degree of trust in the new energy terminal, and the dynamic protection scheme is the security protection strategy of the new energy terminal when performing business access.
2. The method according to claim 1, characterized in that Receiving an access request sent by a new energy terminal and performing terminal identity authentication according to the access request, including: Performing preliminary identity authentication on the identity information and pre-stored identity information, where the pre-stored identity information is identity information pre-stored in the new energy station; If the identity information is inconsistent with the pre-stored identity information, it is determined that the preliminary identity verification has failed; If the identity information is consistent with the pre-stored identity information, it is determined that the preliminary identity verification is passed, and a security authentication factor is generated according to the identity information, wherein the security authentication factor includes a QR code, a voice verification code and a software token; Performing single-packet verification on the data packet sent by the new energy terminal, the single-packet verification at least including verifying whether the data packet is sent according to a preset rule, verifying whether the freshness of the data packet meets preset conditions, whether there are no traces of tampering, whether there are no traces of replay, and whether the data packet is encrypted using a preset encryption method; In the case where the single-packet verification passes, controlling the authentication server to receive the security authentication factor, so that the authentication server compares the security authentication factor with authentication information, wherein the authentication information is information uploaded by the new energy terminal according to the security authentication factor, including a QR code, a voice verification code, and a software token; If the security authentication factor is inconsistent with the authentication information, it is determined that the terminal identity authentication has failed; When the security authentication factor is consistent with the authentication information, it is determined that the terminal identity authentication has passed.
3. The method according to claim 1, characterized in that Analyze traffic behavior characteristics according to the service access traffic data to obtain abnormal traffic data, including: Filter historical business access traffic data to obtain valid historical business access traffic data; The effective historical service access flow data is clustered using a clustering algorithm to obtain historical flow characteristic data, wherein the flow characteristic data at least includes data packet data, message protocol and source port number; Recording the frequency distribution value of each characteristic value corresponding to each of the historical flow characteristic data occurring within a unit period, wherein the characteristic value is a value representing a characteristic of the historical flow characteristic data; The entropy value corresponding to each of the historical traffic characteristic data is calculated according to the first formula, and the first formula is: S(P i ) is the entropy value of the i-th historical traffic characteristic data, P i is the i-th historical traffic characteristic data, n is the number of the characteristic values in the unit period, j represents the j-th characteristic value in the historical traffic characteristic data, r j is the frequency distribution value of the jth characteristic value of the i-th historical flow characteristic data occurring in the unit period, and σ is the correction coefficient; Screen out all the historical traffic characteristic data whose entropy values are less than a preset entropy value and determine them as valid historical traffic characteristic data; Constructing a flow baseline according to the valid historical flow characteristic data, wherein the flow baseline is a normal baseline formed by characteristic values corresponding to the historical flow characteristic data; Comparing the characteristic value in the service access traffic data with the traffic baseline; When the characteristic value in the service access traffic data is smaller than the traffic baseline, the service access traffic data is determined as the abnormal traffic data.
4. The method according to claim 3, characterized in that Filter the historical business access traffic data to obtain valid historical business access traffic data, including: Dividing all the historical business access flow data into a plurality of sample data packets, each of the sample data packets including a predetermined amount of the historical business access flow data; Record the number of times each attribute appears in each sample data packet, where each attribute appears in the sample data packet, and the attribute includes at least a source port number and a source destination IP address; Calculating the ratio between the attribute times and the predetermined number to obtain the information entropy corresponding to each of the sample data packets, wherein the information entropy is used to characterize the stability of the historical service access flow data; When the information entropy is greater than a set information entropy threshold, the sample data packet is filtered out; When the information entropy is greater than a set information entropy threshold, retaining the corresponding sample data packet; The valid historical business access traffic data is determined according to the business access traffic data corresponding to all the retained sample data packets.
5. The method according to claim 1, characterized in that Calculating the terminal trust according to the abnormal traffic data and the identity information to determine the access rights of the new energy terminal includes: Inputting the abnormal traffic data and the identity information into a trust calculation model, and outputting the terminal trust of the new energy terminal, wherein the trust calculation model is a convergence model obtained by inputting a sample data set into a deep neural network for training; The access permission table is queried according to the terminal trust to obtain the access permission corresponding to the new energy terminal, and the access permission table is used to record different terminal trusts corresponding to different access permissions in the database.
6. The method according to claim 1, characterized in that Determining a corresponding dynamic protection scheme according to the trust value includes: When the trust value is less than the median value of the interval, it is determined that the access behavior of the new energy terminal is in a safe interval, and the dynamic protection scheme is determined to continuously monitor the interaction process of the new energy terminal, and the median value of the interval is the median value of the preset threshold interval; In the case where the trust value is greater than the median value of the interval and less than or equal to the maximum value of the preset threshold interval, the dynamic protection scheme is determined to issue a warning message and build a protection firewall; When the trust value is greater than the maximum value of the preset threshold interval, the dynamic protection scheme is determined to control the new energy terminal to terminate the interaction.
7. The method according to claim 6, characterized in that After obtaining the trust value in the data interaction process according to the monitoring behavior information and determining the corresponding dynamic protection scheme according to the trust value, the method further includes: Obtain a first number and a second number, wherein the first number is the number of times the trust value is greater than the median of the interval, and the second number is the number of times the trust value is less than or equal to the maximum value of the preset threshold interval; updating the access permission of the new energy terminal according to the first number of times and the second number of times to obtain the latest access permission of the new energy terminal; The access behavior of the new energy terminal is adjusted according to the latest access authority to redefine the access behavior of the new energy terminal.
8. A service dynamic access control device for a new energy terminal, characterized in that: The device comprises: A receiving unit, configured to receive an access request sent by a new energy terminal, and perform terminal identity authentication according to the access request, wherein the access request includes identity information of the new energy terminal; A first acquisition unit is used to acquire the service access flow data of the new energy terminal when the terminal identity authentication is passed, and analyze the flow behavior characteristics according to the service access flow data to obtain abnormal flow data; A calculation unit, configured to calculate the terminal trust according to the abnormal traffic data and the identity information to determine the access rights of the new energy terminal; A control unit, used to control the new energy terminal to perform data interaction according to the access permission, and to track and monitor all access behaviors of the new energy terminal to obtain monitoring behavior information; A determination unit is used to obtain a trust value in the data interaction process according to the monitoring behavior information, and determine a corresponding dynamic protection scheme according to the trust value, wherein the trust value indicates the degree of trust in the new energy terminal, and the dynamic protection scheme is a security protection strategy for the new energy terminal when performing business access.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the method according to any one of claims 1 to 7.
10. A computer program product comprising computer instructions, characterized in that: When the computer instructions are executed by a processor, the method according to any one of claims 1 to 7 is implemented.
Citation Information
Cited By
Lightweight security authentication system and method for edge device
CN121509027A
