Systems and methods for formal modeling of trusted edge IoT security gateways

A micro-hypervisor-based architecture for IoT security gateways addresses vulnerabilities in edge environments by providing reliable, scalable, and flexible security solutions with minimal overhead, ensuring secure communication and data protection across diverse hardware platforms.

JP2024535700APending Publication Date: 2024-10-02CARNEGIE MELLON UNIV +3
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
JP2024510510
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2021-08-19
Filing Date
2022-07-13
Publication Date
2024-10-02

AI Technical Summary

Technical Problem

Existing IoT devices in edge environments face vulnerabilities that can be exploited by attackers, leading to compromised security gateways and potential attacks on connected devices, with current security solutions either requiring hardware-specific capabilities with high performance overhead or software reimplementation efforts, and lacking generality and reliability.

Method used

A micro-hypervisor-based architecture for IoT security gateways that provides formal verification and robust trust properties, supporting various hardware platforms with minimal performance overhead, by using a small Trusted Computing Base (TCB) and extensible software framework to isolate and protect critical components and communications.

Benefits of technology

The architecture ensures reliable protection against diverse attack vectors with minimal performance impact, supporting legacy hardware and enabling flexible, scalable, and secure edge IoT deployments by isolating critical data and enforcing access control with fine-grained security features.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024535700000001_ABST
    Figure 2024535700000001_ABST
Patent Text Reader

Abstract

A method is disclosed for defining a model of a trusted IoT security gateway architecture based on a micro-hypervisor. Evaluation of the model provides assurance that the correct security protections are always applied to the network traffic of each IoT device, including when under attack. The model defined according to the method disclosed herein is used to validate a security gateway architecture that provides robust trust properties for a wide range of legacy hardware platforms utilizing existing software with reasonable performance overhead.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] Related Applications This application claims the benefit of U.S. Provisional Patent Application No. 63 / 234,913, filed August 19, 2021, the contents of which are incorporated herein by reference. Government Interests

[0002] This invention was made with U.S. Government support under Contract CNS-1564009 awarded by the National Science Foundation. The U.S. Government has certain rights in this invention. [Background technology]

[0003] 2. Background of the Invention The Internet of Things (IoT) describes a network of physical devices that have embedded sensors, software, and other components that enable the objects to perform tasks and connect to and exchange data with other devices over the Internet. These devices range from ordinary household items to sophisticated industrial tools.

[0004] From home networks to manufacturing floors, an increasing number of IoT devices are being deployed in edge environments. Unfortunately, these devices suffer from a myriad of vulnerabilities that attackers could use as stepping stones into protected networks and as launch pads for other attacks. As a result, these IoT devices pose a continuing threat to the security of edge networks.

[0005] Industry and academia have proposed protecting potentially vulnerable IoT devices on edge networks with on-site security gateways. These "bolt-on" security gateways are designed to intercept all traffic to and from IoT devices and apply security protections via network-level (e.g., firewall) middleboxes. These middleboxes can be used to implement "network patches" that mitigate device vulnerabilities without patching the device's software.

[0006] While bolt-on security gateways are gaining popularity and are a deployable solution, the fundamental problem of the reliability of the system providing network-level protection remains. As an illustrative scenario, consider a smart factory with a large number of IoT devices protected by multiple security gateways. The factory's security gateways provide network-level protection tailored to the vulnerabilities of the individual IoT devices. Unfortunately, the security gateways form a single point of failure. Security gateways are particularly vulnerable to adversaries that can compromise the security gateway (by exploiting vulnerabilities in the OS and / or applications) because the gateways typically run commodity software (e.g., Linux, Docker, OVS, Snort, etc.). Once compromised, the adversary can modify the gateway's protection (e.g., remove firewall rules), thereby allowing attacks against the IoT devices to stop / alter operations.

[0007] Current approaches to protect applications in untrusted cloud environments may be applied to establish trust in security gateways. These approaches rely on hardware-specific capabilities (e.g., SGX, MPX). Unfortunately, such approaches have high-performance overhead that makes them impractical for IoT deployments. They also lack the generality to be limited to a specific processor class and only support user-space applications with constrained memory allocation. Furthermore, addressing security vulnerabilities requires manufacturing new versions of the hardware. Summary of the Invention

[0008] Disclosed herein is a methodology for defining a model of a trusted IoT security gateway architecture based on a micro-hypervisor, where evaluation of the architecture model provides formal (mathematical) assurance that the correct security protections are applied to each IoT device's network traffic at all times, including when under attack. The model defined according to the methodology disclosed herein is used to validate security gateway architectures that provide robust trust properties for a wide range of legacy hardware platforms utilizing existing software with reasonable performance overhead.

[0009] As disclosed herein, a micro-hypervisor based approach is used as an architectural foundation for building trust in edge security gateways. A micro-hypervisor, like a traditional hypervisor, is a software-based monitor that provides core security features (e.g., memory isolation, arbitration, and attestation) that can be applied to effectively address the aforementioned challenges. In contrast to a traditional hypervisor, a micro-hypervisor provides these features with a trusted computing base (TCB) that allows formal verification to eliminate potential vulnerabilities and dramatically reduced complexity. Furthermore, the micro-hypervisor provides a scalable foundation for achieving robust trust properties with minimal performance overhead without loss of generality. Finally, in contrast to approaches that use specific hardware features that limit applications (e.g., the aforementioned SGX limitations), the micro-hypervisor can support a variety of hardware platforms (e.g., x86, ARM, microcontrollers) running unmodified software (e.g., Linux). Thus, the micro-hypervisor provides a practical and secure foundation for building security mechanisms.

[0010] So far, micro-hypervisors have not been used in edge IoT gateways. Therefore, the novelty of the present invention derives from a more holistic system adversary model and a high-level architecture based on micro-hypervisors for edge IoT security gateways, enabling a practical and flexible solution with formally proven security properties. [Brief description of the drawings]

[0011] [Figure 1] FIG. 1 is a schematic diagram illustrating various attack vectors related to IoT devices. [Diagram 2] 1 is a high-level block diagram of a reliable, scalable, and widely deployable edge security gateway architecture. [Diagram 3]FIG. 1 is a high-level block diagram of an architectural stack on a data plane implementation. [Figure 4] FIG. 1 is a block diagram illustrating key components of the architecture model. [Diagram 5] This is a listing in the Alloy modeling language that shows an abstract formal model of the software-defined security gateway architecture. [Figure 6] We present the Alloy model of policy separation and arbitration. [Figure 7] We present an Alloy model of instance validation. [Figure 8] We present the Alloy model of message integrity and authentication. [Figure 9] 1 shows the Alloy model of packet passing and data validation. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0012] Figure 1 illustrates various attack vectors to which bolt-on security architectures are vulnerable. An attacker can launch an attack at multiple points in the architecture. For example, an attacker can (1) compromise the gateway itself ("B") using an unpatched exploit, and (2) modify the middlebox configuration to allow the attacker's traffic through, allowing the attacker to compromise the factory IoT devices and steal proprietary data ("A"). Besides modifying software, an attacker can also tamper with network messages. For example, modifying packets on the control channel between the controller and the gateway ("C") and the data channel between the vSwitch and the middlebox ("D") to redirect traffic to the wrong middlebox and circumvent security checks. A reliable security architecture must protect the gateway and controller software while prohibiting tampering with network traffic.

[0013] To address these various attack vectors, systems and methods are disclosed herein that implement a trusted, scalable, and widely deployable edge security gateway architecture that addresses the security challenges of today's edge IoT deployments.

[0014] The design space can be categorized along two axes. First, approaches that rely on hardware capabilities are limited in both the hardware platforms and software they can support. Furthermore, their security properties depend on complex and opaque implementations in microcode and silicon that are known to have vulnerabilities. Second, pure software approaches (e.g., formal verification, secure programming languages) are limited because they require significant reimplementation and verification efforts. This quickly becomes unwieldy, as many commonly used software applications on edge security gateways span over 100,000 lines of C / Java.

[0015] It is dangerous to tie critical security capabilities to either a hardware implementation that requires new hardware to address threats, or to a software approach that requires significant reimplementation or formal verification effort of the entire software stack. Instead, the architecture leverages legacy hardware capabilities in combination with a small TCB and an extensible software framework to provide foundational trust properties and protect edge devices from evolving threats.

[0016] As a result, a micro-hypervisor based approach is disclosed herein, enabling a trusted edge security gateway architecture as shown in FIG. 2. The edge security gateway architecture retrofits security protections only to those system components that require them. The micro-hypervisor is essentially a software reference monitor that acts as a guardian and enforces access control to system resources (e.g., files, sockets) using a small TCB. These protections can be applied in a fine-grained manner, protecting a single data value (e.g., a private key) or a complex set of objects (e.g., a virtual machine) with minimal performance overhead. The micro-hypervisor provides a strong foundation for fine-grained coordination, isolation, and attestation using small TCBs, allowing security services to be designed and implemented as an extension.

[0017] Due to their simplicity and small TCB, micro-hypervisors are suitable for formal verification to eliminate potential vulnerabilities in their code. Furthermore, micro-hypervisors can potentially be supported on any hardware platform. The present invention builds on the aforementioned fundamental capabilities of micro-hypervisor support to build a trusted security gateway architecture. The controller and gateway software run on top of the micro-hypervisor, thereby supporting any general-purpose OS and application stack. On the controller, critical data (e.g., security policy) is migrated to the micro-hypervisor extension to isolate it from untrusted software (e.g., OS). Furthermore, all accesses are mediated by the micro-hypervisor, prohibiting attackers from compromising the integrity of the data.

[0018] In the gateway, a set of customized middleboxes is assigned to each device. The middleboxes are isolated from each other. A middlebox is a processing element or virtual machine that is assigned to a single IoT device and authenticated at boot time by the micro-hypervisor. Furthermore, the signatures of each middlebox and vSwitch are periodically monitored to verify their integrity. Finally, the controller and gateway run trusted agents, which are micro-hypervisor extensions used to mediate communication between the control plane and the data plane to ensure that the instantiated protection correctly reflects the security policy.

[0019] A micro-hypervisor based architecture offers three key advantages. First, it provides fine-grained isolation and arbitration that allows the architecture to precisely ensure that the correct protections are enforced while still being performant. Second, it is extensible, allowing for the rapid growth of new security features and response to new threats. Third, it is broadly deployable, supporting a wide range of hardware platforms while leveraging existing software with low performance overhead to provide trust.

[0020] There are three challenges that the disclosed architecture and associated formal modeling address: (1) Required Security Properties: Identifying security properties that ensure trust under a holistic adversary model; (2) Support for Dynamic Middleboxes: Allowing to protect dynamic middleboxes required by the IoT environment and ensuring that an adversary cannot modify the protection; and (3) Secure Communications: Providing per-packet protection with low performance impact and ensuring that an adversary cannot modify or spoof packets. We next describe the key components of the architecture that address these requirements.

[0021] Adversaries and Trust Property: The goal is to provide end-to-end protection against a holistic threat model. Within the SDN domain, this entails protecting both the control plane and the data plane (e.g., from BGP hijacking). However, previous work on IoT security gateways has typically only considered narrow threat models.

[0022] For this purpose, such an adversary is systematically defined with the goal of defeating the gateway protection (i.e., enabling exploitation of a protected IoT device). The adversary is assumed to have knowledge of the security architecture as well as network access to all devices. Adversarial capabilities are grouped into two categories: (1) the ability to compromise the device's software stack (i.e., software on the controller or gateway: "A" and "B" in Figure 1), and (2) the ability to inject / modify network messages (i.e., control, data channels: "C" and "D" in Figure 1).

[0023] The set of adversarial capabilities is summarized in Table 1. These capabilities hinder the architecture's ability to protect IoT devices and together form an adversarial model. [Table 1]

[0024] While not an exhaustive list, the example threats in Table 1 are used to define the fundamental security properties required for a trustworthy architecture. Based on the adversarial model in Table 1, there are at least five fundamental properties required for a trustworthy security gateway architecture:

[0025] Data Isolation and Mediation (Psw1): The ability to isolate security-critical logic (e.g., prevent the OS from accessing security policy) and the ability to have trusted entities mediate access to security-critical data (e.g., blocking access to private keys for untrusted applications).

[0026] Software Integrity (Psw2): The ability to detect modifications of code and data (e.g., changes to middlebox configurations).

[0027] Secure Control Channel (Pcom1): The ability to trust the data transferred between the controller and the gateway (e.g., the gateway only executes commands from the controller).

[0028] Secure Data Channel (Pcom2): The ability to trust that packets are routed through the correct middlebox (e.g., packets should not be processed by the wrong middlebox).

[0029] This architecture can support additional adversarial properties, but these four are fundamental for a trustworthy architecture. These fundamental properties are: (1) protection of running code and data (P SW ) and (2) Protection of Communications (P com ) can be classified as:

[0030] Format model

[0031] To guide and inform the design of the trustworthy architecture, a formal model of the current Software-Defined IoT Security Gateway architecture is generated. The model helps identify the critical components and interfaces of the architecture, formally defines and encodes the corresponding architectural elements, and proves the desired trustworthy and security properties.

[0032] In some embodiments, the Alloy modeling language (see FIG. 5, Listing 1) can be used to generate models of bolt-on IoT security architectures. Alloy models are defined using first-order predicate and relational logic. The Alloy language is, at its core, an easy-to-use, yet expressive logic based on the notion of relations. Alloy models are compiled into scope-constrained satisfiability problems and analyzed by an off-the-shelf SAT solver. This analysis can be used to identify whether instances of the model exist and to identify counterexamples to the constraints. This analysis is used to identify attack vectors, refine the security architecture, and formalize trust properties.

[0033] Model Description and Semantics The bolt-on software-defined IoT security architecture model, shown in block diagram form in Figure 4, includes a centralized controller and a set of gateways that process packets to and from IoT devices. For simplicity, we will use an example architecture with a single gateway to explain the simplified Alloy model in Listing 1.

[0034] Two main entities provide the controller and the gateway, which are initially modeled using Alloy's sig interface (lines 1-10 in Listing 1). A sig (signature) defines the relationship between a set (e.g., controller) and other sigs (i.e., each controller has one policy, see line 2 in Listing 1). The controller maintains the security policy and uses the control channel to configure each gateway based on the policy. Each gateway is managed by its associated controller. The gateway receives its policy over the control channel, installs paths on the vSwitch, which then instantiates middleboxes. Each path specifies which middlebox traffic for a particular IoT device should be routed to.

[0035] The way the gateway processes a packet is modeled using Alloy's fun interface (see lines 11-18 in Listing 1). The function evaluates a set of descriptions and returns all possible solutions. Packets received by the gateway are sent to the vSwitch for routing. The vSwitch routes the packet to a specific middlebox (ROUTEPKT, see Listing 1, line 12). The middlebox then processes the packet and decides whether the packet is benign or malicious (MIDDLEBOXPR0CESS, see Listing 1, line 13). Benign packets are routed back to the switch and then sent to the IoT device, while all other packets are dropped.

[0036] Next, a trusted gateway architecture is defined using Alloy's pred(predicate) interface (see lines 19-27 in Listing 1). A predicate evaluates a set of constraints. The predicate returns true only if all constraints are satisfied, and false otherwise. Thus, for a trusted architecture, the following conditions must all be satisfied: First, an attacker must not be able to tamper with the policy on the controller (i.e., TAMPERPROOF is true in line 2l of Listing 1). Second, the control channel between the controller and the gateway must be secure so that it cannot be influenced by an attacker injecting malicious messages (i.e., SECURECHANNEL is true in line 22 of Listing 1). Third, the correct software must be running on the controller, the vSwitch, and the middlebox (CORRECTSW is true in lines 23-26 of Listing 1). Finally, each packet must follow the path specified by the controller and executed by the vSwitch and each middlebox (AUTHENTICATEROUTE is true in line 27 of Listing 1). If all of these conditions are true, the gateway architecture is considered to be trustworthy.

[0037] Finally, the goal that all outgoing packets are correctly processed is defined using Alloy's assert interface (see lines 28-31 in Listing 1). In Alloy, an assert asserts that a set of statements must be true based on a model, and generates counterexamples if any of the claims are not true. A trusted gateway architecture can achieve this goal; specifically, it allows all harmless packets while dropping all harmful packets.

[0038] Using the architectural model and semantics, comprehensive security properties and their sub-properties are defined.

[0039] Comprehensive Security Properties: Considering a network where all inbound and outbound traffic of IoT devices passes through a trusted security gateway, the goal is to ensure that any packet pkt output by the gateway has been processed by the correct middlebox, such that benign packets are allowed and harmful packets are dropped (modeled in Listing 1). This can be expressed as follows:

number

[0040] To achieve this property in the presence of attackers, the gateway architecture must be trusted, which can be formally expressed as follows:

number

[0041] Equation (1,2) is realized in Alloy as shown in Listing 1, where the gateway architecture is instantiated with a controller and a gateway that processes packets using software middleboxes. The PROCESSPKT function determines whether each packet is benign and therefore allowed to be forwarded to its final destination, or is harmful and dropped. The TRUSTEDGATEWAY predicate tests whether the architecture (consisting of a gateway and a controller) is trustworthy. The model verifies that a controller is assigned to a gateway, that the security policy of the controller is tamper-proof, that the channel between the controller and the gateway is secure, that the controller, vSwitch, and all middleboxes are certified correct, and that each packet being processed follows an authenticated route. A gateway that meets these requirements guarantees that all benign packets are allowed and that harmful packets are dropped (as verified by the assert interface).

[0042] The overall security property is further decomposed into four subproperties: (1) protection of data and executable code (P SW1 ,P SW2 ) and (2) Protection of Network Communications (P COM1 ,P COM2 ) each of which will now be described in more detail.

[0043] Security Policy Isolation and Mediation (P SW1):The first subproperty is to protect the security policy (data) stored in the controller. The controller application is subject to attacks that weaken the security policy. Since the correctness of the rest of the system is based on this policy, the policy must be tamper-proof. To achieve this, the security policy is isolated in protected memory and all accesses require mediation by a trusted entity (see Listing 2 in Figure 6). Such a defense prevents the OS and other untrusted applications from accessing and modifying the security policy. This can be expressed as follows:

number

[0044] Listing 2 shows how equation (3) is modeled in Alloy. The TAMPERPROOF predicate checks if the object is located in isolated memory and all accesses are mediated. The assert interface checks that the controller's policy is tamper-proof.

[0045] Component Instance Validation (P SW2 ): In addition to the security policy, the software of the critical components must not be modified by an attacker (e.g., attack B in Table 1). To achieve this, verification that the correct instances of the critical components are running is required. This involves verifying that the controller, vSwitch, and all middleboxes (see Listing 3 in Figure 7) are running, where each middlebox instance is of the type and configuration (e.g., rule set) currently specified by the security policy of the controller. This can be expressed as follows:

number

[0046] An implementation of equation (4) is modeled in Listing 3. The predicate REMOTEATTEST checks that an object has the correct software and can prove its correctness. This is verified by asserting against the controller, the vSwitch, and each middlebox.

[0047] Control Message Integrity and Authentication (P COM1 ): To protect against control channel attacks (e.g., attack C in Table 1), an assurance is provided that the control channel is secure. To achieve this, the control channel needs to be authenticated and encrypted so that the data sent over the channel cannot be modified or forged (e.g., only the controller can send middlebox configuration commands to the gateway). Meanwhile, the private key used by the channel is isolated and any access is mediated by a trusted entity (see Listing 4 in Figure 8). This can be expressed as follows:

number

[0048] A model of the Alloy implementation of equation (5) is shown in Listing 4. The TRUSTWORTHYCHANNEL predicate checks that the channel (i.e., the method used to send messages between the controller and the gateway) uses authenticated encryption and that the encryption key is tamper-proof. The assert verifies that the channel between the gateway and the controller uses authenticated encryption and that both hosts protect the encryption key.

[0049] Packet Path and Data Verification (P COM2): Each packet must be routed to the correct middlebox specified by the security policy. Previous work on Internet routing has proposed hop-by-hop path authentication to verify that packets follow the specified path. Herein, a similar guarantee is provided to detect packets that have been maliciously routed to the wrong middlebox (e.g., attack D in Table 1). In particular, the intended path of a packet must be enforced and whether the packet data has been modified (see Listing 5 in Figure 9). This can be expressed as follows:

number

[0050] Listing 5 in Figure 9 shows the Alloy implementation of equation (6). The function GETPATH ​​provides a mapping of the packet to the appropriate middlebox and returns the sequence of hops for the packet on the gateway. Next, the predicate AUTHENTICATEDHOP is defined, which verifies that the packet was not modified and that it reached the correct hop location. To ensure that the packet follows the correct path and that the packet is not modified at each hop location, the packer being processed by the gateway is verified to have followed an authenticated route using the assert statement.

[0051] A system that provides these properties can be constructed to prevent the example attacks in Table 1. As shown in Table 2, security policy isolation and mediation (P SW1 ) prevents an attacker from modifying the security policy (attack A in Table 1). SW2 ) allows the architecture to detect when an attacker is modifying the middlebox (attack B in Table 1). COM1 ) prevents an attacker from injecting malicious control messages (attack C in Table 1). Finally, packet path and data validation (P COM2) mitigates local attackers who modify packets (attack D in Table 1). [Table 2]

[0052] In additional embodiments, the architecture supports additional properties, but focuses on what is presented herein as the foundation of a trustworthy architecture. The basic properties are: (1) protection of running code and data (P SW ) and (2) Protection of Communications (P COM ) One approach for providing these is disclosed herein.

[0053] Dynamic middlebox support

[0054] Ideally, the entire code base of both the control and data planes of an IoT device could be reliably protected from attackers. However, this is not practical as it would incur significant performance costs (e.g., multiple enclaves to process each packet) or require significant reimplementation (e.g., moving 100,000+ lines of C / Java). Instead, fine-grained security properties are applied to parts of the code base that affect the protection of the architecture, thereby providing robustness against adversaries. Specifically, periodic remote attestations are applied to ensure the integrity of the code (P SW2 This allows code to execute with minimal performance degradation while limiting the duration that it is vulnerable to attacks. Additionally, critical code (e.g., security policy) can be protected with hypervisor extensions to isolate it and mediate access to it (P SW1 provide.

[0055] Periodic remote certification: IoT Security Gateways rely on a large code base to provide device-specific protection. Traditional methods of remote attestation, such as a Trusted Platform Module (TPM), are used to ensure exactly that the right software stack is running (providing Psw2). Upon bootup, the correct baseline software stack is verified, consisting of the micro-hypervisor, OS, and critical software components (e.g. controller, vSwitch, middleboxes, etc.).

[0056] Then, any new modules that affect the protection provided (e.g., new middlebox code before it is loaded) are attested, thereby allowing the architecture to ensure that the correct protection is instantiated.

[0057] At runtime, critical modules (e.g., controller, vSwitch, middlebox) are periodically re-attested, thereby ensuring that an attacker has not tampered with them. For example, the middlebox code must run outside of the hypervisor to allow high packet throughput. To limit the potential impact of an attacker tampering with this code (i.e., no protection is applied), the controller remotely attests critical software components on the gateway at the end of every epoch, and the epoch duration can be adjusted to provide a trade-off between the length of the vulnerable window and security overhead.

[0058] To provide this attestation capability, a virtual trusted platform module (vTPM) on the micro-hypervisor is leveraged. A vTPM is a software implementation of a physical TPM and provides many of the same capabilities. Specifically, its ability to securely store a chain of measurements by extending the Program Control Registers (PCRs) and securely provide those stored values ​​(i.e., PCR quotes) is used. These two capabilities make it possible to determine whether a software stack on a local or remote machine matches a known configuration. These vTPM measurements can be applied with fine granularity, with separate storage for multiple measurements.

[0059] Protecting the Controller's Security Policy : Attestation can provide important assurances regarding the integrity of the code, but there is some code that deserves further protection (e.g., code that influences decisions regarding the protection offered by the security gateway). The micro-hypervisor approach makes it possible to selectively isolate this code (Psw1) and require that access to it be mediated by a trusted entity (Psw1). Examples of such code are the private keys used to establish secure control channels between planes and security policies on the controller.

[0060] As a concrete example, consider the security policy of the controller, which is important to ensure that the correct protections are implemented (e.g., modifying it could result in the gateway middlebox no longer protecting the IoT device). This code can be extracted from the controller and placed in memory isolated by the micro-hypervisor (which provides Psw1). Furthermore, access to this memory is mediated by a code whitelist in the micro-hypervisor (which provides Psw1) to ensure that only the controller's code can access the security policy.

[0061] This combination prohibits an attacker in control of the operating system from accessing and modifying micro-hypervisor protected pieces of code without requiring significant modification of existing code.

[0062] Secure and efficient communication

[0063] The security architecture requires trust guarantees on both the control channel (between the controller and the gateway, Pcom1) and the data channel (along the gateway's packet processing path, Pcom2). A micro-hypervisor is used to provide isolation and arbitration to protect these communication channels.

[0064] Secure Control Channel : It is important that communications between the control plane and the data plane are trustworthy, as these messages often impact the security protections offered by the gateway. This architecture strengthens the guarantees offered by traditional tunneling (e.g., IPsec / TLS) between the controller and the gateway, ensuring that a compromised controller or gateway cannot send spoofed messages through the tunnel (e.g., malicious middlebox configuration commands). To secure these communications (Pcomm1), a pair of trusted agents running within the micro-hypervisor are used to mediate these communications (e.g., access the private keys necessary to send data through this channel). There is an agent on the controller and a corresponding agent on the gateway, and together they are responsible for mediating access to the secure channel.

[0065] Secure Data ChannelAt the data plane, security protection relies on each packet being processed by the correct middlebox. This architecture provides per-hop guarantees with low performance overhead. Specifically, the goal is to ensure that packets follow the correct path and are processed by the correct set of middleboxes on the data plane (Pcom2). A traditional tunnel can be established between each middlebox and the vSwitch, but this would result in significant overhead and processing delays. To secure the data channel, a micro-hypervisor is used to enforce the correct path (i.e., middlebox chain) of each packet. This is achieved by having the micro-hypervisor sign and validating each packet along its processing path, dropping packets that fail validation. This approach differs from previous per-hop authentication proposals because packets remain on a single host and the hypervisor can maintain private keys.

[0066] These digital signatures form a connection between the raw packet data and the middlebox that processes the packet, via a private key (protected by the micro-hypervisor) that is shared between the vSwitch and each middlebox. Furthermore, the digital signatures can be trusted because the private key is kept in isolated memory accessible only through the intermediation of the micro-hypervisor, preventing an attacker from forging signed packets.

[0067] Model evaluation

[0068] The Alloy model disclosed above has been updated to reflect a trusted architecture and analyze its performance. The model of the architecture has been examined for instances that allow an attacker to violate the trust properties and emit harmful packets (i.e., those containing exploits).

[0069] The Alloy analyzer is unable to identify the counter instances, and as a result, the architecture outputs packets processed by the erroneous middlebox. The analyzer uses Bounded Model Checking (BMC), where the model is evaluated up to a bound of N for each sig in the model. The model is evaluated up to a bound of 100 (i.e., 100 instances of each sig), and the required resources indicate that the analysis can be performed on a personal computer.

[0070] Furthermore, constraints related to security subproperties were systematically removed (e.g., middlebox software does not need to be compensated), and it was verified that each one yields a counterexample in which the overarching security property is violated. This analysis provided confidence in the security properties in the design of the architecture.

[0071] The Alloy model helped identify nuances and informed design refinements. The model emphasized the need to prohibit packets from skipping the middlebox entirely. For example, if the middlebox signs the inbound and outbound packets with the same key, it allows the packet to bypass the middlebox undetected. Similarly, the Alloy model emphasized software components that need to be trusted or periodically attested in order to trust the behavior of the architecture. Both the virtual switch and controller software, as well as the middleboxes that process packets, need to be trusted to ensure correct operation.

[0072] implementation

[0073] Here, an exemplary embodiment is disclosed. In one embodiment, the uberXMHF open source micro-hypervisor is used, which supports both x86 and ARM platforms. Using a RaspberryPi3 hardware platform, the uberXMHF micro-hypervisor, Raspbian Jessie (for Linux 4.4.y), and OpenVirtual Switch and Snort can be run on the gateway.

[0074] A high level overview of the software stack of the implementation is shown in Figure 3, where the hypervisor extension 302 is shown as a rectangle labeled "Packet Signature". The ellipses 304, 306 represent hypercalls to the hypervisor extension 302 added to the commodity software to perform hypervisor protection operations (e.g., generating / verifying digital signatures of packets). These elements of the architecture implementation are exemplary only, and implementations using other elements, as implemented, are considered within the scope of the invention.

[0075] Virtual Trusted Platform Module (vTPM): This architecture leverages a hypervisor-aware vTPM for periodic remote attestation. A key motivation in the development of the Trusted Platform Module (TPM) was to provide the ability to remotely attest the integrity of the system boot sequence. A subset of the features provided by the TPM standard is leveraged to provide trust properties, specifically PCR extensions and PCR estimation. In addition to the vTPM requiring no additional hardware, this subset offers two key advantages over physical TPMs: increased storage and improved performance. Measurement storage (i.e., PCRs) on the vTPM is based on a micro-hypervisor-protected memory region of the platform, allowing a large number of separate measurements (e.g., >200 PCRs on a single 4KB page). Furthermore, these measurements are not limited by the data rate of the system bus (e.g., SPI on a RaspberryPi3), resulting in a 20x or greater reduction in access latency. A challenge for software-based TPMs is preserving secrets across reboots. vTPM leverages existing platform non-volatile memory to persist secrets between boots (e.g. the Raspberry Pi 3 has a boot NVRAM that can act as long term secure storage).

[0076] In one embodiment, the architecture can be implemented as a trusted "security as a service" offering that providers (e.g., edge ISPs, CDNs, IoT providers) can offer to IoT consumers, ensuring that the correct security protections are always applied. For example, the architecture provides a trusted mechanism for enforcing IoT security best practices (e.g., access control policies in a device manufacturer's instructional specifications).

[0077] As will be appreciated by those skilled in the art, the disclosed systems and methods described herein may be implemented by a system that includes a processor and memory and stores software that, when executed by the processor, performs functions including the methods. For example, model training, testing, and deployment may be performed by software executing on the processor.

[0078] As will be further appreciated by those skilled in the art, many variations of the embodiments described herein can be envisioned that fall within the scope of the present invention. In particular, many variations of the architecture of the model can be used to obtain similar results. The present invention is not meant to be limited to the specific exemplary models disclosed herein. Furthermore, it should be understood that the features of the various embodiments described herein are not mutually exclusive and can exist in various combinations and permutations without departing from the spirit and scope of the present invention, even if such combinations or permutations are not expressly stated herein. Thus, the methods and apparatus disclosed herein should be interpreted as illustrative of the present invention, and not as limitations thereon. The scope of the present invention is defined by the following claims.

Claims

1. 1. A method for generating a model for providing a trusted gateway for IoT devices, comprising: defining a controller in a modeling language that defines a control plane for the IoT device, the controller executing software that is secured or certified by a controller micro-hypervisor; defining a security gateway in a modeling language that defines a data plane attested by a security gateway micro-hypervisor; The method includes:

2. the controller is defined in the modeling language by a controller signature interface; The method of claim 1 , wherein the security gateway is defined in the modeling language using a gateway signature interface.

3. The controller signature interface: Security policies and a channel used to configure the gateway signature interface based on the security policy; The method of claim 2 comprising:

4. The gateway signature interface includes: vSwitch and one or more middleboxes; Equipped with The method of claim 3 , wherein the gateway signature interface installs a path into the vSwitch based on security information received from the controller signature interface over the channel.

5. 5. The method of claim 4, wherein each path is associated with a middlebox through which traffic to or from a particular IoT device is routed.

6. 6. The method of claim 5, wherein the security policy specifies a path for each middlebox.

7. The method of claim 6, further comprising the step of: defining a capability comprising a set of descriptions that specify how data packets transmitted to and received from the IoT device are processed.

8. the vSwitch evaluates each of the data packets according to the function; Routing the harmless data packets to the IoT device; Dropping harmful data packets, The method of claim 7, wherein the sigma-based model is modeled as follows:

9. The method of claim 7 , further comprising the step of defining a predicate in the model that specifies one or more constraints that must be satisfied to establish the trusted gateway.

10. The method of claim 9 , wherein the one or more constraints include a constraint specifying that the security policy is tamper-proof and quarantined.

11. The method of claim 9 , wherein the one or more constraints include a constraint specifying that the channel between the control plane and data plane is immune to attackers injecting malicious messages.

12. The method of claim 9 , wherein the one or more constraints include a constraint specifying that correct software is running on the controller.

13. 10. The method of claim 9, wherein the one or more constraints include a constraint that specifies that packets on the data plane follow a correct path and are processed by a correct set of middleboxes.

14. 10. The method of claim 9, wherein each data packet follows the path specified by the controller and executed by the vSwitch and each middlebox.

15. 10. The method of claim 9, further comprising the step of defining an assert interface in the model that includes a set of statements that must evaluate to true based on the model.

16. The method of claim 15 , wherein the set of statements specifies that all harmless packets are allowed to be transmitted while all harmful packets are dropped.

17. 20. A method of verifying a trusted gateway for an IoT device, comprising: evaluating the model of claim 15 to determine whether a counterexample exists for any of the set of statements in the asserted interface.