A zero-trust based Internet of Vehicles security access control method and system

By adopting a zero-trust-based security access control method in the Internet of Vehicles system to dynamically adjust the access permissions of vehicle terminals and user terminals, the problem of data leakage in traditional vehicle data access authentication methods is solved, and higher security and data are achieved. accuracy.

CN118433715BActive Publication Date: 2024-09-24CHINA AUTOMOBILE ZHILIAN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410874747.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-02
Publication Date
2024-09-24
Estimated Expiration
2044-07-02

AI Technical Summary

Technical Problem

Traditional vehicle data access authentication methods have the problem of being attacked and tampered with, leading to data leakage, affecting road safety and personal safety.

Method used

Using a zero-trust based Internet of Vehicles security access control method, the policy authorization server is used to register, data collection, permission adjustment and access behavior control for vehicle terminals and user terminals, and dynamically adjust access permissions to ensure data security.

Benefits of technology

The security of vehicle data is improved. Through dynamic permission adjustment and the use of intermediate result data, private data leakage is avoided, and the accuracy and real-time nature of the data are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118433715B
    Figure CN118433715B
Patent Text Reader

Abstract

The present invention provides a method and system for controlling secure access to an Internet of Vehicles based on zero trust, wherein a policy authorization server obtains the access behavior of user terminals and roadside terminals to vehicle resource data, and dynamically adjusts the access rights of the user terminals and roadside terminals to vehicle resource data; the present invention can improve the security of vehicle resource data and improve the overall operating efficiency of the system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of vehicle network security access control, and in particular to a vehicle network security access control method and system based on zero trust. Background Art

[0002] With the continuous development of Internet of Vehicles technology, the application demand for vehicle data from various devices and applications has increased, and various types of data collected by vehicles need to be continuously uploaded to the cloud. However, the various types of data collected by vehicles include a variety of private data or privacy data. The security of these data is an issue that is increasingly valued in the field of Internet of Vehicles.

[0003] Traditional authentication methods for data access have the problem of being attacked and tampered with, resulting in data leakage. The leakage of vehicle-related data will have a great impact on road safety and personal safety. Therefore, how to further improve the security of vehicle data is an urgent problem to be solved.

[0004] Based on this, the present invention proposes a zero-trust based Internet of Vehicles security access control method and system. Summary of the invention

[0005] In view of the above problems, the present invention proposes a zero-trust based Internet of Vehicles security access control method, which specifically includes the following steps:

[0006] S1. The first vehicle terminal completes registration in the policy authorization server;

[0007] S2. The first vehicle terminal is set every preset time Sending vehicle resource data to the policy authorization server;

[0008] The vehicle resource data includes: vehicle VIN number, vehicle brand, vehicle model, current time, vehicle location, vehicle driving status, vehicle driving speed, vehicle current fuel consumption, vehicle current mileage, vehicle current fuel level, vehicle current driving range, vehicle outdoor temperature, vehicle indoor temperature, vehicle battery level, vehicle sensor status, vehicle fault code status, vehicle road conditions, number of pedestrians around the vehicle, and driver behavior data in the vehicle;

[0009] S3. The policy authorization server updates the intermediate result data set after collecting the latest vehicle resource data of all vehicle terminals each time;

[0010] S4. The policy authorization server is set every preset time Update the access behavior data of the user terminal and the roadside terminal, and adjust the access rights of the above terminals to the data in the policy authorization server according to the access behavior data;

[0011] Said ;

[0012] S5. The policy authorization server controls the access behavior of the user terminal and the roadside terminal according to the adjusted access rights.

[0013] Furthermore, the step S1 specifically includes:

[0014] S11. The first vehicle terminal sends a registration request to the policy authorization server;

[0015] The data in the registration request includes the VIN number of the first vehicle terminal;

[0016] S12. After receiving the registration request, the policy authorization server determines the correctness of the VIN number; if correct, it feeds back a registration permission instruction to the first vehicle terminal; otherwise, it feeds back a registration disallowance instruction to the first vehicle terminal;

[0017] S13. When the first vehicle terminal receives the registration permission instruction fed back by the policy authorization server, the first vehicle terminal sends the vehicle information of the first vehicle to the policy authorization server;

[0018] The vehicle information includes: the VIN number, engine number, brand name, and vehicle model of the first vehicle;

[0019] S14. After receiving the vehicle information of the first vehicle, the policy authorization server stores the vehicle information in the vehicle resource information database in the policy authorization server, and feeds back a registration success instruction and the next time to collect vehicle resource data to the first vehicle terminal.

[0020] Furthermore, the step S2 specifically includes:

[0021] After receiving the registration success instruction and the next time to collect vehicle resource data from the policy authorization server, the first vehicle terminal starts at the next time to collect vehicle resource data and collects the vehicle resource data every preset time. The vehicle resource data is sent to the policy authorization server.

[0022] Furthermore, the step S3 specifically includes the following steps:

[0023] S31. The policy authorization server is at the current moment After collecting the vehicle resource data of all vehicle terminals registered with the policy authorization server, storing the vehicle resource data in a vehicle resource data set;

[0024] The vehicle resource data set is stored in a database in a policy authorization server;

[0025] The data format of each data entry in the vehicle resource data set is: vehicle VIN number, vehicle brand, vehicle model, current time, vehicle location, vehicle driving status, vehicle driving speed, vehicle current fuel consumption, vehicle current mileage, vehicle current fuel level, vehicle current driving range, vehicle outdoor temperature, vehicle indoor temperature, vehicle battery level, vehicle sensor status, vehicle fault code status, vehicle road conditions, number of pedestrians around the vehicle, and driver behavior data in the vehicle;

[0026] Among them, each collection moment of a vehicle corresponds to a data entry;

[0027] The road conditions where the vehicle is located include: maintenance, accident, and none;

[0028] The specific format of the status of each sensor of the vehicle is: };

[0029] Said is the nth vehicle sensor state, where n is the total number of vehicle sensors; the vehicle sensor state includes: normal, abnormal;

[0030] The specific format of the vehicle fault code status is: };

[0031] Said is the mth vehicle fault code state, m is the total number of vehicle fault codes; the vehicle fault code state includes: normal, abnormal;

[0032] S32. The policy authorization server calculates and obtains the average fuel consumption value corresponding to each vehicle model, the average battery power value corresponding to each vehicle model, the abnormal sensor status proportion corresponding to each vehicle model, the abnormal fault code status proportion corresponding to each vehicle model, the road status of each road at the current time, and the number of pedestrians on each road at the current time; and uses the above data as the updated intermediate result data set;

[0033] The specific calculation method of the average fuel consumption value corresponding to each vehicle model is as follows:

[0034] S3211. For the fuel consumption values ​​in all data entries of all vehicles corresponding to a vehicle model, calculate the average fuel consumption values ​​in all data entries;

[0035] S3212. For all vehicle models, step S3211 is executed to form the average fuel consumption value corresponding to each vehicle model { };

[0036] in is the average fuel consumption value corresponding to the hth vehicle model; h is the total number of vehicle models;

[0037] The specific calculation method for the average battery power value corresponding to each vehicle model is as follows:

[0038] S3221. For the vehicle battery power in all data entries of all vehicles corresponding to a vehicle model, calculate the average value of the vehicle battery power in all data entries;

[0039] S3222. For all vehicle models, step S3221 is executed to form the average battery power value corresponding to each vehicle model { };

[0040] in, is the average value of the vehicle battery power corresponding to the h-th vehicle model; h is the total number of vehicle models;

[0041] The specific calculation method of the abnormal sensor status ratio corresponding to each vehicle model is as follows:

[0042] S3231. For all vehicles of a vehicle model, obtain the sensor status data of all vehicles {{ }、{ }…{ }…{ }};

[0043] in, is the state of the jth sensor of the i-th vehicle in the vehicle model; z is the total number of vehicles corresponding to the vehicle model; n is the total number of sensors in the vehicle; the state of the sensor is 0 or 1;

[0044] Among them, for the i-th vehicle in the vehicle model, when the state of the j-th sensor in all the data entries of the i-th vehicle is abnormal, the corresponding Set to 1, otherwise the vehicle corresponding Set to 0;

[0045] S3232. Calculate the abnormal sensor status ratio corresponding to the vehicle model { };

[0046] in, ; is the abnormal status ratio of the jth sensor corresponding to the vehicle model;

[0047] S3233. For all vehicle models, steps S3231 to S3232 are executed to obtain the abnormal sensor status ratio corresponding to each vehicle model. }、{ }…{{ }}}

[0048] in,{ } is the abnormal sensor status ratio corresponding to the h-th vehicle model; h is the total number of vehicle models; n is the total number of vehicle sensors;

[0049] The specific calculation method of the abnormal fault code status ratio corresponding to each vehicle model is as follows:

[0050] S3241. For all vehicles in a vehicle model, obtain the fault code status data of all vehicles {{ }、{ }…{ }…{ }};

[0051] in, is the state of the jth fault code of the i-th vehicle in the vehicle model; z is the total number of vehicles corresponding to the vehicle model; m is the total number of fault codes in the vehicle; the state of the fault code is 0 or 1;

[0052] Among them, for the i-th vehicle in the vehicle model, when the state of the j-th fault code in all the data entries of the i-th vehicle is abnormal, the corresponding Set to 1, otherwise the vehicle corresponding Set to 0;

[0053] S3242. Calculate the abnormal fault code status ratio corresponding to the vehicle model { };

[0054] in, ; is the abnormal status ratio of the jth fault code corresponding to the vehicle model;

[0055] S3243. For all vehicle models, steps S3241 to S3242 are executed to obtain the abnormal sensor status ratio corresponding to each vehicle model. }、{ }…{{ }}};

[0056] in,{ } is the abnormal fault code status ratio corresponding to the h-th vehicle model; h is the total number of vehicle models; m is the total number of vehicle fault codes;

[0057] The specific calculation method of the road conditions of each road at the current moment is:

[0058] S3251 policy authorization server based on the current moment of each vehicle's vehicle location collected, statistics of each road in the city contains the vehicle speed of the vehicle;

[0059] S3252. For all vehicles on a road, calculate the average vehicle speed of all vehicles, and determine the first road state of the current road based on the average value; specifically: when the average value is greater than a preset threshold When the average value is less than the preset threshold value, the road is judged to be unobstructed; when the average value is less than the preset threshold value When the road is judged to be congested; when the ≤Average value≤ When , the road is judged to be in a slow-moving state;

[0060] The preset threshold and It can be set flexibly according to actual experience.

[0061] For all vehicles on a road, the road conditions of all vehicles are counted, and when the road condition corresponding to any vehicle on the road is maintenance or accident, the second road state of the road at the current moment is set to maintenance or accident;

[0062] {the first road state of the current road, the second road state of the current road} is used as the road state of the current road at the current moment;

[0063] S3253. For each road in the city, step S3252 is executed to obtain the road status of different roads at the current moment;

[0064] The method for calculating the number of pedestrians on each road at the current moment is specifically as follows:

[0065] S3261. For all vehicles on a road, obtain the number of pedestrians around each vehicle at the current moment;

[0066] Calculate the average number of pedestrians around all vehicles on the road as the number of pedestrians on the road at the current moment;

[0067] S3262. For each road, execute step S3261 to obtain the number of pedestrians on different roads at the current moment.

[0068] The present invention also proposes a zero-trust based Internet of Vehicles security access control system, wherein the system executes the above-mentioned zero-trust based Internet of Vehicles security access control method.

[0069] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented in accordance with the contents of the specification. In order to make the above description and other purposes, features and advantages of the present invention more obvious and easy to understand, the preferred embodiments are specifically cited and described in detail as follows. BRIEF DESCRIPTION OF THE DRAWINGS

[0070] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0071] Figure 1 The figure is a flowchart of a zero-trust based Internet of Vehicles security access control method. DETAILED DESCRIPTION

[0072] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0073] In the description of the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be connected, detachably connected, or integrated; it can be mechanically connected or electrically connected; it can be directly connected or indirectly connected through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0074] Embodiment 1

[0075] The present invention proposes a zero-trust based Internet of Vehicles security access control method, which specifically includes the following steps:

[0076] S1. The first vehicle terminal completes registration in the policy authorization server;

[0077] S2. The first vehicle terminal is set every preset time Sending vehicle resource data to the policy authorization server;

[0078] The vehicle resource data includes: vehicle VIN number, vehicle brand, vehicle model, current time, vehicle location, vehicle driving status, vehicle driving speed, vehicle current fuel consumption, vehicle current mileage, vehicle current fuel level, vehicle current driving range, vehicle outdoor temperature, vehicle indoor temperature, vehicle battery level, vehicle sensor status, vehicle fault code status, vehicle road conditions, number of pedestrians around the vehicle, and driver behavior data in the vehicle;

[0079] S3. The policy authorization server updates the intermediate result data set after collecting the latest vehicle resource data of all vehicle terminals each time;

[0080] S4. The policy authorization server is set every preset time Update the access behavior data of the user terminal and the roadside terminal, and adjust the access rights of the above terminals to the data in the policy authorization server according to the access behavior data;

[0081] Said ;

[0082] S5. The policy authorization server controls the access behavior of the user terminal and the roadside terminal according to the adjusted access rights.

[0083] Furthermore, the step S1 specifically includes:

[0084] S11. The first vehicle terminal sends a registration request to the policy authorization server;

[0085] The data in the registration request includes the VIN number of the first vehicle terminal;

[0086] S12. After receiving the registration request, the policy authorization server determines the correctness of the VIN number; if correct, it feeds back a registration permission instruction to the first vehicle terminal; otherwise, it feeds back a registration disallowance instruction to the first vehicle terminal;

[0087] S13. When the first vehicle terminal receives the registration permission instruction fed back by the policy authorization server, the first vehicle terminal sends the vehicle information of the first vehicle to the policy authorization server;

[0088] The vehicle information includes: the VIN number, engine number, brand name, and vehicle model of the first vehicle;

[0089] S14. After receiving the vehicle information of the first vehicle, the policy authorization server stores the vehicle information in the vehicle resource information database in the policy authorization server, and feeds back a registration success instruction and the next time to collect vehicle resource data to the first vehicle terminal.

[0090] Furthermore, the step S2 specifically includes:

[0091] After receiving the registration success instruction and the next time to collect vehicle resource data from the policy authorization server, the first vehicle terminal starts at the next time to collect vehicle resource data and collects the vehicle resource data every preset time. The vehicle resource data is sent to the policy authorization server.

[0092] Furthermore, the step S3 specifically includes the following steps:

[0093] S31. The policy authorization server is at the current moment After collecting the vehicle resource data of all vehicle terminals registered with the policy authorization server, storing the vehicle resource data in a vehicle resource data set;

[0094] The vehicle resource data set is stored in a database in a policy authorization server;

[0095] The data format of each data entry in the vehicle resource data set is: vehicle VIN number, vehicle brand, vehicle model, current time, vehicle location, vehicle driving status, vehicle driving speed, vehicle current fuel consumption, vehicle current mileage, vehicle current fuel level, vehicle current driving range, vehicle outdoor temperature, vehicle indoor temperature, vehicle battery level, vehicle sensor status, vehicle fault code status, vehicle road conditions, number of pedestrians around the vehicle, and driver behavior data in the vehicle;

[0096] Among them, each collection moment of a vehicle corresponds to a data entry;

[0097] The road conditions where the vehicle is located include: maintenance, accident, and none;

[0098] The specific format of the status of each sensor of the vehicle is: };

[0099] Said is the nth vehicle sensor state, where n is the total number of vehicle sensors; the vehicle sensor state includes: normal, abnormal;

[0100] The specific format of the vehicle fault code status is: };

[0101] Said is the mth vehicle fault code state, m is the total number of vehicle fault codes; the vehicle fault code state includes: normal, abnormal;

[0102] S32. The policy authorization server calculates and obtains the average fuel consumption value corresponding to each vehicle model, the average battery power value corresponding to each vehicle model, the abnormal sensor status proportion corresponding to each vehicle model, the abnormal fault code status proportion corresponding to each vehicle model, the road status of each road at the current time, and the number of pedestrians on each road at the current time; and uses the above data as the updated intermediate result data set;

[0103] The specific calculation method of the average fuel consumption value corresponding to each vehicle model is as follows:

[0104] S3211. For the fuel consumption values ​​in all data entries of all vehicles corresponding to a vehicle model, calculate the average fuel consumption values ​​in all data entries;

[0105] S3212. For all vehicle models, step S3211 is executed to form the average fuel consumption value corresponding to each vehicle model { };

[0106] in is the average fuel consumption value corresponding to the hth vehicle model; h is the total number of vehicle models;

[0107] The specific calculation method for the average battery power value corresponding to each vehicle model is as follows:

[0108] S3221. For the vehicle battery power in all data entries of all vehicles corresponding to a vehicle model, calculate the average value of the vehicle battery power in all data entries;

[0109] S3222. For all vehicle models, step S3221 is executed to form the average battery power value corresponding to each vehicle model { };

[0110] in, is the average value of the vehicle battery power corresponding to the h-th vehicle model; h is the total number of vehicle models;

[0111] The specific calculation method of the abnormal sensor status ratio corresponding to each vehicle model is as follows:

[0112] S3231. For all vehicles of a vehicle model, obtain the sensor status data of all vehicles {{ }、{ }…{ }…{ }};

[0113] in, is the state of the jth sensor of the i-th vehicle in the vehicle model; z is the total number of vehicles corresponding to the vehicle model; n is the total number of sensors in the vehicle; the state of the sensor is 0 or 1;

[0114] Among them, for the i-th vehicle in the vehicle model, when the state of the j-th sensor in all the data entries of the i-th vehicle is abnormal, the corresponding Set to 1, otherwise the vehicle corresponding Set to 0;

[0115] S3232. Calculate the abnormal sensor status ratio corresponding to the vehicle model { };

[0116] in, ; is the abnormal status ratio of the jth sensor corresponding to the vehicle model;

[0117] S3233. For all vehicle models, steps S3231 to S3232 are executed to obtain the abnormal sensor status ratio corresponding to each vehicle model. }、{ }…{{ }}}

[0118] in,{ } is the abnormal sensor status ratio corresponding to the h-th vehicle model; h is the total number of vehicle models; n is the total number of vehicle sensors;

[0119] The specific calculation method of the abnormal fault code status ratio corresponding to each vehicle model is as follows:

[0120] S3241. For all vehicles in a vehicle model, obtain the fault code status data of all vehicles {{ }、{ }…{ }…{ }};

[0121] in, is the state of the jth fault code of the i-th vehicle in the vehicle model; z is the total number of vehicles corresponding to the vehicle model; m is the total number of fault codes in the vehicle; the state of the fault code is 0 or 1;

[0122] Among them, for the i-th vehicle in the vehicle model, when the state of the j-th fault code in all the data entries of the i-th vehicle is abnormal, the corresponding Set to 1, otherwise the vehicle corresponding Set to 0;

[0123] S3242. Calculate the abnormal fault code status ratio corresponding to the vehicle model { };

[0124] in, ; is the abnormal status ratio of the jth fault code corresponding to the vehicle model;

[0125] S3243. For all vehicle models, steps S3241 to S3242 are executed to obtain the abnormal sensor status ratio corresponding to each vehicle model. }、{ }…{{ }}};

[0126] in,{ } is the abnormal fault code status ratio corresponding to the h-th vehicle model; h is the total number of vehicle models; m is the total number of vehicle fault codes;

[0127] The specific calculation method of the road conditions of each road at the current moment is:

[0128] S3251 policy authorization server based on the current moment of each vehicle's vehicle location collected, statistics of each road in the city contains the vehicle speed of the vehicle;

[0129] S3252. For all vehicles on a road, calculate the average vehicle speed of all vehicles, and determine the first road state of the current road based on the average value; specifically: when the average value is greater than a preset threshold When the average value is less than the preset threshold value, the road is judged to be unobstructed; when the average value is less than the preset threshold value When the road is judged to be congested; when the ≤Average value≤ When , the road is judged to be in a slow-moving state;

[0130] For all vehicles on a road, the road conditions of all vehicles are counted, and when the road condition corresponding to any vehicle on the road is maintenance or accident, the second road state of the road at the current moment is set to maintenance or accident;

[0131] {the first road state of the current road, the second road state of the current road} is used as the road state of the current road at the current moment;

[0132] S3253. For each road in the city, step S3252 is executed to obtain the road status of different roads at the current moment;

[0133] The method for calculating the number of pedestrians on each road at the current moment is specifically as follows:

[0134] S3261. For all vehicles on a road, obtain the number of pedestrians around each vehicle at the current moment;

[0135] Calculate the average number of pedestrians around all vehicles on the road as the number of pedestrians on the road at the current moment;

[0136] S3262. For each road, execute step S3261 to obtain the number of pedestrians on different roads at the current moment.

[0137] Furthermore, the step S4 comprises the following steps:

[0138] S401. Before the user terminal obtains access rights to data in the policy authorization server, the user terminal submits a registration request to the policy authorization server;

[0139] The registration request includes: user identity information, vehicle VIN number, vehicle brand, and vehicle model;

[0140] The user identity information includes: any one of the user ID number, user fingerprint, and user face image;

[0141] S402. The policy authorization server receives the registration request and searches the vehicle resource data set for the vehicle VIN number; if so, the policy authorization server sends a successful registration instruction to the user terminal and executes step S403; if not, a failed registration instruction is sent back to the user terminal;

[0142] S403. When a new vehicle is added to the user terminal, the user terminal again submits a registration request for the added vehicle to the policy authorization server and executes step S402; when there is no new vehicle added to the user terminal, execute step S404;

[0143] S404. The policy authorization server opens a first access permission to the user terminal;

[0144] The accessible data corresponding to the first access right includes: an intermediate result data set, the latest data entry corresponding to the VIN number of the vehicle successfully registered by the user terminal;

[0145] S405. The policy authorization server is set every preset time Collect statistics on user terminal access behavior data;

[0146] The access behavior data is the current statistical time With the previous statistical moment The access behavior data of the user terminal between time periods; wherein, ;

[0147] The access behavior data includes a plurality of access behavior log entries, and the specific data format of the access behavior log entries is: user terminal identification, access time, VIN number of the access vehicle, brand of the access vehicle, vehicle model of the access vehicle, and data type of the access;

[0148] The accessed data type is: any parameter type in the intermediate result data set and the latest data entry corresponding to the vehicle VIN number successfully registered by the user terminal;

[0149] S406. The policy authorization server calculates and The access time difference between each two adjacent access behavior log entries within the time period, and the average value of each of the time differences is calculated;

[0150] S407. When the average value is less than or equal to the preset threshold When the user's access permission is set to the second access permission, the user's access permission is adjusted to the second access permission; otherwise, step S408 is executed;

[0151] The second access permission is to restrict the user terminal from accessing all data types;

[0152] S408. When the average value is greater than the preset threshold and is less than the preset threshold When the policy server statistics and The first, second, and third percentages of the data types accessed in the access behavior log entries within the time period;

[0153] The first proportion, the second proportion, and the third proportion of the accessed data type are calculated as follows:

[0154] When the average value is greater than or equal to the preset threshold When , execute step S410;

[0155] S4081. Statistics and The type of data accessed in the access behavior log entries during the time period { };

[0156] in is the data type accessed by the rth access behavior log entry; r is and The number of access behavior log entries within the time period;

[0157] S4082. } to remove duplicate data types and obtain a set of data types after removal of duplicates;

[0158] S4083. Count the number of data types belonging to the intermediate results in the deduplicated data type set ; Count the number of data types belonging to the latest data entry in the deduplicated data type set ; Count the total number of data types in the deduplicated data type set ;

[0159] S4084. Calculate the first proportion = ; The second proportion = ; The third proportion = ;

[0160] Where F = the number of data types of the intermediate results + the number of data types of the latest data entries;

[0161] S409. When the third proportion is greater than the preset threshold When the first proportion is greater than the second proportion, the policy authorization server reduces the preset time for the user terminal to access the behavior data. , so that the reduced Equal to before reduction The access rights of the user terminal are not changed;

[0162] When the third proportion is greater than or equal to the preset threshold When the first proportion is less than or equal to the second proportion, the policy authorization server sets the access right of the user terminal to the third access right; the third access right is that the user terminal can only access the intermediate result data set;

[0163] When the third proportion is less than the preset threshold When the policy authorization server sets the access permission of the user terminal to the second access permission;

[0164] S410. Set the access permission of the user terminal to the fourth access permission;

[0165] The accessible data corresponding to the fourth access right includes: an intermediate result data set, all data entries corresponding to the vehicle VIN number successfully registered by the user terminal.

[0166] Furthermore, the step S4 further includes the following steps:

[0167] S41A. Before the roadside terminal obtains access rights to the data in the policy authorization server, the roadside terminal submits a registration request to the policy authorization server;

[0168] The registration request includes: roadside terminal ID and roadside terminal location;

[0169] S42B. After receiving the registration request, the policy authorization server determines the legitimacy of the registration request; when the registration request is legitimate, the policy authorization server feedbacks a successful registration instruction to the roadside terminal; otherwise, the policy authorization server feedbacks a registration failure instruction to the roadside terminal;

[0170] The policy authorization server stores the legal information of the roadside terminal, wherein the legal information includes: the ID of the roadside terminal, the location of the roadside terminal, and the status of the roadside terminal;

[0171] The status of the roadside terminal includes: registered, unregistered;

[0172] The determining of the legitimacy of the registration request is specifically: when the roadside terminal ID in the received registration request exists in the legal information of the roadside terminal stored in the policy authorization server and the status of the roadside terminal in the legal information is registered, determining that the registration request is legal;

[0173] S42C policy authorization server to open the fifth access rights to the roadside terminal;

[0174] The accessible data corresponding to the fifth access right includes: the vehicle speed of all vehicles on the road where the roadside terminal is located, the state of the road where the roadside terminal is located at the current moment in the intermediate result data set, and the number of pedestrians on the road where the roadside terminal is located at the current moment;

[0175] S42D. The policy authorization server is set every preset time Collect statistics on access behavior of roadside terminals;

[0176] The access behavior data of the roadside terminal is the current statistical time With the previous statistical moment The access behavior data of the roadside terminal between time periods; wherein, ;

[0177] The access behavior data includes a plurality of roadside terminal access behavior log entries, and the specific data format of the roadside terminal access behavior log entries is: roadside terminal ID, access time, VIN number of the access vehicle, brand of the access vehicle, vehicle model of the access vehicle, access data type, and distance between the roadside terminal and the access vehicle;

[0178] The distance between the roadside terminal and the visited vehicle is calculated by the policy authorization server according to the position of the roadside terminal and the vehicle position of the visited vehicle;

[0179] S42E. The policy authorization server determines at time and In all roadside terminal access behavior log entries within the time period, the distance between the roadside terminal and the access vehicle is less than or equal to the preset distance Is the number greater than the distance between the roadside terminal and the access vehicle greater than the preset distance If yes, the access right of the roadside terminal is not changed; if no, the access right of the roadside terminal is adjusted to the sixth access right;

[0180] The accessible data corresponding to the sixth access right includes: the distance from the roadside terminal to the road where the roadside terminal is located is less than or equal to the preset distance The vehicle speed of the vehicle, the state of the road where the roadside terminal is located at the current moment in the intermediate result data set, and the number of pedestrians on the road where the roadside terminal is located at the current moment.

[0181] Embodiment 2

[0182] The present invention also proposes a zero-trust based Internet of Vehicles security access control system, which executes the method described in Example 1.

[0183] The beneficial effects of the invention are as follows:

[0184] 1. The present invention dynamically adjusts the access rights of user terminals and roadside terminals according to their access behaviors to vehicle resource data, and adopts zero-trust technology to improve the security of vehicle resource data;

[0185] 2. The present invention sets the intermediate result data so that the user terminal and the roadside terminal can directly obtain the intermediate result data, which saves the computing power of the user terminal and the roadside terminal and improves the data result acquisition efficiency of the user terminal and the roadside terminal; at the same time, the intermediate result data, as the statistical data of the vehicle resource data, can avoid the private data in the vehicle resource data and improve the security of the vehicle resource data;

[0186] 3. The present invention realizes the dynamic calculation and adjustment of intermediate result data, thus improving the accuracy and real-time performance of the data;

[0187] 4. The present invention sets multiple access rights and dynamically adjusts the access rights based on the average access time interval of the user terminal and the roadside terminal, the type of access data, the proportion of the access data type, and the distance between the roadside terminal and the access vehicle, thereby improving the accuracy of the policy authorization server's adjustment of the access rights for the user terminal and the roadside terminal.

[0188] The above is only a preferred specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.

Claims

1. A zero-trust based Internet of Vehicles security access control method, characterized in that: The method specifically comprises the following steps: S1. The first vehicle terminal completes registration in the policy authorization server; S2. The first vehicle terminal is set every preset time Sending vehicle resource data to the policy authorization server; The vehicle resource data includes: vehicle VIN number, vehicle brand, vehicle model, current time, vehicle location, vehicle driving status, vehicle driving speed, vehicle current fuel consumption, vehicle current mileage, vehicle current fuel level, vehicle current driving range, vehicle outdoor temperature, vehicle indoor temperature, vehicle battery level, vehicle sensor status, vehicle fault code status, vehicle road conditions, number of pedestrians around the vehicle, and driver behavior data in the vehicle; S3. The policy authorization server updates the intermediate result data set after collecting the latest vehicle resource data of all vehicle terminals each time; The updated intermediate result data set includes the average fuel consumption value corresponding to each vehicle model, the average battery power value corresponding to each vehicle model, the abnormal sensor status proportion corresponding to each vehicle model, the abnormal fault code status proportion corresponding to each vehicle model, the road status of each road at the current moment, and the number of pedestrians on each road at the current moment, calculated by the policy authorization server; S4. The policy authorization server is set every preset time Updating the access behavior data of the user terminal and the roadside terminal, and adjusting the access rights of the user terminal and the roadside terminal to the data in the policy authorization server according to the access behavior data; Said ; Step S4 includes the following steps: S401. Before the user terminal obtains access rights to data in the policy authorization server, the user terminal submits a registration request to the policy authorization server; The registration request includes: user identity information, vehicle VIN number, vehicle brand and vehicle model; The user identity information includes: any one of the user ID number, user fingerprint, and user face image; S402. The policy authorization server receives the registration request and searches the vehicle resource data set for the vehicle VIN number; if so, the policy authorization server sends a successful registration instruction to the user terminal and executes step S403; if not, a failed registration instruction is sent back to the user terminal; S403. When a new vehicle is added to the user terminal, the user terminal again submits a registration request for adding a vehicle to the policy authorization server and executes step S402; when there is no new vehicle added to the user terminal, execute step S404; S404. The policy authorization server opens a first access permission to the user terminal; The accessible data corresponding to the first access right includes: an intermediate result data set, the latest data entry corresponding to the VIN number of the vehicle successfully registered by the user terminal; S405. The policy authorization server is set every preset time Collect statistics on user terminal access behavior data; The access behavior data is the current statistical time With the previous statistical moment The access behavior data of the user terminal between time periods; wherein, ; The access behavior data includes a plurality of access behavior log entries, and the specific data format of the access behavior log entries is: user terminal identification, access time, VIN number of the access vehicle, brand of the access vehicle, vehicle model of the access vehicle, and data type of the access; The accessed data type is: any parameter type in the intermediate result data set and the latest data entry corresponding to the vehicle VIN number successfully registered by the user terminal; S406. The policy authorization server calculates and The access time difference between each two adjacent access behavior log entries within the time period, and the average value of each of the time differences is calculated; S407. When the average value is less than or equal to the preset threshold When the user's access permission is set to the second access permission, the user's access permission is adjusted to the second access permission; otherwise, step S408 is executed; The second access permission is to restrict the user terminal from accessing all data types; S408. When the average value is greater than the preset threshold and is less than the preset threshold When the policy server statistics and The first, second, and third percentages of the data types accessed in the access behavior log entries within the time period; When the average value is greater than or equal to the preset threshold When , execute step S410; The preset threshold and Can be flexibly set based on experience; The first proportion, the second proportion, and the third proportion of the accessed data type are calculated as follows: S4081. Statistics and The type of data accessed in the access behavior log entries during the time period { }; in is the data type accessed by the rth access behavior log entry; r is and The number of access behavior log entries within the time period; S4082. } to remove duplicate data types and obtain a set of data types after removal of duplicates; S4083. Count the number of data types belonging to the intermediate results in the deduplicated data type set ; Count the number of data types belonging to the latest data entry in the deduplicated data type set ; Count the total number of data types in the deduplicated data type set ; S4084. Calculate the first proportion = ; The second proportion = ; The third proportion = ; Where F = the number of data types of the intermediate results + the number of data types of the latest data entries; S409. When the third proportion is greater than the preset threshold When the first proportion is greater than the second proportion, the policy authorization server reduces the preset time for the user terminal to access the behavior data. , so that the reduced Equal to before reduction The access rights of the user terminal are not changed; When the third proportion is greater than or equal to the preset threshold When the first proportion is less than or equal to the second proportion, the policy authorization server sets the access right of the user terminal to the third access right; the third access right is that the user terminal can only access the intermediate result data set; When the third proportion is less than the preset threshold When the policy authorization server sets the access permission of the user terminal to the second access permission; S410. Set the access permission of the user terminal to the fourth access permission; The accessible data corresponding to the fourth access right includes: an intermediate result data set, all data entries corresponding to the vehicle VIN number successfully registered by the user terminal; Step S4 also includes the following steps: S41A. Before the roadside terminal obtains access rights to the data in the policy authorization server, the roadside terminal submits a registration request to the policy authorization server; The registration request includes: roadside terminal ID and roadside terminal location; S42B. After receiving the registration request, the policy authorization server determines the legitimacy of the registration request; when the registration request is legitimate, the policy authorization server feedbacks a successful registration instruction to the roadside terminal; otherwise, the policy authorization server feedbacks a registration failure instruction to the roadside terminal; The policy authorization server stores the legal information of the roadside terminal, wherein the legal information includes: the ID of the roadside terminal, the location of the roadside terminal and the status of the roadside terminal; The status of the roadside terminal includes: registered, unregistered; The determining of the legitimacy of the registration request is specifically: when the roadside terminal ID in the received registration request exists in the legal information of the roadside terminal stored in the policy authorization server and the status of the roadside terminal in the legal information is registered, determining that the registration request is legal; S42C policy authorization server to open the fifth access rights to the roadside terminal; The accessible data corresponding to the fifth access right includes: the vehicle speed of all vehicles on the road where the roadside terminal is located, the state of the road where the roadside terminal is located at the current moment in the intermediate result data set, and the number of pedestrians on the road where the roadside terminal is located at the current moment; S42D. The policy authorization server is set every preset time Collect statistics on access behavior of roadside terminals; The access behavior data of the roadside terminal is the current statistical time With the previous statistical moment The access behavior data of the roadside terminal between time periods; wherein, ; The access behavior data includes a plurality of roadside terminal access behavior log entries, and the specific data format of the roadside terminal access behavior log entries is: roadside terminal ID, access time, VIN number of the access vehicle, brand of the access vehicle, vehicle model of the access vehicle, access data type, and distance between the roadside terminal and the access vehicle; The distance between the roadside terminal and the visited vehicle is calculated by the policy authorization server according to the position of the roadside terminal and the vehicle position of the visited vehicle; S42E. The policy authorization server determines at time and In all roadside terminal access behavior log entries within the time period, the distance between the roadside terminal and the access vehicle is less than or equal to the preset distance Is the distance between the roadside terminal and the access vehicle greater than the preset distance? If yes, the access right of the roadside terminal is not changed; if no, the access right of the roadside terminal is adjusted to the sixth access right; The accessible data corresponding to the sixth access right includes: the distance between the roadside terminal and the roadside terminal is less than or equal to the preset distance The vehicle speed of the vehicle, the state of the road where the roadside terminal is located at the current moment in the intermediate result data set, and the number of pedestrians on the road where the roadside terminal is located at the current moment; S5. The policy authorization server controls the access behavior of the user terminal and the roadside terminal according to the adjusted access rights.

2. According to claim 1, a zero-trust based Internet of Vehicles security access control method is characterized in that: The step S1 specifically includes: S11. The first vehicle terminal sends a registration request to the policy authorization server; The data in the registration request includes the VIN number of the first vehicle terminal; S12. After receiving the registration request, the policy authorization server determines the correctness of the VIN number; if correct, it feeds back a registration permission instruction to the first vehicle terminal; otherwise, it feeds back a registration disallowance instruction to the first vehicle terminal; S13. When the first vehicle terminal receives the registration permission instruction fed back by the policy authorization server, the first vehicle terminal sends the vehicle information of the first vehicle to the policy authorization server; The vehicle information includes: the VIN number, engine number, brand name and vehicle model of the first vehicle; S14. After receiving the vehicle information of the first vehicle, the policy authorization server stores the vehicle information in the vehicle resource information database in the policy authorization server, and feeds back a registration success instruction and the next time to collect vehicle resource data to the first vehicle terminal.

3. A zero-trust based Internet of Vehicles security access control method according to claim 2, characterized in that: The step S2 specifically includes: After the first vehicle terminal receives the registration success instruction and the time of the next vehicle resource data collection sent by the policy authorization server, starting from the time of the next vehicle resource data collection, the first vehicle terminal The vehicle resource data is sent to the policy authorization server.

4. A zero-trust based Internet of Vehicles security access control method according to claim 3, characterized in that: The step S3 specifically includes the following steps: S31. The policy authorization server is at the current moment After collecting the vehicle resource data of all vehicle terminals registered with the policy authorization server, storing the vehicle resource data in a vehicle resource data set; The vehicle resource data set is stored in a database in a policy authorization server; The data format of each data entry in the vehicle resource data set is: vehicle VIN number, vehicle brand, vehicle model, current time, vehicle location, vehicle driving status, vehicle driving speed, vehicle current fuel consumption, vehicle current mileage, vehicle current fuel level, vehicle current driving range, vehicle outdoor temperature, vehicle indoor temperature, vehicle battery level, vehicle sensor status, vehicle fault code status, vehicle road conditions, number of pedestrians around the vehicle, and driver behavior data in the vehicle; Among them, each collection moment of a vehicle corresponds to a data entry; The road conditions where the vehicle is located include: maintenance, accident, and none; The specific format of the status of each sensor of the vehicle is: }; Said is the state of the nth vehicle sensor, where n is the total number of vehicle sensors; the vehicle sensor states include: normal and abnormal; The specific format of the vehicle fault code status is: }; Said is the mth vehicle fault code state, m is the total number of vehicle fault codes; the vehicle fault code state includes: normal, abnormal; S32. The policy authorization server calculates and obtains the average fuel consumption value corresponding to each vehicle model, the average battery power value corresponding to each vehicle model, the abnormal sensor status proportion corresponding to each vehicle model, the abnormal fault code status proportion corresponding to each vehicle model, the road status of each road at the current time, and the number of pedestrians on each road at the current time; and uses the above data as the updated intermediate result data set; The specific calculation method of the average fuel consumption value corresponding to each vehicle model is as follows: S3211. For the fuel consumption values ​​in all data entries of all vehicles corresponding to a vehicle model, calculate the average fuel consumption values ​​in all data entries; S3212. Step S3211 is executed for all vehicle models to form the average fuel consumption value corresponding to each vehicle model. }; in is the average fuel consumption value corresponding to the hth vehicle model; h is the total number of vehicle models; The specific calculation method for the average battery power value corresponding to each vehicle model is as follows: S3221. For the vehicle battery power in all data entries of all vehicles corresponding to a vehicle model, calculate the average value of the vehicle battery power in all data entries; S3222. Step S3221 is executed for all vehicle models to form the average battery power value corresponding to each vehicle model. }; in, is the average value of the vehicle battery power corresponding to the h-th vehicle model; h is the total number of vehicle models; The specific calculation method of the abnormal sensor status ratio corresponding to each vehicle model is as follows: S3231. For all vehicles in a vehicle model, obtain sensor status data of all vehicles: {{ }、{ }…{ }…{ }}; in, is the state of the jth sensor of the i-th vehicle in the vehicle model; z is the total number of vehicles corresponding to the vehicle model; n is the total number of sensors in the vehicle; the state of the sensor is 0 or 1; Among them, for the i-th vehicle in the vehicle model, when the state of the j-th sensor in all the data entries of the i-th vehicle is abnormal, the corresponding Set to 1, otherwise the vehicle corresponding Set to 0; S3232. Calculate the abnormal sensor status ratio corresponding to the vehicle model { }; in, ; is the abnormal status ratio of the jth sensor corresponding to the vehicle model; S3233. For all vehicle models, steps S3231 to S3232 are executed to obtain the abnormal sensor status ratio corresponding to each vehicle model: {{ }、{ }…{{ }}} in,{ } is the abnormal sensor status ratio corresponding to the h-th vehicle model; h is the total number of vehicle models; n is the total number of vehicle sensors; The specific calculation method of the abnormal fault code status ratio corresponding to each vehicle model is as follows: S3241. For all vehicles in a vehicle model, obtain the fault code status data of all vehicles: {{ }、{ }…{ }…{ }} in, is the state of the jth fault code of the i-th vehicle in the vehicle model; z is the total number of vehicles corresponding to the vehicle model; m is the total number of fault codes in the vehicle; the state of the fault code is 0 or 1; Among them, for the i-th vehicle in the vehicle model, when the state of the j-th fault code in all the data entries of the i-th vehicle is abnormal, the corresponding Set to 1, otherwise the vehicle corresponding Set to 0; S3242. Calculate the abnormal fault code status ratio corresponding to the vehicle model { }; in, ; is the abnormal status ratio of the jth fault code corresponding to the vehicle model; S3243. For all vehicle models, steps S3241 to S3242 are executed to obtain the abnormal sensor status ratio corresponding to each vehicle model: {{ }、{ }…{{ }}} in,{ } is the abnormal fault code status ratio corresponding to the h-th vehicle model; h is the total number of vehicle models; m is the total number of vehicle fault codes; The specific calculation method of the road conditions of each road at the current moment is: S3251 policy authorization server based on the current moment of each vehicle's vehicle location collected, statistics of each road in the city contains the vehicle speed of the vehicle; S3252. For all vehicles on a road, calculate the average vehicle speed of all vehicles, and determine the first road state of the current road based on the average value; specifically: when the average value is greater than a preset threshold When the average value is less than the preset threshold value, the road is judged to be unobstructed; when the average value is less than the preset threshold value When the road is judged to be congested; when the ≤Average value≤ When , the road is judged to be in a slow-moving state; For all vehicles on a road, the road conditions of all vehicles are counted, and when the road condition corresponding to any vehicle on the road is maintenance or accident, the second road state of the road at the current moment is set to maintenance or accident; {the first road state of the current road, the second road state of the current road} is used as the road state of the current road at the current moment; S3253. For each road in the city, step S3252 is executed to obtain the road status of different roads at the current moment; The method for calculating the number of pedestrians on each road at the current moment is specifically as follows: S3261. For all vehicles on a road, obtain the number of pedestrians around each vehicle at the current moment; Calculate the average number of pedestrians around all vehicles on the road as the number of pedestrians on the road at the current moment; S3262. For each road, execute step S3261 to obtain the number of pedestrians on different roads at the current moment.

5. A zero-trust based Internet of Vehicles security access control system, the system executing the method as described in any one of claims 1-4.