Data collection method, device, equipment and computer readable storage medium

By adopting a subscription configuration mechanism in remote attestation, network devices automatically feed back information, solving the flexibility and timeliness issues of polling data collection, improving data collection efficiency and reducing security risks.

CN111866044BActive Publication Date: 2024-09-17HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910357610.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-04-29
Publication Date
2024-09-17
Estimated Expiration
2039-04-29

AI Technical Summary

Technical Problem

The existing polling challenge response mechanism is not flexible enough in data collection and timely in remote attestation, resulting in security risks and low efficiency.

Method used

Using a subscription configuration mechanism, the remote attestation server issues subscription configuration to the network device, and the network device automatically feeds back the subscription information. Information subscription is realized through the network configuration protocol, reducing message interaction and improving data collection efficiency.

Benefits of technology

The data collection method in remote certification is more flexible and timely, reducing security risks and improving data collection efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111866044B
    Figure CN111866044B
Patent Text Reader

Abstract

The present application discloses a method, device, equipment and computer-readable storage medium for collecting data. The method is applied in the process of remote attestation, and the method includes: a remote attestation server sends a subscription configuration to a network device, and the subscription configuration is used to subscribe to relevant information of the network device for remote attestation; the remote attestation server receives subscription information fed back by the network device based on the subscription configuration. By sending the subscription configuration to the network device by the remote attestation server, the network device can automatically feed back the subscription information accordingly, making the data collection method in the remote attestation more flexible and more timely, thereby reducing security risks. In addition, since the subscription configuration does not need to be sent multiple times by the remote attestation server, additional message interactions are reduced, thereby improving data collection efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer security technology, and in particular to a data collection method, device, equipment and a computer-readable storage medium. Background Art

[0002] With the development of computer security technology, the research of trusted computing has received more and more attention, and remote attestation is an important part of trusted computing. In order to perform remote attestation, the remote attestation server needs to collect data from network devices, so the way to collect data is particularly important.

[0003] The related technology provides a polling challenge response mechanism when collecting data. Under this mechanism, the remote proof server initiates a request, and the network device responds with the current trusted information and status based on the request.

[0004] It is not difficult to see that in the polling challenge response mechanism, since the network device only responds after the server initiates a request each time, this data collection method is not flexible enough.

[0005] Application Contents

[0006] The embodiments of the present application provide a data collection method, device, equipment and computer-readable storage medium to solve the problems in the related art. The technical solution is as follows:

[0007] In the first aspect, a data collection method is provided, and the method is applied in the process of remote certification. According to the method, a remote certification server sends a subscription configuration to a network device, and the subscription configuration is used to subscribe to the relevant information of the network device for remote certification. The remote certification server receives the subscription information fed back by the network device based on the subscription configuration. By sending the subscription configuration to the network device by the remote certification server, the network device can automatically feed back the subscription information according to the subscription of the remote certification server, so that the data collection method of the network device in the remote certification is more flexible. Moreover, since the subscription configuration does not need to be sent by the remote certification server multiple times, it can reduce additional message interactions and improve data collection efficiency.

[0008] Optionally, the method further includes: the remote proof server sends data processing parameters to the network device, and the subscription information includes information obtained by the network device after processing based on the data processing parameters. By sending the data processing parameters to the network device in advance for use when the network device feeds back information, the number of interactions is reduced and the data collection efficiency is improved.

[0009] Optionally, sending the subscription configuration to the network device includes: the remote attestation server establishing a network configuration protocol session with the network device, and sending the subscription configuration to the network device based on the network configuration protocol session. Implementing information subscription through the network configuration protocol not only has a wide range of usage scenarios, but also inherits the advantages of the network configuration protocol, such as flexibility, efficiency, active notification, and timeliness.

[0010] In a second aspect, a data collection method is provided, which is applied in the process of remote attestation, and the method includes: a network device receives a subscription configuration issued by a remote attestation server, and the subscription configuration is used to subscribe to relevant information of the network device for remote attestation; the network device feeds back subscription information to the remote attestation server based on the subscription configuration.

[0011] Optionally, the above subscription configuration includes one or more of a data stream subscription configuration and an event subscription configuration.

[0012] Optionally, if the subscription configuration includes a subscription configuration of a data stream, the feeding back subscription information to the remote attestation server based on the subscription configuration includes: feeding back one or more of the following information to the remote server based on the subscription configuration of the data stream:

[0013] The integrity information of the software at each layer of the trust chain recorded when the network device is started,

[0014] The dynamic integrity information of the operating system recorded when the network device is running,

[0015] The dynamic integrity information of the software recorded when the network device is running,

[0016] The identity certificate associated with the network device, and

[0017] A remote attestation certificate associated with the network device.

[0018] Optionally, if the subscription configuration includes an event subscription configuration, the feedback of subscription information to the remote certification server based on the subscription configuration includes: feedback of relevant information after the triggering of one or more events including device startup, device upgrade, specific mode attack events, master-slave switching, single board plugging / switching, and certificate life cycle events to the remote server based on the event subscription configuration.

[0019] Optionally, the subscription configuration further includes a subscription mode, where the subscription mode is used to indicate a method of feeding back subscription information, and the subscription mode includes one or a combination of periodic feedback and event-triggered feedback;

[0020] The feeding back subscription information to the remote attestation server based on the subscription configuration includes:

[0021] Based on the subscription mode included in the subscription configuration, subscription information is fed back to the remote attestation server.

[0022] Optionally, the above different types of information correspond to different subscription modes.

[0023] Optionally, the above subscription configuration further includes filter configuration, and the subscription information includes information obtained after filtering based on the filter configuration.

[0024] Optionally, the method further includes: receiving data processing parameters sent by the remote certification server, and the subscription information includes information obtained after processing based on the data processing parameters.

[0025] Optionally, the receiving the subscription configuration sent by the remote attestation server includes: establishing a network configuration protocol session with the remote attestation server, and receiving the subscription configuration sent by the remote attestation server based on the network configuration protocol session.

[0026] According to a third aspect, a data collection device is provided, which is applied in a remote certification process, and comprises: a sending module for sending a subscription configuration to a network device, wherein the subscription configuration is used to subscribe to relevant information of the network device for remote certification; and a receiving module for receiving subscription information fed back by the network device based on the subscription configuration.

[0027] Optionally, the sending module is further used to send data processing parameters to the network device, and the subscription information includes information obtained after processing based on the data processing parameters.

[0028] Optionally, the sending module is used to establish a network configuration protocol session with the network device, and send a subscription configuration to the network device based on the network configuration protocol session.

[0029] In a fourth aspect, a data acquisition device is provided, which is applied in a remote attestation process, and the device comprises: a receiving module, used to receive a subscription configuration issued by a remote attestation server, wherein the subscription configuration is used to subscribe to relevant information of the network device for remote attestation; and a sending module, used to feedback subscription information to the remote attestation server based on the subscription configuration.

[0030] Optionally, if the subscription configuration includes a subscription configuration of a data stream, the sending module is configured to feed back one or more of the following information to the remote server based on the subscription configuration of the data stream:

[0031] The integrity information of the software at each layer of the trust chain recorded when the network device is started,

[0032] The dynamic integrity information of the operating system recorded when the network device is running,

[0033] The dynamic integrity information of the software recorded when the network device is running,

[0034] The identity certificate associated with the network device, and

[0035] A remote attestation certificate associated with the network device.

[0036] Optionally, if the subscription configuration includes an event subscription configuration, the sending module is used to feedback to the remote server relevant information after one or more events of device startup, device upgrade, specific mode attack event, master-slave switching, single board plug-in / switching, and certificate life cycle event are triggered based on the event subscription configuration.

[0037] Optionally, the subscription configuration further includes a subscription mode, where the subscription mode is used to indicate a method of feeding back subscription information, and the subscription mode includes one or a combination of periodic feedback and event-triggered feedback;

[0038] The sending module is used to feed back subscription information to the remote certification server based on the subscription mode included in the subscription configuration.

[0039] Optionally, the receiving module is further used to receive data processing parameters sent by the remote certification server, and the subscription information fed back by the sending module includes information obtained after processing based on the data processing parameters.

[0040] Optionally, the receiving module is used to establish a network configuration protocol session with the remote attestation server, and receive a subscription configuration issued by the remote attestation server based on the network configuration protocol session.

[0041] In a fifth aspect, a device for collecting data is provided, the device comprising a memory and a processor; at least one instruction is stored in the memory, and the at least one instruction is loaded and executed by the processor to implement a method in any possible implementation of the first aspect or the second aspect of the present application.

[0042] In a sixth aspect, a communication device is provided, the device comprising: a transceiver, a memory, and a processor. The transceiver, the memory, and the processor communicate with each other through an internal connection path, the memory is used to store instructions, and the processor is used to execute the instructions stored in the memory to control the transceiver to receive signals and control the transceiver to send signals, and when the processor executes the instructions stored in the memory, the processor executes the method in any possible implementation of the first aspect or the second aspect.

[0043] Optionally, the number of the processors is one or more, and the number of the memories is one or more.

[0044] Optionally, the memory may be integrated with the processor, or the memory may be provided separately from the processor.

[0045] In the specific implementation process, the memory can be a non-transitory memory, such as a read-only memory (ROM), which can be integrated with the processor on the same chip or can be set on different chips respectively. The embodiments of the present application do not limit the type of memory and the setting method of the memory and the processor.

[0046] In a seventh aspect, a communication system is provided, the system comprising the device in the third aspect or any possible implementation of the third aspect, and the device in the fourth aspect or any possible implementation of the fourth aspect.

[0047] In an eighth aspect, a computer program (product) is provided, wherein the computer program (product) comprises: a computer program code, and when the computer program code is executed by a computer, the computer executes a method in any possible implementation of the first aspect or the second aspect.

[0048] In a ninth aspect, a readable storage medium is provided, which stores a program or instruction. When the program or instruction runs on a computer, a method in any possible implementation of the first aspect or the second aspect is executed.

[0049] In a tenth aspect, a chip is provided, comprising a processor, the processor being used to call and execute instructions stored in a memory from the memory, so that a communication device equipped with the chip executes a method in any possible implementation of the first aspect or the second aspect above.

[0050] In the eleventh aspect, another chip is provided, comprising: an input interface, an output interface, a processor and a memory, wherein the input interface, the output interface, the processor and the memory are connected via an internal connection path, and the processor is used to execute the code in the memory. When the code is executed, the processor is used to execute the method in any possible implementation of the first aspect or the second aspect mentioned above.

[0051] According to the technical solution of the embodiment of the present application, the remote attestation server sends the subscription configuration to the network device, and the network device can automatically feedback the subscription information accordingly, making the data collection method in the remote attestation more flexible and more timely, thereby reducing security risks. In addition, since the subscription configuration does not need to be sent multiple times by the remote attestation server, additional message interactions are reduced, thereby improving data collection efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] Figure 1A A schematic diagram of the remote authentication process provided in an embodiment of the present application;

[0053] Figure 1B A schematic diagram of an implementation environment provided for an embodiment of the present application;

[0054] Figure 2 A schematic diagram of the startup process provided in an embodiment of the present application;

[0055] Figure 3 A schematic diagram of the startup process provided in an embodiment of the present application;

[0056] Figure 4 A schematic diagram of the remote certification process provided in an embodiment of the present application;

[0057] Figure 5 A flow chart of a method for collecting data provided in an embodiment of the present application;

[0058] Figure 6 A schematic diagram of a tree structure of a configuration subscription data model provided in an embodiment of the present application;

[0059] Figure 7 A schematic diagram of a conversation interaction provided in an embodiment of the present application;

[0060] Figure 8 A schematic diagram of a conversation interaction provided in an embodiment of the present application;

[0061] Fig. 9 A schematic diagram of a tree structure of a dynamic subscription data model provided in an embodiment of the present application;

[0062] Fig.10 A schematic diagram of a tree structure of a dynamic subscription data model provided in an embodiment of the present application;

[0063] Fig.11 A schematic diagram of a conversation interaction provided in an embodiment of the present application;

[0064] Fig.12 A schematic diagram of a conversation interaction provided in an embodiment of the present application;

[0065] Fig.13 A schematic diagram of a tree structure of a dynamic subscription data model provided in an embodiment of the present application;

[0066] Fig.14 A schematic diagram of the structure of a device for collecting data provided in an embodiment of the present application;

[0067] Fig.15 A schematic diagram of the structure of a device for collecting data provided in an embodiment of the present application;

[0068] Fig.16 A schematic diagram of the structure of a device for collecting data provided in an embodiment of the present application;

[0069] Fig.17 A schematic diagram of the structure of a communication device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0070] The terms used in the implementation section of the present application are only used to explain the embodiments of the present application and are not intended to limit the present application.

[0071] In a trusted computing system, to establish a trusted network system, you need to first have a root of trust (RoT), then establish a chain of trust, and then pass the trust to each module of the network system, and then you can establish the trust of the entire network system. It can be seen that the root of trust needs to be a component that can be trusted. Since it is generally believed that the trusted platform module (TPM) and the basic input and output system (BIOS) are absolutely trustworthy, the root of trust can exist in the TPM and BIOS of each network device.

[0072] A trusted network device includes three trusted roots: root of trust for measurement (RTM), root of trust for storage (RTS), and root of trust for reporting (RTR). Among them, RTM is used to complete integrity measurement, usually using a computing engine controlled by the core root of trust for measurement (CRTM). CRTM includes the execution code when the network device executes RTM, and CRTM is generally stored in BIOS. RTM is also the origin of trust transfer. RTS is an engine that maintains the value and digest sequence of integrity summaries. RTS generally includes an engine for encrypting stored information and an encryption key. RTR is a computing engine that can reliably report the data held by RTS. This reliability is generally guaranteed by a signature.

[0073] Remote attestation (RA) is one of the technologies in the overall solution of trusted computing. RA is used to determine the trustworthiness of a trusted server. Figure 1A As shown, the remote attestation system includes an RA server (RAserver), an RA client (RA client) and a privacy certificate authority (PCA). The RA server stores the reference value of the platform configuration register (PCR) of the RA client, is responsible for receiving the PCR value sent by the RA client, and gives the trusted status of the RA client. The RA client is a device with a TPM and supports the trusted boot function. The RA client applies to the PCA and obtains the attestation identity key (AIK) certificate assigned by the PCA. In some scenarios, the RA server will initiate remote authentication of the RA client. The RA server sends a challenge request to the RA client. The RA client collects the PCR value, signs it with the AIK private key, and sends the PCR value signed with the AIK private key and the AIK certificate to the RA server. The RA server verifies the validity of the AIK certificate sent by the RA client to the PCA. The PCA returns the PCR reference value corresponding to the RA client to the RA server. The RA server compares the PCR value sent by the RA client with the PCR reference value of the RA client, and determines the credibility status of the RA client according to the comparison result, that is, determines whether the RA client is credible.

[0074] by Figure 1BIn the implementation environment shown, the trusted root proposed by the Trusted Computing Group (TCG) is in TPM as an example, the network management system (NMS) and / or the operations supporting system (OSS) are used as RA servers, the network device is used as the RA client, and the network device includes TPM. From the power-on of the network device to the BIOS startup of the network device, the grand unified bootloader (GRUB) on the network device, and the loading of the system core program of the network device, each process requires remote authentication by NMS / OSS in order to establish a trust chain step by step. The network device stores the measured dynamic measurements and static measurements in the PCR of TPM. The remote attestation module of the network device sends these measurement values ​​to NMS / OSS as the RA server. NMS / OSS can obtain the current status of the network device based on the PCR value and the measurement log calculation. Afterwards, the credibility of the network device is judged by comparing it with the expected value. Figure 1B The high security zone in the system may include system core programs or trust zones or Intel software guard extensions (SGX), etc. Figure 1B The terminal in the system has a device identity combination engine (DICE).

[0075] Since the security of network devices is heavily dependent on the integrity of the software running on the device, a chain of trust model is often used to ensure software integrity, where each stage during boot checks the next stage before execution. Figure 2 As shown, the root of trust (RoT) must ensure absolute security. Then, during the device startup process, the system firmware initializes the entire hardware system and checks the system loader to be run in the next stage, that is, the system loader to be run in the next stage is compared with the HASH signature. If the system loader passes the check, the system loader is started, and the system loader checks the system kernel to be run in the next stage. If the system kernel passes the check, the system kernel is started. The above process from check to startup is repeated until the startup process is completed. Among them, startup includes secure boot (Secure BOOT) and trusted boot (Trusted BOOT).

[0076] Secure Boot is a part (sub-rule) of the unified extensible firmware interface (UEFI), and the two are part-to-whole. UEFI is a standard that describes a type interface in detail, which is used for the operating system to automatically load from the pre-boot operating environment to an operating system. Extensible firmware interface (EFI) is a recommended standard proposed by Intel for the architecture, interface and services of personal computer (PC) firmware. Its main purpose is to provide a set of consistent and correctly specified boot services on all platforms before the operating system (OS) is loaded (before startup). Secure BOOT uses keys to prevent malware from invading. UEFI stipulates that when the motherboard leaves the factory, some reliable public keys can be built in. Then, any operating system or hardware driver that wants to be loaded on this motherboard must be authenticated by these public keys. In other words, these software must be signed with the corresponding private key, otherwise the motherboard refuses to load. Since malware cannot pass the authentication, there is no way to infect BOOT.

[0077] Trusted startup includes: during the system startup process of the device, the TPM of the device records the key system status of the device. After the system startup of the device is completed, the device sends a report to the remote server for remote certification and authentication. The user determines whether the status of the entire system environment is credible based on the results of the remote certification and authentication. In some embodiments of the present application, the remote certification function module of the device sends a report to the remote server for remote certification and authentication. In some embodiments of the present application, the network management system or network controller can determine whether the status of the entire system environment is credible based on the results of remote certification and authentication based on policies that are pre-configured or obtained in some way. For example, whether to allow device access, whether to allow the device to carry a certain service, etc. can be determined by the network management system or network controller based on pre-configured or obtained policies and the results of remote certification and authentication.

[0078] like Figure 3 As shown in , you can use startup file verification and startup file measurement in combination. If the file verification fails, the startup is stopped, and the file measurement only records the measurement value of the startup process or information related to the startup process without interfering with the startup. Figure 3As shown, when the startup file is verified, the system firmware (firmware) initializes the entire hardware system and checks the system loader (loader) to be run in the next stage, that is, the HASH signature comparison is performed on the system loader (loader) to be run in the next stage. If the system loader fails the check, the system loader is stopped from starting. If the system loader passes the check, the system loader is started, and the system loader checks the system kernel (kernal) to be run in the next stage. If the system kernel fails the check, the system kernel is stopped from starting. If the system kernel passes the check, the system kernel is started. As shown Figure 3 As shown, when the startup file is measured, the system loader and the system core program are also checked, but the check does not interfere with the startup of the system loader and the system core program. Only the measurement value of the startup process or information related to the startup process is recorded in the TPM.

[0079] Furthermore, if Figure 4 As shown, the remote attestation server can collect the security attributes of network devices or nodes sent by network devices or nodes through a certain format and interaction process through the network, and then securely send them to the remote attestation server through a challenge-response interaction mechanism, and verify them according to certain strategies, and finally prove whether the device is trustworthy. In addition, in order to ensure the security of devices and communications during the entire remote attestation protocol interaction process, certificate mechanisms including certificate application and revocation must be deployed in advance to support necessary operations such as certificate verification and viewing during the protocol interaction process. The network device or node may be a server, an Internet of Things (IoT) gateway or a terminal. The security attributes of the network device or node include software and hardware integrity values, configuration information, node status, etc. The network device or node can calculate and record integrity values ​​from the central processing unit (CPU) & TPM, to BIOS, to Grub, to the system core program (kernal), and finally to the trust chain of the application (application, App). As shown Figure 4 As shown, trusted mobility, remote attestation, and end-to-end guaranteed trusted execution environments at the device layer, communication layer, and management layer can be achieved in terminals, gateways, and cloud terminals.

[0080] Among them, in the above remote attestation process, the data collection method is realized through the challenge-response interaction mechanism. In this method, the remote attestation server needs to send a request to the network device first, and the network device then feeds back its own security attributes and other data to the remote attestation server. Therefore, this data collection method is not flexible enough and not timely, resulting in certain security risks. In addition, since the server needs to initiate the request, there is an additional message interaction, resulting in low efficiency.

[0081] In this regard, an embodiment of the present application provides a method for collecting data used in a remote certification process, the method taking the subscription / publishing and push mechanism based on the network configuration protocol (NETCONF) as an example to realize data collection. Among them, NETCONF is a network configuration protocol used in network configuration management tools, which provides a mechanism for installing, querying, reading, writing and deleting configuration files of network devices. Compared with the command-line interface (CLI) and the simple network management protocol (SNMP), NETCONF has more advantages in flexibility and scalability. In addition, NETCONF provides a mechanism for installing, operating and deleting network device configurations based on the remote procedure call (RPC) layer through the extensible markup language (XML) data format.

[0082] The NETCONF protocol is divided into the following four layers:

[0083] Content layer: represents the collection of managed objects.

[0084] Operation layer: defines a set of basic primitive operations used in RPC. These operations constitute the basic capabilities of NETCONF.

[0085] RPC layer: provides a simple, transport protocol-independent mechanism for encoding RPC modules.

[0086] Communication protocol layer: Unlike SNMP, which uses the connectionless user datagram protocol (UDP) as a transmission protocol, NETCONF is connection-oriented, requiring a permanent connection between communication ports, and this connection must provide reliable, sequential data transmission. Currently, it supports secure shell protocol (SSH), transport layer security protocol (TLS), etc.

[0087] In addition, the method provided in the embodiment of the present application adopts Yang push to provide a standard mechanism, so that any data described by the Yang model in the system can be subscribed. After specifying the path and subscription mode to be subscribed, when the subscription mode of periodic feedback is selected, the system will push the specified data to the subscribed user after the specified time period arrives. When the on change mode (i.e., the subscription mode of event-triggered feedback) is selected, the system will push the subscribed data to the subscribed user when the subscribed data changes.

[0088] Next, the method for collecting data provided in the embodiment of the present application is described by example. Figure 5 As shown, the method includes the following steps.

[0089] In step 501, the remote attestation server sends a subscription configuration to the network device, where the subscription configuration is used to subscribe to relevant information of the network device for remote attestation.

[0090] The present application adopts a subscription method, whereby the remote attestation server sends a subscription configuration to the network device, thereby subscribing to relevant information of the network device for remote attestation. Optionally, the subscription configuration includes one or more of a subscription configuration for a data stream and a subscription configuration for an event. For example, the remote attestation server sends a subscription configuration for a data stream to the network device, thereby subscribing to relevant information of the data stream for remote attestation by the network device. Alternatively, the remote attestation server sends a subscription configuration for an event to the network device, thereby subscribing to relevant information of an event for remote attestation by the network device. Alternatively, the remote attestation server sends a subscription configuration for a data stream and a subscription configuration for an event to the network device, thereby subscribing to relevant information of the data stream and event for remote attestation by the network device. When the remote attestation server sends a subscription configuration for a data stream and a subscription configuration for an event to the network device, it may be sent simultaneously or at different times, and this is not limited in the embodiments of the present application.

[0091] Among them, the relevant information of the data flow can be various types of information related to the trust of the network device, including but not limited to one or more of the following information: the integrity information of the software at each layer of the trust chain recorded when the network device is started, the dynamic integrity information of the operating system recorded when the network device is running, the dynamic integrity information of the software recorded when the network device is running, the identity certificate related to the network device and the remote attestation certificate related to the network device.

[0092] Events include, but are not limited to, one or more of device startup, device upgrade, specific mode attack events, master-slave switching, board plugging / switching, and certificate lifecycle events. Among them, board switching events include events where the board where the service is located is switched. Which data stream and which event the remote attestation server subscribes to can be determined based on the application scenario, and the embodiments of the present application do not limit this.

[0093] Optionally, the subscription configuration may also include a subscription mode, which is used to indicate a method for feeding back subscription information, and the subscription mode includes one or a combination of periodic feedback and event-triggered feedback. Optionally, different types of information correspond to different subscription modes. For example, for some critical security data streams, a subscription mode of event-triggered feedback may be configured, so that when the subscribed data changes, the network device immediately feeds back to the remote certification server. For general security data, a subscription mode of periodic feedback may be configured, so that after the period is reached, the network device feeds back to the remote certification server. Of course, other strategies may also be used to determine the subscription mode, such as determining the subscription mode based on the application scenario, etc., which is not limited in the embodiments of the present application.

[0094] Optionally, the subscription configuration may also include filter configuration. The filter configuration is used to filter the relevant information of the data stream or event. It should be understood that the subscription configuration of the data stream and event is a subscription to a wider range of information, and the filter can be understood as a restriction condition, that is, to filter out more detailed information from the wider range of information, so that the collected data is more targeted.

[0095] In an optional implementation manner of an embodiment of the present application, no matter what content the subscription configuration is for, in order to send the subscription configuration to the network device, the remote certification server sends the subscription configuration to the network device in a manner that includes but is not limited to one or more of the following methods: establishing a network configuration protocol session with the network device, and sending the subscription configuration to the network device based on the network configuration protocol session.

[0096] Optionally, the method provided in the embodiment of the present application can also bind the time limit of the subscription configuration to the time limit of the network configuration protocol session. After the subscription configuration is issued based on the network configuration protocol session, the subsequent reliance on the network configuration protocol session can achieve dynamic subscription. In other words, when the network configuration protocol session is valid, the subscription can continue based on the subscription configuration. Once the network configuration protocol session is disconnected, the subscription configuration time limit can no longer be continued based on the subscription configuration, so that the status of the network device can be dynamically monitored. In this way, the corresponding dynamic subscription RPC can be defined to reduce additional information interaction.

[0097] Of course, the validity of the subscription configuration can also be unbound from the validity of the network configuration protocol session. After the subscription configuration is issued based on the network configuration protocol session, it is not dependent on the network configuration protocol session in the future, that is, configuration subscription is realized. In other words, regardless of whether the network configuration protocol session is disconnected, subscription can still be continued based on the subscription configuration, and the status of the network device can be always monitored.

[0098] Whether the validity of the subscription configuration is bound to the validity of the network configuration protocol session can be determined based on the type of collected data. For example, for some critical security data, the two can be unbound and always monitored using the on-change mode. For general security data, the two can be bound and relevant information can be periodically read during the NETCONF session.

[0099] In step 502, the network device receives a subscription configuration sent by a remote certification server.

[0100] Optionally, if the network device establishes a network configuration protocol session with the remote attestation server, after the remote attestation server sends the subscription configuration based on the network configuration protocol session, the network device receives the subscription configuration sent by the remote attestation server based on the network configuration protocol session.

[0101] In step 503, the network device feeds back subscription information to the remote certification server based on the subscription configuration.

[0102] After receiving the subscription configuration sent by the remote attestation server, the network device can obtain the subscription information that needs to be fed back to the remote attestation server based on the subscription configuration.

[0103] Optionally, if the subscription configuration includes a subscription configuration for a data stream, the subscription information is fed back to the remote attestation server based on the subscription configuration, including: feeding back one or more of the following information to the remote server based on the subscription configuration for the data stream: integrity information of the software at each layer of the trust chain recorded when the network device is started, dynamic integrity information of the operating system recorded when the network device is running, dynamic integrity information of the software recorded when the network device is running, identity certificates related to the network device, and remote attestation certificates related to the network device. The specific type of subscription information fed back can be determined based on the subscription requirements in the subscription configuration. For example, if the subscription configuration requires subscription to the integrity information of the software at each layer of the trust chain recorded when the network device is started, the network device will feed back the integrity information of the software at each layer of the trust chain recorded at startup as subscription information to the remote attestation server based on the subscription configuration.

[0104] Optionally, if the subscription configuration includes an event subscription configuration, the subscription information is fed back to the remote certification server based on the subscription configuration, including: feeding back to the remote server relevant information after one or more events of device startup, device upgrade, specific mode attack event, master-slave switching, single board plug / switch, and certificate life cycle event are triggered based on the event subscription configuration. Which subscription information is fed back specifically can be determined based on the subscription requirements in the subscription configuration. For example, if the subscription configuration requires subscription to relevant information about device startup, the network device, based on the subscription configuration, will feed back the information after the network device startup is completed as subscription information to the remote certification server.

[0105] Optionally, if the subscription configuration also includes a subscription mode, the subscription mode is used to indicate a method of feeding back subscription information, and the subscription mode includes periodic feedback or event-triggered feedback or a combination of periodic feedback and event-triggered feedback. Optionally, different types of information correspond to different methods of feeding back subscription information; the network device feeds back subscription information to the remote certification server based on the subscription mode included in the subscription configuration. The specific subscription mode used to feed back subscription information can be determined based on the subscription requirements in the subscription configuration. For example, if the subscription mode required by the subscription configuration is periodic feedback, the network device will feed back the acquired subscription information to the remote certification server after the period is reached.

[0106] If the subscription configuration also includes filter configuration, after collecting the information of the data streams and events subscribed in the subscription configuration, the network device filters the collected information based on the filter configuration, and then obtains subscription information that meets the subscription requirements.

[0107] In step 504, the remote certification server receives subscription information fed back by the network device based on the subscription configuration.

[0108] After receiving the subscription information fed back by the network device, the remote attestation server completes data collection and can perform remote attestation based on the subscription information. For example, verification can be performed according to a certain strategy to ultimately prove whether the network device is trustworthy. It can be seen that remote attestation can dynamically monitor the security attributes of network devices and prevent network devices from being tampered with, replaced, or copied.

[0109] In the embodiment of the present application, the remote attestation server sends the subscription configuration to the network device, and the network device can automatically feedback the subscription information accordingly, making the data collection method in the remote attestation more flexible and timely, thereby reducing security risks. In addition, since the subscription configuration does not need to be sent multiple times by the remote attestation server, additional message interactions are reduced, thereby improving data collection efficiency.

[0110] Furthermore, the method provided in the embodiment of the present application also includes: the remote attestation server sends data processing parameters to the network device, and the network device receives the data processing parameters sent by the remote attestation server. On this basis, the subscription information fed back by the network device to the remote attestation server is the information obtained after processing based on the data processing parameters. In this way, the remote attestation server sends the data processing parameters such as nonce, hash signature algorithm, and specified TPM name to the network device in advance for subsequent use.

[0111] For example, if you want to obtain the PCR value of tpm, the data processing parameters include Nonce, PCR-list array, signature algorithm identifier of the complete message and available public key number (public-key-identifier). The content of each parameter is:

[0112] Nonce: It can be different each time, and can be either a timestamp or a count increase. The remote attestation server and the network device can confirm the timeliness and non-repetitiveness of the received message based on Nonce. In addition to using Nonce to confirm the timeliness and non-repetitiveness of the message, in some embodiments of the present application, the remote attestation server can also send a seed and a continuously calculated hash algorithm identifier, which is synchronously calculated by the network device and the remote attestation server to jointly confirm the timeliness and non-repetitiveness of the received remote attestation message; alternatively, a time-based uni-directional attestation (RATS TUDA) mechanism can also be used to achieve a similar function to Nonce. The RATS TUDA mechanism is essentially a one-way remote attestation protocol, that is, the attester (network device) sends its integrity evidence to the verifier (remote attestation server) unidirectionally, and the verifier completes the verification function. It mainly introduces a trusted third party: a trusted time stamp authority (TSA). The verifier uses the timestamp information of the attestor carried in the received remote attestation message and the timestamp token (TST) provided by the TSA to jointly confirm the timeliness and non-repetitiveness of the received remote attestation message.

[0113] PCR-list array: includes multiple PCR information, including PCR register number and the specific signature algorithm used. For example: digital signature algorithm (DSA), elliptic curve digital signature algorithm (ECDSA) or Edwards-curve digital signature algorithm (EDDSA), etc.

[0114] Signature algorithm of the complete message: including DSA, ECDSA or EDDSA, etc. In the embodiment of the present application, this parameter is a set of optional signature algorithms, and the attester can select them randomly and indicate which signature algorithm is selected in the returned message;

[0115] Available public key identifiers (public-key-identifier): Specifies which public key / private key pair should be used for signing and verification; in the embodiment of the present application, this parameter is a set of optional public key identifiers. The attester can select randomly and indicate which public key was selected in the returned message;

[0116] Target TPM name / number: A set of TPM names. The attester can make decisions based on some policies, such as 1) which TPM to collect, 2) which TPM's PCR value to send if it changes, 3) send each TPM's PCR value in a certain order, etc.

[0117] For another example, if the Verifier wants to obtain the PCR value of the stored management log (SML) on the attester (network device), the data processing parameters sent include the node name, the log record selection method in the SML, the log type, and the PCR-list value. The contents of each parameter are as follows:

[0118] Node name: In the embodiment of the present application, this parameter is a set of node names. After the Verifier sends the node name to the attester, the attester can make decisions based on some strategies, such as: 1) the attester selects which node to collect, 2) which node's SML log file has changed, and sends it; 3) sending the entire / updated value of each node's SML in a certain order, etc.;

[0119] The log record selection method in SML: the next one after the last one / the specified number / the specified time. After the Verifier sends the log record selection method in SML to the attester, the attester can make a random selection on its own and indicate which selection method is selected in the returned message;

[0120] Log type: bios or integrity measurement architecture (IMA).

[0121] PCR-list array: It consists of multiple PCR information, including the PCR register number and the specific signature algorithm used, such as DSA, ECDSA or EDDSA.

[0122] It should be understood that the above two examples of data processing parameters are only exemplary embodiments of the method provided in the embodiments of the present application. Depending on the application scenario, data processing parameters of other types or other contents may also be issued, and the embodiments of the present application do not limit this. Regardless of the data processing parameters, after the network device obtains the relevant information for remote attestation, it can process the obtained information based on the data processing parameters, and then feed the processed information back to the remote attestation server. For example, the obtained information is encrypted based on the encryption algorithm in the data processing parameters.

[0123] In summary, the embodiments of the present application use the pub / sub and push mechanisms of netconf, which not only has a wide range of usage scenarios in existing fixed networks, but also inherits its advantages such as flexibility, efficiency, active notification, and timeliness. Moreover, by actively feeding back subscription information through network devices, a remote proof mechanism triggered by device-side events is implemented. In addition, through the randomness and synchronization of nonce, the information can be used in the interaction mechanism provided in the embodiments of the present application.

[0124] To facilitate understanding, the following two examples are used to illustrate.

[0125] (I) Configuring subscription remote attestation events

[0126] 1. Taking the subscription configuration including data stream subscription configuration, event subscription configuration, filter subscription configuration and subscription mode, the remote proof server also sends data processing parameters as an example, the contents are as follows:

[0127] The subscription configuration of the data stream includes:

[0128] Data flow: pcr-trust-evidence (PCR trust evidence);

[0129] bios-log-trust-evidence (BIOS log trust evidence);

[0130] ima-log-trust-evidence (IMA log trust evidence).

[0131] The event subscription configuration includes:

[0132] Event name: 1001;

[0133] Event Type: Device startup completed.

[0134] The data processing parameters of the data stream include:

[0135] Remote attestation type: tpm2-attestation-challenge;

[0136] PCR library: aaa;

[0137] pcr-indices: 6;

[0138] Hash algorithm id: 14; nonce-value: 0x564ac291;

[0139] signature-identifer-type uses TPM_ALG-ID:2;

[0140] Key-id uses public-key: 0x784a22bf.

[0141] The subscription settings for filters include:

[0142] Yang model of a manufacturer's equipment: xxx-vendor-device;

[0143] The device ID of a certain device is: 030DLA106C0522221111.

[0144] Subscription models include:

[0145] Periodic feedback: periodic;

[0146] Subscription period: 500;

[0147] The push security data stream is: 1001 (the same as the device startup event id in the event subscription configuration). Based on the above subscription configuration, the configuration information is as follows:

[0148]

[0149]

[0150] Define the yang data model, describe the subscription data stream type, subscription event type, and implement configuration subscription. The tree structure of the relevant configuration subscription data model is as follows Figure 6 As shown, the tree structure is written in accordance with IETF RFC8340.

[0151] For the underlying transport protocol NETCONF, the remote attestation server is the NETCONF client, and the network device is the NETCONF server. Figure 7As shown in the figure, the NETCONF client (remote attestation server) and the NETCONF server (network device) first establish a netconf session, and send the subscription configuration of the remote attestation of interest to the NETCONF server through the above-mentioned yang data model. The NETCONF server periodically pushes relevant data, i.e. subscription information, to the NETCONF client by sending notifications periodically. Configuration subscription does not depend on the netconf session. After the session is down, the configuration subscription still exists, and the NETCONF server still sends notifications to the NETCONF client periodically.

[0152] 2. Taking the subscription configuration including data stream subscription configuration, event subscription configuration, filter subscription configuration and subscription mode, the remote proof server also sends data processing parameters as an example, the contents are as follows:

[0153] The subscription configuration content of the data stream includes: data stream: pcr-trust-evidence (PCR trust evidence), bios-log-trust-evidence (BIOS log trust evidence) and ima-log-trust-evidence (IMA log trust evidence).

[0154] The event subscription configuration includes:

[0155] Event name: 1002;

[0156] Event type: Device master / slave switch.

[0157] The data processing parameters of the data stream include:

[0158] Remote proof type: log-retrieval;

[0159] log-selector configuration: node-name: aaa;

[0160] node-physical-index: 77;

[0161] Select index-type as last-entry-value: 010101;

[0162] log-type: bios; pcr library: aaa; pcr-indices: 7;

[0163] Hash algorithm id: 14; log-entry-quantity: 69.

[0164] The subscription settings for filters include:

[0165] Yang model of a manufacturer's equipment: xxx-vendor-device;

[0166] The device ID of a certain device: xxxx.

[0167] Subscription models include:

[0168] on-change report: on-change;

[0169] The push security data flow is: 1002 (the same as the device master-slave switching event id).

[0170] Based on the above subscription configuration, the configuration information is as follows:

[0171]

[0172]

[0173]

[0174] like Figure 8 As shown in the figure, the NETCONF client establishes a netconf session with the NETCONF server, and sends the subscription configuration of the remote attestation to the NETCONF server through the above yang data model. When the key data of the subscription changes, the NETCONF server sends a notification to push the relevant data, that is, the subscription information, to the NETCONF client. The configuration subscription does not need to rely on the netconf session. After the session is down, the configuration subscription still exists, and the NETCONF server still sends notifications to the client regularly.

[0175] When a subscription event is triggered, the NETCONF server sends a notification in the following format to the NETCONF client. The tree structure of the dynamic subscription data model is as follows: Fig. 9 As shown, the tree structure is written according to IETF RFC8340.

[0176] (II) Dynamic subscription remote attestation events

[0177] 1. Take the subscription configuration including data stream subscription configuration, filter subscription configuration and subscription mode as an example, the contents are as follows:

[0178] The subscription configuration of the data stream includes:

[0179] The remote attestation type is: tpm2-attestation-challenge;

[0180] pcr library: aaa; pcr-indices: 7;

[0181] Hash algorithm id: 5;

[0182] nonce-value: 0xa45668b1;

[0183] signature-identifer-type uses TPM_ALG-ID:2;

[0184] Key-id uses price public-key: 0xad3567c3.

[0185] The filter subscription configuration includes:

[0186] Yang model of a manufacturer's equipment: xxx-vendor-device;

[0187] The device ID of a certain device: xxxx.

[0188] Subscription models include:

[0189] Periodic reporting: periodic;

[0190] Subscription period: 500;

[0191] The push security data stream is: 1001 (the same as the device startup event id).

[0192] Based on the above subscription configuration, the configuration information is as follows:

[0193]

[0194]

[0195] Define the yang data model, describe the subscription data stream type, subscription event type, and implement dynamic subscription. The tree structure of the relevant dynamic subscription data model is as follows Fig.10 As shown, the tree structure is written in accordance with IETF RFC8340.

[0196] Dynamic subscription is when the NETCONF client sends a subscription RPC to the NETCONF server when the NETCONF session is opened. The NETCONF server pushes the subscription information to the NETCONF client periodically or on-change during the period of the NETCONF session. For example, Fig.11 As shown in the figure. The NETCONF client establishes a NETCONF session with the NETCONF server, and sends the subscription configuration of the remote attestation it is interested in to the NETCONF server through the above RPC. The NETCONF server periodically pushes relevant data, i.e. subscription information, to the NETCONF client by sending notifications regularly. Dynamic subscription depends on the NETCONF session, and the subscription disappears when the session is down.

[0197] 2. Take the subscription configuration including data stream subscription configuration, event subscription configuration, filter subscription configuration and subscription mode as an example, the contents are as follows:

[0198] The subscription configuration of the data stream includes:

[0199] Remote proof type: log-retrieval;

[0200] log-selector configuration: node-name: linecard-2;

[0201] node-physical-index: 77;

[0202] Select index-type as last-entry-value: 28;

[0203] log-type: bios; pcr library: aaa; pcr-indices: 7;

[0204] Hash algorithm id: 5;

[0205] log-entry-quantity:69.

[0206] The event subscription configuration includes:

[0207] Event name: 1008;

[0208] Event Type: Device Update.

[0209] The filter subscription configuration includes:

[0210] Yang model of a manufacturer's equipment: xxx-vendor-device;

[0211] The device ID of a certain device: xxxx.

[0212] Subscription models include:

[0213] on-change report: on-change;

[0214] The push security data stream is: 1008 (same as the device update event id). Based on the above subscription configuration, the configuration information is as follows:

[0215]

[0216]

[0217] like Fig.12 As shown in the figure, the NETCONF client and the NETCONF server first establish a NETCONF session, and send the subscription configuration of the remote attestation to the NETCONF server through the above RPC. When the key data of the subscription changes, the NETCONF server sends a notification to push the relevant data, that is, the subscription information, to the NETCONF client. Dynamic subscription depends on the NETCONF session, and the subscription disappears when the session is down.

[0218] When a subscription event is triggered, the NETCONF server sends a notification in the following format to the NETCONF client. The tree structure of the dynamic subscription data model is as follows: Fig.13 As shown, the tree structure is written in accordance with the international standard RFC8340.

[0219] In summary, the method provided in the embodiment of the present application uses the latest netconf / representational state transfer configuration protocol (RESCONF) pub (publish) / sub (subscribe) and push (push) mechanism, which is widely used in existing fixed networks. It should be understood that this mechanism can be easily converted into other protocols and message encoding formats, such as: RESCONF+JS object notation (javascript object notation, JSON) / extensible markup language (extensible markup language, XML), constrained application protocol (constrained application protocol, CoAP) + concise binary object representation (concise binary object representation, CBOR), so that it can be easily ported to scenarios such as web (Internet), IoT, and mobile devices. The data collection method of other protocols is the same as the principle of NETCONF, which will not be repeated here.

[0220] Based on the same technical concept, the embodiment of the present application also provides a data collection device, which is applied in the process of remote certification, see Fig.14 , the device comprises:

[0221] A sending module 141, used to send a subscription configuration to a network device, where the subscription configuration is used to subscribe to relevant information of the network device for remote certification;

[0222] The receiving module 142 is used to receive subscription information fed back by the network device based on the subscription configuration.

[0223] Optionally, the sending module 141 is further configured to send data processing parameters to the network device, and the subscription information includes information obtained after processing based on the data processing parameters.

[0224] Optionally, the sending module 141 is configured to establish a network configuration protocol session with the network device, and send a subscription configuration to the network device based on the network configuration protocol session.

[0225] Based on the same technical concept, the embodiment of the present application also provides a data collection device, which is used in the process of remote certification, see Fig.15 , the device comprises:

[0226] A receiving module 151 is used to receive a subscription configuration sent by a remote certification server, where the subscription configuration is used to subscribe to relevant information of a network device for remote certification;

[0227] The sending module 152 is used to feed back subscription information to the remote certification server based on the subscription configuration.

[0228] Optionally, if the subscription configuration includes a subscription configuration of a data stream, the sending module 152 is configured to feed back one or more of the following information to the remote server based on the subscription configuration of the data stream:

[0229] The integrity information of the software at each layer of the trust chain recorded when the network device is started.

[0230] The dynamic integrity information of the operating system recorded when the network device is running.

[0231] Dynamic integrity information of software recorded when network devices are running.

[0232] Network device-related identity certificates, and

[0233] Remote attestation certificates associated with network devices.

[0234] Optionally, if the subscription configuration includes an event subscription configuration, the sending module 152 is used to feedback to the remote server relevant information after one or more events of device startup, device upgrade, specific mode attack event, master-slave switching, single board plug-in / switching, and certificate life cycle event are triggered based on the event subscription configuration.

[0235] Optionally, the subscription configuration further includes a subscription mode, where the subscription mode is used to indicate a method of feeding back subscription information, and the subscription mode includes one or a combination of periodic feedback and event-triggered feedback;

[0236] The sending module 152 is used to feed back subscription information to the remote certification server based on the subscription mode included in the subscription configuration.

[0237] Optionally, the receiving module 151 is further used to receive data processing parameters sent by the remote certification server, and the subscription information fed back by the sending module includes information obtained after processing based on the data processing parameters.

[0238] Optionally, the receiving module 151 is configured to establish a network configuration protocol session with a remote certification server, and receive a subscription configuration sent by the remote certification server based on the network configuration protocol session.

[0239] It should be understood that the above-mentioned device only uses the division of the above-mentioned functional modules as an example to illustrate when implementing its functions. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiments belong to the same concept, and their specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0240] Based on the same concept, the present application also provides a device for collecting data, see Fig.16 The device includes a storage 161 and a processor 162; the memory 161 stores at least one instruction, and the at least one instruction is loaded and executed by the processor 162 to implement any of the above-mentioned data collection methods provided in the embodiments of the present application.

[0241] The present application also provides a communication device. Fig.17 The device includes: a transceiver 171, a memory 172 and a processor 173. The transceiver 171, the memory 172 and the processor 173 communicate with each other through an internal connection path, the memory 172 is used to store instructions, and the processor 173 is used to execute the instructions stored in the memory to control the transceiver 171 to receive signals and control the transceiver 171 to send signals, and when the processor 173 executes the instructions stored in the memory 172, the processor 173 executes any of the above-mentioned methods for collecting data.

[0242] The present application also provides a communication system, which includes the above Fig.14 The device shown, and the above Fig.15 The device shown.

[0243] The device for collecting data in the present application may be a personal computer (PC) or a server or a network device. For example, the device for collecting data may be a router, a switch, a server, etc.

[0244] Based on the same concept, an embodiment of the present application also provides a computer-readable storage medium, in which at least one instruction is stored. The instruction is loaded and executed by a processor to implement any of the above-mentioned data collection methods provided in the embodiment of the present application.

[0245] An embodiment of the present application also provides a chip, including a processor, the processor being used to call and execute instructions stored in the memory from the memory, so that a communication device equipped with the chip executes any of the above-mentioned methods for collecting data.

[0246] An embodiment of the present application also provides a chip, including: an input interface, an output interface, a processor and a memory, wherein the input interface, the output interface, the processor and the memory are connected via an internal connection path, and the processor is used to execute the code in the memory. When the code is executed, the processor is used to execute any of the above-mentioned methods for collecting data.

[0247] It should be understood that the above processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. It is worth noting that the processor may be a processor supporting the advanced RISC machines (ARM) architecture.

[0248] Further, in an optional embodiment, the above-mentioned processor is one or more, and the memory is one or more. Optionally, the memory can be integrated with the processor, or the memory and the processor are separately arranged. The above-mentioned memory can include a read-only memory and a random access memory, and provide instructions and data to the processor. The memory can also include a non-volatile random access memory. For example, the memory can also store information about the device type.

[0249] The memory may be a volatile memory or a nonvolatile memory, or may include both volatile and nonvolatile memory. Among them, the nonvolatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available. For example, static RAM (SRAM), dynamic random access memory (DRAM), synchronous DRAM (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link DRAM (SLDRAM) and direct memory bus random access memory (DR RAM).

[0250] The present application provides a computer program. When the computer program is executed by a computer, a processor or a computer can be enabled to execute the corresponding steps and / or processes in the above method embodiments.

[0251] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in this application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integration. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk Solid State Disk), etc.

[0252] The above description is only an embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A data collection method, characterized in that: The method is applied in a remote certification process, and the method comprises: The remote attestation server sends a subscription configuration to the network device, the subscription configuration is used to subscribe to the relevant information of the network device for remote attestation, the subscription configuration includes event subscription configuration, the subscription information includes device startup, device upgrade, master-slave switching, single board plug / switch, certificate life cycle events or one or more event triggering related information, the subscription information is used to prove whether the network device is trustworthy; The remote certification server receives the subscription information fed back by the network device based on the subscription configuration.

2. The method according to claim 1, characterized in that The subscription configuration also includes a subscription configuration for a data stream.

3. The method according to claim 2, characterized in that If the subscription configuration includes a subscription configuration for a data stream, the subscription information includes one or more of the following information: The integrity information of the software at each layer of the trust chain recorded when the network device is started, The dynamic integrity information of the operating system recorded when the network device is running, The dynamic integrity information of the software recorded when the network device is running, The identity certificate associated with the network device, and A remote attestation certificate associated with the network device.

4. The method according to any one of claims 1 to 3, characterized in that: The subscription configuration also includes a subscription mode, where the subscription mode is used to indicate a method of feeding back the subscription information, and the subscription mode includes one or a combination of periodic feedback and event-triggered feedback.

5. The method according to claim 4, characterized in that Different types of information correspond to different subscription models.

6. The method according to any one of claims 1 to 3 or 5, characterized in that: The subscription configuration also includes filter configuration, and the subscription information includes information obtained after filtering based on the filter configuration.

7. The method according to claim 4, characterized in that The subscription configuration also includes filter configuration, and the subscription information includes information obtained after filtering based on the filter configuration.

8. The method according to any one of claims 1-3, 5 or 7, characterized in that: The method further includes: sending data processing parameters to the network device, and the subscription information includes information obtained after processing based on the data processing parameters.

9. The method according to claim 4, characterized in that The method further includes: sending data processing parameters to the network device, and the subscription information includes information obtained after processing based on the data processing parameters.

10. The method according to claim 6, characterized in that The method further includes: sending data processing parameters to the network device, and the subscription information includes information obtained after processing based on the data processing parameters.

11. The method according to any one of claims 1-3, 5, 7, 9 or 10, characterized in that: The sending of the subscription configuration to the network device includes: A network configuration protocol session is established with the network device, and a subscription configuration is issued to the network device based on the network configuration protocol session.

12. The method according to claim 4, characterized in that The sending of the subscription configuration to the network device includes: A network configuration protocol session is established with the network device, and a subscription configuration is issued to the network device based on the network configuration protocol session.

13. The method according to claim 6, characterized in that The sending of the subscription configuration to the network device includes: A network configuration protocol session is established with the network device, and a subscription configuration is issued to the network device based on the network configuration protocol session.

14. The method according to claim 8, characterized in that The sending of the subscription configuration to the network device includes: A network configuration protocol session is established with the network device, and a subscription configuration is issued to the network device based on the network configuration protocol session.

15. A data collection method, characterized in that: The method is applied in a remote certification process, and the method comprises: The network device receives a subscription configuration sent by a remote certification server, wherein the subscription configuration is used to subscribe to relevant information of the network device for remote certification, wherein the subscription configuration includes event subscription configuration, and the subscription information includes relevant information triggered by one or more events of device startup, device upgrade, master / standby switching, board plugging / switching, and certificate life cycle events, and the subscription information is used to prove whether the network device is trustworthy; The network device feeds back the subscription information to the remote attestation server based on the subscription configuration.

16. The method according to claim 15, characterized in that The subscription configuration also includes a subscription configuration for a data stream.

17. The method according to claim 16, characterized in that If the subscription configuration includes a subscription configuration of a data stream, the feeding back the subscription information to the remote attestation server based on the subscription configuration includes: Feedback one or more of the following information to the remote attestation server based on the subscription configuration of the data stream: The integrity information of the software at each layer of the trust chain recorded when the network device is started, The dynamic integrity information of the operating system recorded when the network device is running, The dynamic integrity information of the software recorded when the network device is running, The identity certificate associated with the network device, and A remote attestation certificate associated with the network device.

18. The method according to any one of claims 15 to 17, characterized in that: The subscription configuration further includes a subscription mode, where the subscription mode is used to indicate a method of feeding back the subscription information, and the subscription mode includes one or a combination of periodic feedback and event-triggered feedback; The feeding back the subscription information to the remote attestation server based on the subscription configuration includes: Based on the subscription mode included in the subscription configuration, the subscription information is fed back to the remote attestation server.

19. The method according to claim 18, characterized in that Different types of information correspond to different subscription models.

20. The method according to any one of claims 15 to 17 or 19, characterized in that: The subscription configuration also includes filter configuration, and the subscription information includes information obtained after filtering based on the filter configuration.

21. The method according to claim 18, characterized in that The subscription configuration also includes filter configuration, and the subscription information includes information obtained after filtering based on the filter configuration.

22. The method according to any one of claims 15 to 17, 19 or 21, characterized in that: The method further includes: receiving data processing parameters sent by the remote certification server, and the subscription information includes information obtained after processing based on the data processing parameters.

23. The method according to claim 18, characterized in that The method further includes: receiving data processing parameters sent by the remote certification server, and the subscription information includes information obtained after processing based on the data processing parameters.

24. The method according to claim 20, characterized in that The method further includes: receiving data processing parameters sent by the remote certification server, and the subscription information includes information obtained after processing based on the data processing parameters.

25. The method according to any one of claims 15-17, 19, 21, 23 or 24, characterized in that: The receiving of the subscription configuration sent by the remote certification server includes: A network configuration protocol session is established with the remote attestation server, and a subscription configuration sent by the remote attestation server is received based on the network configuration protocol session.

26. The method according to claim 18, characterized in that The receiving of the subscription configuration sent by the remote certification server includes: A network configuration protocol session is established with the remote attestation server, and a subscription configuration sent by the remote attestation server is received based on the network configuration protocol session.

27. The method according to claim 20, characterized in that The receiving of the subscription configuration sent by the remote certification server includes: A network configuration protocol session is established with the remote attestation server, and a subscription configuration sent by the remote attestation server is received based on the network configuration protocol session.

28. The method according to claim 22, characterized in that The receiving of the subscription configuration sent by the remote certification server includes: A network configuration protocol session is established with the remote attestation server, and a subscription configuration sent by the remote attestation server is received based on the network configuration protocol session.

29. A data acquisition device, characterized in that: The device is applied in a remote certification process, and the device comprises: A sending module, configured to send a subscription configuration to a network device, wherein the subscription configuration is used to subscribe to relevant information of the network device for remote certification, wherein the subscription configuration includes an event subscription mode, and the subscription information includes relevant information triggered by one or more events of device startup, device upgrade, master / standby switching, board plugging / switching, and certificate life cycle events, and the subscription information is used to prove whether the network device is trustworthy; The receiving module is used to receive the subscription information fed back by the network device based on the subscription configuration.

30. The device according to claim 29, characterized in that The subscription configuration also includes a subscription configuration for a data stream.

31. The device according to claim 30, characterized in that If the subscription configuration includes a subscription configuration for a data stream, the subscription information includes one or more of the following information: The integrity information of the software at each layer of the trust chain recorded when the network device is started, The dynamic integrity information of the operating system recorded when the network device is running, The dynamic integrity information of the software recorded when the network device is running, The identity certificate associated with the network device, and A remote attestation certificate associated with the network device.

32. The device according to any one of claims 29 to 31, characterized in that: The subscription configuration also includes a subscription mode, where the subscription mode is used to indicate a method of feeding back the subscription information, and the subscription mode includes one or a combination of periodic feedback and event-triggered feedback.

33. The device according to claim 32, characterized in that Different types of information correspond to different subscription models.

34. The device according to any one of claims 29 to 31 or 33, characterized in that: The subscription configuration also includes filter configuration, and the subscription information includes information obtained after filtering based on the filter configuration.

35. The device according to claim 32, characterized in that The subscription configuration also includes filter configuration, and the subscription information includes information obtained after filtering based on the filter configuration.

36. The device according to any one of claims 29 to 31, 33 or 35, characterized in that The sending module is further used to send data processing parameters to the network device, and the subscription information includes information obtained after processing based on the data processing parameters.

37. The device according to claim 32, characterized in that The sending module is further used to send data processing parameters to the network device, and the subscription information includes information obtained after processing based on the data processing parameters.

38. The device according to claim 34, characterized in that The sending module is further used to send data processing parameters to the network device, and the subscription information includes information obtained after processing based on the data processing parameters.

39. The device according to any one of claims 29-31, 33, 35, 37 or 38, characterized in that The sending module is used to establish a network configuration protocol session with the network device, and send a subscription configuration to the network device based on the network configuration protocol session.

40. The device according to claim 32, characterized in that The sending module is used to establish a network configuration protocol session with the network device, and send a subscription configuration to the network device based on the network configuration protocol session.

41. The device according to claim 34, characterized in that The sending module is used to establish a network configuration protocol session with the network device, and send a subscription configuration to the network device based on the network configuration protocol session.

42. The device according to claim 36, characterized in that The sending module is used to establish a network configuration protocol session with the network device, and send a subscription configuration to the network device based on the network configuration protocol session.

43. A data acquisition device, characterized in that: The device is applied in a remote certification process, and the device comprises: A receiving module, configured to receive a subscription configuration issued by a remote certification server, wherein the subscription configuration is used to subscribe to relevant information of a network device for remote certification, wherein the subscription configuration includes a subscription configuration of an event, and the subscription information includes relevant information triggered by one or more events of device startup, device upgrade, active / standby switching, board plugging / switching, and certificate life cycle events, and the subscription information is used to prove whether the network device is trustworthy; A sending module is used to feed back the subscription information to the remote certification server based on the subscription configuration.

44. The device according to claim 43, characterized in that The subscription configuration also includes a subscription configuration for a data stream.

45. The device according to claim 44, characterized in that If the subscription configuration includes a subscription configuration for a data stream, the sending module is configured to feed back one or more of the following information to the remote attestation server based on the subscription configuration for the data stream: The integrity information of the software at each layer of the trust chain recorded when the network device is started, The dynamic integrity information of the operating system recorded when the network device is running, The dynamic integrity information of the software recorded when the network device is running, The identity certificate associated with the network device, and A remote attestation certificate associated with the network device.

46. ​​The device according to any one of claims 43 to 45, characterized in that The subscription configuration further includes a subscription mode, where the subscription mode is used to indicate a method of feeding back the subscription information, and the subscription mode includes one or a combination of periodic feedback and event-triggered feedback; The sending module is used to feed back the subscription information to the remote certification server based on the subscription mode included in the subscription configuration.

47. The device according to claim 46, characterized in that Different types of information correspond to different subscription models.

48. The device according to any one of claims 43 to 45 or 47, characterized in that The subscription configuration also includes filter configuration, and the subscription information includes information obtained after filtering based on the filter configuration.

49. The device according to claim 46, characterized in that The subscription configuration also includes filter configuration, and the subscription information includes information obtained after filtering based on the filter configuration.

50. The device according to any one of claims 43 to 45, 47 or 49, characterized in that The receiving module is further used to receive the data processing parameters sent by the remote certification server, and the subscription information fed back by the sending module includes information obtained after processing based on the data processing parameters.

51. The device according to claim 46, characterized in that The receiving module is further used to receive the data processing parameters sent by the remote certification server, and the subscription information fed back by the sending module includes information obtained after processing based on the data processing parameters.

52. The device according to claim 48, characterized in that The receiving module is further used to receive the data processing parameters sent by the remote certification server, and the subscription information fed back by the sending module includes information obtained after processing based on the data processing parameters.

53. The device according to any one of claims 43-45, 47, 49, 51 or 52, characterized in that The receiving module is used to establish a network configuration protocol session with the remote certification server, and receive the subscription configuration sent by the remote certification server based on the network configuration protocol session.

54. The device according to claim 46, characterized in that The receiving module is used to establish a network configuration protocol session with the remote certification server, and receive the subscription configuration sent by the remote certification server based on the network configuration protocol session.

55. The device according to claim 48, characterized in that The receiving module is used to establish a network configuration protocol session with the remote certification server, and receive the subscription configuration sent by the remote certification server based on the network configuration protocol session.

56. The device according to claim 50, characterized in that The receiving module is used to establish a network configuration protocol session with the remote certification server, and receive the subscription configuration sent by the remote certification server based on the network configuration protocol session.

57. A data acquisition device, characterized in that: The device includes a memory and a processor; the memory stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the data collection method described in any one of claims 1-14, or to implement the data collection method described in any one of claims 15-28.

58. A computer-readable storage medium, characterized in that: The storage medium stores at least one instruction, which is loaded and executed by the processor to implement the data collection method described in any one of claims 1-14, or to implement the data collection method described in any one of claims 15-28.

59. A computer program product, characterized in that The computer program product comprises: a computer program code, and when the computer program code is executed by a computer, the computer is enabled to execute the data collection method described in any one of claims 1 to 14, or execute the data collection method described in any one of claims 15 to 28.