Network Working Group | J.G. Gilger |
Internet-Draft | H.T. Tschofenig |
Intended status: Informational | October 2012 |
Expires: April 02, 2013 |
Report from the 'Smart Object Security Workshop', 23rd March 2012, Paris, France
draft-gilger-smart-object-security-workshop-00.txt
This document provides an overview of a workshop on 'Smart Object Security', which took place in Paris on 23 March 2012. The main goal of the workshop was to allow participants to share their thoughts about the ability to utilize existing and widely deployed security mechanisms for smart objects.
This report summarizes the discussions and lists the conclusions and recommendations to the Internet Engineering Task Force (IETF) community.
This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.
Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet- Drafts is at http:/⁠/⁠datatracker.ietf.org/⁠drafts/⁠current/⁠.
Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."
This Internet-Draft will expire on April 02, 2013.
Copyright (c) 2012 IETF Trust and the persons identified as the document authors. All rights reserved.
This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (http:/⁠/⁠trustee.ietf.org/⁠license-⁠info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Simplified BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Simplified BSD License.
In early 2011, the Internet Architecture Board (IAB) solicited position statements for a workshop on 'Interconnecting Smart Objects with the Internet' [RFC6574], aiming to get feedback from the wider Internet community on their experience with deploying IETF protocols in constrained environments. The workshop took place in Prague on March, 25th, 2011. During the workshop, a range of topics were discussed, including architecture, routing, energy efficiency, and security. The workshop report summarizes the discussion and suggested several next steps.
During the months following the workshop a number of IETF initiatives were started, IETF participants submitted Internet drafts, and hands-on coding events were organized at IETF#80 and IETF#81 to better facilitate the exchange of ideas.
With the contributions on security in the IETF CoRE working group as well as in the IETF TLS working group it became clear that further discussions on security were necessary and that those would have to feed in implementation and deployment experience as well as a shared understanding how various building blocks fit into a larger architecture.
The workshop on Smart Object Security was organized to bring together various disconnected discussions about smart object security happening in different IETF working groups and industry fora. It was a one-day workshop, held prior to the IETF 83 in Paris on March 23, 2012.
The workshop organizers were particularly interested to get input on the following topics, as outlined in the call for position papers:
This document lists some of the recurring discussion topics of the workshop. It also offers recommendations from the workshop participants.
Note that this document is a report on the proceedings of the workshop. The document attempts to reflect the views and positions of the workshop participants and does not necessarily reflect the views of the authors.
This document uses security terminology from [RFC4949] and smart object related terms from [RFC6574].
With 36 accepted position papers there was a wealth of topics to talk about during the one-day workshop. The program committee decided to divide the discussion into four topic areas with two or three invited talks per slot to get a discussion started. This section will summarize the points raised by the invited speakers as well as the essence of the ensuing discussions.
To design a security solution an initial starting point is to understand the communication relationships, the constraints, and the security threats. The typical IETF security consideration section describes security threats, security requirements, and security solutions at the level of a single protocol or a single document. To offer a meaningful solution for a smart object deployment it is, however, necessary to go beyond this limited view to the analysis of the larger eco-system. The security analysis, documented in [RFC3552] and in [RFC4101], still provides valuable guidance.
Typical questions that arise are:
To illustrate the differences consider a mass-market deployment for end customers in comparison to a deployment that is targeting enterprise customers. In the latter case enterprise system administrators are likely to utilize different management systems to provision security and other system-relevant parameters.
Paul Chilton demonstrated the security and usability requirements in a typical end-user scenario for small-scale smart lighting systems. These systems present a substantial challenge for providing usable and secure communication because they are supposed to be cheap and very easy to set up, ideally as easy as their "dumb" predecessors. The example of IP-enabled light bulbs shows that the more constrained devices are, the more difficult it is to get security right. For this reason, and the required usability, light bulbs might just be the perfect example for examining the viability of security solutions.
Rudolf van der Berg focused on large-scale deployments of smart objects, such as eBook readers, smart meters, and automobiles. The use of mobile cellular networks is attractive because they are networks with adequate coverage and capacity on a global scale. In order to make use of mobile networks you need to make use of SIM-based authentication. However, SIM cards are issued only by operators and there are limited provisions for changing the operator without physically changing the card to another. This presents commercial challenges to large-scale deployers such as utility companies, as physical access to the deployed devices may not be economically viable.
The end-user interaction may differ depending on the credentials being used: for a light bulb deployed in the user's home it is expected that the user somehow configures devices so that only, for example, family members can turn them on and off. Smart objects that are equipped with SIM-based credential infrastructure do not require credential management by the end-user since credential management by the operator can be assumed. As noted above, switching a cellular operator may, however, pose challenges for these devices.
Furthermore, we have a technology that will be both deployed by end-users and large enterprise customers. While the protocol building blocks may be the same there is certainly a big difference between deployments for large-scale industrial applications and deployments for regular end-users in terms of the architecture. Between these two, the security requirements differ significantly, as do the threats. It is difficult, if not impossible, to develop a single security architecture that fulfills the needs of all uses while at the same time meeting the constraints of the smart objects.
In the consumer market, security should not incur any overhead during installation. If an end user has to invest more time or effort to secure a smart object network, he or she will likely not do it. Consumer products will often be retrofitted into the existing infrastructure, bought and installed by consumers themselves. This means that devices will have to come pre-installed to some extent and will most likely interoperate only with the infrastructure provided by the vendor, i.e., the devices will be able to connect to the Internet but will only interoperate with the servers provided by the vendor selling the device.
Closed systems (one bulb, one switch) typically work out of the box, as they have been extensively tested and often come with factory-configured security credentials. Problems do arise when additional devices are added or when these closed systems get connected to the Internet. It is still very common to ship devices with default passwords. It is, however, not acceptable that a device is in a vulnerable, but Internet-connected, state before it has been correctly configured by a consumer. It is easy to conceive that many consumers do not configure their devices properly and may therefore make it easy for an adversary to take control of the device by, for example, using the default password or an outdated firmware.
Once security threats for a specific deployment scenario have been identified an assessment takes place to decide what security requirements can be identified and what security properties are desirable for the solution. As part of this process a conscious decision needs to take place what countermeasures will be used to mitigate certain threats. For certain security threats the assessment may also lead to the conclusion that the threat is considered out-of-scope and therefore no technical protection is applied. Different businesses are likely to come to different conclusions about the priorities for protection and what security requirements will be derived.
What security threats are worthwhile to protect against is certainly in the eye of the beholder that even among security specialists remains an entertaining discussion. Superficially, security threats against a smart lighting system are relatively minor compared to other smart home appliances. Clearly, the threats depend on the specific application domain but there is a certain danger that deployments of vulnerable smart objects will increase. As the systems evolve and become more pervasive additional security features may be required and may be difficult to incorporate into the already installed base, particularly if smart objects have no software update mechanism incorporated in their initial design. Smart objects where software updates require human involvement are likely to be problematic in the future. This is particularly true for devices that are expected to have service schedules of five to fifteen years. Experience shows security breaches that are considered to be a prank usually move very rapidly to become destructive attacks. Apart from the security requirements from individual households and users, it is also important to look at the implications of vulnerabilities in large-scale smart object deployments, for example in smart meters and the power grid. Or the lighting system, as a system-wide control of lights could, if misused, conceivable bring down the entire grid.
Finally, there is the usual wealth of other requirements that need to be taken into account, such as ability for remote configuration and software updates, able to deal with transfer of ownership of a device, no operator or vendor lock-in, crypto agility, minimize cost, low license and IPR costs, etc.
The second slot of the workshop was dedicated to reports from first-hand implementation experience. Various participants had provided position papers exploring with different security protocols and cryptographic primitives. There were three invited talks which covered tiny implementations of the Constrained Application Protocol (CoAP) protected by Datagram Transport Layer Security (DTLS), a TLS implementation using raw public keys, as well as general experience with implementing public key cryptography on smart object devices.
All three presenters demonstrated that implementations of IETF security protocols on various constraint devices are feasible. This was confirmed by other workshop participants as well. The overall code size and performance will depend on the chosen features. It is fairly obvious that more features translate to a more complex outcome. Luckily, IETF security protocols in general, and DTLS/TLS is no exception, can be customized in a variety of ways to fit a specific deployment environment. As such, an engineer will have to decide which features are important for a given deployment scenario, and what trade-offs can be made. There was also the believe that IETF security protocols offer useful customization features (such as different ciphersuites in TLS/DTLS) to select the desired combination of algorithms and cryptographic primitives. The need to optimize available security protocols further or to even develop new cryptographic primitives for smart objects was questioned by the workshop participants. Cryptographic operations can employ a surprisingly small amount of the overall complexity and energy budget, and optimizing current protocols is hard without at the same time trading off some security aspect.
The three common constraints for security implementations on smart objects are code size, energy consumption, and bandwidth. The importance of tailor a solution to one of these constraints depends on the specific deployment environment. It is, however, typically not possible to develop an architecture that minimizes for all constraints at the same time.
To wait for the next generation of hardware typically does not let constraints to go away. The workshop participants again reinforced the message that was made at earlier smart object workshop [RFC6574] regarding future developments in the smart object space: "While there are constantly improvements being made, Moore's law tends to be less effective in the embedded system space than in personal computing devices: gains made available by increases in transistor count and density are more likely to be invested in reductions of cost and power requirements than into continual increases in computing power.".
The above statement is applicable to smart object designs in general; not only for security. Thus, it is expected that designers will also in the future have to deal with various constraints of smart objects. A short description of the different classes of smart objects can be found in [I-D.ietf-lwig-guidance] where also security-related guidance is provided. The workshop participants noted that making security protocols suitable for smart objects must not water down their effectiveness. Security functionality will demand some portion of the overall code size, will have an impact on the performance of communication interactions, will lead to higher energy consumption, and certainly make the entire product more complex. Still, omitting security functionality because of various constraints is not an option. The experience with implementing available security protocol was encouraging even though the need to make various architectural design decisions for selecting the right set of protocols and protocol extensions for the job was pointed out. Sometimes the leading constraint is energy consumption and in other cases it is main memory, CPU performance, or bandwidth. In any case, for an optimization it is important to look at the entire system rather than a single protocols or even certain algorithms.
What is deciding for the code size of a deployed product is not necessarily the protocols being used but rather other design decisions, such as the communication model, like the number of communication partners, the interoperability need, and the threats that are being dealt with. Mohit Sethi noted that even the execution time for relatively expensive operations like asymmetric signature generation and verification are within acceptable limits for very constrained devices, like an Arduino UNO. In either case, public key cryptography will like only be used for the initial communication setup to establish symmetric session keys. To the surprise of many the cost of cost of transmitting data wirelessly dwarfs even expensive computations like public key cryptography. Since wireless reception is actually the most power consuming task on a smart object, we have to design our protocols accordingly.
The workshop participants shared the view that the complexity of security protocols is a result of desired features. Redesigning a protocol with the same set of features will, quite likely, lead to a similar outcome in terms of code size, memory consumption, and performance. It was, however, also acknowledged that the security properties offered by DTLS/TLS/IKEv2-IPsec may not be needed for all deployment environments. DTLS, for example, offers an authentication and key exchange framework combined with channel security offering data-origin authentication, integrity protection, and (optionally) confidentiality protection.
The biggest optimization in terms of code size can be gained when looking at the complete protocol stack, not just cryptographic algorithms, but also software update mechanisms and configuration mechanisms, all of which have to work together. What may not have been investigated enough is the potential of performing cross-layer and cross-protocol optimization. We also need to think about how many protocols for security setup we want to have. Due to the desire to standardize generic building blocks the ability to optimize for specific deployment environments has be reduced.
Finally, it was noted that scalability of security protocols does not imply usability. This means that while smart object technology might currently be developed in large scale industrial environments, it should be equally usable for consumers who want to equip their home with just a few light bulbs.
For details about the investigated protocol implementations please consult the positions papers, such as TBD.
The discussion slot on authorization was meant to provide an idea of what kind of authorization decisions are common in smart object networks. Authorization is defined as 'an approval that is granted to a system entity to access a system resource' [RFC4949].
Authorization requires a view on the entire smart object lifecycle to determine when and how a device was added to a specific environment, what permissions have been granted for this device and how users are allowed to interact with it. On a high level there are two types of authorization schemes: First, there are those systems that utilize the authenticated identifier and match it against an access control lists. Second, there are trait-based authorization mechanisms that separate the authenticated identifier from the authorization rights and utilize roles and other attributes to determine whether to grant or deny access to a protected resource.
Richard Barnes looked at earlier communication security work and argued that the model that dominates the web today will not be enough for the smart object environment. Simply identifying users by their credentials and servers via certificates is not something that translates well to smart object networks because it binds all the capabilities to the credentials. The evolution in access control is moving in the direction of granting third parties certain capabilities, with OAuth [I-D.ietf-oauth-v2] being an example of a currently deployed technology. Access to a resource using OAuth can be done purely based on the capabilities rather than on the authenticated identifier.
Richard believed that it is important to separate authentication from authorization right from the beginning and to consider how users are supposed to interact with these devices to introduce them into their specific usage environment (and to provision them with credentials), and to manage access from different parties.
The relationship between the policy enforcement point and the policy decision point plays an important role regarding the standardization needs and what information needs to be conveyed between these two entities.
The authorization decisions can range from 'only devices with password can use the network' to very detailed application specification authorization policies. The decisions are likely to be more sophisticated in those use cases where ownership of devices may be transferred from one person to another one, group membership concepts may be needed, access rights may be revocable, and fine grained access rights have to be used. The authorization decisions may also take environmental factors into account, such as proximity of devices to each other, physical location of the device asking access, or the level of authentication. With the configuration of authorization policies the question arises who will create them and where are these policies stored. This immediately raises the question about how devices are identified, and who is allowed to create these policies.
Since smart objects may be limited in terms of code size, persistent storage, and Internet connectivity established authorization schemes may not be well suited for such devices. Obviously, delegating every authorization decision to another node in the network incurs a certain network overhead, while storing sophisticated access control policies directly on the smart object might be prohibitive because of the size of such a ruleset. Jan Janak presented one approach to distribute access control policies to smart objects within a single administrative domain.
In those cases where access control decisions are bound to the identifiers of devices and humans need to either create or verify these access control policies the choice of identifier matters for readability and accessibility purposes.
A single mechanism will likely not help with solving the wide range of authorization tasks. From the discussions it was not clear whether there is a need for new authorization mechanism or whether existing mechanisms can be re-used. Example of available protocol with built-in authorization mechanism are Kerberos, OAuth, EAP/AAA, attribute certificates, etc. In many cases, it is even conceivable that the authorization decisions are internal to the system, and that there is no need to standardize any additional authorization mechanisms or protocols at all. In fact many of the authentication and key exchange protocols have authorization mechanisms built-in.
When a smart object is to be introduced into an environment, like a home or an enterprise network, it usually has to be provisioned with some credentials. The credentials that are configured at the smart object as well at some entity in the network are often an implicit authorization to access the network or some other resource. The provisioned information at the smart object will include some identifier of the smart object, keying material, as well as other configuration information (e.g., specific servers it has to interact with).
Some devices will be pre-configured with default security codes or passwords, or will have per-device or per-user credentials pre-configured, when they are bought or when they arrive at the customer.
There is a limited set of solutions available (based on the available interface support). The solutions for imprinting vary between the enterprise and the consumer household scenarios. For large-scale deployments, the time needed to pair two objects further excludes other schemes which rely on manual steps.
Johannes Gilger dealt with the very basic ideas behind pairing schemes, including the kinds of out-of-band channels that could be employed and their limitations. Imprinting and pairing protocols usually establish a security association between two equal devices, such as Bluetooth-equipped cell phones. To deal with man-in-the-middle attacks during this phase various forms of additional verification checks exist. For example, devices with a display allow numeric values to be shown on each device and to let the user verify whether they match. For other devices that have a keypad a PIN may need to be entered by the user. Where and how a smart object is to be paired with other devices in the network can differ substantially from the specific use cases and the hardware capabilities of devices. Note that pairing is not necessarily something that is only done once during the lifetime of a device. Is group pairing something to be looked at? Or can any group key establishment be reduced to pair wise pairing with a central master device?
Cullen Jennings presented a model for smart objects based on a deployment used for IP phones. The idea was that the smart object "phones home", i.e., contacts a server offered by the manufacturer, when it is first switched on. This initial interaction can then be used for managing the device and provisioning keying material for further use. Proof of ownership could be done by identifying the user, who purchased the device. This is an approach that is increasingly being done today. Another option is some kind of secret information enclosed in the packaging.
For interface-constrained devices, the solution of using (semi)-public information in combination with an online manufacturer during imprinting seems like a possible solution. This solution approach created a lot of discussion among the participants, as it assumes an Internet connection and since the manufacturer effectively knows about the trust relationships of all the devices it sells.
A few questions did arise with such a model: Will there be third parties which have a business interest in providing something like key distribution and key escrow over the lifetime of a smart object? For constrained devices, will it always be possible to fall back to the existing security associations between device and manufacturer to create new associations? Obviously, we do not want the lifetime of a smart object limited by the manufacturer product support lifespan. What happens if a manufacturer goes bankrupt, changes their business scope, or gets bought by other companies? Will end customers not be able to use their smart objects in such cases anymore or will they not be able to re-sell any of their products because ownership cannot be transferred?
One important design decision is that the compromise of the manufacturer must not have any impact on the smart objects, which have already been imprinted to their new owners. Furthermore, the question of how to transfer of ownership, e.g. when reselling, a devices arise. While this may not be a requirement for all devices there goods of higher value might need a solution to be investigated.
Industrial users are comfortable when they have to rely on the manufacturer during the imprinting phase, but they want to be in exclusive control over their devices afterwards.
There are many classes of devices where we could assume online connectivity to be present, otherwise these devices would not make sense in the first place. But, there are also other devices which not to be imprinted completely offline.
Is it important to worry about security vulnerabilities, such as man-in-the-middle attacks, during the very short imprinting phase? Is it realistic that an adversary is in close proximity to mount an attack? Especially for devices with limited capabilities, such as lightbulbs, the concerns seemed rather small.
What happens if such a device is not enrolled by the customer but still connected in a "naked" state? How does this impact security and it is possible for an attacker to perform a 'drive-by' enrollment procedure of many devices? How should a device behave in this situation? The safest (for the user at least) would be to not allow the device to work with full functionality if it has not been enrolled. This concern is particularly applicable for cases where smart objects are sold with default passwords or passwords using semi-public information. Examples of those are Raspberry Pi's with Linux images that use a default password [RaspberryPi].
Designing for a smart object environment is about making an optimization decision that needs to take technical aspects, usage scenarios, security threats, and business models into account. Some design constraints may be considered fixed while others are flexible. Compromises will have need to be made but those should not only go at the expense of security functionality.
Designing a software update mechanism into the system is crucial to ensure that both functionality can be enhanced and that potential vulnerabilities can be fixed. Not only functionality can be assumed to be unchanged for several years. Also the important of security threats changes over time.
Provisioning mechanisms, easy configuration, and pairing mechanisms continue to be a key issue for many deployments, and further standards in this space would be useful.
New research and standardization on cryptographic algorithms (like encryption algorithms, hash functions, keyed message digests, public key crypto systems) that are tailored to smart object environments was not seen as worthwhile by the participants. A huge range of algorithms already exists and standardized authentication and key exchange protocols can be customized to use almost any selection of algorithms already today. The integration of various building blocks into a complete system was considered important and this document highlights a number of those areas. Searching for one and only smart object security architecture was seen as a hopeless journey, given the almost infinite variations in applications.
We would like to thank the participants and the paper authors of the position papers for their input.
Special thanks go to Thomas Heide Clausen and Ecole Polytechnique (Paris) for providing the venue and organization.
Finally, we would like to thank Rudolf van der Berg and Jari Arkko for their review comments.
This memo includes no request to IANA.
The whole document is a report on the Smart Object Security Workshop. The focus of this workshop was on security only; privacy was not part of the workshop agenda.
[RFC6574] | Tschofenig, H. and J. Arkko, "Report from the Smart Object Workshop", RFC 6574, April 2012. |
The workshop was organized by the following individuals:
We would like to thank the following workshop participants for attending the workshop: