Verification of encryption of data traffic
By introducing data protection circuits into computer systems, monitoring and analyzing data traffic, identifying encryption modes and generating notifications, the verification problem of unencrypted data is solved and the security of data transmission is ensured.
Patent Information
- Application Number
- CN202380022761.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2022-05-09
- Filing Date
- 2023-05-03
- Publication Date
- 2024-11-01
AI Technical Summary
The prior art is difficult to effectively verify and ensure whether confidential or sensitive data transmitted in computer systems are encrypted as expected, especially in cases where data is not encrypted due to hardware or software vulnerabilities, resulting in the risk of sensitive data exposure.
By introducing data protection circuits into computer systems, monitoring and analyzing data traffic, collecting statistics to identify encrypted modes, comparing data samples with expected encrypted data patterns, generating notifications to protect unencrypted data, or shutting down the system to prevent data exposure.
Effectively verify whether the data is encrypted as expected, generate alarms in a timely manner or take measures to prevent sensitive data from being exposed, and ensure the security of data transmission.
Smart Images

Figure CN118891624A_ABST
Abstract
Description
[0001] Incorporation by Reference
[0002] A request form is filed concurrently with this specification and is made a part of this application. Each application identified in a concurrently filed request form to which this application claims the benefit of or priority is incorporated herein by reference in its entirety for all purposes. Background Art
[0003] Some computer systems process confidential or sensitive data that is transferred between internal components of a chip or between different chips. Typically, data transferred through an external interface is encrypted for security purposes to protect the data from attacks. A device that receives the encrypted data can decrypt the encrypted data to restore the original data. BRIEF DESCRIPTION OF THE DRAWINGS
[0004] Various embodiments according to the present disclosure will now be described with reference to the accompanying drawings, in which:
[0005] Figure 1 A computing system according to some embodiments is shown that includes a data protection circuit configured to verify encryption of data traffic on a bus between a first integrated circuit (IC) and a second IC.
[0006] Figure 2 A computing system is shown according to some embodiments, the computing system comprising a plurality of data protection circuits configured to verify encryption of data traffic over different buses;
[0007] Figure 3 presents example components of a data protection circuit in some embodiments;
[0008] Figure 4 A flow chart showing a method performed by an IC for verifying encryption of data traffic on a bus between two ICs according to some embodiments; and
[0009] Figure 5 An example of a computing device in accordance with certain aspects of the present disclosure is shown. DETAILED DESCRIPTION
[0010] The computer system may include one or more processors, memory devices, input / output (I / O) devices, accelerator devices, encryption and decryption engines (crypto engine) and other suitable components that can communicate with each other through one or more interconnections based on functionality. In some cases, the data processed by the computer system may be confidential data or sensitive data, which is encrypted for security purposes. Typically, the data traffic transmitted from the chip through an external interface is encrypted. For example, the external interface may include a memory interface to an external memory (e.g., DRAM), a network interface to a network device (e.g., an Ethernet controller), or a peripheral component express interconnect (PCIe) interface to an I / O device. The recipient of the encrypted data can decrypt the received data to restore the original data.
[0011] In some cases, data passed through an external interface may inadvertently remain unencrypted due to hardware or software vulnerabilities or other errors. For example, due to some error, a bit for enabling encryption and decryption of data may not have been set, and therefore, data passed over the external interface may be unencrypted. However, the non-encryption of data cannot always be detected, especially in situations where the data is not monitored. This situation may expose sensitive data and make it vulnerable to attack. Therefore, it is desirable to verify that data traffic that is expected to be encrypted is actually encrypted.
[0012] The techniques described herein can be used to verify whether the data traffic between different components and / or devices is encrypted as expected. In different embodiments, the expected data traffic has been encrypted using single-stage encryption or dual-stage encryption. Therefore, the data before encryption (e.g., data before encryption) can be data before the first level of encryption (e.g., unencrypted data) or data before the second level of encryption (e.g., encrypted data after the first level of encryption). The data traffic may be on an internal interface between components of a chip, or on an external interface between two chips. In some embodiments, a data protection circuit may monitor the data traffic on a bus between two circuits / devices to analyze the data traffic based on a configuration. Analyzing the data traffic may include determining statistical information about the data from sampling the data traffic, which may be used to determine whether the data traffic is encrypted as expected. The data samples obtained may include payload data of a packet, or certain windows of the data traffic. Statistical information may be determined by collecting statistical data from data samples to identify data patterns that can be used to distinguish encrypted data from unencrypted data. In some embodiments, the sampled data traffic may be compared with the data before encryption to determine whether the data traffic has been encrypted as expected.
[0013] As an example, in most cases, the payload of encrypted data may include approximately equal counts of 1 bits and 0 bits, while the payload of unencrypted data may include a much higher count of 0 bits than 1 bits, or vice versa. In some embodiments, collecting statistics may include counting the number of 0 bits and the number of 1 bits in the sample and comparing with a threshold. If the ratio of 0 bits to 1 bits is greater than the threshold, this may indicate that the data traffic is not encrypted. For example, if the sample includes payload data of 4 packets, and if each of the 4 packets includes a higher count of 0 bits (e.g., greater than 60%), this may indicate that the data traffic is not encrypted. In another example, if more than half of the packets in the sample include a higher count of 0 bits, this may indicate that the data traffic is not encrypted. In some embodiments, collecting statistics may include counting the number of bytes with a predefined byte pattern and comparing the count with a threshold. For example, if the number of 0 bytes (bytes with all 0 bits) is greater than the threshold, this may indicate that the data traffic is not encrypted.
[0014] In some embodiments, analyzing the data traffic may include identifying a predefined pattern in the data traffic that may indicate that the data is not encrypted. For example, in some implementations, the predefined pattern may be passed as part of the data traffic when encrypted data is not passed due to some error or vulnerability or in a test environment. In such cases, the data protection circuitry may identify the predefined pattern and generate a notification so that appropriate action may be taken to protect the unencrypted data, or the system may be shut down.
[0015] In some embodiments, if the pre-encryption data is available, the data protection circuit may compare the pre-encryption data with the data being transmitted on the bus. For example, the data protection circuit may receive the pre-encryption data. If the pre-encryption data is the same as the data being transmitted on the bus, this indicates that the data is not encrypted as expected, and therefore, a notification may be generated accordingly. For example, in the case where the expected data traffic has one level of encryption, the pre-encryption data may be unencrypted data, and if the data traffic on the bus is the same as the unencrypted data, a notification may be generated. As another example, in the case where the expected data traffic has two levels of encryption, the pre-encryption data may be data that has been encrypted using the first level of encryption, and if the data traffic on the bus is the same as the first level of encrypted data, a notification may be generated.
[0016] Thus, in various embodiments, one or more data protection circuits may be used to monitor different buses in a computer system, and may alert software or system administrators when data traffic being passed on any of the buses is not encrypted as expected. In such cases, the system may be shut down or specific functionality may be disabled to protect sensitive data from further exposure.
[0017] In the following description, various embodiments will be described. For explanation purposes, specific configurations and details are set forth in order to provide a thorough understanding of the embodiments. However, it will be apparent to those skilled in the art that the embodiments may be practiced without the specific details. In addition, well-known features may be omitted or simplified in order not to obscure the described embodiments.
[0018] Figure 1 A computing system 100 is shown according to some embodiments, the computing system including a data protection circuit 106 configured to verify encryption of data traffic on a bus 108 between a first integrated circuit (IC) 102 and a second IC 104 .
[0019] In various implementations, the bus 108 may be part of one or more interconnects, fabrics, lines, signal traces, or other suitable communication channels that may be used to exchange data between the first IC 102 and the second IC 104. For example, in some implementations, the computing system 100 may be part of a system on a chip (SoC), and the bus 108 may be an internal bus used by the first IC 102 and the second IC 104 to exchange data. In other implementations, the first IC 102 and the second IC 104 may be part of different IC devices or SoCs, and the bus 108 may be an external bus used by the first IC 102 and the second IC 104 to exchange data. The data protection circuit 106 may be part of the first IC 102, the second IC 104, or a separate device. In some implementations, the data protection circuit 106 may be part of an integrated circuit device that includes both the first IC 102 and the second IC 104.
[0020] In some cases, the data exchanged between the first IC 102 and the second IC 104 may include sensitive data or confidential data, which is desired to be encrypted for security purposes. The first IC 102 may be configured to transmit encrypted data to the second IC 104 via the bus 108. In some implementations, if encryption is enabled (e.g., the encryption enable bit is set), the data may be encrypted by the first IC 102 using any suitable encryption algorithm (e.g., RSA, AES, DES, etc.). In some implementations, the first IC 102 may receive data that has been encrypted by another device (e.g., an encryption engine), and the first IC 102 may not have access to the data before encryption (e.g., unencrypted data). In some implementations, the first IC may receive pre-encrypted data that has been previously encrypted using a first level of encryption, and the first IC may perform a second level of encryption to further encrypt the encrypted data for security purposes. If encryption is enabled, the second IC 104 may be configured to decrypt the data received from the first IC 102 to recover the original data.
[0021] In some cases, due to a hardware or software vulnerability or error (such as a configuration error), data transmitted by the first IC 102 over the bus 108 may not be encrypted. For example, due to the vulnerability or error, encryption may not have been enabled or the encryption enable bit may not have been set, which may result in data exchanged on the bus 108 not being encrypted as intended. For example, in some cases, it may be intended to encrypt data using two levels of encryption; however, due to the vulnerability or error, the second level of encryption may not be performed, and the data transmitted by the first IC may include only the first level of encryption. In this case, the data may be unprotected and, therefore, vulnerable to attack.
[0022] Some embodiments may utilize data protection circuit 106 to determine whether data traffic on bus 108 is encrypted as expected and to protect the data traffic from further exposure. In some embodiments, data protection circuit 106 may monitor data traffic on bus 108 and analyze the data traffic to determine statistical information about the data from sampling the monitored data traffic. For example, the sample of the monitored data traffic may include payload data transmitted on bus 108 as part of the data traffic. Data protection circuit 106 may collect statistical data from the sample to identify data patterns that can be used to distinguish encrypted data and unencrypted data that have been encrypted using first-level encryption. The analysis may be performed based on configuration information received by data protection circuit 106. The configuration information may include data format information, data pattern configuration, and thresholds.
[0023] In various examples, the data traffic on the bus 108 may include payload data and / or control data based on the functionality supported by the first IC 102 and the second IC 104. The control data may include a header or descriptor associated with the data traffic, and is typically not encrypted. In some embodiments, the data format information included in the configuration information may indicate whether the data traffic includes payload data and / or control data, and the size of the payload data. For example, the payload data may correspond to a packet or data block (e.g., a fixed number of bytes) in the data traffic. The data format information may include information for identifying the start and / or end of a packet, the location of the header / control data, and the location of the packet length (if provided in the header / control data). The data format information may also include an indication of whether the data traffic is expected to have single-stage encryption or dual-stage encryption.
[0024] In some embodiments, statistical data patterns may be identified in the payload data based on a data pattern configuration included in the configuration information. The data pattern configuration may indicate the size of the sample, and the type of data pattern to be identified in the sample. For example, the sample may correspond to one or more packets or blocks of the payload data. The type of data pattern may indicate whether the number of 0 bits, the number of 1 bits, the ratio of the number of 0 bits to 1 bits, the ratio of the number of 1 bits to 0 bits, the number of bytes with a predefined byte pattern (e.g., all 0 bits or all 1 bits), or another data pattern (e.g., a specific byte value) is identified in each block of the sample. Therefore, based on the data pattern configuration, the data protection circuit 106 may count the number of bytes with a predefined byte pattern, the number of 0 bits, and / or the number of 1 bits in each block of the sampled data traffic. The data protection circuit 106 may further compare the count value with a threshold value received in the configuration information to determine whether the data traffic is encrypted with a single-stage encryption as expected. For example, if the number of 0 bits in each block is greater than 50%, or if the total number of 0 bits in the sample is greater than 40%, the data protection circuit 106 may conclude that the data traffic is not encrypted.
[0025] In some embodiments, the configuration information may also include a predefined data pattern, which may be compared with the sampled data traffic to determine whether the sampled data traffic is encrypted. If the data protection circuit 106 detects a predefined pattern on the bus 108, this may indicate that the sampled data traffic is not encrypted. In some embodiments, the predefined data pattern may be used for testing purposes. For example, in a specific configuration, the system (e.g., software and / or hardware) may generate a predefined data pattern to be transmitted on the bus 108 to indicate that the data traffic is not encrypted. In some implementations, software executed on the first IC 102 may disable the encryption / decryption bit of a specific configuration (e.g., test mode), which may enable the first IC 102 to transmit the predefined data pattern. In some implementations, the first IC 102 may transmit the predefined data pattern when the encrypted data cannot be transmitted or is unavailable due to an error.
[0026] In some embodiments, the data protection circuit 106 may have access to pre-encryption data associated with the sampled data traffic. In such cases, the data protection circuit 106 may compare the pre-encryption data to the sampled data traffic, and if there is a match based on whether single-stage encryption or dual-stage encryption is expected, this may indicate that the sampled data traffic has not been encrypted as expected. Alternatively, if the pre-encryption data does not match the sampled data traffic, there is a high probability that the sampled data traffic is encrypted as expected. In some embodiments, if the pre-encryption data does not match the sampled data traffic, the data protection circuit 106 may still perform analysis to identify statistical data patterns in the sampled data traffic to ensure that the sampled data traffic is encrypted as expected.
[0027] Figure 2 A computing system 200 is shown according to some embodiments, the computing system including multiple data protection circuits configured to verify encryption of data traffic through different buses. In various examples, the computing system 200 can support functionality of applications such as artificial intelligence (AI), Internet of Things (IoT), web hosting, networking, cloud computing or high performance computing, and other functionality.
[0028] The computing system 200 may include an IC device 202, which is coupled to a memory device 204 via a bus 216, to an I / O device 206 via a bus 218, and to a remote device 208 via a bus 220. The IC device 202 may include a SoC or a multi-chip module (MCM), and may include one or more processors, controllers, internal memory, various interfaces (e.g., network interfaces, I / O interfaces, memory interfaces), and other suitable components to support the intended functionality. In various implementations, the buses 216, 218, and / or 220 may be coupled to one or more interconnects, fabrics, bridges, hubs, or switches. As an example, the memory device 204 may be a persistent memory or non-persistent memory such as a DRAM, an SSD, or a storage-class memory that may be coupled to the IC device 202 via a memory interface. The I / O device 206 may be a PCIe device that may be configured to provide a PCIe connection to the IC device 202 via an I / O interface (e.g., a PCIe interface). The remote device 208 may be a communication device that may be configured to communicate with a network interface of the IC device 202 via a network (eg, Ethernet) connection.
[0029] In some embodiments, a separate data protection circuit may be used to monitor data traffic on each bus coupled to IC device 202 to determine whether data traffic on that bus is encrypted as expected. For example, data protection circuit 210 may be configured to monitor data traffic on bus 216 to verify that data exchanged between IC device 202 and memory device 204 is encrypted as expected. Data protection circuit 212 may be configured to monitor data traffic on bus 218 to verify that data exchanged between IC device 202 and I / O device 206 is encrypted as expected. Data protection circuit 214 may be configured to monitor data traffic on bus 220 to verify that data exchanged between IC device 202 and remote device 208 is encrypted as expected. Each of data protection circuits 210, 212, 214 may be Figure 1 2. Each of the data protection circuits 210, 212, 214 may be configured with relevant configuration information to identify different statistical data patterns in the corresponding data traffic. In some embodiments, the functionality of the data protection circuits 210, 212, and 214 may be integrated into one IC device that may monitor all buses coupled to the IC device 202.
[0030] In some embodiments, one or more of the data protection circuits 210, 212, and 214 may be part of the IC device 202. As an example, the data protection circuit 214 may be part of the IC device 202 and may be configured to monitor data traffic (e.g., network packets) on an internal bus between a controller circuit and a bus interface circuit (such as a physical layer (PHY) device or a media access control (MAC) device) in the IC device 202 before the network packets are transmitted to the remote device 208 via the bus 220. In another example, the data protection circuit 210 may be part of the IC device 202 and may be configured to monitor data traffic (e.g., memory write or read data) on an internal bus between a processor circuit and a memory interface circuit in the IC device 202.
[0031] The IC device 202 may be coupled to different devices via one or more interconnects, such as Advanced Microcontroller Bus Architecture (AMBA), Advanced Extensible Interface (AXI), AXI Coherence Extensions (ACE), Coherent Hub Interface (CHI), Advanced Peripheral Bus (APB), Advanced High-Performance Bus (AHB), Compute Express Link (CXL), or a proprietary bus based on the implementation. The techniques described herein may support verification that data exchanged between different devices via one or more interconnects is encrypted, regardless of the type of protocol supported by the interconnect or the device.
[0032] Figure 3 2 shows example components of a data protection circuit 300 in some embodiments. The data protection circuit 300 may be a reference Figure 1 to Figure 2 An example of a data protection circuit 106 , 210 , 212 , or 214 is depicted. Data protection circuit 300 may include a bus monitor 302 , a configuration interface 304 , a data encryption verifier 306 , a counter 308 , and an output interface 310 .
[0033] The bus monitor 302 may be configured to monitor data traffic on a bus between two ICs. For example, the bus monitor 302 may be configured to monitor data traffic on a bus 108 between a first IC 102 and a second IC 104. In some examples, monitoring data traffic on the bus 108 may include intercepting data being transmitted on the bus 108, which may include payload data and / or control data. The control data may include a header, a descriptor, an address, a read / write indication, an indication about a frame start or frame end, or other information associated with data transfer. In some embodiments, the bus monitor 302 may sample data traffic based on configuration information associated with the data traffic. For example, the sampled data traffic may include one or more packets or one or more blocks of payload data.
[0034] Configuration interface 304 may be configured to receive configuration information associated with data traffic. Configuration information may include data format information 304a, data mode configuration 304b, and threshold value 304c. In some embodiments, data format information 304a may indicate whether data traffic includes payload data and / or control data, the size of payload data, the format of data traffic being transmitted (e.g., information for identifying the location of header / control data), and / or an indication of whether data traffic is expected to have single-stage encryption or dual-stage encryption. For example, payload data may correspond to a packet or data block (e.g., a fixed number of bytes) in data traffic. In some examples, the size of payload data may be the same as the width of a bus (e.g., a memory bus). Data mode configuration 304b may indicate the size of a sample, and the type of data mode to be identified in the sample. Threshold value 304c may be used to compare with a statistical data mode identified in the sampled data traffic to verify the encryption of the data traffic. Configuration interface 304 may be implemented using registers that may be configured by system software.
[0035] The data encryption verifier 306 may be configured to analyze data traffic based on configuration information. The analysis of data traffic may be performed by sampling the data traffic. For example, sampling may be performed by the bus monitor 302 to determine the payload data based on the data format information 304a. The analysis of data traffic may include collecting statistical data from the sample to identify the statistical data pattern in the sampled data traffic. The statistical data pattern may be identified in the sampled data traffic based on the data pattern configuration 304b. For example, the data pattern configuration 304b may indicate counting 0 bits or 1 bits in each block of the sample, calculating the ratio of the number of 0 bits to the number of 1 bits in each block of the sample, calculating the ratio of the number of 1 bits to the number of 0 bits in each block of the sample, counting the number of bytes with a predefined byte pattern (e.g., all 0 bits or all 1 bits), or calculating the total number of 0 bits or 1 bits in the sample. The data encryption verifier 306 may manage one or more counters 308 to track the number of 0 bits, 1 bits, bytes with a predefined byte pattern or another data pattern in the sampled data traffic. For example, a counter may be used to count the number of 0 bits or 1 bits in each byte, and another counter may be used to count the number of bytes having all 0 bits, all 1 bits, or another predefined data pattern.
[0036] The data encryption verifier 306 may be further configured to determine whether the data traffic is encrypted as expected based on the analysis. For example, the data encryption verifier 306 may include comparator logic that is used to compare the count indicated by the one or more counters 308 with the threshold 304c. The data encryption verifier 306 may determine whether the data traffic is encrypted as expected based on the comparison. For example, if the number of 0 bits per block in the sample is greater than the threshold 304c, this may indicate that the data traffic is not encrypted. In another example, if the ratio of the number of 0 bits to the number of 1 bits in the sample is less than the threshold 304c, this may indicate that the data traffic is encrypted. In another example, the data encryption verifier 306 may determine whether the data traffic is encrypted as expected by comparing the pre-encryption data with the sampled data traffic based on whether single-stage encryption or dual-stage encryption is expected.
[0037] The output interface 310 may be configured to generate a notification in response to determining that the data traffic is not encrypted as expected. Generating a notification may include sending an interrupt, message, or alarm that may be used by system software or a system administrator to abort data transfer on the bus, shut down the system, or disable certain functionality so that further exposure of data that is not encrypted as expected can be minimized.
[0038] Figure 4 400 shows a method performed by an IC for verifying encryption of data traffic on a bus between two ICs according to some embodiments. The method may be referred to as Figures 1 to 3 For example, the method may be performed by the data protection circuit 210 to verify that Figure 2 Encryption of data traffic on bus 216 between IC device 202 and memory device 204.
[0039] At step 402, the method may include monitoring data traffic on a bus between a first IC and a second IC. Figure 2 , the bus monitor 302 of the data protection circuit 210 can monitor the data traffic on the bus 216. As an example, the IC device 202 can be a SoC including a processor, and the memory device 204 can be a DRAM. The bus 216 can be part of an interconnect fabric, such as those based on the AMBA AXI / CHI protocol. The processor can perform write transactions to the memory device 204, so the data traffic on the bus 216 can include payload data to be written to the memory device 204.
[0040] In step 404, the method may include receiving configuration information associated with the data traffic. The data protection circuit 210 may receive the configuration information via the configuration interface 304. For example, the configuration information may be programmed by software executed on the SoC, or system software, to configure the data format information 304a, data mode configuration 304b, and threshold 304c registers with appropriate values.
[0041] In step 406, the method may include analyzing data traffic based on configuration information. The data encryption verifier 306 may analyze data traffic based on the data format information 304a and the data pattern configuration 304b. The configuration information may indicate that the data traffic is expected to have a single-level encryption, and therefore the pre-encrypted data may include unencrypted data. The analysis of the data traffic may include identifying statistical data patterns in the sampled data traffic by the data encryption verifier 306. As an example, the data format information 304a may indicate that the data traffic only includes payload data without any control data. In addition, the data pattern configuration 304b may indicate a sample size of 4 blocks (e.g., four write data cycles), and count the 0 bits in each block to determine the statistical data pattern. Therefore, when data is transmitted on the bus 216, the data encryption verifier 306 may increment one or more counters 308 to count the number of 0 bits in each of the 4 blocks in the sample.
[0042] In step 408, the method may include determining whether the data traffic is encrypted as expected based on the analysis. The data encryption verifier 306 may compare the count of the number of zero bits to the threshold 304c to determine whether the data traffic is encrypted as expected with a single level of encryption. In various examples, the individual counts for each block in the sample or the total count for the sample may be compared to the threshold 304c. In one example, if the count of zero bits in each block of the sample is greater than the threshold 304c, the data encryption verifier 306 may conclude that the data traffic is not encrypted. In another example, if the count of zero bits in only one of the four blocks is greater than the threshold 304c, the data encryption verifier 306 may conclude that the data traffic is encrypted.
[0043] In step 410, the method may include generating a notification in response to determining that the data traffic is not encrypted as expected. The output interface 310 may generate a notification in response to the data encryption verifier 306 determining that the data traffic is not encrypted as expected. In some cases, the processor may abort writing to the memory device 204 based on the notification in order to protect the data from any attack. In other cases, the system may be shut down, or specific functionality may be disabled to protect sensitive data.
[0044] Thus, one or more examples of data protection circuits described with reference to the previous figures may be used to protect data transmitted on different buses in a computing system.The bus may be an internal bus within a chip, or an external bus between multiple chips.
[0045] Figure 5 An example of a computing device 500 is shown. The functionality and / or several components of the computing device 500 may be used with other embodiments disclosed elsewhere in the present disclosure without limitation. The computing device 500 may be an example of a first IC 102, a second IC 104, or an IC device 202. The computing device 500 may facilitate the processing of packets and / or the forwarding of packets from the computing device 500 to another device. As mentioned herein, a "packet" or "network packet" may refer to a variable or fixed unit of data. In some cases, a packet may include a packet header and a packet payload. The packet header may include information associated with the packet, such as a source, a destination, a quality of service parameter, a length, a protocol, a routing label, error correction information, etc. In some implementations, a packet header may indicate information associated with a series of packets (such as a burst transaction). In some implementations, the computing device 500 may be a receiver and / or generator of a packet. In some implementations, the computing device 500 may modify the contents of the packet before forwarding the packet to another device. Computing device 500 may be a peripheral device coupled to another computer device, a switch, a router, or any other suitable device enabled for receiving and forwarding packets.
[0046] In one example, the computing device 500 may include processing logic 502, a configuration module 504, a management module 506, a bus interface module 508, a memory 510, and a network interface module 512. These modules may be hardware modules, software modules, or a combination of hardware and software. In some cases, modules may be used interchangeably with components or engines without departing from the scope of the present disclosure. The computing device 500 may include additional modules, which are not described herein. In some implementations, the computing device 500 may include fewer modules. In some implementations, one or more of the modules may be combined into one module. One or more of the modules may communicate with each other via a communication channel 514. The communication channel 514 may include one or more buses, grids, matrices, textures, a combination of these communication channels, or some other suitable communication channel.
[0047] Processing logic 502 may include an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), a system on a chip (SoC), a network processing unit (NPU), a processor configured to execute instructions, or any other circuit configured to perform logical arithmetic and floating point operations. Examples of processors that may be included in processing logic 502 may include a processor that is configured to execute instructions, a processor that is configured to execute instructions, or a processor that is configured to execute instructions. Processors developed by , etc. In some implementations, the processor may include multiple processing cores, each of which may be configured to execute instructions independently of other processing cores. In addition, in some implementations, each processor or processing core may implement multiple processing threads that execute instructions on the same processor or processing core while maintaining logical separation between the multiple processing threads. Such processing threads executed on a processor or processing core may be exposed to software as separate logical processors or processing cores. In some implementations, multiple processors, processing cores, or processing threads executed on the same core may share certain resources, such as, for example, a bus, a level 1 (L1) cache, and / or a level 2 (L2) cache. The instructions executed by the processing logic 502 may be stored on a computer-readable storage medium, for example, in the form of a computer program. The computer-readable storage medium may be non-temporary. In some cases, the computer-readable medium may be part of the memory 510.
[0048] The memory 510 may include volatile or non-volatile memory, or both volatile and non-volatile types of memory. The memory 510 may include, for example, random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory, and / or some other suitable storage medium. In some cases, some or all of the memory 510 may be inside the computing device 500, while in other cases, some or all of the memory may be outside the computing device 500. The memory 510 may store an operating system including executable instructions that, when executed by the processing logic 502, provide an execution environment for executing instructions that provides networking functionality for the computing device 500. The memory may also store and maintain several data structures and routing tables for facilitating the functionality of the computing device 500.
[0049] In some implementations, the configuration module 504 may include one or more configuration registers. The configuration registers may control the operation of the computing device 500. In some implementations, one or more bits in the configuration registers may represent certain capabilities of the computing device 500. The configuration registers may be programmed by instructions executed in the processing logic 502 and / or by an external entity such as a host device, an operating system executed on the host device, and / or a remote device. The configuration module 504 may also include hardware and / or software that controls the operation of the computing device 500.
[0050] In some implementations, the management module 506 can be configured to manage different components of the computing device 500. In some cases, the management module 506 can configure one or more bits in one or more configuration registers at power-up to enable or disable certain capabilities of the computing device 500. In some implementations, the management module 506 can use processing resources from the processing logic 502. In other implementations, the management module 506 can have processing logic similar to the processing logic 502, but be separated or implemented on a different power plane than the processing logic 502.
[0051] The bus interface module 508 can realize communication with external entities (such as host devices and / or other components in the computing system) through external communication media. The bus interface module 508 may include a physical interface for connecting to a cable, a socket, a port, or other connections to an external communication medium. The bus interface module 508 may also include hardware and / or software for managing incoming and outgoing transactions. The bus interface module 508 may implement a local bus protocol, such as a protocol based on a peripheral component interconnect (PCI), a non-volatile fast memory (NVMe), an advanced host controller interface (AHCI), a small computer system interface (SCSI), a serial attached SCSI (SAS), a serial AT attachment (SATA), a parallel ATA (PATA), some other standard bus protocols or a proprietary bus protocol. The bus interface module 508 may include a physical layer for any of these bus protocols, including connectors, power management and error handling and other matters. In some implementations, the computing device 500 may include multiple bus interface modules for communicating with multiple external entities. These multiple bus interface modules may implement the same local bus protocol, different local bus protocols, or a combination of the same and different bus protocols.
[0052] The network interface module 512 may include hardware and / or software for communicating with a network. This network interface module 512 may, for example, include a physical connector or physical port for a wired connection to the network, and / or an antenna for wireless communication to the network. The network interface module 512 may also include hardware and / or software configured to implement a network protocol stack. The network interface module 512 may communicate with the network using a network protocol such as, for example, TCP / IP, Infiniband, RoCE, Institute of Electrical and Electronics Engineers (IEEE) 802.11 wireless protocol, user datagram protocol (UDP), asynchronous transfer mode (ATM), token ring, frame relay, high-level data link control (HDLC), fiber distributed data interface (FDDI) and / or point-to-point protocol (PPP) and other network protocols. In some implementations, the computing device 500 may include multiple network interface modules, each of which is configured to communicate with different networks. For example, in these implementations, the computing device 500 may include a network interface module for communicating with a wired Ethernet network, a wireless 802.11 network, a cellular network, an Infiniband network, etc.
[0053] The various components and modules of the computing device 500 described above may be implemented as discrete components, system on chip (SoC), ASIC, NPU, FPGA, or any combination thereof. In some embodiments, the SoC or other components may be communicatively coupled to another computing system to provide various services, such as traffic monitoring, traffic shaping, computation, etc. In some embodiments of the present technology, the SoC or other components may include multiple subsystems.
[0054] Various implementations of the present disclosure may be described according to the following terms:
[0055] Clause 1. An integrated circuit (IC) device comprising:
[0056] First IC;
[0057] a second IC configured to exchange data with the first IC via a data bus, wherein the data is expected to be encrypted; and
[0058] A data protection circuit coupled to the data bus, the data protection circuit being configured to:
[0059] monitoring the data on the data bus;
[0060] receiving data format information and a data mode configuration associated with the data;
[0061] determining, based on the data format information, payload data being communicated on the data bus;
[0062] identifying statistical data patterns in the payload data based on the data pattern configuration;
[0063] determining that the data is not encrypted based on the statistical data pattern and a configurable threshold; and
[0064] A notification is generated based on the determination that the data is not encrypted.
[0065] Clause 2. An IC device as described in Clause 1, wherein identifying the statistical data pattern in the payload data includes counting the number of 1 bits or 0 bits in the payload data based on the data pattern configuration, and wherein determining that the data is not encrypted is based on comparing the ratio of 1 bits to 0 bits to a threshold.
[0066] Clause 3. The IC device of any of Clauses 1 to 2, wherein the second IC is further configured to cease exchanging data with the first IC based on the notification that the data is not encrypted.
[0067] Clause 4. An IC device as described in any of Clauses 1 to 3, wherein the first IC is a controller circuit, the second IC is a bus interface circuit, and the data format information is used to indicate the payload data of the set of packets being passed from the controller circuit to the bus interface circuit via the data bus.
[0068] Clause 5. An integrated circuit (IC) device comprising:
[0069] a bus monitor configured to monitor data traffic on a bus between the first IC and the second IC;
[0070] a configuration interface configured to receive configuration information associated with the data traffic;
[0071] A data encryption verifier, wherein the data encryption verifier is configured to:
[0072] analyzing the data traffic based on the configuration information; and
[0073] determining, based on the analyzing, whether the data traffic is encrypted as intended; and
[0074] An output interface is configured to generate a notification in response to determining that the data traffic is not encrypted as expected.
[0075] Clause 6. The IC device of Clause 5, wherein the analysis of the data traffic is performed by sampling the data traffic, and wherein the analysis of the data traffic includes identifying statistical data patterns in the sampled data traffic.
[0076] Clause 7. The IC device of Clause 6, wherein the configuration information is used to identify payload data in the sampled data traffic based on data format information included in the configuration information.
[0077] Clause 8. The IC device of any one of Clauses 6 to 7, wherein identifying the statistical data pattern in the sampled data traffic is performed based on a data pattern configuration included in the configuration information.
[0078] Clause 9. An IC device as described in any of clauses 6 to 7, wherein identifying the statistical data pattern in the sampled data traffic includes counting the number of bytes having a predefined byte pattern in the sampled data traffic, and wherein determining whether the data traffic is encrypted as expected is based on a comparison of the count of the number of bytes having the predefined byte pattern with a threshold.
[0079] Clause 10. The IC device of Clause 9, wherein the predefined byte pattern is a byte having all zeros.
[0080] Clause 11. An IC device as described in Clause 6, wherein identifying the statistical data pattern in the sampled data traffic includes determining a ratio of 0 bits to 1 bits in the sampled data traffic, and wherein determining whether the data traffic is encrypted as expected is based on a comparison of the ratio with a threshold.
[0081] Clause 12. The IC device of Clause 6, wherein the configuration information includes a predefined data pattern, and wherein determining whether the data traffic is encrypted as expected is based on a comparison of the sampled data traffic to the predefined data pattern.
[0082] Clause 13. The IC device of clause 5, wherein the analysis of the data traffic is performed by sampling the data traffic, and wherein the data encryption verifier is further configured to:
[0083] receiving pre-encryption data associated with the sampled data traffic,
[0084] The determination of whether the sampled data traffic is encrypted as expected is based on a comparison between the pre-encryption data and the sampled data traffic.
[0085] Clause 14. The IC device of clause 13, wherein the data traffic is expected to have two levels of encryption applied, and wherein the pre-encryption data compared to the sampled data traffic is encrypted data having one level of encryption.
[0086] Clause 15. The IC device of clause 13, wherein the data traffic is expected to have a level of encryption applied, and wherein the pre-encryption data compared to the sampled data traffic is unencrypted data.
[0087] Clause 16. The IC device of any of Clauses 5 to 15, wherein based on the notification that the data traffic is not encrypted as expected, the data traffic on the bus is suspended.
[0088] Clause 17. The IC device of any of Clauses 5 to 16, wherein the bus is an external bus of the first IC.
[0089] Clause 18. The IC device of any of Clauses 5 to 16, wherein the bus is an internal bus of a system on a chip (SoC) including the first IC and the IC device.
[0090] Clause 19. A method performed by an integrated circuit (IC) device, comprising:
[0091] monitoring data traffic on a bus between the first IC and the second IC;
[0092] receiving configuration information associated with the data traffic;
[0093] analyzing the data traffic based on the configuration information;
[0094] determining, based on the analyzing, whether the data traffic is encrypted as intended; and
[0095] A notification is generated in response to determining that the data traffic is not encrypted as expected.
[0096] Clause 20. The method of Clause 19, wherein analyzing the data traffic comprises identifying statistical data patterns in the data traffic and comparing the statistical data patterns to a threshold value.
[0097] Clause 21. The method of Clause 19, wherein analyzing the data traffic comprises comparing the data traffic to a predefined data pattern, or comparing the data traffic to pre-encryption data associated with the data traffic.
[0098] The modules described herein may be software modules, hardware modules, or a suitable combination thereof. If the module is a software module, the module may be embodied on a non-transitory computer-readable medium and processed by a processor in any of the computer systems described herein. It should be noted that the described processes and architectures may be executed in real time or in an asynchronous mode prior to any user interaction. The modules may be Figure 5The configuration may be performed in the manner suggested in the specification, and / or the functions described herein may be provided by one or more modules existing as separate modules, and / or the module functions described herein may be spread over multiple modules.
[0099] The specification and drawings are, accordingly, to be regarded in an illustrative rather than a restrictive sense. It will, however, be evident that various modifications and changes may be made thereto without departing from the broader spirit and scope of the disclosure as set forth in the claims.
[0100] Other variations are also within the spirit of the present disclosure. Thus, while the disclosed technology is susceptible to various modifications and alternative configurations, certain illustrated embodiments thereof have been shown in the drawings and described in detail above. However, it should be understood that it is not intended to limit the present disclosure to the specific form or forms disclosed, but on the contrary, it is intended to cover all modifications, alternative configurations, and equivalents that fall within the spirit and scope of the present disclosure as defined in the appended claims.
[0101] Unless otherwise indicated herein or clearly contradicted by context, the use of the terms "a" and "an" and "the" and similar referents in the context of describing the disclosed embodiments (especially in the context of the appended claims) should be interpreted to cover both the singular and the plural. Unless otherwise indicated, the terms "comprising", "having", "including" and "containing" should be interpreted as open-ended terms (i.e., meaning "including but not limited to") unless otherwise indicated. The term "connected" should be interpreted as partially or completely contained within, attached to or linked together, even if there are intervening objects. Unless otherwise indicated herein, the recitation of ranges of values herein is merely intended to serve as a shorthand method of individually referring to each individual value falling within the range, and each individual value is incorporated into the specification as if it were individually recited herein. Unless otherwise indicated herein or clearly contradicted by context, all methods described herein can be performed in any suitable order. The use of any and all examples or exemplary language (e.g., "such as") provided herein is intended only to better illustrate the embodiments of the present invention, and will not limit the scope of the present disclosure unless otherwise required. No language in the specification should be construed as indicating any non-claimed element as essential to the practice of the disclosure.
[0102] Unless specifically stated otherwise, disjunctive language such as the phrase "at least one of X, Y, or Z" is intended to be understood in context as generally used to indicate that an item, term, etc. may be X, Y, or Z, or any combination thereof (e.g., X, Y, and / or Z). Thus, such disjunctive conjunctive language is generally not intended to, and should not, imply that certain embodiments require the presence of at least one of X, at least one of Y, or at least one of Z, respectively.
[0103] Various embodiments of the present disclosure are described herein, including the best mode known to the inventor for carrying out the present disclosure. After reading the above description, variations of those embodiments may become apparent to those of ordinary skill in the art. The inventor hopes that the technician will adopt such variations as appropriate, and the inventor intends to practice the present disclosure in a manner different from that specifically described herein. Therefore, the present disclosure includes all modifications and equivalents of the subject matter recited in the appended claims as permitted by applicable law. In addition, unless otherwise specified herein or otherwise clearly contradictory to the context, any combination of the elements described above in all possible variations thereof is encompassed by the present disclosure.
Claims
1. An integrated circuit (IC) device comprising: a bus monitor configured to monitor data traffic on a bus between the first IC and the second IC; a configuration interface configured to receive configuration information associated with the data traffic; A data encryption verifier, wherein the data encryption verifier is configured to: analyzing the data traffic based on the configuration information; and determining, based on the analyzing, whether the data traffic is encrypted as intended; as well as An output interface is configured to generate a notification in response to determining that the data traffic is not encrypted as expected.
2. The IC device of claim 1, wherein the analysis of the data traffic is performed by sampling the data traffic, and wherein the analysis of the data traffic includes identifying statistical data patterns in the sampled data traffic. 3 . The IC device of claim 2 , wherein the configuration information is used to identify payload data in the sampled data traffic based on data format information included in the configuration information.
4. The IC device of any one of claims 2 or 3, wherein identifying the statistical data pattern in the sampled data traffic is performed based on a data pattern configuration included in the configuration information.
5. An IC device as described in any one of claims 2 or 3, wherein identifying the statistical data pattern in the sampled data traffic includes counting the number of bytes having a predefined byte pattern in the sampled data traffic, and wherein determining whether the data traffic is encrypted as expected is based on comparing the count of the number of bytes having the predefined byte pattern with a threshold.
6. The IC device of claim 5, wherein the predefined byte pattern is a byte with all zeros.
7. An IC device as described in claim 2, wherein identifying the statistical data pattern in the sampled data traffic includes determining a ratio of 0 bits to 1 bits in the sampled data traffic, and wherein determining whether the data traffic is encrypted as expected is based on a comparison of the ratio with a threshold.
8. The IC device of claim 2, wherein the configuration information includes a predefined data pattern, and wherein determining whether the data traffic is encrypted as expected is based on a comparison of the sampled data traffic with the predefined data pattern.
9. The IC device of claim 1 , wherein the analysis of the data traffic is performed by sampling the data traffic, and wherein the data encryption verifier is further configured to: receiving pre-encryption data associated with the sampled data traffic, The determination of whether the sampled data traffic is encrypted as expected is based on a comparison between the pre-encryption data and the sampled data traffic.
10. The IC device of claim 9, wherein the data traffic is expected to have two levels of encryption applied, and wherein the pre-encryption data compared to the sampled data traffic is encrypted data having one level of encryption.
11. The IC device of claim 9, wherein the data traffic is expected to have a level of encryption applied, and wherein the pre-encryption data compared to the sampled data traffic is unencrypted data.
12. The IC device of any one of claims 1 to 11, wherein based on the notification that the data traffic is not encrypted as expected, the data traffic on the bus is aborted.
13. The IC device according to any one of claims 1 to 12, wherein the bus is an external bus of the first IC, or an internal bus of a system on chip (SoC) including the first IC and the IC device.
14. A method performed by an integrated circuit (IC) device, comprising: monitoring data traffic on a bus between the first IC and the second IC; receiving configuration information associated with the data traffic; analyzing the data traffic based on the configuration information; determining, based on the analyzing, whether the data traffic is encrypted as intended; as well as A notification is generated in response to determining that the data traffic is not encrypted as expected.
15. The method of claim 14, wherein analyzing the data traffic comprises one of: identifying a statistical data pattern in the data traffic and comparing the statistical data pattern to a threshold; comparing the data traffic to a predefined data pattern; or The data traffic is compared to a predefined data pattern.
