Internet of vehicles AES encryption method based on multi-agent reinforcement learning

By applying the multi-agent reinforcement learning algorithm in the Internet of Vehicles to dynamically adjust the key length and working mode of the AES algorithm, the problems of transmission delay and insufficient anti-attack capabilities in the Internet of Vehicles are solved, and secure and efficient transmission of information and system security are achieved. improvement.

CN118741497AActive Publication Date: 2024-10-01NANJING UNIV OF AERONAUTICS & ASTRONAUTICS

Patent Information

Application Number
CN202410805847.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-21
Publication Date
2024-10-01
Estimated Expiration
2044-06-21

AI Technical Summary

Technical Problem

In the Internet of Vehicles scenario, it is difficult for existing technology to effectively and dynamically adjust the key length and working mode of the AES encryption algorithm, resulting in large transmission delays and overhead, and insufficient anti-attack capabilities, making it unable to meet the security requirements of highly dynamic and complex application scenarios.

Method used

Combined with the multi-agent reinforcement learning algorithm, the key length and working mode of the AES algorithm are dynamically allocated based on vehicle location, task type, task efficiency and attacker attack conditions, optimizing the encryption and decryption process, reducing latency and improving attack resistance.

Benefits of technology

By dynamically adjusting the AES algorithm parameters, the communication process and encryption and decryption delays are reduced, the vehicle's anti-attack capability and system security are improved, and safe and efficient transmission of information is achieved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure BDA00049046838000000314
    Figure BDA00049046838000000314
  • Figure BDA0004904683800000049
    Figure BDA0004904683800000049
  • Figure FDA00049046837900000114
    Figure FDA00049046837900000114
Patent Text Reader

Abstract

According to the Internet of Vehicles AES encryption method based on multi-agent reinforcement learning provided by the invention, the security and time delay requirements of diversified services of the Internet of Vehicles are met by dynamically adjusting encryption modes and key lengths for different types of messages. According to the method, a system state is constructed based on a message category and a vehicle position at a current moment and a channel gain, encryption, decryption, transmission delay and a communication security level at a previous moment, and a multi-agent reinforcement learning algorithm is adopted to optimize a mode and a key length of a vehicle end for encrypting a message by using an AES algorithm; therefore, the encryption time delay and the information leakage probability caused by eavesdropping or interception are reduced, the communication security level is improved, and the reliability and security of information transmission in the Internet of Vehicles are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of information security technology, and in particular to an AES encryption method for Internet of Vehicles based on multi-agent reinforcement learning. Background Art

[0002] The complex network topology structure poses a security risk to the channel. Sensitive information transmitted through insecure channels may be subject to active attacks such as interruption, interception and forgery, or passive attacks such as eavesdropping, which puts the communicating parties at risk of privacy leakage.

[0003] Cryptography is a method of protecting the confidentiality of information in communication. The sender encrypts the plaintext of the information using a specific cryptographic algorithm before transmission. The receiver uses the same algorithm to decrypt the ciphertext and restore the plaintext after receiving it. Since the ciphertext is transmitted instead of the plaintext of the message itself, the use of cryptographic algorithms can effectively defend against potential attacks during the communication process.

[0004] Among different cryptographic algorithms, symmetric encryption methods are widely used due to their higher encryption and decryption efficiency and hardware adaptability. The Advanced Encryption Standard (AES) proposed by the National Institute of Standards and Technology in 1998 can better balance security and computational complexity compared to other block cipher algorithms. In communication scenarios with low latency and high security (such as the Internet of Vehicles), the working mode and key length of AES need to be dynamically adjusted to meet different business types and needs. Bojjagani et al. proposed a new system for vehicles, roadside units, fog computing, and cloud servers. This system combines AES and elliptic curve algorithms to encrypt and decrypt different information exchange scenarios, and realize secure communication, mutual authentication, and key management between facilities. Raja et al. designed and implemented a traffic alarm system for the Internet of Vehicles. AES is used to encrypt beacon information in its secure beacon subsystem to ensure the security of vehicle communications and prevent unauthorized access and potential security threats. The Chinese patent publication number CN113377547A proposes a method for intelligent offloading and security assurance of computing tasks in a 5G edge computing environment, taking into account the security of user tasks during offloading, and adopting AES encryption based on multi-dimensional biometrics for data transmitted between mobile edge computing and users. The above method realizes the embedding of AES in the Internet of Vehicles and improves the security of communication, but lacks a suitable deployment strategy for highly dynamic and complex application scenarios.

[0005] Reinforcement learning is a machine learning paradigm in which agents observe the real-time system environment construction state, dynamically adjust task strategies, and optimize strategy selection based on environmental feedback. In a multi-agent system, the mutual influence of each member's behavior must also be considered. By introducing communication and collaboration between agents, the system performance can be optimized from both individual and overall aspects. Multi-agent reinforcement learning algorithms can be used to optimize the application of cryptographic algorithms. Yuan et al. proposed a multi-agent reinforcement learning strategy based on privacy protection. By using homomorphic encryption and differential privacy in a coordinated manner, the information noise and overhead in the communication process were reduced, and the learning efficiency was improved. Abirami et al. proposed a cloud security strategy based on multi-agent reinforcement learning, which uses technologies including cryptographic algorithms and transport layer security to protect the system from side channel attacks that obtain sensitive information by measuring execution time. These methods combine multi-agent reinforcement learning algorithms with encryption technology to improve the security of the system, but ignore the requirements for latency during transmission.

[0006] This patent combines the multi-agent reinforcement learning algorithm with the AES cryptographic algorithm. Based on the current transmission information and the attacker's attack strength, it dynamically allocates the key length and working mode of the encryption and decryption process, reduces the delay and overhead of the transmission process, and increases the probability of the vehicle successfully defending against attacks, thereby protecting the safe and efficient communication between vehicles and between vehicles and road test units in the Internet of Vehicles scenario. Summary of the invention

[0007] Purpose of the invention: The purpose of the present invention is to utilize a multi-agent reinforcement learning algorithm to analyze the message type and message length according to different transmission tasks at each moment, and to dynamically allocate the key length and working mode of the AES algorithm, taking into account the attack intensity of potential attackers in the network, under the premise of secure transmission of vehicle information in the Internet of Vehicles, so as to reduce the delay in communication, and improve the vehicle's anti-attack capability and system security level, thereby achieving secure transmission of information.

[0008] The present invention comprises the following steps:

[0009] A vehicle network AES encryption method based on multi-agent reinforcement learning includes the following steps:

[0010] (1) Set up a vehicle networking environment, where there are M vehicles in total. For the mth vehicle, 1≤m≤M, deploy a deep neural network;

[0011] (2) The vehicle executes the task and determines the type and length of the message to execute the task;

[0012] (3) Dynamically determine key length and operating mode based on local observations;

[0013] (4) Encrypt the message and upload it to the server;

[0014] (5) The server decrypts and sends feedback information;

[0015] (6) Estimate the number of attacks and security level, and calculate the communication reward;

[0016] (7) Construct and store experience sequences and update deep Q network parameters;

[0017] (8) Repeat steps 2 to 7 until the task is completed.

[0018] Preferably, in step (1), assuming that there are M vehicles, N road test units, and P attackers who can launch attacks on the vehicle side or the server side in the current vehicle networking environment, for the mth vehicle, 1≤m≤M, a deep neural network Q is deployed that can select an encryption strategy based on the current observation m (·,·; θ), the parameters of the deep neural network are initialized as

[0019] Preferably, in step (2), in each time interval k, k ≥ 1, the vehicle may perform different types of tasks and needs to send messages to the server and receive messages from the server to interact; for the mth vehicle, assuming that the type of task performed in the kth time interval is The length of the message to be sent to perform this task is The unit is bytes; the attacker p determines the target vehicle to be attacked in the kth time interval and estimates the type of task to be performed by the target vehicle. Based on the estimated task type, the frequency of attack in the kth time interval is determined and strength

[0020] Preferably, in step (3), the local observation Consider the vehicle’s current position The type of task executed in the kth time interval and the length of the ciphertext message to be sent Local encryption delay in the k-1th time interval Transmission delay Server-side decryption delay and the estimated number of attacks by the attacker in the k-1th time interval Right now

[0021]

[0022] Preferably, in step (4), based on local observations, the vehicle selects the action to be performed within the kth time interval Includes the key length used for encryption during the kth time interval and working mode Right now A is all possible combinations of key length and encryption mode. When selecting an action to execute, there is a probability of e for random selection and a probability of 1-e for selecting the action with the greatest value, that is, The vehicle encrypts the message according to the selected action and obtains the local encryption delay at this moment. And upload the ciphertext to the server.

[0023] Preferably, in step (5): the server uses the corresponding decryption method to obtain the plain text for the received ciphertext, and the delay is The possible feedback information is sent to the vehicle through the same encryption method. The overall delay during the transmission process is

[0024] Preferably, in step (6): the vehicle estimates the number of attacks launched by the attacker within the kth time interval based on the received information The security level of the communication process in the kth time interval is And calculate the overall delay in the kth time interval And based on the frequency and intensity of the attacker's attack, estimate the probability of attack success Based on the above performance, calculate the reward for this round of communication Among them, ω1, ω2, ω3 are the weight parameters corresponding to the performance.

[0025] Preferably, in step (7): constructing an experience sequence And store it in the experience playback buffer pool D m In the experience replay buffer pool D m Randomly sample Z experiences and construct a sample And use optimization algorithm to update the agent's deep Q network parameters

[0026] Compared with the prior art, the present invention has the following significant effects:

[0027] 1. The present invention selects the key length and working mode for the AES algorithm by analyzing the vehicle position, task type, task completion efficiency and attacker's attack situation, thereby improving the vehicle's anti-attack capability and reducing the delay of the communication process and the encryption and decryption process.

[0028] 2. The present invention effectively estimates the probability of successful attack by comprehensively considering the attacker's attack frequency and attack intensity, and measures the security level of the environment by the number of attacks launched, thereby improving the security of the system.

[0029] 3. The present invention considers improving the overall collaborative ability of the system by using a multi-agent reinforcement learning algorithm. DETAILED DESCRIPTION

[0030] In order to more clearly understand the technical content of the present invention, the following embodiments are given in detail.

[0031] A vehicle network AES encryption method based on multi-agent reinforcement learning includes the following steps:

[0032] Step 1: Assume that there are two vehicles, a drive test unit, and an attacker who may attack the vehicle and the drive test unit in the current vehicle environment. That is, M = 2, N = 1, P = 1.

[0033] Step 2: For vehicle m, initialize the vehicle’s current position Local encryption delay Transmission delay Server-side decryption delay and the estimated number of times the attacker attacked in the last round The types of information that a vehicle may send and the corresponding message lengths are: control signal messages (50KB), navigation messages (200KB), safety service messages such as vehicle self-inspection reports (450KB), and entertainment messages such as audio and video (600KB).

[0034] Step 3: Initialize the vehicle-side deep Q network Q m (·,·; θ), initialize the learning rate a = 0.0001, the discount factor g = 0.9, the exploration rate e = 0.2, and the neural network parameters

[0035] Step 4: Vehicle m determines the mission type The length of the message to be sent to perform this task is And build local observation

[0036] Step 5: Based on local observations The vehicle uses the output value of the deep Q network to select the key length of this round of the AES algorithm and working mode Right now AES supports three key lengths: 128bit, 196bit and 256bit. The working modes include cipher block chaining mode, electronic codebook mode, cipher feedback mode, counter mode and output feedback mode, i.e. |A|=15.

[0037] Step 6: The vehicle encrypts the message to be transmitted based on the selected action and updates the encryption delay And upload it to the server. The server uses the corresponding decryption method to decrypt, and the delay is The feedback information is sent to the vehicle using the same encryption method. The overall delay during the transmission is

[0038] Step 7: Calculate the overall latency And estimate the safety level and the attacker's attack success probability Rewards are calculated from this And build experience sequence Store it in the experience replay buffer pool D m middle.

[0039] Step 8: Extract Z samples from the buffer pool, traverse each sample, use the deep Q network algorithm to estimate the cumulative return, and use the Adam optimizer to update the Q network parameters.

[0040] Step 9: Repeat steps 4-8 until the vehicle completes all local tasks within this period of time or the vehicle leaves the current network area.

[0041] The above embodiments are only preferred embodiments of the present invention and cannot be considered to limit the scope of implementation of the present invention. All equivalent changes and improvements made according to the scope of application of the present invention should still fall within the scope of the patent coverage of the present invention. The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A vehicle network AES encryption method based on multi-agent reinforcement learning, characterized in that: The following steps are involved: (1) Set up a vehicle networking environment, where there are M vehicles in total. For the mth vehicle, 1≤m≤M, deploy a deep neural network; (2) The vehicle executes the task and determines the message type and length for executing the task; (3) Dynamically determine key length and operating mode based on local observations; (4) Encrypt the message and upload it to the server; (5) The server decrypts and sends feedback information; (6) Estimate the number of attacks and security level, and calculate the communication reward; (7) Construct and store experience sequences and update deep Q network parameters; (8) Repeat steps 2 to 7 until the task is completed.

2. The AES encryption method for Internet of Vehicles based on multi-agent reinforcement learning as claimed in claim 1, characterized in that: In step (1), assume that there are M vehicles, N road test units, and P attackers who can launch attacks on the vehicle or server in the current Internet of Vehicles environment. For the mth vehicle, 1≤m≤M, a deep neural network Q is deployed that can select an encryption strategy based on the current observation. m (·,·; θ), the parameters of the deep neural network are initialized as 3. The AES encryption method for Internet of Vehicles based on multi-agent reinforcement learning as claimed in claim 1, characterized in that: In step (2), in each time interval k, k ≥ 1, the vehicle may perform different types of tasks and needs to send messages to the server and receive messages from the server to interact; For the mth vehicle, assume that the task type performed in the kth time interval is The length of the message to be sent to perform this task is The unit is bytes; the attacker p determines the target vehicle to be attacked in the kth time interval and estimates the type of task to be performed by the target vehicle. Based on the estimated task type, the frequency of attack in the kth time interval is determined and strength 4. The AES encryption method for Internet of Vehicles based on multi-agent reinforcement learning as claimed in claim 3, characterized in that: In step (3), local observation Consider the vehicle’s current position The type of task executed in the kth time interval and the length of the ciphertext message to be sent Local encryption delay in the k-1th time interval Transmission delay Server-side decryption delay and the estimated number of attacks by the attacker in the k-1th time interval Right now 5. The AES encryption method for Internet of Vehicles based on multi-agent reinforcement learning as claimed in claim 3, characterized in that: In step (4), based on local observations, the vehicle selects the action to be performed within the kth time interval Includes the key length used for encryption during the kth time interval and working mode Right now A is all possible combinations of key length and encryption mode. When selecting an action to execute, there is a probability of e for random selection and a probability of 1-e for selecting the action with the greatest value, that is, The vehicle encrypts the message according to the selected action and obtains the local encryption delay at this moment. And upload the ciphertext to the server.

6. The AES encryption method for Internet of Vehicles based on multi-agent reinforcement learning as claimed in claim 5, characterized in that: In step (5): the server uses the corresponding decryption method to obtain the plaintext for the received ciphertext, and the delay is The possible feedback information is sent to the vehicle through the same encryption method. The overall delay during the transmission process is 7. The AES encryption method for Internet of Vehicles based on multi-agent reinforcement learning as claimed in claim 6, characterized in that: In step (6): Based on the received information, the vehicle estimates the number of times the attacker launches attacks in the kth time interval The security level of the communication process in the kth time interval is And calculate the overall delay in the kth time interval And based on the frequency and intensity of the attacker's attack, estimate the probability of attack success Based on the above performance, calculate the reward for this round of communication Among them, ω1, ω2, ω3 are the weight parameters corresponding to the performance.

8. The AES encryption method for Internet of Vehicles based on multi-agent reinforcement learning as claimed in claim 7, characterized in that: In step (7): construct the experience sequence And store it in the experience playback buffer pool D m middle, Replay buffer pool D from experience m Randomly sample Z experiences and construct a sample And use optimization algorithm to update the agent's deep Q network parameters

Citation Information

Patent Citations

  • Computing task intelligent unloading and safety guarantee method in 5G edge computing environment

    CN113377547A

  • Feature adaptive reinforcement learning DDoS attack elimination method and system

    CN110958135A

  • Rapid encryption and decryption-oriented Internet of Vehicles key management method based on reinforcement learning

    CN112261024A

  • Map-assisted Internet of Vehicles anti-interference communication method based on reinforcement learning

    CN114826449A

  • Internet of vehicles edge resource allocation method based on federal multi-agent reinforcement learning

    CN114980123A

Cited By

  • Security encryption control method and system for space-ground integrated power information network, and storage medium

    CN119364350A

  • Method, device and system for protecting security of agent user data, medium, electronic equipment and program product

    CN120602156A

  • Method and device for processing medical health care data

    CN120951353A

  • Key dynamic distribution method and system for intelligent network connection vehicle

    CN121547170A

  • A method and system for dynamic key distribution for intelligent connected vehicles

    CN121547170B