Equipment trust evaluation method and device, server and storage medium

By assigning initial trust value and authorized identity in the near-domain management server and based on the trust level update mechanism, the problem of insufficient device connection security in the near-domain network service is solved, the security assessment and risk identification capabilities are improved, and the overall security is improved sex.

CN118921667APending Publication Date: 2024-11-08CHINA TELECOM CORP LTD TECHNOLOGY INNOVATION CENTER +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411231184.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-03
Publication Date
2024-11-08

AI Technical Summary

Technical Problem

In the prior art, the security of device connections in near-domain network services is guaranteed by a single authorization detection, and the security risks existing by superior or subordinate equipment cannot be effectively identified, resulting in security risks in data transmission.

Method used

In a near-domain management server, after receiving the authorization request from the target device, the initial trust value and authorization identity are assigned, and the device is security evaluated based on the trust level. The trust value of the device is dynamically adjusted through the trust level update mechanism so that other devices can establish Security assessment is performed when relaying connections.

Benefits of technology

Through detailed trust assessment and dynamic trust level updates, the security of near-domain network services is improved, effectively identify and respond to equipment security risks, and reduce the possibility of information leakage and system threats.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118921667A_ABST
    Figure CN118921667A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of network security, in particular to an equipment trust evaluation method and device, a server and a storage medium, which are used for solving the problem of potential safety hazards of near-field network services in related technologies, and the method comprises the following steps: receiving an authorization request sent by target equipment to be accessed to a near-field network; after authorization detection is carried out on the legality of the target device based on the identification information included in the authorization request, the initial trust value and the network authority of the authorization identity included in the authorization request are distributed to the target device; based on the initial trust value, a trust coefficient corresponding to the authorization identity and a corresponding relation between each trust score interval and the trust level, determining the trust level of the target equipment; sending an authorization success receipt carrying the trust level to the target device, so that other devices in the near-field network perform security assessment on the target device based on the trust level when establishing relay connection with the target device; therefore, the security of the near-field network service is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of network security technology, and in particular to a trust evaluation method, device, server and storage medium for a device. Background Art

[0002] With the continuous development of communication technology, terminal devices can be connected to other devices or networks through relay devices. This service is called Proximity Radio Access Network Service. In the Proximity Radio Access Network Service, there can be multiple devices for a device, involving multiple identities, such as gateway relay identity, ordinary relay identity, and terminal identity. For relay devices, the number and identity of the downstream devices connected to the relay device may change at any time, and the role of the relay device may also change. In these cases, the device will have more connection, reconnection, and switching states, and each state transition requires the selection of an upper-level device for connection.

[0003] In the related art, when two devices are connected, the security between the two devices is usually guaranteed by the authorization check of the near-domain management server, that is, the connection can be achieved if the authorization check is passed. However, this single authorization check scheme of the near-domain management server has a "one-size-fits-all" problem and cannot effectively identify the security risks of the upper-level device or the lower-level device, which leads to security risks in the subsequent data transmitted based on the connection. Summary of the invention

[0004] The embodiments of the present application provide a trust evaluation method, apparatus, server, and storage medium for a device, which are used to provide a more detailed security reference for device connections of a near-area network service, thereby improving the security of the near-area network service.

[0005] The specific technical solutions provided by the embodiments of this application are as follows:

[0006] In a first aspect, an embodiment of the present application provides a trust evaluation method for a device, which is applied to a near-domain management server, and the method includes:

[0007] Receiving an authorization request sent by a target device to be connected to a near area network, the authorization request including identification information and an authorized identity of the target device;

[0008] After the legitimacy of the target device is authorized and detected based on the identification information, an initial trust value and network permissions of the authorized identity are allocated to the target device;

[0009] Determining the trust level of the target device based on the initial trust value, the trust coefficient corresponding to the authorized identity, and the correspondence between each trust score interval and the trust level;

[0010] An authorization success receipt carrying the trust level is sent to the target device, so that other devices in the near area network can perform a security assessment on the target device based on the trust level when establishing a relay connection with the target device.

[0011] In a possible implementation manner, after sending the authorization success receipt carrying the trust level to the target device, the method further includes:

[0012] Start and monitor the trust level update timer;

[0013] When it is determined that the trust level update condition is met, obtaining a current trust value of the target device;

[0014] Determining a new trust level of the target device based on the current trust value, the trust coefficient corresponding to the target authorized identity of the target device, and the respective corresponding relationships;

[0015] replacing the trust level with the new trust level, sending a message carrying the new trust level to the target device, and clearing the timer;

[0016] Among them, the update conditions include part or all of the following contents: the timer reaches the update threshold; the identity change request sent by the target device is received; the device reconnection request and / or the device switching path request sent by the relay device associated with the target device is received; if the identity change request is received, the target authorization identity is the changed authorization identity included in the identity change request; if the device reconnection request or the device switching path request is received or the update threshold is reached, the target authorization identity is the original authorization identity of the target device.

[0017] In a possible implementation manner, obtaining the current trust value of the target device includes:

[0018] Obtaining the abnormal traffic ratio of the target device in a first preset time period and the authentication and authorization failure rate in a second preset time period, wherein the abnormal traffic ratio is the ratio of the amount of abnormal traffic to the amount of normal traffic obtained by traffic identification of the collected traffic of the target device;

[0019] Obtaining an average abnormal traffic ratio of all devices in the near area network within the first preset time period, and an average authentication and authorization failure rate within the second preset time period;

[0020] Based on the abnormal traffic proportion, the authentication and authorization failure rate, the average abnormal traffic proportion and the average authentication and authorization failure rate, a current trust value of the target device is obtained.

[0021] In a possible implementation, if the device reconnection request and / or the device switching path request is received, after obtaining the current trust value of the target device, before determining the new trust level of the target device based on the current trust value, the trust coefficient corresponding to the target authorization identity of the target device, and each corresponding relationship, the method further includes:

[0022] It is determined that the current trust value is less than or equal to the original trust value.

[0023] In a possible implementation manner, if the device reconnection request and / or the device path switching request is received, the method further includes:

[0024] If it is determined that the current trust value is greater than the original trust value, keeping the trust value of the target device unchanged;

[0025] The determining a new trust level of the target device based on the current trust value, the trust coefficient corresponding to the target authorization identity of the target device, and each corresponding relationship includes:

[0026] Based on the original trust value, the trust coefficient corresponding to the target authorization identity of the target device and various corresponding relationships, a new trust level of the target device is determined.

[0027] In a possible implementation, the authorized identity includes a terminal identity, a common relay identity, and a gateway relay identity; the method further includes:

[0028] The following operations are performed for each authorized identity: for any authorized identity, an average trust value of any authorized identity at each trust level is counted;

[0029] Taking the average trust value of the gateway relay identity of each trust level as the reference trust value, and based on the reference trust value and the average trust value of any authorized identity of each trust level, determining a new trust coefficient corresponding to any authorized identity;

[0030] The trust coefficient corresponding to any one of the authorized identities is replaced by the new trust coefficient.

[0031] In a second aspect, an embodiment of the present application provides a trust evaluation method for a device, which is applied to any device managed by a near-domain management server, and the method includes:

[0032] Sending an authorization request to the near domain management server, the authorization request including identification information and an authorized identity of the device, the identification information being used by the near domain management server to perform authorization detection on the legitimacy of the device;

[0033] Receive an authorization success receipt carrying a first trust level for the device sent by the near-domain management server, where the first trust level is determined after the near-domain management server determines that the authorization detection of the device has passed, based on an initial trust value assigned to the device, a trust coefficient corresponding to the authorized identity, and a correspondence between each trust score interval and the trust level, and is used for other devices within the near-domain network to perform a security assessment on the device based on the first trust level when establishing a relay connection with the device.

[0034] In a possible implementation, the method further includes:

[0035] In the process of establishing the relay connection, sending the first trust level to the other device, so that the other device performs a security assessment on the device based on the first trust level to obtain a first assessment result;

[0036] receiving a second trust level of the other device sent by the other device, and performing a security assessment on the other device based on the second trust level to obtain a second assessment result;

[0037] If the second evaluation result indicates that the other device is in danger, or if a connection failure message sent by the other device is received, the process of establishing the relay connection is stopped. The connection failure message is sent by the other device when it determines that the first evaluation result indicates that the device is in danger.

[0038] In a third aspect, an embodiment of the present application provides a trust evaluation device for a device, which is applied to a near-domain management server, and the device includes:

[0039] A receiving module, configured to receive an authorization request sent by a target device to be connected to a near area network, wherein the authorization request includes identification information and an authorized identity of the target device;

[0040] An allocation module, configured to allocate an initial trust value and network permissions of the authorized identity to the target device after the legitimacy of the target device is authorized and detected based on the identification information;

[0041] A determination module, configured to determine the trust level of the target device based on the initial trust value, the trust coefficient corresponding to the authorized identity, and the correspondence between each trust score interval and the trust level;

[0042] The sending module is used to send the authorization success receipt carrying the trust level to the target device, so that other devices in the near area network can perform security assessment on the target device based on the trust level when establishing a relay connection with the target device.

[0043] In a fourth aspect, an embodiment of the present application provides a trust evaluation device for a device, which is applied to any device managed by a near-domain management server, and the device includes:

[0044] A sending module, configured to send an authorization request to the near domain management server, wherein the authorization request includes identification information and an authorized identity of the device, and the identification information is used by the near domain management server to perform authorization detection on the legitimacy of the device;

[0045] A receiving module is used to receive an authorization success receipt sent by the near-field management server and carrying a first trust level of the device. The first trust level is determined after the near-field management server determines that the authorization test of the device has passed, based on an initial trust value assigned to the device, a trust coefficient corresponding to the authorized identity, and a correspondence between each trust score interval and the trust level. It is used for other devices in the near-field network to perform a security assessment on the device based on the first trust level when the device establishes a relay connection.

[0046] In a fifth aspect, an embodiment of the present application provides a server, including:

[0047] Memory, used to store computer programs or instructions;

[0048] A processor is used to execute the computer program or instructions in the memory so that any method described in the first aspect above is executed.

[0049] In a sixth aspect, an embodiment of the present application provides an electronic device, including:

[0050] Memory, used to store computer programs or instructions;

[0051] A processor is used to execute the computer program or instructions in the memory so that any method described in the second aspect above is executed.

[0052] In a seventh aspect, an embodiment of the present application provides a computer-readable storage medium. When instructions in the storage medium are executed by a processor, the processor is enabled to execute a method as described in any one of the first or second aspects above.

[0053] In an eighth aspect, an embodiment of the present application provides a computer program product, wherein the computer program product comprises: a computer program code, and when the computer program code is run on a computer, the computer executes a method as described in any one of the first aspect or the second aspect above.

[0054] In an embodiment of the present application, an authorization request sent by a target device to be connected to a near-area network is received, the authorization request including identification information and an authorized identity of the target device; after the legitimacy of the target device is authorized and detected based on the identification information, an initial trust value and network permissions of the authorized identity are allocated to the target device; then, based on the initial trust value, the trust coefficient corresponding to the authorized identity, and the correspondence between each trust score interval and the trust level, the trust level of the target device is determined; an authorization success receipt carrying the trust level is sent to the target device, so that other devices in the near-area network can perform a security assessment on the target device based on the trust level when establishing a relay connection with the target device, thereby providing a more detailed security reference for device connections of near-area network services and improving the security of near-area network services. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] Figure 1 This is a schematic diagram of an application scenario in an embodiment of the present application;

[0056] Figure 2 This is a schematic diagram of the system architecture of a local area management server in an embodiment of the present application;

[0057] Figure 3 This is a schematic diagram of the structure of a device behavior analysis module in an embodiment of the present application;

[0058] Figure 4 A flow chart of a trust evaluation method for a device in an embodiment of the present application;

[0059] Figure 5 A flow chart of a trust factor updating method in an embodiment of the present application;

[0060] Figure 6 This is a schematic diagram of dividing each trust score interval in an embodiment of the present application;

[0061] Figure 7 A schematic diagram of a flow chart of a method for updating a trust level of a device in an embodiment of the present application;

[0062] Figure 8 A flowchart of a method for determining a current trust value of a device in an embodiment of the present application;

[0063] Fig. 9 A flow chart of another method for trust assessment of a device in an embodiment of the present application;

[0064] Fig.10 A schematic diagram of a specific process of a trust evaluation method for another device in an embodiment of the present application;

[0065] Fig.11 A schematic diagram of the logical architecture of a trust evaluation device of a device in an embodiment of the present application;

[0066] Fig.12 A schematic diagram of the logical architecture of a trust evaluation device of another device in an embodiment of the present application;

[0067] Fig.13 A schematic diagram of the physical architecture of the server in the embodiment of the present application;

[0068] Fig.14 It is a schematic diagram of the physical structure of the electronic device in the embodiment of the present application. DETAILED DESCRIPTION

[0069] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0070] In order to help those skilled in the art to better understand the technical solution of the present application, some terms in the embodiments of the present application are explained below.

[0071] (1) In the embodiments of the present application, the term "and / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B may represent three situations: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects are in an "or" relationship.

[0072] (2) The term “proximity radio access network service” in the embodiments of the present application is called “proximity radio access network service” in full in English, which refers to a service that connects a terminal device to other devices or networks through a relay device.

[0073] (3) In the embodiments of the present application, the term "relay" generally refers to a device or technology used to enhance signal transmission in a communication network, which can receive weak signals, amplify or regenerate them, and then transmit them to ensure the continuity and stability of the signal.

[0074] (4) The terms "first", "second", "third", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a particular order or sequence. It should be understood that the terms used in this way are interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in sequences other than those illustrated or described herein.

[0075] In the related art, the security between two devices in the near-field network service is mainly achieved through the authorization detection of the near-field management server, that is, based on the identification information of the device that sends the authorization request to the near-field management server, the legitimacy of the device is detected, and when it is determined that the authorization detection of the device passes, the network permission of the authorization identity included in the authorization request is allocated to the device, and an authorization success receipt is returned to the device; when it is determined that the authorization detection of the device fails, an authorization failure receipt is returned to the device. Based on this, the security of the near-field network service is guaranteed.

[0076] However, the above-mentioned single guarantee of the security of near-field network services cannot effectively distinguish the security risks existing in the upper-level devices or the lower-level devices, such as the existence of man-in-the-middle attacks in relay devices and the existence of spoofing attacks, denial of service and other security risks in terminal devices, thereby affecting the subsequent business development based on the relay connection, and there are security risks such as information leakage, system threats, and attacks.

[0077] In view of this, in order to solve the security risks of near-area network services in related technologies, a trust assessment method for a device in an embodiment of the present application is applied to a near-area management server. In the embodiment of the present application, an authorization request sent by a target device to be connected to the near-area network is received, and the authorization request includes identification information and an authorized identity of the target device; after the legitimacy of the target device is authorized and detected based on the identification information, an initial trust value and network permissions of the authorized identity are assigned to the target device; then, based on the initial trust value, the trust coefficient corresponding to the authorized identity, and the correspondence between each trust score interval and the trust level, the trust level of the target device is determined; an authorization success receipt carrying the trust level is sent to the target device, so that other devices in the near-area network can perform a security assessment on the target device based on the trust level when establishing a relay connection with the target device; so as to provide a more detailed security reference for the device connection of the near-area network service, thereby improving the security of the near-area network service.

[0078] Figure 1 Schematic diagram of an application scenario in an embodiment of the present application. Figure 1 As shown, the application scenario diagram includes a target device and a near-domain management server, wherein the target device includes a terminal user equipment (User Equipment, UE), a common relay UE, and a gateway relay UE. Common relay UE and gateway relay UE can be collectively referred to as relay devices, wherein a gateway relay UE refers to a device that can directly connect to the network and communicate with the near-domain management server in a near-domain network, and can also provide an Internet access channel for a downstream common relay UE or terminal UE; a common relay UE refers to a device that is not directly connected to the network in a near-domain network, but can achieve network communication through an upstream relay device, and can also provide an Internet access channel for a downstream common relay UE or terminal UE.

[0079] The aforementioned target device may be the following terminal device, and the near-domain management server may be the following server.

[0080] In some embodiments, the terminal device may be various electronic devices, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, smart speakers, smart watches, wearable devices, augmented reality devices, virtual reality devices, etc.

[0081] In some embodiments, the server may be a server that provides various services, such as a background management server that provides support for devices operated by users using terminal devices. The background management server may analyze and process the received request and other data, and feed back the processing results to the terminal device. Optionally, the server may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms.

[0082] The terminal device and the server may be directly or indirectly connected via wired or wireless communication, which is not limited in the present disclosure. The network may be a wireless network or a wired network, and the wireless network or wired network uses standard communication technology and / or protocols. The network is usually the Internet, but may also be any network, including but not limited to a local area network (LAN), a metropolitan area network (MAN), a wide area network (WAN), a mobile, wired or wireless network, a private network or any combination of a virtual private network.

[0083] In some embodiments, data exchanged over the network may be represented using techniques and / or formats including Hyper Text Mark-up Language (HTML), Extensible Markup Language (XML), etc. In addition, conventional encryption techniques such as Secure Socket Layer (SSL), Transport Layer Security (TLS), Virtual Private Network (VPN), Internet Protocol Security (IPsec), etc. may be used to encrypt all or some links.

[0084] In other embodiments, customized and / or dedicated data communication technologies may be used to replace or supplement the above-mentioned data communication technologies.

[0085] It should be noted that Figure 1 This is an example introduction to the application scenario of a trust assessment method for a device provided in an embodiment of the present application. In fact, the application scenarios to which the method in the embodiment of the present application can be applied are not limited to this.

[0086] In some embodiments, Figure 2 As shown, the near-domain management server may include a device behavior analysis module, a trust score calculation module and a trust level division module, wherein the device behavior analysis module is used to collect the traffic of the device connected to the near-domain network, and analyze the behavior of the device based on the collected traffic to obtain the behavior data of the device, wherein the behavior data includes but is not limited to the abnormal traffic ratio and the authentication authorization failure rate; the trust score calculation module is used to calculate the trust score based on the trust value of the device, wherein the trust value of the device can be an inherent value of the device, which is used to measure the trustworthiness of the device; the trust level division module is used to determine the trust level of the device based on the trust score calculated by the trust score calculation module, and the correspondence between each pre-divided trust score interval and the trust level, and the trust level is used to measure the security status of the device.

[0087] In some embodiments, the higher the trust level, the safer it is. In the embodiment of the present application, it is possible to pre-customize which trust levels are high risk, which trust levels are low risk, and which trust levels are medium risk based on actual business conditions.

[0088] See also Figure 3As shown, the device behavior analysis module may include an abnormal traffic detection submodule and a device traffic analysis submodule, wherein the abnormal traffic detection submodule is used to identify the collected traffic, and count the number of abnormal traffic and the number of normal traffic of the device in a first preset time period, so as to obtain the abnormal traffic proportion of the device in the first preset time period based on the abnormal traffic and the normal traffic; the device traffic analysis submodule is used to analyze the collected traffic, count the number of authentication applications, the number of authentication failures, the number of authorization applications and the number of authorization failures of the device in a second preset time period, so as to calculate the authentication and authorization failure rate of the device in the second preset time period based on the number of authentication applications, the number of authentication failures, the number of authorization applications and the number of authorization failures, wherein authentication is a login request sent by the device to the near-domain management server before sending an authorization request to the near-domain management server, and the near-domain management server verifies the login information of the device in the login request.

[0089] In the embodiment of the present application, the abnormal flow rate ratio P of any device in the first preset time period can be expressed by the following formula (1): f :

[0090]

[0091] Among them, flow a Indicates the normal flow quantity; flow b Indicates the amount of abnormal traffic.

[0092] In the embodiment of the present application, the authentication authorization failure rate P of any device within the second preset time period can be expressed by the following formula (2): k :

[0093]

[0094] It should be noted that the embodiment of the present application does not limit the specific traffic identification / analysis method used by the abnormal traffic detection submodule. A deep learning network or a feature matching method can be used to identify the collected traffic, thereby obtaining the number of abnormal traffic and the number of normal traffic. Accordingly, the present application does not limit the specific algorithm used by the device traffic analysis submodule, and the traffic analysis method in the prior art can be used to determine the aforementioned authentication and authorization data.

[0095] The preferred implementation modes of the present application are further described in detail below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present application, and are not used to limit the present application, and the embodiments of the present application and the features in the embodiments may be combined with each other if there is no conflict.

[0096] See also Figure 4As shown, the embodiment of the present application provides a trust evaluation method for a device, which is applied to a near-domain management server. The specific process of the method may include the following:

[0097] Step 400: receiving an authorization request sent by a target device to be connected to a near area network, wherein the authorization request includes identification information and an authorization identity of the target device.

[0098] In the embodiment of the present application, the target device may be the aforementioned terminal UE, the aforementioned common relay UE, or the aforementioned gateway relay UE.

[0099] In a specific implementation, when the above-mentioned target device accesses the near-area network, it is necessary to initiate an authorization request to the near-area management server, wherein the authorization request includes the identification information and authorization identity of the target device to access the near-area network, and the authorization identity includes the terminal identity such as the aforementioned terminal UE, the ordinary relay identity such as the aforementioned ordinary relay UE, and the gateway relay role such as the aforementioned gateway relay UE.

[0100] The near domain management server executes step 400 to receive the authorization request sent by the target device. Usually, the identification information is transmitted in an encrypted manner. Then, after receiving the authorization request, the near domain management server uses the public key of the preset communication protocol to decrypt the identification information, and then performs an authorization detection on the legitimacy of the target device based on the decrypted identification information. The authorization detection method here is the same as the authorization detection method in the related art, and will not be repeated here.

[0101] In some embodiments, if it is determined that the target device passes the authorization test, then step 410 is executed.

[0102] In other embodiments, if it is determined that the target device has not passed the authorization test, an authorization test failure receipt may be sent to the target device, ie, authorization has failed, and an authorization failure receipt may be sent to the target device.

[0103] Step 410: After the legitimacy of the target device is authorized and detected based on the identification information, an initial trust value and network permissions of the authorized identity are allocated to the target device.

[0104] In an embodiment of the present application, when executing step 410, the target device is first assigned the network permissions of the authorized identity requested by the target device, and an initial trust value is assigned to the target device, wherein the trust value can be an inherent value of the device and is used to measure the trustworthiness of the device.

[0105] In some embodiments, the same initial trust value may be set for each device to be connected to the near area network, denoted as d[0].

[0106] Step 420: Determine the trust level of the target device based on the initial trust value, the trust coefficient corresponding to the authorized identity, and the correspondence between each trust score interval and the trust level.

[0107] In the embodiment of the present application, after executing step 410 to assign an initial trust value to the target device, step 420 is executed to determine the trust level of the target device.

[0108] In the embodiment of the present application, the trust coefficients corresponding to different authorized identities and the corresponding relationship between each trust score interval and the trust level can be pre-set in the near-domain management server.

[0109] Specifically, the trust coefficient of each authorized identity can be divided according to the authorized identity (role) of the device, denoted as x. Then, for n roles, their trust coefficients are denoted as x[1], ..., x[n], respectively, where the trust coefficient of the gateway relay role is x[1]. In near-field network services, different roles have different services, and some roles are more likely to obtain higher trust values. In order to balance the differences in trust scores of different roles, this coefficient is set.

[0110] In some embodiments, an initial value may be set for the trust factor, and then the subsequent trust factor may be varied according to differences in trust values ​​of different roles.

[0111] For specific implementation, see Figure 5 As shown, for each authorized identity, the trust coefficient corresponding to each authorized identity in the near-domain network service can be updated by executing the following steps:

[0112] Step 500: For any authorized identity, count the average trust value of the authorized identity at each trust level.

[0113] In the embodiment of the present application, after determining that the triggering condition for updating the trust coefficient is met, the following steps can be performed: Figure 5 The triggering condition can be set according to actual needs. For example, the last update time can be used as the timing starting point. After reaching a certain threshold, the update process of the trust coefficient corresponding to each authorized identity in the current near-domain network is automatically triggered, that is, steps 500 to 520; it can also be triggered by an administrator or maintenance personnel, etc., and this application does not make specific limitations.

[0114] When executing step 500, the average trust value of each authorized identity of each trust level in the current near-area network within the third preset time period can be counted. Usually, each trust level in the near-area network includes more than one device with a certain authorized identity. Then, based on the trust values ​​of all devices with the target authorized identity at any trust level, the average trust value of the target authorized identity at the trust level can be calculated. The target authorized identity can be any of the aforementioned authorized identities, such as a terminal identity, a common relay identity, or a gateway relay identity.

[0115] Step 510: Taking the average trust value of the gateway relay identity at each trust level as the reference trust value, based on the reference trust value and the average trust value of the authorization identity at each trust level, determine a new trust coefficient corresponding to the authorization identity.

[0116] In an embodiment of the present application, after obtaining the average trust value of each authorized identity at each trust level, step 510 is executed, and the average trust value of the gateway relay identity at each trust level is used as the benchmark trust value, and based on the benchmark trust value, a new trust coefficient corresponding to each authorized identity is calculated.

[0117] In some embodiments of the present application, for the i-th authorized identity (role), the average trust value of the authorized identity at different trust levels is regularly counted, and the average trust value of the gateway relay identity is used as the basic trust value. The ratio of the average trust value of the authorized identity at different trust levels to the average trust value of the gateway relay identity is calculated, and the average of all ratios is recorded as the new trust coefficient corresponding to the authorized identity. In the present application, the trust coefficient x[i] of the i-th authorized identity can be expressed by the following formula (3):

[0118]

[0119] Among them, d ij represents the average trust value of the jth trust level of the i-th authorized identity, d 1j Represents the average trust value of the jth trust level of the relay gateway identity.

[0120] Step 520: Replace the trust coefficient corresponding to the authorized identity with the new trust coefficient.

[0121] In the embodiment of the present application, after obtaining the new trust coefficient corresponding to the authorized identity, step 520 is executed to update the trust coefficient corresponding to the authorized identity.

[0122] Correspondingly, for each authorized identity in the near-domain network, the aforementioned update process can be used for processing, so that a new trust coefficient corresponding to each authorized identity can be obtained, thereby realizing that the trust coefficient changes over time.

[0123] For each of the aforementioned corresponding relationships, the number of trust levels can be preset and the trust score threshold can be set according to the number, so as to obtain each trust score interval based on each set trust score threshold, that is, each trust score threshold is an interval endpoint of the associated trust score interval.

[0124] For example, see Figure 6 As shown, take the number of trust levels set as m as an example. It is necessary to divide (m-1) trust score thresholds, so that there are m trust score intervals, each interval corresponding to a trust level. Assuming that the trust score threshold is g, then for m levels, the existing trust score thresholds are g[1], ..., g[m-1], where g[i'] <= g[i'+1], i'∈[1, m-1], i' is a sequence number, and the corresponding trust score intervals can be expressed as (-∞, g[1]], (g[1], g[2]], ..., (g[m-1], +∞), which are the trust score intervals corresponding to the first trust level, the trust score intervals corresponding to the second trust level, ..., and the trust score intervals corresponding to the mth trust level.

[0125] After introducing the trust coefficient corresponding to each authorized identity and the setting method of each corresponding relationship, the specific implementation method in the implementation process is explained below.

[0126] In the specific implementation, please refer to Figure 2 In the system architecture of the near domain management server shown in FIG. 4 , when executing step 420, the trust score calculation module calculates the trust score s[0] of the target device based on the initial trust value d[0] and the trust coefficient x[k] corresponding to the authorized identity, as shown in the following formula (4):

[0127] s[0]=x[k]*d[0] (4).

[0128] The trust level classification module obtains the trust score of the target device from the trust score calculation module, and based on the correspondence between each trust score interval and the trust level, determines the trust level corresponding to the trust score interval where the trust score of the target device is located as the trust level of the target device. Specifically, based on the value of s[0], the trust score interval corresponding to the trust level is determined. If the value of s[0] is within the trust score interval corresponding to the i-th trust level, the trust level of the target device is classified as the i-th level.

[0129] Step 430: Send the authorization success receipt carrying the trust level to the target device, so that other devices in the near area network can perform security assessment on the target device based on the trust level when establishing a relay connection with the target device.

[0130] In an embodiment of the present application, when executing step 430, the near-domain management server obtains the trust level of the target device from the trust level classification module, generates an authorization success receipt for the authorization request of the target device, wherein the authorization success receipt carries the trust level of the target device, and sends the authorization success receipt carrying the trust level to the target device to inform the target device that the near-domain management server has opened the network permissions of the requested authorization identity for the target device, as well as the trust level of the target device. The trust level can be used for other devices in the subsequent near-domain network to establish a relay connection with the target device. The other devices can perform a security assessment on the target device based on the trust level, and then determine whether to establish a relay connection with the target device.

[0131] Devices in a near-area network often reconnect, switch connection links, change authorized identities, etc., and the behavior of some devices may change over time. In an embodiment of the present application, in order to better provide near-area network services and better reflect the actual behavior of each device in the near-area network through trust levels, in an embodiment of the present application, a dynamic device trust evaluation mechanism is set for the near-area management server, that is, a trust level update strategy is set to achieve timely updating of the trust level of the device.

[0132] In some embodiments, after executing step 430, refer to Figure 7 As shown, the following steps can also be performed to achieve the above-mentioned timely update of the trust level of the device:

[0133] Step 700: Start and monitor the trust level update timer.

[0134] In the embodiment of the present application, a timer is set to monitor the division of the trust level of each device and timely update the trust level of the device in the near area network.

[0135] Step 710: When it is determined that the trust level update condition is met, obtain the current trust value of the target device.

[0136] Among them, the update conditions may include some or all of the following: the above-mentioned timer reaches the update threshold; an identity change request sent by the target device is received; a device reconnection request and / or a device switching path request sent by a relay device associated with the target device is received.

[0137] In the embodiment of the present application, the trust level classification module can monitor the trust level of each device in the near area network based on the update condition, and after determining that the above update condition is met, execute step 710. When executing step 710, the device behavior analysis module obtains the behavior data of the target device in the past period of time, and obtains the current trust value of the target device based on the behavior data.

[0138] For specific implementation, see Figure 8 As shown, the device behavior analysis module can obtain the current trust value of the target device by performing the following steps:

[0139] Step 7101: Obtain the abnormal traffic ratio of the target device within the first preset time period and the authentication authorization failure rate within the second preset time period, wherein the abnormal traffic ratio is the ratio of the abnormal traffic amount obtained by traffic identification of the collected traffic of the target device to the normal traffic amount.

[0140] In the embodiment of the present application, when executing step 7101, the trust score calculation module obtains the abnormal traffic proportion P of the target device in the past time period from the device behavior analysis module. f and authentication authorization failure rate P k , that is, the abnormal traffic ratio in the first preset time period, and the authentication and authorization failure rate in the second preset time period. f , P k The unit is percentage (%).

[0141] Step 7102: Obtain the average abnormal traffic ratio of all devices in the local area network in the first preset time period, and the average authentication and authorization failure rate in the second preset time period.

[0142] In an embodiment of the present application, when executing step 7102, the abnormal traffic proportion of each device in the near area network within the first preset time period and the authentication and authorization failure rate within the second preset time are first calculated, and then the average abnormal traffic proportion z of all current devices in the near area network within the first preset time period is calculated, denoted as α, and the average authentication and authorization failure rate within the second preset time period is calculated, denoted as β.

[0143] Step 7103: Based on the abnormal traffic proportion, the authentication and authorization failure rate, the average abnormal traffic proportion and the average authentication and authorization failure rate, the current trust value of the target device is obtained.

[0144] In the embodiment of the present application, when executing step 7103, the current trust value of the target device can be calculated based on the following formula:

[0145]

[0146] Wherein, d[i] represents the trust value of the device at the i-th time, and d[i-1] represents the trust value of the device at the (i-1)-th time.

[0147] Based on formula (5), when the trust level of the target device is updated for the first time, the current trust value of the target device calculated by the local domain management server can be expressed by the following formula (6):

[0148]

[0149] Among them, d[1] is the trust value at the first update, and d[0] is the initial trust value.

[0150] Step 720: Determine a new trust level of the target device based on the current trust value, the trust coefficient corresponding to the target authorization identity of the target device, and various corresponding relationships.

[0151] In an embodiment of the present application, when executing step 720, the trust score calculation module obtains the current trust value of the target device from the device behavior analysis module, and calculates the trust score of the target device based on the current trust value and the trust coefficient corresponding to the target authorization identity of the target device. Then, the trust level division module obtains the trust score of the target device from the trust score calculation module, and based on the trust score and various corresponding relationships, that is, the corresponding relationships between each trust score interval and the trust level, divides the target device into a new trust level, thereby obtaining a new trust level for the target device.

[0152] In some embodiments, when executing step 720, if an identity change request is received, the target authorized identity is the changed authorized identity included in the identity change request.

[0153] In the embodiment of the present application, when the device changes its role, that is, receives an identity change request sent by the target device, the following formula (7) can be used to represent the trust score s[i] recalculated based on the current trust value, where it is assumed that the trust coefficient corresponding to the changed authorized identity of the target device is x[j]:

[0154] s[i]=x[j]*d[i] (7)

[0155] In other embodiments, if a device reconnection request or a device path switching request is received or an update threshold is reached, the target authorization identity is the original authorization identity of the target device.

[0156] In the embodiment of the present application, when the update threshold is reached, the trust score s[i] recalculated based on the current trust value can be expressed by the following formula (8), where the trust coefficient corresponding to the original authorized identity is x[k]:

[0157] s[i]=x[k]*d[i] (7)

[0158] As a specific embodiment, when the trust level of the target device is updated for the first time, the new trust score calculated can be expressed by the following formula (7):

[0159] s[1]=x[k]*d[1] (7)

[0160] Wherein, s[1] represents the trust score of the target device when it is first updated, d[1] is the trust value when it is first updated, and x[k] is the trust coefficient corresponding to the authorized identity of the target device.

[0161] After s[1] is calculated, the trust score interval in which s[1] is located is determined, and the trust level corresponding to the trust score interval in which s[1] is located is used as the new trust level of the target device.

[0162] In an embodiment of the present application, if a device reconnection request and / or a device path switching request is received, after executing step 710, i.e., obtaining the current information value of the target device, before executing subsequent step 720, i.e., determining the new trust level of the target device based on the current information value, the trust coefficient corresponding to the target authorization identity of the target device, and each corresponding relationship, it is also necessary to determine that the current trust value is less than or equal to the original trust value to ensure safety and avoid security risks caused by frequent reconnection and path switching of a device.

[0163] In some embodiments, if a device reconnection request and / or a device switch path request is received, and if it is determined that the current trust value is greater than the original trust value, the trust value of the target device remains unchanged; then, when executing step 720, the new trust level of the target device is determined based on the original trust value, the trust coefficient corresponding to the target authorization identity of the target device, and each corresponding relationship.

[0164] In the embodiment of the present application, when the device reconnects or switches the path, that is, when the device reconnection request or device path switching request sent by the relay device of the target device is received, the recalculated current trust value can be expressed by the following formula (8):

[0165]

[0166] Step 730: Replace the previous trust level with a new trust level, send a message carrying the new trust level to the target device, and clear the timer.

[0167] The scheme of the present application is illustrated below using specific embodiments.

[0168] Assume that three trust levels are divided in advance, and the thresholds are 0.8 and 1 respectively. Therefore, there are trust score intervals of (-∞, 0.8], (0.8, 1], and (1, -∞], corresponding to the first trust level, the second trust level, and the third trust level respectively.

[0169] Assume that there are three authorized identities, namely terminal identity, common relay identity, and gateway relay identity, and their corresponding trust coefficients are 1, 0.9, and 0.8, respectively.

[0170] The near-domain management server receives an authorization request sent by device A, wherein the authorization request includes identification information and an authorization identity, such as the authorization identity is a terminal identity; first, based on the identification information included in the authorization request, an authorization check is performed on the device A, and after passing the authorization check, an initial trust value, such as 0.8, is assigned to the device A.

[0171] Based on the initial trust value and the trust coefficient corresponding to the authorized identity, i.e. 0.8*1, the trust score of device A is calculated to be 0.8, and based on the correspondence between the trust score and the aforementioned trust score intervals and trust levels, it is determined that 0.8 is within (-∞, 0.8], and the trust level of device A is classified as the first trust level.

[0172] 2a. The update threshold is reached.

[0173] Using steps 7101 to 7102 in the aforementioned processing flow, the behavior data of device A (abnormal flow ratio and authentication and authorization failure rate) and the average abnormal flow ratio and average authentication and authorization failure rate of all current devices are obtained.

[0174] Assuming that the average abnormal traffic ratio of all current devices is 1% and the average authentication and authorization failure rate is 10%, and the abnormal traffic ratio and authentication and authorization failure rate of device A in the past time period are 1% and 5% respectively; then, the current trust value d[1] of device A is calculated by the above formula (5):

[0175]

[0176] Since the trust coefficient corresponding to the terminal identity is 1, the calculated trust score of device A is 1*1.493=1.493, which is within (1, -∞], and the corresponding trust level is the third trust level.

[0177] 2b. The device changes roles, i.e. receives the identity change request from device A.

[0178] Assuming that the terminal identity is converted to the gateway relay identity, the trust coefficient becomes 0.8, then the trust score is 0.8*0.8=0.64, which is within (-∞, 0.8], and the corresponding trust level is the first trust level.

[0179] 2c. Device reconnection and link switching, that is, receiving a device reconnection request or a device path switching request sent by the relay device of device A.

[0180] Using steps 7101 to 7102 in the aforementioned processing flow, the behavior data of device A (abnormal flow ratio and authentication and authorization failure rate) and the average abnormal flow ratio and average authentication and authorization failure rate of all current devices are obtained.

[0181] Assuming that the average abnormal traffic proportion of all current devices is 1% and the average authentication and authorization failure rate is 10%, the abnormal traffic proportion and authentication and authorization failure rate of device A in the past time period are 1% and 5% respectively. Then, the current trust value of device A calculated by the above formula (5) is d[1]=1.493; since the calculated current trust value is greater than the original trust value (0.8), the original trust value is maintained. Since the trust coefficient corresponding to the terminal identity is 1, the calculated trust score of device A is 1*0.8=0.8, which is within (-∞, 0.8], and the corresponding trust level is the first trust level.

[0182] After introducing the trust evaluation method for devices on the near-area management server side, the trust evaluation method for devices in this application is described from the perspective of devices in the near-area network.

[0183] See also Fig. 9 As shown, for any device in the near-area network, the trust evaluation of the device is implemented by executing the following process:

[0184] Step 900: Send an authorization request to a local area management server, wherein the authorization request includes identification information and an authorized identity of the device, and the identification information is used by the local area management server to perform authorization detection on the legitimacy of the device.

[0185] In the present application, the description of step 900 can refer to the description of the aforementioned step 400 and will not be repeated here.

[0186] Step 910: Receive an authorization success receipt carrying the first trust level of the device sent by the near-domain management server, wherein the first trust level is determined by the near-domain management server after determining that the device has passed the authorization test, based on the initial trust value assigned to the device, the trust coefficient corresponding to the authorized identity, and the correspondence between each trust score interval and the trust level, and is used for other devices in the near-domain network to perform a security assessment on the device based on the first trust level when establishing a relay connection with the device.

[0187] In the present application, the description of step 910 can refer to the description of the aforementioned steps 410 to 430, which will not be repeated here.

[0188] In some embodiments, during the process of establishing a relay connection, refer to Fig.10 As shown, whether to establish a relay connection is determined by executing the following steps:

[0189] Step 1000: Send a first trust level to other devices, so that the other devices perform a security assessment on the device based on the first trust level to obtain a first assessment result.

[0190] In an embodiment of the present application, in establishing a relay connection, verification messages such as identity authentication need to be transmitted between the aforementioned device and other devices in the near-area network, and the trust level may be carried at the same time, or a new verification message of the trust level may be sent, so that other devices to be connected may evaluate the security of the device based on the first trust level of the device, thereby obtaining a first evaluation result, and determining whether to establish a relay connection with the device based on the first evaluation result, thereby pre-evaluating the security of the device and ensuring the security of subsequent services.

[0191] Step 1010: Receive the second trust level of other devices sent by other devices, and perform security assessment on the other devices based on the second trust level to obtain a second assessment result.

[0192] In the embodiment of the present application, in establishing a relay connection, the aforementioned device and other devices in the near-field network need to transmit verification messages, such as identity authentication, which can carry the trust level at the same time, or a verification message with a trust level is newly sent. Specifically, after receiving the trust level sent by the other device to be connected, recorded as the second trust level, the device performs a security assessment on the aforementioned other device based on the second trust level, thereby obtaining a second assessment result, and determines whether to establish a relay connection with the device based on the second assessment result, thereby pre-assessing the security of the device and ensuring the security of subsequent services.

[0193] Step 1020: If the second evaluation result indicates that the other device is dangerous, or a connection failure message is received from the other device, the relay connection establishment process is stopped, wherein the connection failure message is sent by the other device when it determines that the first evaluation result indicates that the device is dangerous.

[0194] It should be noted that the execution order of step 1000 and step 1010 is not fixed, and can be the same as the execution order of the aforementioned process, or step 1010 can be executed first and then step 1000. This application does not make any specific limitation.

[0195] In some embodiments, the near-domain management server may also issue a risk assessment list associated with the trust level. The risk assessment list includes which trust levels are included in high risk, which trust levels are included in medium risk, and which trust levels are included in low risk. By subsequently maintaining the risk assessment list, the trust assessment of devices in the near-domain network can be guaranteed, thereby improving the security of near-domain network services.

[0196] Based on the same inventive concept, refer to Fig.11 As shown, in an embodiment of the present application, a trust evaluation device for a device is provided, which is applied to a near-domain management server, and the device includes:

[0197] The receiving module 1110 is used to receive an authorization request sent by a target device to be connected to the near area network, wherein the authorization request includes identification information and an authorization identity of the target device;

[0198] An allocation module 1120 is used to allocate an initial trust value and network permissions of the authorized identity to the target device after the legitimacy of the target device is authorized based on the identification information;

[0199] A determination module 1130, configured to determine the trust level of the target device based on the initial trust value, the trust coefficient corresponding to the authorized identity, and the correspondence between each trust score interval and the trust level;

[0200] The sending module 1140 is used to send the authorization success receipt carrying the trust level to the target device, so that other devices in the near area network can perform security assessment on the target device based on the trust level when establishing a relay connection with the target device.

[0201] In a possible implementation, after sending the authorization success receipt carrying the trust level to the target device, the determining module 1130 is further configured to:

[0202] Start and monitor the trust level update timer;

[0203] When it is determined that the trust level update condition is met, obtaining a current trust value of the target device;

[0204] Determining a new trust level of the target device based on the current trust value, the trust coefficient corresponding to the target authorized identity of the target device, and the respective corresponding relationships;

[0205] replacing the trust level with the new trust level, sending a message carrying the new trust level to the target device, and clearing the timer;

[0206] Among them, the update conditions include part or all of the following contents: the timer reaches the update threshold; the identity change request sent by the target device is received; the device reconnection request and / or the device switching path request sent by the relay device associated with the target device is received; if the identity change request is received, the target authorization identity is the changed authorization identity included in the identity change request; if the device reconnection request or the device switching path request is received or the update threshold is reached, the target authorization identity is the original authorization identity of the target device.

[0207] In a possible implementation, the determining module 1130 is specifically configured to:

[0208] Obtaining the abnormal traffic ratio of the target device in a first preset time period and the authentication and authorization failure rate in a second preset time period, wherein the abnormal traffic ratio is the ratio of the amount of abnormal traffic to the amount of normal traffic obtained by traffic identification of the collected traffic of the target device;

[0209] Obtaining an average abnormal traffic ratio of all devices in the near area network within the first preset time period, and an average authentication and authorization failure rate within the second preset time period;

[0210] Based on the abnormal traffic proportion, the authentication and authorization failure rate, the average abnormal traffic proportion and the average authentication and authorization failure rate, a current trust value of the target device is obtained.

[0211] In a possible implementation, if the device reconnection request and / or the device switching path request is received, after obtaining the current trust value of the target device, before determining the new trust level of the target device based on the current trust value, the trust coefficient corresponding to the target authorization identity of the target device, and each corresponding relationship, the determination module 1130 is further used to:

[0212] It is determined that the current trust value is less than or equal to the original trust value.

[0213] In a possible implementation, if the device reconnection request and / or the device path switching request is received, the determining module 1130 is further configured to:

[0214] If it is determined that the current trust value is greater than the original trust value, keeping the trust value of the target device unchanged;

[0215] The determination module 1130 is specifically used for:

[0216] Based on the original trust value, the trust coefficient corresponding to the target authorization identity of the target device and various corresponding relationships, a new trust level of the target device is determined.

[0217] In a possible implementation, the authorized identity includes a terminal identity, a common relay identity, and a gateway relay identity; then the determination module 1130 is further used to:

[0218] The following operations are performed for each authorized identity: for any authorized identity, an average trust value of any authorized identity at each trust level is counted;

[0219] Taking the average trust value of the gateway relay identity of each trust level as the reference trust value, and based on the reference trust value and the average trust value of any authorized identity of each trust level, determining a new trust coefficient corresponding to any authorized identity;

[0220] The trust coefficient corresponding to any one of the authorized identities is replaced by the new trust coefficient.

[0221] Based on the same inventive concept, refer to Fig.12 As shown, an embodiment of the present application provides a trust evaluation device for a device, which is applied to any device managed by a near-domain management server, and the device includes:

[0222] The sending module 1210 is used to send an authorization request to the near domain management server, where the authorization request includes the identification information and the authorization identity of the device, and the identification information is used by the near domain management server to perform authorization detection on the legitimacy of the device;

[0223] The receiving module 1220 is used to receive an authorization success receipt sent by the near-field management server and carrying the first trust level of the device. The first trust level is determined after the near-field management server determines that the authorization test of the device has passed, based on the initial trust value assigned to the device, the trust coefficient corresponding to the authorized identity, and the correspondence between each trust score interval and the trust level. It is used for other devices in the near-field network to perform a security assessment on the device based on the first trust level when the device establishes a relay connection.

[0224] In a possible implementation, the receiving module 1220 is further configured to:

[0225] In the process of establishing the relay connection, sending the first trust level to the other device, so that the other device performs a security assessment on the device based on the first trust level to obtain a first assessment result;

[0226] receiving a second trust level of the other device sent by the other device, and performing a security assessment on the other device based on the second trust level to obtain a second assessment result;

[0227] If the second evaluation result indicates that the other device is in danger, or if a connection failure message sent by the other device is received, the process of establishing the relay connection is stopped. The connection failure message is sent by the other device when it determines that the first evaluation result indicates that the device is in danger.

[0228] See also Fig.13 As shown, an electronic device is provided in an embodiment of the present application, including:

[0229] Memory 131, used to store computer programs or instructions;

[0230] The processor 132 is configured to execute the computer program or instruction in the memory 131, so that any method described in any device in the near area network is executed.

[0231] The processor 132 may include one or more central processing units (CPUs) or digital processing units, etc., for executing computer programs or instructions in the memory 131, so that any of the methods in the above embodiments is executed;

[0232] It should be noted that the specific connection medium between the memory 131 and the processor 132 is not limited in the embodiment of the present application. Fig.13 In the embodiment, the memory 131 and the processor 132 are connected via the bus 130, and the connection between other components is only for illustrative purposes and is not intended to be limiting. The bus 130 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.13 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0233] See also Fig.14 As shown, in an embodiment of the present application, a server is provided, which can implement the function of the trust evaluation method of the device executed by the aforementioned near-domain management server, referring to Fig.14 , the server includes:

[0234] At least one processor 141, and a memory 142 connected to the at least one processor 141. The specific connection medium between the processor 141 and the memory 142 is not limited in the embodiment of the present application. Fig.14 In the example, the processor 141 and the memory 142 are connected via the bus 140. The bus 140 is Fig.14 The connections between other components are shown in bold lines, and are not intended to be limiting. The bus 140 can be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, Fig.14 Only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus. Alternatively, the processor 141 can also be called a controller, and there is no limitation on the name.

[0235] In the embodiment of the present application, the memory 142 stores instructions that can be executed by at least one processor 141. The at least one processor 141 can execute the trust evaluation method of the device discussed above by executing the instructions stored in the memory 142. The processor 141 can implement the function of the trust evaluation device of the device.

[0236] In one possible design, the processor 141 may include one or more processing units, and the processor 141 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the modem processor may not be integrated into the processor 141. In some embodiments, the processor 141 and the memory 142 may be implemented on the same chip, and in some embodiments, they may also be implemented separately on separate chips.

[0237] The processor 141 may be a general-purpose processor, for example, a central processing unit (CPU), a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, and may implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the trust assessment method of the device disclosed in the embodiments of the present application may be directly embodied as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.

[0238] The memory 142 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs and modules. The memory 142 may include at least one type of storage medium, such as a flash memory, a hard disk, a multimedia card, a card-type memory, a random access memory (Random Access Memory, RAM), a static random access memory (Static Random Access Memory, SRAM), a programmable read-only memory (Programmable Read Only Memory, PROM), a read-only memory (Read Only Memory, ROM), an electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), a magnetic memory, a disk, an optical disk, etc. The memory 142 is any other medium that can be used to carry or store a desired program code in the form of an instruction or data structure and can be accessed by a computer, but is not limited thereto. The memory 142 in the embodiment of the present application can also be a circuit or any other device that can realize a storage function, for storing program instructions and / or data.

[0239] By designing and programming the processor 141, the code corresponding to the trust evaluation method of the device introduced in the above embodiment can be fixed into the chip, so that the chip can execute the steps of the trust evaluation method of the device in the above embodiment when running. How to design and program the processor 141 is a technology well known to those skilled in the art and will not be described in detail here.

[0240] Based on the same inventive concept, an embodiment of the present application provides a computer-readable storage medium. When instructions in the storage medium are executed by a processor, the processor is enabled to execute any one of the methods in the above embodiments.

[0241] In some possible implementations, various aspects of the trust assessment method for a device provided in the present application may also be implemented in the form of a program product, which includes a program code. When the program product is run on a device, the program code is used to enable the device to execute the steps of the method according to various exemplary implementations of the present application described above in this specification.

[0242] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0243] The present application is described with reference to the flowchart and / or block diagram of the method, device (system), and computer program product according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the process and / or box in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for implementing the functions specified in one process or multiple processes in the flowchart and / or one box or multiple boxes in the block diagram.

[0244] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device that implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0245] These computer program instructions may also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0246] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A trust evaluation method for a device, characterized in that: Applied to a near-domain management server, the method comprises: Receiving an authorization request sent by a target device to be connected to a near area network, the authorization request including identification information and an authorized identity of the target device; After the legitimacy of the target device is authorized and detected based on the identification information, an initial trust value and network permissions of the authorized identity are allocated to the target device; Determining the trust level of the target device based on the initial trust value, the trust coefficient corresponding to the authorized identity, and the correspondence between each trust score interval and the trust level; An authorization success receipt carrying the trust level is sent to the target device, so that other devices in the near area network can perform a security assessment on the target device based on the trust level when establishing a relay connection with the target device.

2. The method according to claim 1, characterized in that After sending the authorization success receipt carrying the trust level to the target device, the method further includes: Start and monitor the trust level update timer; When it is determined that the trust level update condition is met, obtaining a current trust value of the target device; Determining a new trust level of the target device based on the current trust value, the trust coefficient corresponding to the target authorized identity of the target device, and the respective corresponding relationships; replacing the trust level with the new trust level, sending a message carrying the new trust level to the target device, and clearing the timer; Among them, the update conditions include part or all of the following contents: the timer reaches the update threshold; the identity change request sent by the target device is received; the device reconnection request and / or the device switching path request sent by the relay device associated with the target device is received; if the identity change request is received, the target authorization identity is the changed authorization identity included in the identity change request; if the device reconnection request or the device switching path request is received or the update threshold is reached, the target authorization identity is the original authorization identity of the target device.

3. The method according to claim 2, characterized in that The obtaining of the current trust value of the target device includes: Obtaining the abnormal traffic ratio of the target device in a first preset time period and the authentication and authorization failure rate in a second preset time period, wherein the abnormal traffic ratio is the ratio of the amount of abnormal traffic to the amount of normal traffic obtained by traffic identification of the collected traffic of the target device; Obtaining an average abnormal traffic ratio of all devices in the near area network during the first preset time period, and an average authentication and authorization failure rate during the second preset time period; Based on the abnormal traffic proportion, the authentication and authorization failure rate, the average abnormal traffic proportion and the average authentication and authorization failure rate, a current trust value of the target device is obtained.

4. The method according to claim 2, characterized in that If the device reconnection request and / or the device path switching request is received, after acquiring the current trust value of the target device and before determining a new trust level of the target device based on the current trust value, the trust coefficient corresponding to the target authorization identity of the target device and each corresponding relationship, the method further includes: It is determined that the current trust value is less than or equal to the original trust value.

5. The method according to claim 2, characterized in that If the device reconnection request and / or the device path switching request is received, the method further includes: If it is determined that the current trust value is greater than the original trust value, keeping the trust value of the target device unchanged; The determining a new trust level of the target device based on the current trust value, the trust coefficient corresponding to the target authorization identity of the target device, and each corresponding relationship includes: Based on the original trust value, the trust coefficient corresponding to the target authorization identity of the target device and various corresponding relationships, a new trust level of the target device is determined.

6. The method according to any one of claims 1 to 5, characterized in that: The authorized identity includes a terminal identity, a common relay identity and a gateway relay identity; the method further includes: The following operations are performed for each authorized identity: for any authorized identity, an average trust value of any authorized identity at each trust level is counted; Taking the average trust value of the gateway relay identity of each trust level as the reference trust value, and based on the reference trust value and the average trust value of any authorized identity of each trust level, determining a new trust coefficient corresponding to any authorized identity; The trust coefficient corresponding to any one of the authorized identities is replaced by the new trust coefficient.

7. A trust evaluation device for a device, characterized in that: Applied to a near-domain management server, the device comprises: A receiving module, configured to receive an authorization request sent by a target device to be connected to a near area network, wherein the authorization request includes identification information and an authorized identity of the target device; An allocation module, configured to allocate an initial trust value and network permissions of the authorized identity to the target device after the legitimacy of the target device is authorized and detected based on the identification information; A determination module, configured to determine the trust level of the target device based on the initial trust value, the trust coefficient corresponding to the authorized identity, and the correspondence between each trust score interval and the trust level; The sending module is used to send the authorization success receipt carrying the trust level to the target device, so that other devices in the near area network can perform security assessment on the target device based on the trust level when establishing a relay connection with the target device.

8. A server, characterized in that: include: Memory, used to store computer programs or instructions; A processor is used to execute the computer program or instructions in the memory so that the method according to any one of claims 1 to 6 is performed.

9. A computer-readable storage medium, characterized in that: When the instructions in the storage medium are executed by a processor, the processor is enabled to perform the method according to any one of claims 1 to 6.

10. A computer program product, characterized in that The computer program product comprises: a computer program code, and when the computer program code is run on a computer, the computer is enabled to execute the method according to any one of claims 1 to 6.