Time Steganographic Communication Method and Related Devices for Internet of Vehicles

By building a time hidden channel, using the quantitative relationship between WebSocket sharded data packets and non-shaved data packets to embed secret information, the problem of insufficient concealment in the Internet of Vehicles environment is solved, and hidden communication with strong concealment and detection resistance is achieved.

CN119814432BActive Publication Date: 2025-07-11TANGSHAN COLLEGE
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411950516.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-27
Publication Date
2025-07-11
Estimated Expiration
2044-12-27

AI Technical Summary

Technical Problem

When the existing WebSocket protocol transmits secret information in the Internet of Vehicles environment, it is insufficiently concealed and is prone to detection and attack, and cannot effectively ensure information security.

Method used

By building a time hidden channel, using the quantitative relationship between WebSocket sharded packets and non-shaved packets, secret information is embedded, and the time hidden channel is built using two methods: the number of WebSocket sharded packets and the number of WebSocket non-shaved packets between two WebSocket sharded packets to realize the hidden transmission of secret information.

Benefits of technology

It improves the concealment and detection resistance of information transmission, can effectively conduct hidden communication in the Internet of Vehicles environment, adapt to the transmission needs of different application scenarios, and balances concealment and transmission rate.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119814432B_ABST
    Figure CN119814432B_ABST
Patent Text Reader

Abstract

The present application discloses a time covert channel-based covert communication method and related devices for vehicle-to-everything (V2X) networking, which relates to the field of covert communication technology. The method includes: selecting the first i-bit secret information of the secret information to be covertly transmitted as the first secret information to be embedded, determining the WebSocket fragmented data packet corresponding to the first secret information to be embedded based on the correspondence between the preset number of WebSocket fragmented data packets and the secret information, selecting the first j-bit secret information of the secret information to be covertly transmitted as the second secret information to be embedded, determining the WebSocket non-fragmented data packet corresponding to the second secret information to be embedded based on the correspondence between the preset number of WebSocket non-fragmented data packets and the secret information, until the secret information to be covertly transmitted is completely embedded. The present application can perform covert communication based on the WebSocket protocol in a V2X networking environment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of covert communication technologies, and particularly to a time hidden channel type covert communication method and related devices for the Internet of Vehicles (IoV). Background Art

[0002] The WebSocket protocol is a communication protocol that allows two-way interactive communication between a client and a server via TCP (Transmission Control Protocol). It has good applicability to resource-constrained untrusted networks, supports persistent connections, belongs to the application layer protocol, and has become one of the commonly used communication protocols in the IoV. After the initial handshake, the WebSocket protocol maintains an open connection, which enables it to support real-time and interactive data exchange. This feature is particularly important for the IoV with high real-time requirements and has wide applications in fields such as vehicle tracking, alarm push, driving status monitoring, and traffic information update in the IoV.

[0003] The WebSocket protocol transmits a large amount of data information in the public IoV environment, providing an abundant carrier for the covert transmission of secret information. The transport layer protocol used by the WebSocket protocol is TCP, which is connection-oriented and has a reliable transmission mechanism, indirectly providing guarantee for the transmission of secret information. Moreover, the feature that the WebSocket protocol supports persistent connections saves network request time and bandwidth, which will improve the transmission rate of secret information. Summary of the Invention

[0004] The purpose of this application is to provide a time hidden channel type covert communication method and related devices for the IoV, which can perform covert communication based on the WebSocket protocol in the IoV environment.

[0005] To achieve the above purpose, this application provides the following solutions:

[0006] In a first aspect, this application provides a time hidden channel type covert communication method for the IoV, and the time hidden channel type covert communication method for the IoV includes:

[0007] Obtain the secret information to be covertly transmitted;

[0008] Select the first i-bit secret information of the secret information to be covertly transmitted as the first secret information to be embedded, and based on the first secret information to be embedded and the corresponding relationship between the preset WebSocket fragmented data packet fragmentation quantity and the secret information, determine the WebSocket fragmented data packet corresponding to the first secret information to be embedded, and send the WebSocket fragmented data packet; where i is a positive integer;

[0009] Determine whether the number of bits of the secret information to be covertly transmitted in the current iteration is 0 to obtain a first judgment result;

[0010] If the first judgment result is negative, remove the first secret information to be embedded from the secret information to be covertly transmitted in the current iteration to obtain the secret information to be covertly transmitted in the next iteration, and determine whether WebSocket fragmented packets have been continuously sent N times; where N is a positive integer;

[0011] If not, return to the step of "selecting the first i bits of the secret information to be covertly transmitted as the first secret information to be embedded";

[0012] If so, select the first j bits of the secret information to be covertly transmitted as the second secret information to be embedded, determine the WebSocket non-fragmented packet corresponding to the second secret information to be embedded based on the corresponding relationship between the preset WebSocket non-fragmented packet quantity and the secret information, and send the WebSocket non-fragmented packet; where j is a positive integer;

[0013] Determine whether the number of bits of the secret information to be covertly transmitted in the current iteration is 0 to obtain a second judgment result;

[0014] If the second judgment result is negative, remove the second secret information to be embedded from the secret information to be covertly transmitted in the current iteration to obtain the secret information to be covertly transmitted in the next iteration, and return to the step of "selecting the first i bits of the secret information to be covertly transmitted as the first secret information to be embedded".

[0015] Optionally, i ≤ I, where I is a positive integer, and M is the number of fragments of the WebSocket fragmented packet with the maximum length collected in the actual application scenario;

[0016] The preset corresponding relationship between the number of fragments of the WebSocket fragmented packet and the secret information is: the value range of the number of fragments m of the WebSocket fragmented packet is [xd + 2, xd + y + 2], where x = 2 I-i , d is the decimal number obtained by converting the i-bit secret information, and y = 2 I-i -1;

[0017] V is the maximum number of WebSocket non-fragmented packets between two WebSocket fragmented packets collected in the actual application scenario;

[0018] The corresponding relationship between the preset number of WebSocket non-fragmented data packets and the secret information is: the number of WebSocket non-fragmented data packets J = ke + 1, where k is a positive integer and e is the decimal number obtained by converting the j-bit secret information.

[0019] Optionally, before the first sending of WebSocket fragmented data packets, the time hidden channel type covert communication method for the vehicle networking further includes: continuously sending n WebSocket fragmented data packets, representing the start of covert communication;

[0020] When the first judgment result is yes or the second judgment result is yes, the time hidden channel type covert communication method for the vehicle networking further includes: continuously sending n WebSocket fragmented data packets, representing the end of covert communication;

[0021] Where N is less than n.

[0022] Optionally, based on the first secret information to be embedded and the corresponding relationship between the preset number of fragments of WebSocket fragmented data packets and the secret information, determining the WebSocket fragmented data packet corresponding to the first secret information to be embedded specifically includes:

[0023] Based on the first secret information to be embedded and the corresponding relationship between the preset number of fragments of WebSocket fragmented data packets and the secret information, determining the range of the number of fragments of the WebSocket fragmented data packet corresponding to the first secret information to be embedded;

[0024] Randomly selecting a number of fragments of a WebSocket fragmented data packet within the range of the number of fragments of the WebSocket fragmented data packet as the first number of fragments corresponding to the first secret information to be embedded;

[0025] Judging whether there is a WebSocket fragmented data packet with the first number of fragments;

[0026] If so, selecting the WebSocket fragmented data packet with the first number of fragments as the WebSocket fragmented data packet corresponding to the first secret information to be embedded;

[0027] If not, selecting the WebSocket fragmented data packet with the second number of fragments as the WebSocket fragmented data packet corresponding to the first secret information to be embedded, and setting the first secret information to be embedded to be empty; where the second number of fragments is P, and P > 2 I +1.

[0028] Optionally, based on the second secret information to be embedded and the preset correspondence between the number of WebSocket non-fragmented data packets and the secret information, determine the WebSocket non-fragmented data packets corresponding to the second secret information to be embedded, specifically including:

[0029] Based on the second secret information to be embedded and the preset correspondence between the number of WebSocket non-fragmented data packets and the secret information, determine the number J of WebSocket non-fragmented data packets corresponding to the second secret information to be embedded;

[0030] Randomly select J WebSocket non-fragmented data packets as the WebSocket non-fragmented data packets corresponding to the second secret information to be embedded.

[0031] Optionally, the determination methods of i, j, and k include: if a higher secret information transmission rate is required, increase i and j and decrease k; if the communication network environment is complex or there are security threats, decrease i.

[0032] Optionally, before the step of "selecting the first i-bit secret information of the secret information to be secretly transmitted as the first secret information to be embedded" needs to be returned when the second judgment result is negative, the time hidden channel type covert communication method for the vehicle networking further includes: randomly determining the value of N again.

[0033] In a second aspect, the present application provides a computer device, including: a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the computer program to implement the time hidden channel type covert communication method for the vehicle networking described in any one of the above.

[0034] In a third aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the time hidden channel type covert communication method for the vehicle networking described in any one of the above.

[0035] In a fourth aspect, the present application provides a computer program product, including a computer program, and when the computer program is executed by a processor, it implements the time hidden channel type covert communication method for the vehicle networking described in any one of the above.

[0036] According to the specific embodiments provided by the present application, the present application has the following technical effects:

[0037] The present application provides a time - hidden channel - type covert communication method and related devices for the vehicle - to - everything (V2X) network. The first i - bit secret information of the secret information to be covertly transmitted is selected as the first secret information to be embedded. Based on the first secret information to be embedded and the corresponding relationship between the preset WebSocket fragmented packet fragmentation quantity and the secret information, the WebSocket fragmented packet corresponding to the first secret information to be embedded is determined, and the WebSocket fragmented packet is sent. The first j - bit secret information of the secret information to be covertly transmitted is selected as the second secret information to be embedded. Based on the second secret information to be embedded and the corresponding relationship between the preset WebSocket non - fragmented packet quantity and the secret information, the WebSocket non - fragmented packet corresponding to the second secret information to be embedded is determined, and the WebSocket non - fragmented packet is sent until the embedding of the secret information to be covertly transmitted is completed. The present application constructs a time - hidden channel in two ways, namely, the WebSocket fragmented packet fragmentation quantity and the WebSocket non - fragmented packet quantity between two WebSocket fragmented packets, to embed the secret information. This method does not perform physical embedding, has strong concealment, has strong anti - detection ability, and can perform covert communication based on the WebSocket protocol in the V2X network environment. Description of the Drawings

[0038] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for use in the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings.

[0039] Figure 1 It is an application environment diagram of a time - hidden channel - type covert communication method for the vehicle - to - everything (V2X) network provided in Embodiment 1 of the present application.

[0040] Figure 2 It is a flowchart of a time - hidden channel - type covert communication method for the vehicle - to - everything (V2X) network provided in Embodiment 1 of the present application.

[0041] Figure 3 It is a structural diagram of a computer device provided in Embodiment 2 of the present application. Detailed Embodiments

[0042] The following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some embodiments of the present application, rather than all embodiments. Based on the embodiments of the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the scope of protection of the present application.

[0043] Example 1

[0044] The time hidden channel - type covert communication method for the vehicle - to - everything (V2X) network provided by the embodiments of the present application can be applied to the application environment as shown in Figure 1 . Among them, the terminal communicates with the server through the network. The data storage system can store the data that the server needs to process. The data storage system can be set up separately, integrated on the server, or placed on the cloud or other servers. The terminal can send the covert communication request to be processed to the server. After receiving the covert communication request to be processed, for the covert communication request to be processed, the server obtains the secret information to be covertly transmitted; selects the first i - bit secret information of the secret information to be covertly transmitted as the first secret information to be embedded, determines the WebSocket fragmented data packet corresponding to the first secret information to be embedded based on the corresponding relationship between the first secret information to be embedded and the preset number of WebSocket fragmented data packet fragments and the secret information, and sends the WebSocket fragmented data packet; determines whether the number of bits of the secret information to be covertly transmitted in the current iteration is 0, obtaining a first judgment result; if the first judgment result is no, removes the first secret information to be embedded from the secret information to be covertly transmitted in the current iteration to obtain the secret information to be covertly transmitted in the next iteration, and determines whether the WebSocket fragmented data packet has been continuously sent N times; if not, returns to the step of "selecting the first i - bit secret information of the secret information to be covertly transmitted as the first secret information to be embedded"; if so, selects the first j - bit secret information of the secret information to be covertly transmitted as the second secret information to be embedded, determines the WebSocket non - fragmented data packet corresponding to the second secret information to be embedded based on the corresponding relationship between the second secret information to be embedded and the preset number of WebSocket non - fragmented data packets and the secret information, and sends the WebSocket non - fragmented data packet; determines whether the number of bits of the secret information to be covertly transmitted in the current iteration is 0, obtaining a second judgment result; if the second judgment result is no, removes the second secret information to be embedded from the secret information to be covertly transmitted in the current iteration to obtain the secret information to be covertly transmitted in the next iteration, and returns to the step of "selecting the first i - bit secret information of the secret information to be covertly transmitted as the first secret information to be embedded". The server can feedback the covert communication end flag for the covert communication request obtained to the terminal.

[0045] In addition, in some embodiments, the time hidden channel - type covert communication method for the vehicle - to - everything (V2X) network can also be implemented by the server or the terminal alone. For example, the terminal can directly process the covert communication request to be processed, or the server can obtain the covert communication request to be processed from the data storage system and process the covert communication request to be processed.

[0046] Among them, the terminal can be, but is not limited to, various desktop computers, laptop computers, smart phones, tablet computers, Internet of Things devices, and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart in-vehicle devices, etc. The portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The server can be implemented by an independent server or a server cluster composed of multiple servers, and can also be a cloud server.

[0047] In an exemplary embodiment, as Figure 2 shown, a time covert channel-based covert communication method for the vehicle Internet of Things is provided. This method is executed by a computer device, and specifically can be executed alone by a computer device such as a terminal or a server, or can be jointly executed by a terminal and a server. In the embodiments of the present application, taking this method applied to Figure 1 the server in as an example for illustration, it includes the following steps.

[0048] Step S1, obtain the secret information to be covertly transmitted.

[0049] Step S2, select the first i-bit secret information of the secret information to be covertly transmitted as the first secret information to be embedded. Based on the first secret information to be embedded and the corresponding relationship between the preset WebSocket shard packet shard quantity and the secret information, determine the WebSocket shard packet corresponding to the first secret information to be embedded, and send the WebSocket shard packet; where i is a positive integer.

[0050] Step S3, determine whether the number of bits of the secret information to be covertly transmitted in the current iteration is 0, and obtain a first judgment result.

[0051] Step S4, if the first judgment result is negative, then remove the first secret information to be embedded from the secret information to be covertly transmitted in the current iteration to obtain the secret information to be covertly transmitted in the next iteration, and determine whether the WebSocket shard packet has been continuously sent N times; where N is a positive integer.

[0052] Step S5, if not, then return to the step of "selecting the first i-bit secret information of the secret information to be covertly transmitted as the first secret information to be embedded".

[0053] Step S6, if so, then select the first j-bit secret information of the secret information to be covertly transmitted as the second secret information to be embedded. Based on the second secret information to be embedded and the corresponding relationship between the preset WebSocket non-shard packet quantity and the secret information, determine the WebSocket non-shard packet corresponding to the second secret information to be embedded, and send the WebSocket non-shard packet; where j is a positive integer.

[0054] Step S7: Determine whether the number of bits of the secret information to be covertly transmitted in the current iteration is 0, and obtain a second determination result.

[0055] Step S8: If the second determination result is negative, then remove the second secret information to be embedded from the secret information to be covertly transmitted in the current iteration to obtain the secret information to be covertly transmitted in the next iteration, and return to the step of "selecting the first i bits of the secret information to be covertly transmitted as the first secret information to be embedded".

[0056] By implementing the above steps S1 to S8, in this embodiment, two methods are respectively used to construct a time covert channel by the number of fragments of WebSocket fragmented packets and the number of WebSocket non-fragmented packets between two WebSocket fragmented packets to embed secret information. This method does not perform physical embedding, has strong concealment, has strong anti-detection ability, and can achieve covert communication based on the WebSocket protocol in the vehicle networking environment.

[0057] This embodiment provides a method for constructing a time covert channel for vehicle networking, specifically a method for constructing a time covert channel based on the WebSocket protocol for the vehicle networking environment. Two methods are respectively used to construct a time covert channel by the number of fragments of WebSocket fragmented packets and the number of WebSocket non-fragmented packets between two WebSocket fragmented packets to embed secret information, so as to form a time covert channel-based covert communication method for vehicle networking by means of the constructed time covert channel. This method does not perform physical embedding, has strong concealment, has strong anti-detection ability, and can flexibly adapt to the secret information transmission requirements of different application scenarios through parameter adjustment, achieving a balance between the anti-detection ability of the covert channel and the transmission rate of the secret information.

[0058] After the start of covert communication, in this embodiment, two methods are used to embed secret information by the number of fragments of WebSocket fragmented packets and the number of WebSocket non-fragmented packets between two WebSocket fragmented packets. Specifically, the method of embedding by the number of fragments of WebSocket fragmented packets can be alternately selected N times and the method of embedding by the number of WebSocket non-fragmented packets between two WebSocket fragmented packets can be selected 1 time. Hereinafter, the two embedding methods are introduced respectively:

[0059] (1) Embedding method by the number of fragments of WebSocket fragmented packets

[0060] Embed the secret information according to the number of fragments m of the WebSocket fragmented packet, and embed i bits of binary secret information each time, where i ≤ I, and M is the number of fragments of the WebSocket fragmented packet with the maximum length collected in the actual application scenario. Read i bits of secret information and convert it into a decimal number d. Select the WebSocket fragmented packet that meets the requirements according to the corresponding relationship between d and the number of fragments m of the WebSocket fragmented packet. The corresponding relationship is: the value range of m is [xd + 2, xd + y + 2], and m is randomly selected within the above value range of m, where x = 2 I-i , y = 2 I-i -1. For example: when M is 52, then I ≤ 5. Let I = 5. If i = I = 5, then m = d + 2, that is to say, at this time, only one WebSocket fragmented packet with a certain number of fragments can be selected; if i = 4, then m = 2d + 2 or m = 2d + 3, that is to say, at this time, two WebSocket fragmented packets with different numbers of fragments can be selected; if i = 3, then the value range of m is [4d + 2, 4d + 5], that is to say, at this time, 4 WebSocket fragmented packets with different numbers of fragments can be selected; if i = 2, then the value range of m is [8d + 2, 8d + 9], that is to say, at this time, 8 WebSocket fragmented packets with different numbers of fragments can be selected; if i = 1, then the value range of m is [16d + 2, 16d + 17], that is to say, at this time, 16 WebSocket fragmented packets with different numbers of fragments can be selected. From the corresponding relationship, it can be seen that in the case of I = 5, WebSocket fragmented packets with 2 ≤ m ≤ 33 numbers of fragments can be selected to embed the secret information. If no WebSocket fragmented packet that meets the requirements can be selected, then at this time, the secret information is not embedded through the number of fragments of the WebSocket fragmented packet, but a WebSocket fragmented packet with a number of fragments P > 2 I +1 is directly selected for sending. For example, let I = 5, then a WebSocket fragmented packet with a number of fragments P > 33 is selected.

[0061] (2) Embedding method of the number of non-fragmented WebSocket packets between two WebSocket fragmented packets

[0062] Embed the secret information according to the number of non-fragmented WebSocket packets between two WebSocket fragmented packets. Each time, j bits of binary secret information are embedded, where V is the maximum number of WebSocket non-fragmented packets between two WebSocket fragmented packets collected in the actual application scenario. Read j bits of secret information and convert it into a decimal number e. Then select ke + 1 WebSocket non-fragmented packets for sending, where k ≥ 1. For example, if V is 19, then j ≤ 4. You can select j = 3. If the 3-bit secret information read is "101" and k = 2, then select 11 WebSocket non-fragmented packets for sending.

[0063] In this embodiment, the first i bits of the secret information to be secretly transmitted are selected as the first secret information to be embedded, where i ≤ I. Here, I is a positive integer, and M is the number of fragments of the WebSocket fragmented packet with the maximum length collected in the actual application scenario.

[0064] In this embodiment, the corresponding relationship between the preset number of fragments of the WebSocket fragmented packet and the secret information is as follows: The value range of the number of fragments m of the WebSocket fragmented packet is [xd + 2, xd + y + 2], where x = 2 I-i , d is the decimal number obtained by converting the i-bit secret information, and y = 2 I-i -1.

[0065] At this time, based on the first secret information to be embedded and the corresponding relationship between the preset number of fragments of the WebSocket fragmented packet and the secret information, determine the WebSocket fragmented packet corresponding to the first secret information to be embedded. Specifically, it includes:

[0066] (1) Based on the first secret information to be embedded and the corresponding relationship between the preset number of fragments of the WebSocket fragmented packet and the secret information, determine the range of the number of fragments of the WebSocket fragmented packet corresponding to the first secret information to be embedded.

[0067] (2) Randomly select a number of fragments of the WebSocket fragmented packet within the range of the number of fragments of the WebSocket fragmented packet as the first number of fragments corresponding to the first secret information to be embedded.

[0068] (3) Determine whether there is a WebSocket fragmented packet with the first number of fragments.

[0069] (4) If so, select the WebSocket fragmented packet with the first number of fragments as the WebSocket fragmented packet corresponding to the first secret information to be embedded.

[0070] (5) If not, select the WebSocket fragmented packet with the second number of fragments as the WebSocket fragmented packet corresponding to the first secret information to be embedded, and set the first secret information to be embedded as empty; where the second number of fragments is P, and P > 2 I + 1.

[0071] If not, at this time, there is no suitable WebSocket fragmented packet to embed the first secret information to be embedded. Therefore, the first secret information to be embedded is not embedded. Instead, a WebSocket fragmented packet with the second number of fragments is sent, and the first secret information to be embedded is set as empty. Removing the first secret information to be embedded from the secret information to be covertly transmitted in the current iteration is equivalent to not changing the number of bits of the secret information to be covertly transmitted in the current iteration, and the next embedding is performed.

[0072] In this embodiment, the first j bits of the secret information to be covertly transmitted are selected as the second secret information to be embedded. V is the maximum number of WebSocket non-fragmented packets between two WebSocket fragmented packets collected in the actual application scenario.

[0073] In this embodiment, the corresponding relationship between the preset number of WebSocket non-fragmented packets and the secret information is: the number of WebSocket non-fragmented packets J = ke + 1, where k is a positive integer and e is the decimal number obtained by converting the j-bit secret information.

[0074] At this time, based on the second secret information to be embedded and the corresponding relationship between the preset number of WebSocket non-fragmented packets and the secret information, determine the WebSocket non-fragmented packets corresponding to the second secret information to be embedded, specifically including:

[0075] (1) Based on the second secret information to be embedded and the corresponding relationship between the preset number of WebSocket non-fragmented packets and the secret information, determine the number of WebSocket non-fragmented packets J corresponding to the second secret information to be embedded.

[0076] (2) Randomly select J WebSocket non-fragmented packets as the WebSocket non-fragmented packets corresponding to the second secret information to be embedded.

[0077] Since this embodiment wants to alternately select the method of embedding the number of shards of WebSocket fragmented packets N times and the method of embedding the number of WebSocket unfragmented packets between two WebSocket fragmented packets once, that is, after embedding the number of shards of WebSocket fragmented packets N times, then embed the number of WebSocket unfragmented packets between two WebSocket fragmented packets once. Therefore, after each embedding of the number of shards of WebSocket fragmented packets, it is necessary to determine whether WebSocket fragmented packets have been continuously sent N times. If so, it means that the number of shards of WebSocket fragmented packets has been embedded N times. At this time, use the method of embedding the number of WebSocket unfragmented packets between two WebSocket fragmented packets. If not, it means that the number of shards of WebSocket fragmented packets has not been embedded N times. At this time, use the method of embedding the number of shards of WebSocket fragmented packets.

[0078] In this embodiment, the value of N can be randomly changed. Therefore, before the step of "selecting the first i-bit secret information of the secret information to be secretly transmitted as the first secret information to be embedded" needs to be returned when the second judgment result is no, the time hidden channel type covert communication method for the vehicle-to-internet of things in this embodiment further includes: randomly determining the value of N again.

[0079] This embodiment selects n WebSocket fragmented packets as the start flag and end flag of covert communication, where n≥2. At the beginning of covert communication, continuously send n WebSocket fragmented packets as the start flag of covert communication and start covert communication until all the secret information to be secretly transmitted is embedded. At this time, covert communication ends. At the end of covert communication, continuously send n WebSocket fragmented packets as the end flag of covert communication. At this time, to avoid confusion, set N < n.

[0080] At this time, before the first sending of WebSocket fragmented packets, the time hidden channel type covert communication method for the vehicle-to-internet of things in this embodiment further includes: continuously sending n WebSocket fragmented packets, representing the start of covert communication; when the first judgment result is yes or the second judgment result is yes, the time hidden channel type covert communication method for the vehicle-to-internet of things in this embodiment further includes: continuously sending n WebSocket fragmented packets, representing the end of covert communication.

[0081] In this embodiment, a time covert channel is constructed in two ways, namely, the number of fragmented WebSocket packets and the number of non-fragmented WebSocket packets between two fragmented WebSocket packets, to embed secret information. This method does not perform physical embedding and cannot be recognized by network protection systems such as firewalls, with strong concealment and high anti-detection ability.

[0082] This embodiment can flexibly adapt to the transmission requirements of secret information in different application scenarios through parameter adjustment, achieving a balance between the anti-detection ability of the covert channel and the transmission rate of secret information. When a higher transmission rate of secret information is required, the values of i and j can be appropriately increased, and the value of k can be appropriately decreased. When facing a harsh network confrontation environment with high anti-detection requirements, the value of i can be appropriately decreased.

[0083] At this time, in this embodiment, the determination methods of i, j, and k are as follows: if a higher transmission rate of secret information is required, increase i and j, and decrease k; if the communication network environment is complex or there are security threats, decrease i.

[0084] This application also provides an application scenario that applies the above-mentioned time covert channel-based covert communication method for the vehicle-to-everything (V2X) network. Specifically, the time covert channel-based covert communication method for the V2X network provided in this embodiment can be applied in a covert communication scenario, which includes a secret information embedding link and a data transmission link. The secret information embedding link is used to construct a time covert channel in two ways, namely, the number of fragmented WebSocket packets and the number of non-fragmented WebSocket packets between two fragmented WebSocket packets, to embed secret information. The data transmission link is used to send fragmented WebSocket packets or non-fragmented WebSocket packets to the outside. The time covert channel-based covert communication method for the V2X network provided in this embodiment belongs to the secret information embedding link and the data transmission link.

[0085] Embodiment 2

[0086] In an exemplary embodiment, a computer device is provided. The computer device can be a server or a terminal, and its internal structure diagram can be as Figure 3As shown in the figure. The computer device includes a processor, a memory, an input / output interface (Input / Output, abbreviated as I / O), and a communication interface. Among them, the processor, the memory, and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data. The input / output interface of the computer device is used to exchange information between the processor and external devices. The communication interface of the computer device is used to communicate with external terminals through a network connection. When the computer program is executed by the processor, it implements a time hidden channel type covert communication method for the vehicle networking.

[0087] Those skilled in the art can understand that Figure 3 the structure shown in the figure is only a block diagram of some structures related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine some components, or have different component arrangements.

[0088] In an exemplary embodiment, a computer device is provided, including a memory and a processor. A computer program is stored in the memory, and when the processor executes the computer program, it implements the time hidden channel type covert communication method for the vehicle networking in Embodiment 1.

[0089] Embodiment 3

[0090] In an exemplary embodiment, a computer-readable storage medium is provided, storing a computer program, and when the computer program is executed by the processor, it implements the time hidden channel type covert communication method for the vehicle networking in Embodiment 1.

[0091] Embodiment 4

[0092] In an exemplary embodiment, a computer program product is provided, including a computer program, and when the computer program is executed by the processor, it implements the time hidden channel type covert communication method for the vehicle networking in Embodiment 1.

[0093] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in the present application are all information and data authorized by the user or fully authorized by all parties, and the collection, use, and processing of the relevant data need to comply with the relevant regulations.

[0094] The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity of description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered that the scope described in this specification is covered.

[0095] In this article, specific examples are used to elaborate on the principle and implementation manner of the present application. The description of the above embodiments is only used to help understand the method and its core idea of the present application; at the same time, for those of ordinary skill in the art, according to the idea of the present application, there will be changes in the specific implementation manner and application scope. In summary, the content of this specification should not be construed as a limitation to the present application.

Claims

1. A time covert channel - based covert communication method for the vehicle - to - everything network, characterized in that The time hidden channel type covert communication method for the vehicle Internet of Things includes: Obtain the secret information to be covertly transmitted; Select the first i-bit secret information of the secret information to be covertly transmitted as the first secret information to be embedded. Based on the first secret information to be embedded and the corresponding relationship between the preset WebSocket fragmented packet fragmentation number and the secret information, determine the WebSocket fragmented packet corresponding to the first secret information to be embedded, and send the WebSocket fragmented packet; where i is a positive integer; Judge whether the number of bits of the secret information to be covertly transmitted in the current iteration is 0, and obtain the first judgment result; If the first judgment result is no, then remove the first secret information to be embedded from the secret information to be covertly transmitted in the current iteration to obtain the secret information to be covertly transmitted in the next iteration, and judge whether the WebSocket fragmented packet has been sent continuously for N times; where N is a positive integer; If not, return to the step of "selecting the first i-bit secret information of the secret information to be covertly transmitted as the first secret information to be embedded"; If so, select the first j-bit secret information of the secret information to be covertly transmitted as the second secret information to be embedded. Based on the second secret information to be embedded and the corresponding relationship between the preset WebSocket non-fragmented packet number and the secret information, determine the WebSocket non-fragmented packet corresponding to the second secret information to be embedded, and send the WebSocket non-fragmented packet; where j is a positive integer; Judge whether the number of bits of the secret information to be covertly transmitted in the current iteration is 0, and obtain the second judgment result; If the second judgment result is no, then remove the second secret information to be embedded from the secret information to be covertly transmitted in the current iteration to obtain the secret information to be covertly transmitted in the next iteration, and return to the step of "selecting the first i-bit secret information of the secret information to be covertly transmitted as the first secret information to be embedded".

2. The time covert channel-based covert communication method for vehicle networking according to claim 1, wherein i ≤ I, where I is a positive integer, and M is the number of shards of the WebSocket fragmented packet with the maximum length collected in the actual application scenario; The corresponding relationship between the preset number of shards of the WebSocket fragmented data packet and the secret information is as follows: the value range of the number of shards m of the WebSocket fragmented data packet is [xd + 2, xd + y + 2], where x = 2 I-i , d is the decimal number obtained by converting the i-bit secret information, and y = 2 I-i -1; V is the maximum number of WebSocket non-fragmented data packets between two WebSocket fragmented data packets collected in an actual application scenario; The corresponding relationship between the preset WebSocket non-fragmented packet number and the secret information is: the WebSocket non-fragmented packet number J = ke + 1, where k is a positive integer and e is the decimal number obtained by converting the j-bit secret information; 3. The time covert channel-based covert communication method for the vehicle Internet of Things according to claim 1, characterized in that Before the first sending of the WebSocket fragmented packet, the time hidden channel type covert communication method for the vehicle Internet of Things further includes: continuously sending n WebSocket fragmented packets to represent the start of covert communication; When the first judgment result is yes or the second judgment result is yes, the time hidden channel type covert communication method for the vehicle Internet of Things further includes: continuously sending n WebSocket fragmented packets to represent the end of covert communication; Where N is less than n; 4. The time - hidden - channel - type covert communication method for vehicle - to - everything network according to claim 2, wherein Based on the first secret information to be embedded and the corresponding relationship between the preset WebSocket fragmented packet fragmentation number and the secret information, determining the WebSocket fragmented packet corresponding to the first secret information to be embedded specifically includes: Based on the first secret information to be embedded and the corresponding relationship between the preset WebSocket fragmented packet fragmentation quantity and the secret information, determine the range of the WebSocket fragmented packet fragmentation quantity corresponding to the first secret information to be embedded; Randomly select a WebSocket fragmented packet fragmentation quantity within the range of the WebSocket fragmented packet fragmentation quantity as the first fragmentation quantity corresponding to the first secret information to be embedded; Determine whether there is a WebSocket fragmented packet with the first fragmentation quantity; If so, select the WebSocket fragmented packet with the first fragmentation quantity as the WebSocket fragmented packet corresponding to the first secret information to be embedded; Otherwise, select the WebSocket fragmented packet with the second number of fragments as the WebSocket fragmented packet corresponding to the first secret information to be embedded, and set the first secret information to be embedded to be empty; where the second number of fragments is P, and P>2 I +1.

5. The time covert channel type covert communication method for vehicle networking according to claim 2, characterized in that Based on the second secret information to be embedded and the corresponding relationship between the preset WebSocket non-fragmented packet quantity and the secret information, determine the WebSocket non-fragmented packet corresponding to the second secret information to be embedded, specifically including: Based on the second secret information to be embedded and the corresponding relationship between the preset WebSocket non-fragmented packet quantity and the secret information, determine the quantity J of the WebSocket non-fragmented packets corresponding to the second secret information to be embedded; Randomly select J WebSocket non-fragmented packets as the WebSocket non-fragmented packets corresponding to the second secret information to be embedded.

6. The time covert channel type covert communication method for vehicle networking according to claim 2, characterized in that The determination methods of i, j, and k include: if a higher secret information transmission rate is required, increase i and j and decrease k; if the communication network environment is complex or there are security threats, decrease i.

7. The time covert channel-based covert communication method for vehicle networking according to claim 1, wherein Before the step of "selecting the first i-bit secret information of the secret information to be covertly transmitted as the first secret information to be embedded" needs to be returned when the second judgment result is negative, the time hidden channel type covert communication method for the vehicle-to-internet also includes: re-randomly determining the value of N.

8. A computer device, comprising: A memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the computer program to implement the time hidden channel type covert communication method for the vehicle-to-internet according to any one of claims 1-7.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the time hidden channel type covert communication method for the vehicle-to-internet according to any one of claims 1-7.

10. A computer program product comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the time hidden channel type covert communication method for the vehicle-to-internet according to any one of claims 1-7.

Citation Information

Patent Citations

  • High-security combined covert channel synchronization method

    CN103281164A

  • System and Method for Improving Content Fetching by Selecting Tunnel Devices

    US20200220746A1