Comprehensive credibility evaluation method and system based on multi-dimensional data of Internet of Things equipment
Through a multi-dimensional data comprehensive evaluation method, combining attribute information, network behavior and historical trust data, using the Transformer model and support vector machine, the accuracy problem of the credibility evaluation of IoT devices is solved, and the accuracy of the evaluation and system stability are improved. sex.
Patent Information
- Application Number
- CN202410905869.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-08
- Publication Date
- 2024-10-29
AI Technical Summary
In IoT devices, existing technology is difficult to effectively evaluate the credibility of the device, especially when faced with changes in its own attributes, SIoT-based attacks, network traffic attacks, evaluation model delays, and malicious behaviors, resulting in device credibility assessment. Failure affects system stability.
Using a multi-dimensional data comprehensive evaluation method, by obtaining device attribute information and network behavior information, using the Transformer model to predict network characteristics, combining device attributes and network behavior, calculating direct credibility and indirect credibility, and combining historical trust data, Use support vector machines for final credibility judgments.
It achieves a comprehensive credibility assessment of IoT devices, improves judgment accuracy, ensures the comprehensiveness and effectiveness of device credibility management, and reduces the waste of system resources and potential risks.
Smart Images

Figure CN118869293A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a comprehensive credibility evaluation method based on multi-dimensional data of Internet of Things devices. Background Art
[0002] Through the research on edge computing and cloud computing, a hierarchical overall architecture can be constructed, providing a new perspective for achieving more efficient data processing and transmission. Figure 1 As shown in Figure 1, the architecture mainly consists of three key layers: user device layer, middle layer, and server layer. In the user device layer, various terminal devices such as smartphones and sensor nodes play an important role. They are not only the source of data, but also carry the execution requirements of various applications. The server layer is located above the middle layer and is responsible for processing computing requests sent by the user device layer and providing corresponding computing resources.
[0003] In this architecture, special attention is paid to the transmission intermediate layer between the user device layer and the server layer. This layer consists of transmission base stations and access points, etc., and plays the role of a bridge connecting user devices and servers. Base stations and access points can obtain all information about the user devices connected to them, such as location information, attribute information, and network traffic information. After obtaining this information, the base stations and access points as the intermediate layer do not have enough capacity to process this information, so they will send it to the edge server.
[0004] The existing adaptability models are as follows:
[0005] 1. Changes in own attributes
[0006] The device itself has its own attribute information, such as power, manufacturer, location, and temperature. Taking power as an example, it directly affects the availability of the device and the durability of task execution. When the power level of the device drops to a low level, its ability to perform tasks may be limited. For example, during the execution of a task, if the power of the device is not enough to support the completion of the task, it may cause the task to be interrupted midway, resulting in incomplete execution results or even task failure. Similarly, the manufacturer, location, and temperature attributes can affect the execution of tasks in the same way.
[0007] 2. SIoT-based attacks (malicious defamation, malicious recommendations)
[0008] In SIoT-based attacks, infected devices may affect the reputation of other devices through malicious recommendations, or interfere with the trustworthiness of devices in the system through malicious slander. In this case, if an infected untrusted device is mistakenly marked as a trusted device, it may be allowed to execute the task, which will eventually lead to task failure. Conversely, if a trusted device is maliciously marked as an untrusted device, it may be excluded from task execution, and the system will continue to assign tasks to the only remaining trusted devices, resulting in insufficient system resources and ultimately system failure.
[0009] 3. Attacks based on network traffic
[0010] In attacks based on network traffic, we focus on the network behavior information of the device. When a device receives an attack based on network traffic, it may experience abnormalities in sending and receiving data packets. The attacked device may send a large number of invalid data packets or requests, or occupy the device's network resources, so that the device cannot normally process legitimate network traffic, thereby affecting the normal function of the device; it may also suppress the reception of data packets so that the device cannot normally receive data packets sent by other devices or servers, causing the device to enter an "offline" state. By disrupting the normal traffic of devices within the system, the overall operation of the system is disturbed.
[0011] 4. Evaluation model delays and sudden malicious behavior
[0012] In this case, we consider the lag of general evaluation methods and the sudden malicious behavior of devices. In the complex environment of the Internet of Things, after we have completed the evaluation of the device and identified it as a trusted device, malicious behavior displayed after the evaluation or during the working process will make the device unable to work normally and unable to complete the task. When this happens frequently, it will cause the general evaluation method to fail. Summary of the invention
[0013] The purpose of the present invention is to provide an efficient comprehensive credibility assessment method and system based on multi-dimensional data of Internet of Things devices.
[0014] In order to solve the above technical problems, the present invention provides a comprehensive credibility evaluation method based on multi-dimensional data of IoT devices, comprising the following steps:
[0015] Get the property information of the target device;
[0016] Perform credibility analysis on the attribute information of the target device to obtain attribute sub-credibility;
[0017] According to the attribute sub-credibility, the total credibility of the attribute part is calculated;
[0018] Obtain network behavior information of the target device;
[0019] Preprocessing the network behavior information to obtain preprocessed network behavior information;
[0020] The preprocessed network behavior information is input into the Transformer model for prediction to obtain the predicted network feature information of the target device;
[0021] Obtain the actual network characteristic information of the target device;
[0022] The total credibility of the behavior part is calculated based on the predicted network feature information and the actual network feature information of the target device;
[0023] According to the total credibility of the attribute part and the total credibility of the behavior part, the direct credibility is calculated;
[0024] Get the message records sent and received between the target device and other devices;
[0025] According to the records of sending and receiving messages, the indirect credibility is calculated;
[0026] Obtain historical trust data information of the target device;
[0027] According to the historical trust data information, the historical credibility is calculated;
[0028] Determine whether the target device is trustworthy based on direct credibility, indirect credibility, and historical credibility.
[0029] Preferably, performing credibility analysis on the attribute information of the target device to obtain the attribute sub-credibility specifically includes the following steps:
[0030] The attribute information of the target device includes the current battery power, current location, identity, current temperature, software and hardware versions, average working time in the activated state and deployment time; i Represents the current battery level of the device; pos i Is a triplet pos i =(x i ,y i ,z i ) represents the current position of the device, where x i ,y i ,z i Respectively represent the coordinate points of the device relative to the deployment area; identity i Represents the identity of the device; i Represents the current temperature of the device; sv i With hv i Represents the software and hardware versions used by the device; worktime i Represents the average working time of the device in the activated state, deploytime iRepresents the deployment time of the device;
[0031] The attribute sub-trustworthiness includes the attribute sub-trustworthiness of the power part, the attribute sub-trustworthiness of the location part, the attribute sub-trustworthiness of the identity part, the attribute sub-trustworthiness of the temperature part, the attribute sub-trustworthiness of the software and hardware versions, the attribute sub-trustworthiness of the average working time in the activated state, and the attribute sub-trustworthiness of the deployment time;
[0032] The attribute sub-credibility of the power part is PT i bat :
[0033]
[0034] in: is the credible power threshold. When the attribute sub-credibility of the power part is PT bat Always 1, is the penalty power threshold, when PT bat Gradually decays to 0, when Time PT bat It will decay rapidly from 0;
[0035] The attribute sub-credibility of the location part is PT i pos :
[0036]
[0037] Where (x0, y0, z0) is the original coordinate setting of the current device, k pos is the scaling factor;
[0038] The attribute sub-credibility of the identity part is PT i iden :
[0039]
[0040] Among them, act iden Represents the identity level required for the action performed by the current device;
[0041] The attribute sub-credibility of the temperature part is PT i t :
[0042]
[0043] in, k is the upper temperature limit of device i, t is the scaling factor, controlling the decay speed;
[0044] The attribute sub-credibility of the software and hardware version is PT i v :
[0045]
[0046] Among them, hv now With sv now Represent the latest hardware version and software version respectively, k hv ,k sv They are the scaling factors of the hardware version and software version, respectively, used to control the corresponding attenuation speed;
[0047] The attribute sub-credibility of the average working time part in the activation state is PT i wt :
[0048]
[0049] in are the minimum and maximum thresholds of the average working time of the device in the activated state. If it is lower or higher than these two thresholds, the credibility of the device will gradually decrease; k wt1 ,k wt2 are the scaling factors below the working time threshold and above the working time threshold, respectively;
[0050] The attribute sub-credibility of the deployment duration is PT i dt :
[0051]
[0052] Among them dt is the set service life of the equipment, k dt is the scaling factor.
[0053] Preferably, according to the attribute sub-credibility, the total credibility of the attribute part is calculated, which specifically includes the following steps:
[0054] Aggregate the above attribute sub-credibility to get the attribute part total credibility DPT i :
[0055]
[0056] in: is the weight corresponding to the attribute sub-credibility; PT i n is the attribute sub-credibility;
[0057] The weight corresponding to the attribute sub-credibility Subject to:
[0058]
[0059] Preferably, preprocessing the network behavior information to obtain the preprocessed network behavior information specifically includes the following steps:
[0060] Define a time step to describe the time of collecting device network behavior information, denoted as TS, and the network behavior information of device i collected in the nth time step is denoted as
[0061]
[0062] Where: f i n,m代 represents the mth feature of device i in the nth time step. For device i, the set of network behavior information corresponding to all time steps collected is recorded as
[0063] Normalize network behavior information;
[0064]
[0065] in: They are respectively the highest threshold and the lowest threshold of the characteristic information of a normal working device;
[0066] The feature information set after normalization is represented as S i,Norm ;
[0067]
[0068] According to the feature information S after normalization i,Norm , generating time series as the network behavior information after preprocessing.
[0069] Preferably, the Transformer model includes an encoder and a decoder;
[0070] The encoder is composed of N identical layers stacked together, each layer contains a multi-head self-attention mechanism and a feed-forward fully connected neural network, and uses residual connections and layer normalization operations;
[0071] The decoder consists of M identical layers, each of which includes a masked multi-head self-attention mechanism, a multi-head cross-attention mechanism, and a feed-forward fully connected neural network, while also using residual connections and layer normalization.
[0072] Preferably, the total credibility of the behavior part is calculated based on the predicted network feature information and the actual network feature information of the target device; the direct credibility is calculated based on the total credibility of the attribute part and the total credibility of the behavior part, which specifically includes the following steps:
[0073] Calculate the similarity sim between the predicted network feature information and the actual network feature information of the target device:
[0074]
[0075] Where: N represents the number of features in the behavior information, p′ i and a′ i They represent the results of the predicted network feature information P and the actual network feature information A after the i-th feature is enlarged 10 times, and k sim is the sensitivity of sim to the feature;
[0076] When the similarity sim is lower than the similarity threshold th sim When the predicted network feature information P is subtracted from the actual network feature information A, the absolute value is taken, and then sorted in order from small to large, and a set of weights is set for the sorted difference
[0077]
[0078] Among them: iter w is the index of the current weight in the array;
[0079] Calculate the total credibility DFT of the behavior part i :
[0080]
[0081] Where: sim represents the similarity between the predicted network feature information P and the actual network feature information A, th sim Represents the similarity threshold, kdif f is the scaling factor controlling the decay speed, and diff is the difference between P and A;
[0082] According to the total credibility of the attribute part DPT i Total credibility of the behavior part DFT i , calculate the direct credibility DT i ;
[0083] DT i =w dpt *DPT i +w dft *DFT i
[0084] Where: w dpt With w dft Represent the total credibility weight of the attribute part and the total credibility weight of the behavior part, and w dpt +wdft =1.
[0085] Preferably, the indirect credibility is calculated based on the records of sending and receiving messages, which specifically includes the following steps:
[0086] Define the community C of the target device eva eva , define the community C of the target device eva eva The degree of connection between device n and target device i to be evaluated rel n ,i:
[0087]
[0088] Among them: CON n Represents the number of times device n sends messages to all other devices, con n ,i represents the number of times device n sends messages to the device i to be evaluated;
[0089] Use the filter function to filter out devices with less close connections:
[0090] filter(rel n,i )=rel n,i H(rel n,i -th con )
[0091] Where: H(x) is the unit step function;
[0092] Define the quality of interaction between device n and device i to be evaluated n ,i:
[0093]
[0094] Among them: positive n ,i represents the positive feedback of device i to device n’s request during the interaction between device n and device i; interaction n ,i represents the number of all interactions between device n and device i;
[0095] Calculate the indirect credibility of the target device based on the evaluation of all devices in the community. i :
[0096]
[0097] Where: C n is the community device set of device n in the eva community, N is C eva The number of devices in the fil For filter(rel n,i) and the number of devices for which the result is not 0.
[0098] Preferably, the historical credibility is calculated based on the historical trust data information, which specifically includes the following steps:
[0099] The historical trust data of device i consists of multiple historical trust data composition:
[0100]
[0101] Among them, ts n is the timestamp at the end of the time step, T n Representative in ts n Whether the device has malicious behavior during this time step, T n ={0,1},T n =0 means that the device has malicious behavior, otherwise no
[0102] Calculate historical credibility HT i :
[0103]
[0104] Where: N represents the total amount of historical trust data for device i, ts now is the current timestamp, k HDT is the scaling factor.
[0105] Preferably, judging the credibility of the target device according to the direct credibility, the indirect credibility and the historical credibility specifically includes the following steps:
[0106] Direct credibility DT i , indirect credibility IT i and historical credibility HT i Perform MinMax normalization to obtain normalized credibility;
[0107] The normalized credibility is input into the classification model for processing to determine whether the target device is trustworthy.
[0108] The present invention also provides a comprehensive credibility evaluation system based on multi-dimensional data of IoT devices, comprising:
[0109] A first acquisition module, used to acquire attribute information of a target device;
[0110] The attribute sub-credibility calculation module of the attribute part is used to perform credibility analysis on the attribute information of the target device to obtain the attribute sub-credibility;
[0111] The attribute part total credibility calculation module is used to calculate the attribute part total credibility according to the attribute sub-credibility;
[0112] The second acquisition module is used to obtain network behavior information of the target device;
[0113] A preprocessing module, used for preprocessing the network behavior information to obtain preprocessed network behavior information;
[0114] The prediction module is used to input the preprocessed network behavior information into the Transformer model for prediction, and obtain the predicted network feature information of the target device;
[0115] The third acquisition module is used to obtain the actual network characteristic information of the target device;
[0116] The total credibility calculation module of the behavior part is used to calculate the total credibility of the behavior part according to the predicted network characteristic information and the actual network characteristic information of the target device;
[0117] A direct credibility calculation module, used for calculating direct credibility according to the total credibility of the attribute part and the total credibility of the behavior part;
[0118] A fourth acquisition module is used to acquire the message sending and receiving records between the target device and other devices;
[0119] An indirect credibility calculation module, used to calculate the indirect credibility based on the records of sending and receiving messages;
[0120] A fifth acquisition module, used to acquire historical trust data information of a target device;
[0121] A historical credibility calculation module is used to calculate the historical credibility based on the historical trust data information;
[0122] The credibility judgment module is used to judge whether the target device is credible based on direct credibility, indirect credibility and historical credibility.
[0123] Compared with the prior art, the present invention has the following beneficial effects:
[0124] The present invention proposes a comprehensive credibility management method, which comprehensively evaluates the credibility of a device by considering direct credibility, indirect credibility and historical credibility, and comprehensively determines whether it is a credible device based on multi-dimensional data.
[0125] In the direct credibility part, Transformer is used to capture the time-varying behavior of the device's historical network traffic behavior to predict the device's behavior in the next time step. Then the behavior predicted by the algorithm is compared with the actual collected behavior to obtain similarity, and the direct credibility is generated in combination with the device's own attribute information. In the indirect credibility part, we determine the "social relationship" between devices through the degree of information interaction between devices, and obtain indirect credibility based on the closeness of this relationship and the "evaluation" of the device by other devices. The "evaluation" is whether the impact on each other after the interaction between devices is positive or negative. In the historical credibility part, we use an algorithm to combine the direct credibility and indirect credibility of each time step, and use the time decay method to generate historical credibility. Finally, we use a support vector machine (SVM) to classify the triple consisting of direct credibility, indirect credibility and historical credibility to determine whether the device is a trusted device. The accuracy of the present invention in determining whether the target device is a trusted device is high. BRIEF DESCRIPTION OF THE DRAWINGS
[0126] The specific implementation modes of the present invention are further described in detail below with reference to the accompanying drawings.
[0127] Figure 1 It is a schematic diagram of the existing hierarchical overall architecture of edge computing and cloud computing;
[0128] Figure 2 It is a schematic diagram of the overall architecture of comprehensive credibility assessment based on multi-dimensional data of IoT devices;
[0129] Figure 3 is a schematic diagram of the generated sequence;
[0130] Figure 4 It is a schematic diagram of the structure of the Transformer model;
[0131] Figure 5 It is a flow chart of the comprehensive credibility evaluation based on multi-dimensional data of IoT devices in the present invention. DETAILED DESCRIPTION
[0132] Many specific details are set forth in the following description to facilitate a full understanding of the present invention. However, the present invention can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of the present invention, so the present invention is not limited to the specific implementation disclosed below.
[0133] The terms used in one or more embodiments of this specification are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of this specification. The singular forms of "a", "said" and "the" used in one or more embodiments of this specification and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in one or more embodiments of this specification refers to and includes any or all possible combinations of one or more associated listed items.
[0134] It should be understood that although the terms first, second, etc. may be used to describe various information in one or more embodiments of this specification, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of this specification, the first may also be referred to as the second, and similarly, the second may also be referred to as the first. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0135] The present invention is further described in detail below in conjunction with the accompanying drawings:
[0136] like Figure 5 As shown, the present invention provides a comprehensive credibility evaluation method based on multi-dimensional data of IoT devices, comprising the following steps:
[0137] Get the property information of the target device;
[0138] Perform credibility analysis on the attribute information of the target device to obtain attribute sub-credibility;
[0139] According to the attribute sub-credibility, the total credibility of the attribute part is calculated;
[0140] Obtain network behavior information of the target device;
[0141] Preprocessing the network behavior information to obtain preprocessed network behavior information;
[0142] The preprocessed network behavior information is input into the Transformer model for prediction to obtain the predicted network feature information of the target device;
[0143] Obtain the actual network characteristic information of the target device;
[0144] The total credibility of the behavior part is calculated based on the predicted network feature information and the actual network feature information of the target device;
[0145] According to the total credibility of the attribute part and the total credibility of the behavior part, the direct credibility is calculated;
[0146] Get the message records sent and received between the target device and other devices;
[0147] According to the records of sending and receiving messages, the indirect credibility is calculated;
[0148] Obtain historical trust data information of the target device;
[0149] According to the historical trust data information, the historical credibility is calculated;
[0150] Determine whether the target device is trustworthy based on direct credibility, indirect credibility, and historical credibility.
[0151] Preferably, performing credibility analysis on the attribute information of the target device to obtain the attribute sub-credibility specifically includes the following steps:
[0152] The attribute information of the target device includes the current battery power, current location, identity, current temperature, software and hardware versions, average working time in the activated state and deployment time; i Represents the current battery level of the device; pos i Is a triplet pos i =(x i ,y i ,z i ) represents the current position of the device, where x i ,y i ,z i Respectively represent the coordinate points of the device relative to the deployment area; identity i Represents the identity of the device; i Represents the current temperature of the device; sv i With hv i Represents the software and hardware versions used by the device; worktime i Represents the average working time of the device in the activated state, deploytime i Represents the deployment time of the device;
[0153] The attribute sub-trustworthiness includes the attribute sub-trustworthiness of the power part, the attribute sub-trustworthiness of the location part, the attribute sub-trustworthiness of the identity part, the attribute sub-trustworthiness of the temperature part, the attribute sub-trustworthiness of the software and hardware versions, the attribute sub-trustworthiness of the average working time in the activated state, and the attribute sub-trustworthiness of the deployment time;
[0154] The attribute sub-credibility of the power part is PT i bat :
[0155]
[0156] in: is the credible power threshold. When the attribute sub-credibility of the power part is PT bat Always 1, is the penalty power threshold, when PT bat Gradually decays to 0, when Time PT bat It will decay rapidly from 0;
[0157] The attribute sub-credibility of the location part is PT i pos :
[0158]
[0159] Where (x0, y0, z0) is the original coordinate setting of the current device, k pos is the scaling factor;
[0160] The attribute sub-credibility of the identity part is PT i iden :
[0161]
[0162] Among them, act iden Represents the identity level required for the action performed by the current device;
[0163] The attribute sub-credibility of the temperature part is PT i t :
[0164]
[0165] in, k is the upper temperature limit of device i, t is the scaling factor, controlling the decay speed;
[0166] The attribute sub-credibility of the software and hardware version is PT i v :
[0167]
[0168] Among them, hv now With sv now Represent the latest hardware version and software version respectively, k hv ,k sv They are the scaling factors of the hardware version and software version, respectively, used to control the corresponding attenuation speed;
[0169] The attribute sub-credibility of the average working time part in the activation state is PT i wt :
[0170]
[0171] in are the minimum and maximum thresholds of the average working time of the device in the activated state. If it is lower or higher than these two thresholds, the credibility of the device will gradually decrease; k wt1 ,k wt2 are the scaling factors below the working time threshold and above the working time threshold, respectively;
[0172] The attribute sub-credibility of the deployment duration is PT i dt :
[0173]
[0174] Among them dt is the set service life of the equipment, k dt is the scaling factor.
[0175] Preferably, according to the attribute sub-credibility, the total credibility of the attribute part is calculated, which specifically includes the following steps:
[0176] Aggregate the above attribute sub-credibility to get the attribute part total credibility DPT i :
[0177]
[0178] in: is the weight corresponding to the attribute sub-credibility; PT i n is the attribute sub-credibility;
[0179] The weight corresponding to the attribute sub-credibility Subject to:
[0180]
[0181] Preferably, preprocessing the network behavior information to obtain the preprocessed network behavior information specifically includes the following steps:
[0182] Define a time step to describe the time of collecting device network behavior information, denoted as TS, and the network behavior information of device i collected in the nth time step is denoted as
[0183]
[0184] Where: fi n,m represents the mth feature of device i in the nth time step. For device i, the set of network behavior information corresponding to all time steps collected is recorded as
[0185] Normalize network behavior information;
[0186]
[0187] in: They are respectively the highest threshold and the lowest threshold of the characteristic information of a normal working device;
[0188] The feature information set after normalization is represented as S i,Norm ;
[0189]
[0190] According to the feature information S after normalization i,Norm , generating time series as the network behavior information after preprocessing.
[0191] Preferably, the Transformer model includes an encoder and a decoder;
[0192] The encoder is composed of N identical layers stacked together, each layer contains a multi-head self-attention mechanism and a feed-forward fully connected neural network, and uses residual connections and layer normalization operations;
[0193] The decoder consists of M identical layers, each of which includes a masked multi-head self-attention mechanism, a multi-head cross-attention mechanism, and a feed-forward fully connected neural network, while also using residual connections and layer normalization.
[0194] Preferably, the total credibility of the behavior part is calculated based on the predicted network feature information and the actual network feature information of the target device; the direct credibility is calculated based on the total credibility of the attribute part and the total credibility of the behavior part, which specifically includes the following steps:
[0195] Calculate the similarity sim between the predicted network feature information and the actual network feature information of the target device:
[0196]
[0197] Where: N represents the number of features in the behavior information, p′ i and a′ i They represent the results of the predicted network feature information P and the actual network feature information A after the i-th feature is enlarged 10 times, and k sim is the sensitivity of sim to the feature;
[0198] When the similarity sim is lower than the similarity threshold th sim When the predicted network feature information P is subtracted from the actual network feature information A, the absolute value is taken, and then sorted in order from small to large, and a set of weights is set for the sorted difference
[0199]
[0200] Among them: iter w is the index of the current weight in the array;
[0201] Calculate the total credibility DFT of the behavior part i :
[0202]
[0203] Where: sim represents the similarity between the predicted network feature information P and the actual network feature information A, th sim Represents the similarity threshold, kdif f is the scaling factor controlling the decay speed, and diff is the difference between P and A;
[0204] According to the total credibility of the attribute part DPT i Total credibility of the behavior part DFT i , calculate the direct credibility DT i ;
[0205] DT i =w dpt *DPT i +w dft *DFT i
[0206] Where: w dpt With w dft Represent the total credibility weight of the attribute part and the total credibility weight of the behavior part, and w dpt +w dft =1.
[0207] Preferably, the indirect credibility is calculated based on the records of sending and receiving messages, which specifically includes the following steps:
[0208] Define the community C of the target device eva eva , define the community C of the target device eva eva The degree of connection between device n and target device i to be evaluated rel n,i :
[0209]
[0210] Among them: CON n Represents the number of times device n sends messages to all other devices, con n ,i represents the number of times device n sends messages to the device i to be evaluated;
[0211] Use the filter function to filter out devices with less close connections:
[0212] filter(rel n,i )=rel n,i H(rel n,i -th con )
[0213] Where: H(x) is the unit step function;
[0214] Define the quality of interaction between device n and device i to be evaluated n ,i:
[0215]
[0216] Among them: positive n ,i represents the positive feedback of device i to device n’s request during the interaction between device n and device i; interaction n ,i represents the number of all interactions between device n and device i;
[0217] Calculate the indirect credibility of the target device based on the evaluation of all devices in the community. i :
[0218]
[0219] Where: C n is the community device set of device n in the eva community, N is C eva The number of devices in the fil For filter(rel n,i ) and the number of devices for which the result is not 0.
[0220] Preferably, the historical credibility is calculated based on the historical trust data information, which specifically includes the following steps:
[0221] The historical trust data of device i consists of multiple historical trust data composition:
[0222]
[0223] Among them, ts n is the timestamp at the end of the time step, T n Representative in ts nWhether the device has malicious behavior during this time step, T n ={0,1}, T n =0 means that the device has malicious behavior, otherwise no
[0224] Calculate historical credibility HT i :
[0225]
[0226] Where: N represents the total amount of historical trust data for device i, ts now is the current timestamp, k HDT is the scaling factor.
[0227] Preferably, judging the credibility of the target device according to the direct credibility, the indirect credibility and the historical credibility specifically includes the following steps:
[0228] Direct credibility DT i , indirect credibility IT i and historical credibility HT i Perform MinMax normalization to obtain normalized credibility;
[0229] The normalized credibility is input into the classification model for processing to determine whether the target device is trustworthy.
[0230] The present invention also provides a comprehensive credibility evaluation system based on multi-dimensional data of IoT devices, comprising:
[0231] A first acquisition module, used to acquire attribute information of a target device;
[0232] The attribute sub-credibility calculation module of the attribute part is used to perform credibility analysis on the attribute information of the target device to obtain the attribute sub-credibility;
[0233] The attribute part total credibility calculation module is used to calculate the attribute part total credibility according to the attribute sub-credibility;
[0234] The second acquisition module is used to obtain network behavior information of the target device;
[0235] A preprocessing module, used for preprocessing the network behavior information to obtain preprocessed network behavior information;
[0236] The prediction module is used to input the preprocessed network behavior information into the Transformer model for prediction, and obtain the predicted network feature information of the target device;
[0237] The third acquisition module is used to obtain the actual network characteristic information of the target device;
[0238] The total credibility calculation module of the behavior part is used to calculate the total credibility of the behavior part according to the predicted network characteristic information and the actual network characteristic information of the target device;
[0239] A direct credibility calculation module, used for calculating direct credibility according to the total credibility of the attribute part and the total credibility of the behavior part;
[0240] A fourth acquisition module is used to acquire the message sending and receiving records between the target device and other devices;
[0241] An indirect credibility calculation module, used to calculate the indirect credibility based on the records of sending and receiving messages;
[0242] A fifth acquisition module, used to acquire historical trust data information of a target device;
[0243] A historical credibility calculation module is used to calculate the historical credibility based on the historical trust data information;
[0244] The credibility judgment module is used to judge whether the target device is credible based on direct credibility, indirect credibility and historical credibility.
[0245] In order to better illustrate the technical effect of the present invention, the present invention provides the following specific embodiments to illustrate the above technical process:
[0246] Embodiment 1, a comprehensive credibility assessment method based on multi-dimensional data of IoT devices: The architecture consists of multiple active edge devices that perform various tasks and exchange information with each other. Therefore, it is crucial to identify and utilize the attributes of the devices, the social relationships between the devices, and the network behaviors of the devices to establish a credibility management model. The present invention proposes a comprehensive credibility management method, which comprehensively evaluates the credibility of a device by considering direct credibility, indirect credibility, and historical credibility, thereby determining whether it is a trusted device.
[0247] In the direct credibility part, we use Transformer to capture the time-varying behavior of the device's historical network traffic behavior to predict the device's behavior in the next time step. Then we compare the behavior predicted by the algorithm with the actual collected behavior to obtain similarity, and generate direct credibility in combination with the device's own attribute information. In the indirect credibility part, we determine the "social relationship" between devices through the degree of information interaction between devices, and obtain indirect credibility based on the closeness of this relationship and the "evaluation" of the device by other devices. The "evaluation" is whether the impact on each other after the interaction between devices is positive or negative. In the historical credibility part, we use the algorithm to combine the direct credibility and indirect credibility of each time step, and use the time decay method to generate historical credibility. Finally, we use support vector machine (SVM) to classify the triple consisting of direct credibility, indirect credibility and historical credibility to determine whether the device is a trusted device. The proposed overall architecture is as follows: Figure 2 As shown, the evaluation method specifically includes the following:
[0248] 1. Direct trust
[0249] 1.1 Properties
[0250] The attribute information of a device is the information of the device itself and has nothing to do with other devices. We can obtain the attributes of the target device through hardware, software and sensor technology. We record the attribute information of device i as a multi-tuple P i :
[0251] P i ={bat i ,pos i ,identity i ,t i ,hv i ,sv i ,worktime i ,deploytime i}
[0252] bat i Represents the current battery level of the device; pos i Is a triplet pos i =(x i ,y i ,z i ) represents the current position of the device, where x i ,y i ,z i Respectively represent the coordinate points of the device relative to the deployment area; identityi Represents the identity of the device; i Represents the current temperature of the device; sv i With hv i Represents the software and hardware versions used by the device; worktime i Represents the average working time of the device in the activated state, deploytime i Indicates the deployment duration of the device.
[0253] For the device power, if the device power is less than a certain threshold, the lower the power, the greater the possibility that the task will be interrupted during execution due to power shortage. The corresponding attribute sub-credibility of the power part is recorded as PT i bat :
[0254]
[0255] in is the credible power threshold. When the attribute sub-credibility of the power part is PT bat Always 1, is the penalty power threshold, when PT bat Gradually decays to 0, when Time PT bat It will decay rapidly from 0. ε is a very small real number greater than 0, which keeps the polynomial in the logarithm always greater than 0.
[0256] For the device geographic location information, we assume that the device deployment space is a three-dimensional space and determine a coordinate origin, then we can obtain the coordinates of the device relative to the coordinate origin (x i ,y i ,z i ). When the device location changes compared to the last location, the device is considered to be damaged and moved. The greater the distance the device moves, the greater the possibility that the device is damaged or tampered with. The corresponding attribute sub-credibility of the location part is recorded as PT i pos :
[0257]
[0258] Where (x0, y0, z0) is the original coordinate setting of the current device, k pos is the scaling factor.
[0259] For the device identity part, we assume that each device has an identity level i , which is an integer and identity i∈[0,10], we stipulate that each identity level has a corresponding behavior, and we believe that it is reasonable and credible for a device with a high identity level to perform a behavior with a low identity level, and vice versa. We define the attribute sub-credibility of the identity part as PT i iden :
[0260]
[0261] Among them, act iden Indicates the identity level required for the action performed by the current device.
[0262] For the temperature part of the device, we assume that each device has an upper temperature limit for operation. If the device temperature is higher than this upper limit, the device is considered damaged or maliciously attacked. We define the attribute sub-credibility of the temperature part as PT i t :
[0263]
[0264] in, k is the upper temperature limit of device i, t is the scaling factor that controls the decay speed.
[0265] For the hardware and software part, we assume that the version of the hardware and software is related to the trustworthiness of the device. The mature new version of the hardware and software can perform a certain task better than the old version. Therefore, the trustworthiness of the device using the new version of the hardware and software is higher than that of the old version. We define the attribute sub-trustworthiness of the hardware and software version as PT i v :
[0266]
[0267] Among them, hv now With sv now Represent the latest hardware version and software version respectively, k hv ,k sv They are the scaling factors of the hardware version and software version, respectively, used to control the corresponding attenuation speed.
[0268] For the average working time in the active state, we assume that the device will remain active when it has tasks or interacts with other devices, otherwise it will remain in a low-power sleep state. When the average working time of a device in the active state exceeds or falls below a certain threshold, the device is considered to be faulty or hacked. We define the attribute sub-credibility of the average working time in the active state as PT i wt :
[0269]
[0270] in These are the minimum and maximum thresholds for the average working time of the device in the activated state. If the device is below or above these two thresholds, its credibility will gradually decrease. wt1 ,k wt2 are the scaling factors for below and above the working hours threshold, respectively.
[0271] For the equipment deployment time, each device is set with a service life. Due to the aging of electronic components, as the equipment deployment time exceeds the service life, the performance and safety of the equipment gradually decrease, and the credibility also decreases. We define the attribute sub-credibility of the deployment time as PT i dt :
[0272]
[0273] Among them dt is the set service life of the equipment, k dt is the scaling factor.
[0274] The contents of the above sections are compared with the requirement;
[0275] Next, we need to aggregate the attribute sub-credibility of the aforementioned attribute part into the total credibility DPT of the device i attribute i :
[0276]
[0277] Total confidence level of device attributes DPT i is the weighted sum of each sub-part, where is the weight corresponding to the attribute sub-credibility, which is determined by user preferences or device deployment conditions. Subject to:
[0278]
[0279] 1.2 Network Behavior Selection
[0280] Using sensor technology and sniffing technology, we can collect network behavior information of user devices (Collect network behavior). We define a time step to describe the time of collecting device behavior, denoted as TS. The network behavior information of device i collected in the nth time step is denoted as Considering the time-varying properties of network behavior itself, the importance of behavior to devices, and the need to well describe the activities of user devices, and based on the research on edge computing and cloud computing, we collect 24 types of network behaviors of devices as shown in Table 1.
[0281] Table 1
[0282]
[0283]
[0284] Therefore, the device network behavior information collected in the nth TS It can be expressed as:
[0285]
[0286] where f i n,m represents the mth feature of device i in the nth time step. For device i, we record the set of behavior information corresponding to all time steps collected as
[0287] After collecting the behavior information, we need to normalize it. It is difficult to process and analyze directly because of different dimensions or large differences in numerical ranges. By normalizing, the data is mapped to the same range to reduce computational overhead while improving the accuracy and stability of subsequent algorithms. Here, we use the MaxMin method for normalization. For each bit of the collected behavior information, we use formula (1) for normalization:
[0288]
[0289] in: are the highest threshold and the lowest threshold of the feature information of a normal working device. We represent the feature information set after normalization as
[0290] After performing the normalization operation, we need to use the behavior information set S i,Norm Generate time series to build a training set for our subsequent Transformer. Since the behavior information we collect is generated by the same device in chronological order, a certain behavior in the current behavior information is related to the features at the same position in the previous and next collections, so the features at the same position are continuous in time. We will use the generated serialized training set to train a model so that future behaviors can be predicted by historical behaviors. We use a sliding window to generate sequences for the training set, such as Figure 3 As shown. Figure 3In , we set a window size w = 5 and a step size s = 2. We slide the behavior information set in chronological order. As a sequence in the training set, the next behavior information is used as the label of the sequence.
[0291] 1.3 Prediction
[0292] In order to process time-dependent sequences, the Transformer neural network structure is used in this study. As an emerging sequence modeling tool, Transformer has broad application prospects in scenarios such as threat search and malware detection in the field of IoT security. Figure 4 shown.
[0293] It mainly consists of two submodules: encoder and decoder. The encoder is composed of N identical layers stacked together, each layer contains a multi-head self-attention mechanism and a feedforward fully connected neural network, and uses residual connections and layer normalization operations; the decoder is composed of M identical layers, each layer includes a masked multi-head self-attention mechanism, a multi-head cross-attention mechanism, and a feedforward fully connected neural network, and also uses residual connections and layer normalization. We use all the sequences generated above and the corresponding labels to train the Transformer network and finally obtain a prediction model.
[0294] We assume that in the network behavior information, the position of the feature in each sequence is fixed, so the Transformer's sub-attention mechanism can learn this corresponding relationship very well, so there is no need for position encoding operation. Therefore, the input of the entire Transformer model is a 24×w matrix, and the output is the next w+1th network behavior information. The entire prediction process can be described by Algorithm 1:
[0295]
[0296] Through Algorithm 1, we can obtain the behavior information predicted by Transformer, which is the same as the actual collected behavior information. Both are 24-dimensional data clusters. We designed an algorithm to compare the similarity between the two.
[0297] Assume P = {p1, p2, p3, ..., p 22} represents the device behavior information predicted by Algorithm 1 (the predicted behavior information of the target device, Predict behavior), and A = {a1, a1, a1, … a1} represents the device behavior information actually collected (the actual behavior information of the target device). We combine P and A with the data of A and renormalize them using formula (1). Next, we can calculate the similarity sim (Contrast similarity) between the two:
[0298]
[0299] Where N represents the number of features in the behavior information, p′ i and a′ i Represents the result of expanding the i-th feature in P and A by 10 times. The result of this is to maintain the sensitivity of sim to the feature. sim Used to control the sensitivity of sim to features, k>0, the lower k is, the more sensitive sim is to features.
[0300] After obtaining the overall similarity sim between the predicted feature information P and the actually collected feature information A, we will use Algorithm 2 to calculate the difference value diff between P and A.
[0301]
[0302]
[0303] In Algorithm 2, sim is the similarity threshold. When the similarity is lower than th sim When P is equal to A, we calculate the difference between P and A. First, we make the difference between the features in P and A and take their absolute values. Next, we sort the results from small to large. At the same time, we set a set of weights for the sorted differences.
[0304]
[0305] where iter w is the index of the current weight in the array. By setting the weights in this way, we give higher weights to elements with larger differences, while maintaining sensitivity to features with larger differences while calculating the average difference value.
[0306] Next we can calculate the total credibility of the behavior part DFT i :
[0307]
[0308] Among them, sim represents the similarity between the predicted device network feature information P and the actually collected network feature information A, and th sim represents the similarity threshold, k diff The scaling factor controls the decay speed, and diff is the difference between P and A.
[0309] After obtaining the total credibility of the attribute part DPT i Total credibility DFT with behavioral part i Then we can calculate the direct trustworthiness DT of the device i :
[0310] DT i =w dpt *DPT i +w dft *DFT i
[0311] where w dpt With w dft Represent the total credibility weight of the attribute part and the total credibility weight of the behavior part, and obey w dpt +w dft =1.
[0312] 2. Indirect trust
[0313] In the indirect credibility part, we first define the community C of the evaluator device eva eva We define devices belonging to the same community as those that have cooperated with each other or exchanged stable information, and collect information from each device. Next, we define the community C of eva eva The degree of connection between device n and target device i to be evaluated rel n,i :
[0314]
[0315] Among them, CON n Represents the number of times device n sends messages to all other devices, con n,i Represents the number of messages sent between device n and the device to be evaluated i. When the "asked" device and the target device to be evaluated are not closely connected, they may be easily affected by third-party factors and maliciously recommend or maliciously slander the target device. We choose to use the filter function to filter devices with low close connections to avoid the above situation:
[0316] filter(rel n,i )=rel n,i H(reln,i -th con )
[0317] Where: H(x) is the unit step function;
[0318] Next, we define the interaction quality between device n and the device i to be evaluated n,i :
[0319]
[0320] Among them, positive n,i Represents the positive feedback from device i to device n during the interaction between device n and device i. Here, we define positive feedback as the correct information is transmitted or the correct action is taken in another interaction. n,i Represents the number of all interactions between device n and device i.
[0321] We calculate the indirect credibility by having the evaluator device eva "ask" all devices in the community for their evaluation of the target device (Colle ct appraise) i :
[0322]
[0323] Among them, C n is the community device set of device n in the eva community, N is C eva The number of devices in the fil For filter(rel n,i ) and the number of devices for which the result is not 0.
[0324] 3. Historical trust
[0325] When facing some sudden malicious behaviors or some specific attacks that appear after direct and indirect trustworthiness evaluation, it is inaccurate to judge whether the device is trustworthy only by the above-mentioned methods. We introduce historical trustworthiness to improve the above situation and obtain historical information Collection history trust. We assume that the historical trust data of device i consists of multiple historical trust data composition:
[0326]
[0327] Among them, ts n is the timestamp at the end of the time step, T n Representative in ts n Whether the device has malicious behavior during this time step, Tn ={0,1}, T n = 0 means that the device has malicious behavior, otherwise it has not; through the decay time Timedecay, we define the device history credibility HT i :
[0328]
[0329] Where N represents the total amount of historical trust data for device i, ts now is the current timestamp, k HDT is the scaling factor that controls the speed of time decay.
[0330] 4. Comprehensive Identification of Credibility
[0331] Finally, according to the direct credibility DT of device i that we have obtained in the previous article i , indirect credibility IT i And historical credibility HT i These three credibility levels are used to make a binary classification prediction on whether the device is trustworthy and obtain the prediction result Resuht.
[0332] We first perform MinMax normalization on these three credibility levels using formula (1).
[0333] Next, we define trust as whether the device is trustworthy. It is a binary value. When trust = 1, it means the device is trustworthy, and trust = 0, it means the device is untrustworthy. We combine the normalized data and trust to form our training data D:
[0334] D = {(DT′ i ,IT′ i ,HT′ i ,trust)}
[0335] Where: DT′ i ,IT′ i ,HT′ i The samples represent the normalized direct credibility, indirect credibility and historical credibility respectively, and trust is the corresponding label.
[0336] Because our sample has only three feature dimensions and there is no serial dependency between the three features of the sample, we choose SVM+RBF kernel as our classification model (SVM classifier).
[0337] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the modules, modules or units is only a logical function division, and there may be other division methods in actual implementation, for example, multiple units, modules or components can be combined or integrated into another device, or some features can be ignored or not executed.
[0338] The units may or may not be physically separated, and the components displayed as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0339] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0340] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part, and / or installed from a removable medium. When the computer program is executed by the central processing unit (CPU), the above-mentioned functions defined in the method of the present invention are executed. It should be noted that the above-mentioned computer-readable medium of the present invention can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, but not limited to, a system, device or device of an electrical, magnetic, optical, electromagnetic, infrared segment, or semiconductor, or any combination of the above.
[0341] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0342] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A comprehensive credibility evaluation method based on multi-dimensional data of IoT devices, characterized in that: The following steps are involved: Get the property information of the target device; Perform credibility analysis on the attribute information of the target device to obtain attribute sub-credibility; According to the attribute sub-credibility, the total credibility of the attribute part is calculated; Obtain network behavior information of the target device; Preprocessing the network behavior information to obtain preprocessed network behavior information; The preprocessed network behavior information is input into the Transformer model for prediction to obtain the predicted network feature information of the target device; Obtain the actual network characteristic information of the target device; The total credibility of the behavior part is calculated based on the predicted network feature information and the actual network feature information of the target device; According to the total credibility of the attribute part and the total credibility of the behavior part, the direct credibility is calculated; Get the message records sent and received between the target device and other devices; According to the records of sending and receiving messages, the indirect credibility is calculated; Obtain historical trust data information of the target device; According to the historical trust data information, the historical credibility is calculated; Determine whether the target device is trustworthy based on direct credibility, indirect credibility, and historical credibility.
2. The comprehensive credibility evaluation method based on multi-dimensional data of IoT devices according to claim 1 is characterized in that: Performing credibility analysis on the attribute information of the target device to obtain the attribute sub-credibility includes the following steps: The attribute information of the target device includes the current battery power, current location, identity, current temperature, software and hardware versions, average working time in the activated state and deployment time; i Represents the current battery level of the device; pos i Is a triplet pos i =(x i ,y i ,z i ) represents the current position of the device, where x i ,y i ,z i Respectively represent the coordinate points of the device relative to the deployment area; identity i Represents the identity of the device; i Represents the current temperature of the device; sv i With hv i Represents the software and hardware versions used by the device; worktime i Represents the average working time of the device in the activated state, deploytime i Represents the deployment time of the device; The attribute sub-trustworthiness includes the attribute sub-trustworthiness of the power part, the attribute sub-trustworthiness of the location part, the attribute sub-trustworthiness of the identity part, the attribute sub-trustworthiness of the temperature part, the attribute sub-trustworthiness of the software and hardware versions, the attribute sub-trustworthiness of the average working time in the activated state, and the attribute sub-trustworthiness of the deployment time; The attribute sub-credibility of the power part is PT i bat : in: is the credible power threshold. When the attribute sub-credibility of the power part is PT bat Always 1, is the penalty power threshold, when PT bat Gradually decays to 0, when Time PT bat It will decay rapidly from 0; The attribute sub-credibility of the location part is Where (x0, y0, z0) is the original coordinate setting of the current device, k pos is the scaling factor; The attribute sub-credibility of the identity part is Among them, act iden Represents the identity level required for the action performed by the current device; The attribute sub-credibility of the temperature part is in, k is the upper temperature limit of device i, t is the scaling factor, controlling the decay speed; The attribute sub-credibility of the software and hardware version is Among them, hv now With sv now Represents the latest hardware version and software version, k hv ,k sv They are the scaling factors of the hardware version and software version, respectively, used to control the corresponding attenuation speed; The attribute sub-credibility of the average working time part in the activation state is in are the minimum and maximum thresholds of the average working time of the device in the activated state. If it is lower or higher than these two thresholds, the credibility of the device will gradually decrease; k wt1 ,k wt2 are the scaling factors below the working time threshold and above the working time threshold, respectively; The attribute sub-credibility of the deployment duration is Among them dt is the set service life of the equipment, k dt is the scaling factor.
3. The comprehensive credibility evaluation method based on multi-dimensional data of IoT devices according to claim 2 is characterized in that: According to the attribute sub-credibility, the total credibility of the attribute part is calculated, which specifically includes the following steps: Aggregate the above attribute sub-credibility to get the attribute part total credibility DPT i : in: is the weight corresponding to the attribute sub-credibility; is the attribute sub-credibility; The weight corresponding to the attribute sub-credibility Subject to:
4. The comprehensive credibility evaluation method based on multi-dimensional data of IoT devices according to claim 3 is characterized in that: Preprocessing the network behavior information to obtain preprocessed network behavior information specifically includes the following steps: Define a time step to describe the time of collecting device network behavior information, denoted as TS, and the network behavior information of device i collected in the nth time step is denoted as in: represents the mth feature of device i in the nth time step. For device i, the set of network behavior information corresponding to all time steps collected is recorded as Normalize network behavior information; in: They are respectively the highest threshold and the lowest threshold of the characteristic information of a normal working device; The feature information set after normalization is represented as S i,Norm ; According to the feature information S after normalization i,Norm , generating time series as the network behavior information after preprocessing.
5. The comprehensive credibility evaluation method based on multi-dimensional data of IoT devices according to claim 4 is characterized in that: The Transformer model includes an encoder and a decoder; The encoder is composed of N identical layers stacked together, each layer contains a multi-head self-attention mechanism and a feed-forward fully connected neural network, and uses residual connections and layer normalization operations; The decoder consists of M identical layers, each of which includes a masked multi-head self-attention mechanism, a multi-head cross-attention mechanism, and a feed-forward fully connected neural network, while also using residual connections and layer normalization.
6. The comprehensive credibility evaluation method based on multi-dimensional data of IoT devices according to claim 5 is characterized in that: The total credibility of the behavior part is calculated based on the predicted network feature information and the actual network feature information of the target device; According to the total credibility of the attribute part and the total credibility of the behavior part, the direct credibility is calculated, which specifically includes the following steps: Calculate the similarity sim between the predicted network feature information and the actual network feature information of the target device: Where: N represents the number of features in the behavior information, p′ i and a′ i They represent the results of the predicted network feature information P and the actual network feature information A after the i-th feature is enlarged 10 times, and k sim is the sensitivity of sim to the feature; When the similarity sim is lower than the similarity threshold th sim When the predicted network feature information P is subtracted from the actual network feature information A, the absolute value is taken, and then sorted in order from small to large, and a set of weights is set for the sorted difference Among them: iter w is the index of the current weight in the array; Calculate the total credibility DFT of the behavior part i : Where: sim represents the similarity between the predicted network feature information P and the actual network feature information A, th sim represents the similarity threshold, k diff is the scaling factor controlling the decay speed, and diff is the difference between P and A; According to the total credibility of the attribute part DPT i Total credibility of the behavioral part DFT i , calculate the direct credibility DT i ; DT i =w dpt *DPT i +w dft *DFT i Where: w dpt With w dft Represent the total credibility weight of the attribute part and the total credibility weight of the behavior part, and w dpt +w dft =1.
7. The comprehensive credibility evaluation method based on multi-dimensional data of IoT devices according to claim 6 is characterized in that: According to the records of sending and receiving messages, the indirect credibility is calculated, which specifically includes the following steps: Define the community C of the target device eva eva , define the community C of the target device eva eva The degree of connection between device n and target device i to be evaluated rel n,i : Among them: CON n Represents the number of times device n sends messages to all other devices, con n,i The number of times device n sends messages to device i to be evaluated; Use the filter function to filter out devices with less close connections: filter(rel n,i )=rel n,i H(rel n,i -th con ) Where: H(x) is the unit step function; Define the quality of interaction between device n and device i to be evaluated n,i : Among them: positive n,i Represents the positive feedback of device i to device n’s request during the interaction between device n and device i; interaction n,i Represents the number of all interactions between device n and device i; Calculate the indirect credibility of the target device based on the evaluation of all devices in the community. i : Where: C n is the community device set of device n in the eva community, N is C eva The number of devices in the fil For filter(rel n,i ) and the number of devices for which the result is not 0.
8. The comprehensive credibility evaluation method based on multi-dimensional data of IoT devices according to claim 7 is characterized in that: According to the historical trust data information, the historical credibility is calculated, which specifically includes the following steps: The historical trust data of device i consists of multiple historical trust data composition: Among them, ts n is the timestamp at the end of the time step, T n Representative in ts n Whether the device has malicious behavior during this time step, T n ={0,1},T n =0 means that the device has malicious behavior, otherwise no Calculate historical credibility HT i : Where: N represents the total amount of historical trust data for device i, ts now is the current timestamp, k HDT is the scaling factor.
9. The comprehensive credibility evaluation method based on multi-dimensional data of IoT devices according to claim 8 is characterized in that: The credibility of the target device is judged based on direct credibility, indirect credibility and historical credibility, which specifically includes the following steps: Direct credibility DT i , indirect credibility IT i and historical credibility HT i Perform MinMax normalization to obtain normalized credibility; The normalized credibility is input into the classification model for processing to determine whether the target device is trustworthy.
10. A comprehensive credibility evaluation system based on multi-dimensional data of Internet of Things devices, used to implement the comprehensive credibility evaluation method based on multi-dimensional data of Internet of Things devices as described in any one of claims 1-9, characterized in that: include: A first acquisition module, used to acquire attribute information of a target device; The attribute sub-credibility calculation module of the attribute part is used to perform credibility analysis on the attribute information of the target device to obtain the attribute sub-credibility; The attribute part total credibility calculation module is used to calculate the attribute part total credibility according to the attribute sub-credibility; The second acquisition module is used to obtain network behavior information of the target device; A preprocessing module, used for preprocessing the network behavior information to obtain preprocessed network behavior information; The prediction module is used to input the preprocessed network behavior information into the Transformer model for prediction, and obtain the predicted network feature information of the target device; The third acquisition module is used to obtain the actual network characteristic information of the target device; The total credibility calculation module of the behavior part is used to calculate the total credibility of the behavior part according to the predicted network characteristic information and the actual network characteristic information of the target device; A direct credibility calculation module, used for calculating direct credibility according to the total credibility of the attribute part and the total credibility of the behavior part; A fourth acquisition module is used to acquire the message sending and receiving records between the target device and other devices; An indirect credibility calculation module, used to calculate the indirect credibility based on the records of sending and receiving messages; A fifth acquisition module, used to acquire historical trust data information of a target device; A historical credibility calculation module is used to calculate the historical credibility based on the historical trust data information; The credibility judgment module is used to judge whether the target device is credible based on direct credibility, indirect credibility and historical credibility.
