CN115374488B - Vehicle-mounted terminal program checking method and device - Google Patents

Vehicle-mounted terminal program checking method and device Download PDF

Info

Publication number
CN115374488B
CN115374488B CN202211308446.1A CN202211308446A CN115374488B CN 115374488 B CN115374488 B CN 115374488B CN 202211308446 A CN202211308446 A CN 202211308446A CN 115374488 B CN115374488 B CN 115374488B
Authority
CN
China
Prior art keywords
program
vehicle
updating
terminal
verification
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202211308446.1A
Other languages
Chinese (zh)
Other versions
CN115374488A (en
Inventor
刘曼
张奇惠
刘家明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Wise Security Technology Co Ltd
Original Assignee
Guangzhou Wise Security Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Wise Security Technology Co Ltd filed Critical Guangzhou Wise Security Technology Co Ltd
Priority to CN202211308446.1A priority Critical patent/CN115374488B/en
Publication of CN115374488A publication Critical patent/CN115374488A/en
Application granted granted Critical
Publication of CN115374488B publication Critical patent/CN115374488B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • General Engineering & Computer Science (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Bioethics (AREA)
  • Computing Systems (AREA)
  • Medical Informatics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention discloses a method and a device for checking a vehicle-mounted terminal program, wherein the method comprises the following steps: when a program updating event is detected, verifying an information source triggering the program updating event, and receiving an updating program under the condition that the information source is successfully verified; under the condition that the update program is received, generating a first check identifier based on the update program; performing ad hoc network of the vehicle-mounted terminal, and determining an auxiliary verification terminal related to program updating, wherein the auxiliary verification terminal comprises the vehicle-mounted terminal which performs program updating and records that the related information meets the preset auxiliary conditions; and acquiring a second check identifier recorded in advance in the auxiliary check terminal, and determining whether the check of the program update event is successful or not based on a comparison result of the first check identifier and the second check identifier. According to the scheme, the safety of program updating is guaranteed, and information leakage and attack caused by cracking are not easy to occur.

Description

Vehicle-mounted terminal program checking method and device
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to a vehicle-mounted terminal program checking method and device.
Background
With the rise of the internet and the vehicle-mounted terminal, complicated functions can be realized for users through programs integrated in the vehicle-mounted terminal. Generally, the program of the in-vehicle terminal is updated periodically to expand and improve the program function. However, due to the characteristic of the in-vehicle terminal, the requirement for security is greater, and therefore, a stricter verification needs to be performed on the update program to ensure the correctness and tamper resistance of the program.
Most of existing methods for updating programs in terminal devices interact with a server, for example, downloading a program file from the server, however, the existing programs have relatively single security check, and the existing methods are not easy to find out about tampering in order to check the programs themselves.
Disclosure of Invention
The embodiment of the invention provides a vehicle-mounted terminal program checking method and device, solves the problems of single program checking mode and poor safety in the related technology, improves the reliability of program checking, ensures the safety of program updating, and is not easy to crack to cause information leakage and attack.
In a first aspect, an embodiment of the present invention provides a vehicle-mounted terminal program verification method, where the method includes:
when a program updating event is detected, verifying an information source triggering the program updating event, and receiving an updating program under the condition that the information source is successfully verified;
under the condition that the update program is received, generating a first check identifier based on the update program;
performing ad hoc network of the vehicle-mounted terminal, and determining an auxiliary verification terminal related to program updating, wherein the auxiliary verification terminal comprises the vehicle-mounted terminal which performs program updating and records that the related information meets the preset auxiliary conditions;
and acquiring a second check identifier recorded in advance in the auxiliary check terminal, and determining whether the check of the program update event is successful or not based on a comparison result of the first check identifier and the second check identifier.
Optionally, the verifying the information source triggering the program update event includes:
acquiring an information source identifier recorded during program installation, wherein the information source identifier is determined and obtained during program installation based on a plurality of different vehicle-mounted terminals;
and comparing the recorded information source identification with the information source identification triggering the program updating event to finish verification.
Optionally, the generating a first check identifier based on the update program includes:
and generating a first check identifier according to the file content of the updating program and the current timestamp.
Optionally, the generating a first check identifier according to the file content of the update program and the current timestamp includes:
and generating a first check identifier based on the size of the updating program and a splicing result of the check character string preset in the updating program and the current timestamp.
Optionally, the performing ad hoc network of the vehicle-mounted terminal and determining the auxiliary verification terminal associated with program update includes:
receiving networking information sent by a server, and performing ad hoc networking with other vehicle-mounted terminals based on the networking information;
and sending an auxiliary verification instruction to other vehicle-mounted terminals in the networking, and determining the auxiliary verification terminal based on the feedback information of the other vehicle-mounted terminals.
Optionally, the determining the auxiliary verification terminal based on the feedback information of the other vehicle-mounted terminals includes:
determining a vehicle-mounted terminal which records an updating event of an updated program in the feedback information and has no abnormal data in the recorded associated information as an auxiliary verification terminal, wherein the abnormal data comprises detected attack data and abnormal operation data;
under the condition that abnormal operation data are recorded, whether the abnormal operation data meet an updating condition or not is determined, and the vehicle-mounted terminal meeting the updating condition is determined as an auxiliary verification terminal.
Optionally, the determining whether the checking of the program update event is successful based on the comparison result of the first check identifier and the second check identifier includes:
analyzing the second check identification to obtain a comparison program size, a comparison characteristic character string and a comparison time stamp;
and determining that the verification is successful under the condition that the comparison program size and the comparison characteristic character string are consistent with the program size and the comparison character string of the first verification identification record, and the difference value between the comparison timestamp and the timestamp of the first verification identification record meets a time threshold.
In a second aspect, an embodiment of the present invention further provides a device for checking a program of a vehicle-mounted terminal, including:
the information source checking module is configured to check an information source triggering a program updating event when the program updating event is detected, and receive an updating program under the condition that the information source is successfully checked;
the verification identifier generation module is configured to generate a first verification identifier based on the updating program under the condition that the updating program is received completely;
the auxiliary terminal determining module is configured to perform ad hoc network of the vehicle-mounted terminal and determine an auxiliary verification terminal related to program updating, wherein the auxiliary verification terminal comprises the vehicle-mounted terminal which performs program updating and records that related information meets preset auxiliary conditions;
and the verification comparison module is configured to acquire a second verification identifier recorded in advance in the auxiliary verification terminal, and determine whether the verification of the program update event is successful or not based on a comparison result of the first verification identifier and the second verification identifier.
In a third aspect, an embodiment of the present invention further provides a vehicle-mounted terminal program checking device, where the device includes:
one or more processors;
a storage vehicle-mounted terminal program verifying device used for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors implement the vehicle-mounted terminal program verification method according to the embodiment of the invention.
In a fourth aspect, the embodiment of the present invention further provides a storage medium containing computer-executable instructions, where the computer-executable instructions are used to execute the vehicle-mounted terminal program verification method according to the embodiment of the present invention when executed by a computer processor.
In a fifth aspect, the present application further provides a computer program product, where the computer program product includes a computer program, where the computer program is stored in a computer-readable storage medium, and at least one processor of the device reads the computer-readable storage medium and executes the computer program, so that the device executes the vehicle-mounted terminal program verification method described in the present application.
In the embodiment of the invention, when a program updating event is detected, an information source triggering the program updating event is verified, and under the condition that the information source is successfully verified, an updating program is received; under the condition that the update program is received, generating a first check identifier based on the update program; performing ad hoc network of the vehicle-mounted terminal, and determining an auxiliary verification terminal related to program updating, wherein the auxiliary verification terminal comprises the vehicle-mounted terminal which performs program updating and records that the related information meets preset auxiliary conditions; and acquiring a second check identifier recorded in advance in the auxiliary check terminal, and determining whether the check of the program update event is successful or not based on a comparison result of the first check identifier and the second check identifier. According to the scheme, the safety of program updating is guaranteed, and information leakage and attack caused by cracking are not easy to occur.
Drawings
Fig. 1 is a flowchart of a vehicle-mounted terminal program verification method according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for verifying an information source according to an embodiment of the present application;
fig. 3 is a flowchart of a method for determining an auxiliary verification terminal according to an embodiment of the present invention;
fig. 4 is a block diagram of a structure of a vehicle-mounted terminal program verifying apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a vehicle-mounted terminal program verification device according to an embodiment of the present invention.
Detailed Description
The embodiments of the present invention will be described in further detail with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of and not restrictive on the broad invention. It should be further noted that, for convenience of description, only some structures, not all structures, relating to the embodiments of the present invention are shown in the drawings.
Fig. 1 is a flowchart of a vehicle-mounted terminal program verification method according to an embodiment of the present invention, where an embodiment of the present invention specifically includes the following steps:
step S101, when a program updating event is detected, checking an information source triggering the program updating event, and receiving an updating program under the condition that the information source is successfully checked.
In one embodiment, the program of the vehicle-mounted terminal verifies the updating program in the updating process. The program update event may be triggered by receiving an update instruction issued by an information source. Before installing and updating the updating program, firstly, verifying an information source triggering a program updating event, and receiving the updating program under the condition that the information source is successfully verified.
Fig. 2 is a flowchart of a method for verifying an information source according to an embodiment of the present application, and as shown in fig. 2, the method specifically includes:
step S1011, obtaining an information source identifier recorded during program installation, where the information source identifier is determined to be obtained based on multiple different vehicle-mounted terminals during program installation.
The program installation is the installation of the original program before the current updated program, and the information source identifier is correspondingly recorded during the installation, wherein the information source identifier can be a server address, a unique identifier provided by a software provider and the like. When recording the information source identifier, the information source identifier is determined based on the program installation of a plurality of different vehicle-mounted terminals, namely the information source identifier is determined not according to the current installation situation of the terminal but based on the situations of the plurality of vehicle-mounted terminals. And if the information source identification when more than the preset number of the vehicle-mounted terminals are installed is detected to be consistent with the information source identification of the same installation program, recording the information source identification.
Step S1012, comparing the recorded information source identifier with the information source identifier triggering the program update event to complete verification.
And in the process of verifying the information source, comparing the recorded information source identifier with the information source identifier triggering the program updating event to complete verification. If the comparison is consistent, the verification is determined to be passed, otherwise, the verification is not passed.
And step S102, under the condition that the receiving of the updating program is finished, generating a first check mark based on the updating program.
In one embodiment, the receiving of the update program is performed under the condition that the information source verification is successful, and after the receiving of the update program is completed, a first verification identifier is correspondingly generated based on the update program for verifying the update program.
Optionally, the process of generating the first check identifier may be: and generating a first check identifier according to the file content of the updating program and the current timestamp. The file content comprises the size of the updating program and a check character string preset in the updating program, and the time stamp is the system time stamp when the updating program is received and a first check identifier is prepared to be generated.
Accordingly, the process of generating the first parity identifier may be further defined as: and generating a first check identifier based on the size of the updating program and a splicing result of the check character string preset in the updating program and the current timestamp. Illustratively, the size of the update program is 32.6M. The internal preset check character string is a character string carried by the updating program and used for checking, and can be a 32-bit or 64-bit combination of letters and numbers. And splicing the size of the program, the check character string and the current time stamp to obtain a first check identifier.
And S103, performing ad hoc network of the vehicle-mounted terminal, and determining an auxiliary verification terminal related to program updating, wherein the auxiliary verification terminal comprises the vehicle-mounted terminal which performs program updating and records that the related information meets the preset auxiliary condition.
In one embodiment, after the first check identifier is generated for the received update program, the first check identifier needs to be verified. At the moment, the ad hoc network of the vehicle-mounted terminal is carried out, and the auxiliary verification terminal is determined in the ad hoc network of the vehicle-mounted terminal so as to carry out verification of the first verification identifier. The auxiliary verification terminal comprises a vehicle-mounted terminal which is used for updating the updating program and recording the associated information meeting the preset auxiliary conditions.
Step S104, a second check identifier recorded in advance in the auxiliary check terminal is obtained, and whether the check of the program update event is successful is determined based on a comparison result of the first check identifier and the second check identifier.
In one embodiment, after the auxiliary verification terminal is determined, a second verification identifier pre-recorded by the auxiliary verification terminal is acquired, and whether verification of the program update event is successful is determined based on a comparison result of the first verification identifier and the second verification identifier. The second check mark is generated when the auxiliary check terminal performs corresponding updating procedures, and the generation mode of the second check mark can refer to the generation mode of the first check mark of the current terminal.
Optionally, the comparison process of the verification identifier may be: and analyzing the second check identification to obtain a comparison program size, a comparison characteristic character string and a comparison time stamp, and determining that the check is successful under the condition that the comparison program size and the comparison characteristic character string are consistent with the program size and the check character string recorded by the first check identification, and the difference between the comparison time stamp and the time stamp recorded by the first check identification meets the time threshold. Wherein, the time threshold value can use different set values, such as 30 minutes or 1 hour.
According to the scheme, when the program updating event is detected, the information source triggering the program updating event is verified, and the updating program is received under the condition that the information source is successfully verified; under the condition that the update program is received, generating a first check identifier based on the update program; performing ad hoc network of the vehicle-mounted terminal, and determining an auxiliary verification terminal related to program updating, wherein the auxiliary verification terminal comprises the vehicle-mounted terminal which performs program updating and records that the related information meets the preset auxiliary conditions; and acquiring a second check identifier recorded in advance in the auxiliary check terminal, and determining whether the check of the program update event is successful or not based on a comparison result of the first check identifier and the second check identifier. According to the scheme, the safety of program updating is guaranteed, and information leakage and attack caused by cracking are not easy to occur.
Fig. 3 is a flowchart of a method for determining an auxiliary verification terminal according to an embodiment of the present invention, as shown in fig. 3, specifically including:
step S201, when a program updating event is detected, acquiring an information source identifier recorded during program installation, wherein the information source identifier is determined to be obtained when the program is installed on the basis of a plurality of different vehicle-mounted terminals, comparing the recorded information source identifier with an information source identifier triggering the program updating event to complete verification, and receiving an updating program under the condition that the verification of the information source is successful.
Step S202, under the condition that the updating program is received, generating a first check identifier based on the size of the updating program and the splicing result of the check character string and the current timestamp which are preset inside.
Step S203, receiving networking information sent by the server, performing ad hoc networking with other vehicle-mounted terminals based on the networking information, sending an auxiliary verification instruction to other vehicle-mounted terminals in the networking, and determining the auxiliary verification terminal based on feedback information of the other vehicle-mounted terminals.
In an embodiment, the networking information records identifiers of other terminal devices that need to be networked, and optionally, the server or the information source device may obtain, based on the position of each vehicle-mounted terminal obtained in real time, a vehicle-mounted terminal that needs to be networked, and generate networking information from the identifiers of the vehicle-mounted terminals that need to be networked, as if the vehicle-mounted terminal in one position division area is determined to be a terminal device that needs to be networked.
In one embodiment, the auxiliary verification instruction is sent to other vehicle-mounted terminals in the networking based on the identification establishment of the terminal equipment and the networking of other terminal equipment recorded in the networking information, and the auxiliary verification terminal is determined based on the feedback information of the other vehicle-mounted terminals. Optionally, the method may specifically be: and determining the vehicle-mounted terminal which records the updating event of the updated program in the feedback information and has no abnormal data in the recorded associated information as an auxiliary verification terminal, wherein the abnormal data comprises detected attack data and abnormal operation data. Namely, after the data re-updating of other vehicle-mounted terminals in the networking is completed, the updating event of the updating program is correspondingly recorded, and the representation that the updating is completed is carried out. Meanwhile, corresponding recording is carried out on the abnormal data to generate the associated information. After receiving the auxiliary verification instruction sent by other devices in the network, the auxiliary verification instruction is sent to the instruction source end as feedback information. And the instruction source end, namely the current vehicle-mounted terminal equipment, determines that the vehicle-mounted terminal without abnormal data in the associated information recorded in the feedback information is determined as the auxiliary verification terminal. Optionally, under the condition that the abnormal operation data is recorded, determining whether the abnormal operation data meets an update condition, determining the vehicle-mounted terminal meeting the update condition as an auxiliary verification terminal, and if the abnormal operation data is the frequency of abnormal operation collapse, if the frequency is smaller than a preset value, determining that the abnormal operation data meets the update condition. The size of the preset value can be set by a programmer.
Step S204, obtaining a second check identifier pre-recorded in the auxiliary check terminal, and determining whether the check of the program update event is successful based on a comparison result of the first check identifier and the second check identifier.
As can be seen from the above, when a program update event is detected, an information source that triggers the program update event is verified, and when the information source is successfully verified, an update program is received; under the condition that the update program is received, generating a first check identifier based on the update program; performing ad hoc network of the vehicle-mounted terminal, and determining an auxiliary verification terminal related to program updating, wherein the auxiliary verification terminal comprises the vehicle-mounted terminal which performs program updating and records that the related information meets the preset auxiliary conditions; and acquiring a second check identifier recorded in advance in the auxiliary check terminal, and determining whether the check of the program update event is successful or not based on a comparison result of the first check identifier and the second check identifier. According to the scheme, the safety of program updating is guaranteed, and information leakage and attack caused by cracking are not easy to occur.
Fig. 4 is a structural block diagram of a vehicle-mounted terminal program verification apparatus according to an embodiment of the present invention, where the vehicle-mounted terminal program verification apparatus is configured to execute the vehicle-mounted terminal program verification method according to the foregoing data receiving end embodiment, and has functional modules and beneficial effects corresponding to the execution method. As shown in fig. 4, the vehicle-mounted terminal program verifying apparatus specifically includes: an information source checking module 101, a checking identifier generating module 102, an auxiliary terminal determining module 103 and a checking and comparing module 104, wherein,
the information source checking module 101 is configured to check an information source triggering a program update event when the program update event is detected, and receive an update program when the information source is successfully checked;
a check identifier generating module 102 configured to generate a first check identifier based on the update program when the update program is received;
the auxiliary terminal determining module 103 is configured to perform ad hoc network of the vehicle-mounted terminal and determine an auxiliary verification terminal associated with program updating, wherein the auxiliary verification terminal comprises the vehicle-mounted terminal which performs program updating and records that associated information meets preset auxiliary conditions;
a verification comparison module 104 configured to obtain a second verification identifier pre-recorded in the auxiliary verification terminal, and determine whether the verification of the program update event is successful based on a comparison result of the first verification identifier and the second verification identifier.
According to the scheme, when the program updating event is detected, the information source triggering the program updating event is verified, and the updating program is received under the condition that the information source is successfully verified; under the condition that the update program is received, generating a first check identifier based on the update program; performing ad hoc network of the vehicle-mounted terminal, and determining an auxiliary verification terminal related to program updating, wherein the auxiliary verification terminal comprises the vehicle-mounted terminal which performs program updating and records that the related information meets the preset auxiliary conditions; and acquiring a second check identifier recorded in advance in the auxiliary check terminal, and determining whether the check of the program update event is successful or not based on a comparison result of the first check identifier and the second check identifier. According to the scheme, the safety of program updating is guaranteed, and information leakage and attack caused by cracking are not easy to occur. Correspondingly, the functions executed by the modules are respectively as follows:
in a possible embodiment, the verifying the information source triggering the program update event includes:
acquiring an information source identifier recorded during program installation, wherein the information source identifier is determined and obtained during program installation based on a plurality of different vehicle-mounted terminals;
and comparing the recorded information source identification with the information source identification triggering the program updating event to finish verification.
In one possible embodiment, the generating a first check identifier based on the update program includes:
and generating a first check identifier according to the file content of the updating program and the current timestamp.
In a possible embodiment, the generating a first check identifier according to the file content of the update program and the current timestamp includes:
and generating a first check identifier based on the size of the updating program and a splicing result of the check character string preset in the updating program and the current timestamp.
In a possible embodiment, the performing ad hoc network of the vehicle-mounted terminal and determining the auxiliary verification terminal associated with program update includes:
receiving networking information sent by a server, and performing ad hoc networking with other vehicle-mounted terminals based on the networking information;
and sending an auxiliary verification instruction to other vehicle-mounted terminals in the networking, and determining the auxiliary verification terminal based on the feedback information of the other vehicle-mounted terminals.
In a possible embodiment, the determining a secondary verification terminal based on the feedback information of the other vehicle-mounted terminal includes:
determining a vehicle-mounted terminal which records an updating event of an updated program in the feedback information and has no abnormal data in the recorded associated information as an auxiliary verification terminal, wherein the abnormal data comprises detected attack data and abnormal operation data;
under the condition that abnormal operation data are recorded, whether the abnormal operation data meet an updating condition or not is determined, and the vehicle-mounted terminal meeting the updating condition is determined as an auxiliary verification terminal.
In a possible embodiment, the determining whether the checking of the program update event is successful based on the comparison result of the first check identifier and the second check identifier includes:
analyzing the second check mark to obtain a comparison program size, a comparison characteristic character string and a comparison time stamp;
and determining that the verification is successful under the condition that the comparison program size and the comparison characteristic character string are consistent with the program size and the comparison character string of the first verification identification record, and the difference value between the comparison timestamp and the timestamp of the first verification identification record meets a time threshold.
Fig. 5 is a schematic structural diagram of a vehicle-mounted terminal program verification apparatus according to an embodiment of the present invention, as shown in fig. 5, the apparatus includes a processor 201, a memory 202, an input device 203, and an output device 204; the number of the processors 201 in the device may be one or more, and one processor 201 is taken as an example in fig. 5; the processor 201, the memory 202, the input means 203 and the output means 204 in the device may be connected by a bus or other means, as exemplified by a bus connection in fig. 5. The memory 202 is a computer-readable storage medium, and can be used for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the vehicle-mounted terminal program verification method in the embodiment of the present invention. The processor 201 executes various functional applications and data processing of the device by running software programs, instructions and modules stored in the memory 202, that is, the above-described in-vehicle terminal program verification method is realized. The input device 203 may be used to receive input numeric or character information and generate key signal inputs relating to user settings and function controls of the apparatus. The output device 204 may include a display device such as a display screen.
An embodiment of the present invention further provides a storage medium containing computer-executable instructions, where the computer-executable instructions are executed by a computer processor to perform a vehicle-mounted terminal program verification method, where the method includes:
when a program updating event is detected, verifying an information source triggering the program updating event, and receiving an updating program under the condition that the information source is successfully verified;
under the condition that the update program is received, generating a first check identifier based on the update program;
performing ad hoc network of the vehicle-mounted terminal, and determining an auxiliary verification terminal related to program updating, wherein the auxiliary verification terminal comprises the vehicle-mounted terminal which performs program updating and records that the related information meets the preset auxiliary conditions;
and acquiring a second check identifier recorded in advance in the auxiliary check terminal, and determining whether the check of the program update event is successful or not based on a comparison result of the first check identifier and the second check identifier.
From the above description of the embodiments, it is obvious for those skilled in the art that the embodiments of the present invention can be implemented by software and necessary general hardware, and certainly can be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the embodiments of the present invention may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions to make a computer device (which may be a personal computer, a service, or a network device) perform the methods described in the embodiments of the present invention.
It should be noted that, in the embodiment of the vehicle-mounted terminal program verification apparatus, each included unit and module are only divided according to functional logic, but are not limited to the above division, as long as corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the embodiment of the invention.
In some possible embodiments, various aspects of the methods provided by the present application may also be implemented in a form of a program product, which includes program code for causing a computer device to execute the steps in the methods according to various exemplary embodiments of the present application described above in this specification when the program product runs on the computer device, for example, the computer device may execute the vehicle terminal program verification method described in the embodiments of the present application. The program product may be implemented using any combination of one or more readable media.
It should be noted that the foregoing is only a preferred embodiment of the present invention and the technical principles applied. Those skilled in the art will appreciate that the embodiments of the present invention are not limited to the specific embodiments described herein, and that various obvious changes, adaptations, and substitutions are possible, without departing from the scope of the embodiments of the present invention. Therefore, although the embodiments of the present invention have been described in more detail through the above embodiments, the embodiments of the present invention are not limited to the above embodiments, and many other equivalent embodiments can be included without departing from the concept of the embodiments of the present invention, and the scope of the embodiments of the present invention is determined by the scope of the appended claims.

Claims (8)

1. The vehicle-mounted terminal program checking method is characterized by comprising the following steps:
when a program updating event is detected, verifying an information source triggering the program updating event, and receiving an updating program under the condition that the information source is successfully verified;
under the condition that the update program is received, generating a first check identifier based on the update program;
the method comprises the following steps of carrying out ad hoc network of the vehicle-mounted terminal and determining an auxiliary verification terminal related to program updating, wherein the method comprises the following steps: receiving networking information sent by a server, carrying out ad hoc networking with other vehicle-mounted terminals based on the networking information, sending an auxiliary verification instruction to other vehicle-mounted terminals in the networking, determining an auxiliary verification terminal based on feedback information of other vehicle-mounted terminals, wherein the auxiliary verification terminal comprises the vehicle-mounted terminal which is used for updating the updating program and recording the associated information meeting preset auxiliary conditions, wherein the auxiliary verification terminal is determined based on the feedback information of other vehicle-mounted terminals, and the method comprises the following steps: determining a vehicle-mounted terminal which records an updating event of an updated program in the feedback information and has no abnormal data in the recorded associated information as an auxiliary verification terminal, wherein the abnormal data comprises detected attack data and abnormal operation data, and under the condition that the abnormal operation data is recorded, determining whether the abnormal operation data meets an updating condition, and determining the vehicle-mounted terminal meeting the updating condition as the auxiliary verification terminal;
and acquiring a second check identifier recorded in advance in the auxiliary check terminal, and determining whether the check of the program update event is successful or not based on a comparison result of the first check identifier and the second check identifier.
2. The vehicle-mounted terminal program verification method according to claim 1, wherein the verifying the information source triggering the program update event includes:
acquiring an information source identifier recorded during program installation, wherein the information source identifier is determined and obtained during program installation based on a plurality of different vehicle-mounted terminals;
and comparing the recorded information source identification with the information source identification triggering the program updating event to finish verification.
3. The vehicle-mounted terminal program verification method according to claim 1, wherein the generating of the first verification flag based on the update program includes:
and generating a first check identifier according to the file content of the updating program and the current timestamp.
4. The vehicle-mounted terminal program verification method according to claim 3, wherein the generating of the first verification identifier according to the file content of the update program and the current timestamp includes:
and generating a first check identifier based on the size of the updating program and a splicing result of the check character string preset in the updating program and the current timestamp.
5. The vehicle-mounted terminal program checking method according to claim 4, wherein the determining whether the checking of the program update event is successful based on the comparison result of the first check identifier and the second check identifier includes:
analyzing the second check mark to obtain a comparison program size, a comparison characteristic character string and a comparison time stamp;
and determining that the verification is successful under the condition that the comparison program size and the comparison characteristic character string are consistent with the program size and the comparison character string of the first verification identification record, and the difference value between the comparison timestamp and the timestamp of the first verification identification record meets a time threshold.
6. Vehicle-mounted terminal program verifying device, its characterized in that includes:
the information source checking module is configured to check an information source triggering a program updating event when the program updating event is detected, and receive an updating program under the condition that the information source is successfully checked;
the verification identifier generation module is configured to generate a first verification identifier based on the updating program under the condition that the receiving of the updating program is finished;
the auxiliary terminal determining module is configured to perform ad hoc networking on the vehicle-mounted terminal and determine an auxiliary checking terminal related to program updating, wherein the auxiliary terminal determining module is specifically used for receiving networking information sent by a server, performing ad hoc networking with other vehicle-mounted terminals based on the networking information, sending an auxiliary checking instruction to other vehicle-mounted terminals in the networking, and determining the auxiliary checking terminal based on feedback information of the other vehicle-mounted terminals, the auxiliary checking terminal comprises the vehicle-mounted terminal which performs updating on the updating program and records that related information meets preset auxiliary conditions, wherein the auxiliary checking terminal is specifically used for recording an updating event of the updating program in the feedback information, determining the vehicle-mounted terminal without abnormal data in the recorded related information as the auxiliary checking terminal, the abnormal data comprises detected attack data and abnormal operation data, and determining whether the abnormal operation data meets the updating conditions or not under the condition that the abnormal operation data is recorded, and determining the vehicle-mounted terminal meeting the updating conditions as the auxiliary checking terminal;
and the verification comparison module is configured to acquire a second verification identifier recorded in advance in the auxiliary verification terminal, and determine whether the verification of the program update event is successful or not based on a comparison result of the first verification identifier and the second verification identifier.
7. An in-vehicle terminal program verification apparatus, the apparatus comprising: one or more processors; storing in-vehicle terminal program verification means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the in-vehicle terminal program verification method according to any one of claims 1 to 5.
8. A storage medium containing computer-executable instructions for performing the in-vehicle terminal program verification method according to any one of claims 1 to 5 when executed by a computer processor.
CN202211308446.1A 2022-10-25 2022-10-25 Vehicle-mounted terminal program checking method and device Active CN115374488B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211308446.1A CN115374488B (en) 2022-10-25 2022-10-25 Vehicle-mounted terminal program checking method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211308446.1A CN115374488B (en) 2022-10-25 2022-10-25 Vehicle-mounted terminal program checking method and device

Publications (2)

Publication Number Publication Date
CN115374488A CN115374488A (en) 2022-11-22
CN115374488B true CN115374488B (en) 2023-03-24

Family

ID=84073028

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211308446.1A Active CN115374488B (en) 2022-10-25 2022-10-25 Vehicle-mounted terminal program checking method and device

Country Status (1)

Country Link
CN (1) CN115374488B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105812570A (en) * 2016-04-21 2016-07-27 深圳市旭子科技有限公司 Terminal firmware updating method and device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107426269A (en) * 2017-03-21 2017-12-01 北京智行鸿远汽车有限公司 A kind of mounted remote terminal wireless more new vehicle ECU method
CN109214168B (en) * 2018-08-27 2020-08-18 阿里巴巴集团控股有限公司 Firmware upgrading method and device
CN114362981A (en) * 2020-09-30 2022-04-15 京东方科技集团股份有限公司 Upgrading method of terminal equipment of Internet of things and related equipment
CN114221866A (en) * 2021-12-14 2022-03-22 歌尔科技有限公司 Method, device and medium for upgrading terminal
CN114662087B (en) * 2022-05-20 2022-09-02 广州万协通信息技术有限公司 Multi-terminal verification security chip firmware updating method and device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105812570A (en) * 2016-04-21 2016-07-27 深圳市旭子科技有限公司 Terminal firmware updating method and device

Also Published As

Publication number Publication date
CN115374488A (en) 2022-11-22

Similar Documents

Publication Publication Date Title
CN106940651B (en) POS terminal software upgrading method and device
CN111538517B (en) Method and system for upgrading server firmware, electronic equipment and storage medium
WO2022142153A1 (en) Electricity meter upgrading method and system, smart meter, and storage medium
CN110597662B (en) Backup data automatic verification method and device, user equipment and storage medium
CN110601832A (en) Data access method and device
CN109818972B (en) Information security management method and device for industrial control system and electronic equipment
CN113434254B (en) Client deployment method, client deployment apparatus, computer device, and storage medium
CN108491466B (en) Electronic device, access instruction information acquisition method, and storage medium
CN110443039A (en) Detection method, device and the electronic equipment of plug-in security
CN112838951B (en) Operation and maintenance method, device and system of terminal equipment and storage medium
CN112925711A (en) Local joint debugging test method and related device
CN115374488B (en) Vehicle-mounted terminal program checking method and device
CN113037850A (en) Application program upgrading method and device, electronic equipment and storage medium
CN113438225B (en) Vehicle-mounted terminal vulnerability detection method, system, equipment and storage medium
CN116450391A (en) Fault positioning method, device, equipment and medium
CN115170355A (en) Evidence obtaining data credibility verification method and device, computer equipment and storage medium
CN112054927B (en) Anti-tampering website updating method and device based on fingerprint verification and electronic equipment
CN111127183A (en) Data processing method, device, server and computer readable storage medium
CN111932326B (en) Data processing method based on block chain network and related equipment
CN109714371B (en) Industrial control network safety detection system
CN109933990B (en) Multi-mode matching-based security vulnerability discovery method and device and electronic equipment
CN113849802A (en) Equipment authentication method and device, electronic equipment and storage medium
CN111970681B (en) Equipment identification method and device
CN117034368B (en) Data integrity protection method, device, equipment and storage medium
CN115237816B (en) System function verification method and device, electronic equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant