<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Latch Engineering Blog on Medium]]></title>
        <description><![CDATA[Stories by Latch Engineering Blog on Medium]]></description>
        <link>https://medium.com/@LatchEngineering?source=rss-d4089cb44c7b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*Pu1DBeWBNwuI1GmjLkJZig.jpeg</url>
            <title>Stories by Latch Engineering Blog on Medium</title>
            <link>https://medium.com/@LatchEngineering?source=rss-d4089cb44c7b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 16:49:27 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@LatchEngineering/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Announcing the Launch of the Latch Bug Bounty Program]]></title>
            <link>https://medium.com/latch-engineering-blog/announcing-the-launch-of-the-latch-bug-bounty-program-67340878cadd?source=rss-d4089cb44c7b------2</link>
            <guid isPermaLink="false">https://medium.com/p/67340878cadd</guid>
            <category><![CDATA[access-control]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[latch]]></category>
            <dc:creator><![CDATA[Latch Engineering Blog]]></dc:creator>
            <pubDate>Mon, 08 Jun 2020 13:01:01 GMT</pubDate>
            <atom:updated>2020-06-08T13:01:01.455Z</atom:updated>
            <content:encoded><![CDATA[<p>Author: Michael Barrett, CISO</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GTnoF86TFseAlh7gaY23Ag.jpeg" /><figcaption>The Latch M</figcaption></figure><p>During my time as the Chief Information Security Officer (CISO) at PayPal, I had the interesting experience of launching one of the earliest commercial bug bounty programs. While Microsoft, Google, and Facebook had already beat me to the punch, I considered myself in pretty good company. Back then, bug bounty platform companies (that we now take for granted) didn’t exist such as Hacker One, SynAck, Bugcrowd, and others. We had to make up the entire thing more or less on the fly, taking us a few months to get the program up and running smoothly.</p><p>Implementing bug bounty (BB) programs are an extremely effective way of reducing exploitable vulnerabilities that exist in code. By the time a BB program is in steady state, almost all of the cruft will have already been found. Thanks to the existence of bug bounty platform companies, deployment is significantly easier today than they were a decade ago, which relied on email and spreadsheets — making it easy to inadvertently “lose” a bug report or two. Now, these programs are quite easy to spin up and easy to integrate into the development process. Like many, we use the Atlassian platform.</p><p>At Latch, we build smart access products, and it’s always been a core value that those products are appropriately secure, both physically and logically. As such, we have a strong vested interest in ensuring that we’ve smashed all of the code vulnerabilities that might exist in our firmware and software.</p><p>I am, therefore, very pleased to announce that we’ve recently launched our own bug bounty program.</p><p>We’re approaching this in phases as our environment is sufficiently complex, requiring a slower ramp-up period rather than attempting for 100% coverage. To guarantee that our users are not adversely impacted by our bug bounty program, we have set up an independent environment for the program, which is kept in sync with production but uses a separate database instance.</p><p>The first phase is focused on the web applications that are used to manage our fleet of locks and the back-end APIs that support them. I’d like to take this opportunity to publicly thank <a href="https://hackerone.com/jensec">Jensec</a>, who has done yeoman’s work in helping secure this part of our codebase. To this point, our program has been small and a private one within the HackerOne platform.</p><p>The second phase is focused on our mobile apps for residents as well as property managers. This is a little complex, as we have separate apps for these two constituents, as well as both iOS and Android versions. Given our decision to institute a separate back-end environment, we’ve also had to solve the problem of how to distribute these apps to security researchers, since we can’t distribute them via the classic app store model. When we enter this phase in a few weeks, we’ll significantly increase the number of HackerOne security researchers.</p><p>The final phase of our bug bounty program will be focused on our hardware. Latch has put a lot of effort into designing and building our products such that authorized users can unlock devices easily using different modalities. But, for users that are not authorized, we have gone to huge lengths to make sure that there are no discrete nor systemic vulnerabilities that can be exploited. And while we’re confident in our abilities, our intention with this last phase is simple: reward those who can prove us otherwise.</p><p>Once this phase is live, we will ship a test device to any security researcher who wants to test our hardware. In the unlikely scenario that a security researcher claims to have found an exploitable vulnerability, we will fly them to our office in New York City to demonstrate this vulnerability to us in practice. If the researcher is able to open a box, protected by one of our locks, they will find a <em>very</em> nice monetary reward inside.</p><p>This final phase is just a teaser for now. In due time, we’ll make a formal announcement of that phase of our bug bounty program and open it up for all to take their shot at fame and fortune!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=67340878cadd" width="1" height="1" alt=""><hr><p><a href="https://medium.com/latch-engineering-blog/announcing-the-launch-of-the-latch-bug-bounty-program-67340878cadd">Announcing the Launch of the Latch Bug Bounty Program</a> was originally published in <a href="https://medium.com/latch-engineering-blog">Latch Engineering Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Notes on Securing Unbonded BLE Interactions]]></title>
            <link>https://medium.com/latch-engineering-blog/notes-on-securing-unbonded-ble-interactions-567e857e6dd8?source=rss-d4089cb44c7b------2</link>
            <guid isPermaLink="false">https://medium.com/p/567e857e6dd8</guid>
            <category><![CDATA[firmware]]></category>
            <category><![CDATA[denial-of-service]]></category>
            <category><![CDATA[bluetooth]]></category>
            <category><![CDATA[latch]]></category>
            <category><![CDATA[engineering]]></category>
            <dc:creator><![CDATA[Latch Engineering Blog]]></dc:creator>
            <pubDate>Fri, 17 Jan 2020 20:46:01 GMT</pubDate>
            <atom:updated>2020-01-17T20:46:01.294Z</atom:updated>
            <content:encoded><![CDATA[<p>Authors: <a href="https://www.linkedin.com/in/adamincera/">Adam Incera</a> and <a href="https://www.linkedin.com/in/hari-nair/">Hari Nair</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u6PJomFfDZLdZlNWTpCUrw.png" /></figure><p>At Latch, we care very deeply about the unlock experience of access products. In a world that’s becoming increasingly mobile, our mobile phones are at the epicenter of our daily workflows. We believe that access shouldn’t be any different. Today, we can perform bank transactions, book flights and order ride shares all from our mobile devices. Shouldn’t our phones also be able to provide us access into our homes without having to carry a physical key? Since our inception, Latch has worked towards making this idea a reality. As we built our first product, Bluetooth Low Energy (BLE) became the medium that would allow us to do that. In this blog post, we’ll share some of the challenges and key learnings that we faced along the way.</p><p>Bluetooth Low Energy or Bluetooth 4.0 is a wireless communication standard that’s particularly useful for short distance communication for low power applications. The communication happens over short distance ultra high frequency (UHF) radio waves at 2.400 to 2.485 GHz. BLE primarily works in two different modes: <em>bonded</em> and <em>unbonded</em>.</p><h3>Bonded vs. Unbonded Connections</h3><p>Traditionally, BLE is used for P2P communication for personal applications. For most use cases, this means that two devices pair with each other and exchange data. “Pairing” enables these devices to have a layer of security for the data transfer. One of the devices in this system takes up the role of the client, while the other takes up the role of the server. The client and server go through a negotiation process where they exchange information, such as I/O capabilities and security keys, and decide upon a mutually acceptable configuration. Once this process is complete, the devices are considered to be paired. This is especially useful if the pairing happens between devices that are not part of a shared proprietary system. Once the devices are paired, the protocol secures the connection, allowing products from multiple vendors to work together cohesively.</p><p>Security keys that are exchanged over the encrypted channel can then be stored in each of the devices to be used for encrypting any future data exchange. This process is called “bonding.” However, there’s only a finite number of devices that can be bonded to a device. The devices operating in a bonded infrastructure also need to be paired, which increases the amount of time it takes to connect to a device.</p><p>As we designed our BLE infrastructure, this presented a problem. We wanted our access management systems to support a large number of users. Pursuing the bonding route would mean every user would have to pair with the lock and bond with it for them to be able to interact with it. This would make for a slow and poor user experience.</p><p>The alternative was to use “unbonded” connections. This enabled us to unlock faster and support a larger number of devices. However, now our device was discoverable and connectable by any BLE device capable of scanning for BLE advertisements, and the data transfer between the two devices was unencrypted. We solved the unsecure data transfer problem by devising a proprietary encryption scheme, but that’s a different story for another day.</p><p>The realization that any BLE device can connect to our hardware presented a larger security problem. Any arbitrary device with malicious intent could potentially connect to our lock and hold onto the connection. This would then restrict a valid user from being able to connect to the lock. We realized that this challenge was similar to a very popular problem in the realm of network security. A popular cyber attack is a similar approach where an attacker tries to overload a server by creating fake requests and restricting valid requests from being serviced. This form of an attack is called a Denial-of-Service attack. As a result, we decided to call our attack scenario a BLE Denial-of-Service (BDOS) attack.</p><p>In the case of network DOS attacks, there are no elegant solutions, but developers can take measures to mitigate the impact of such an attack. In networking, this would mean deploying strategies such as load balancing, blackholing, or sinkholing. However, those are strategies that require large-scale resources, while we were working with low power, resource-constrained embedded systems. We decided to go back to the drawing board and consider a fresh approach. We decided that our solution should focus on the following:</p><ol><li>Detection</li><li>Mitigation</li></ol><h3>Detecting a BDoS Attack</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XWhDo72cff-qAqaWgwruDA.jpeg" /><figcaption>Flowchart for detecting a BDoS attack</figcaption></figure><p>Once a client connects to a Latch device, the device waits for the client to send authentication data. In order to detect a BDoS attack, we track the number of BLE connections that fail without being authenticated. This can happen in two ways:</p><ol><li>Authentication is attempted, but the credentials are not valid.</li><li>Authentication is never attempted, and the connection times out.</li></ol><p>We’ll refer to either of these scenarios as a dropped connection. The device’s BDoS protections activate once it detects several dropped connections in a row. The dropped connection counter resets whenever a BLE client authenticates successfully. See the code snippet below for a sample implementation:</p><pre>if (bleConnectionTerminated == true)<br>{<br>    if (clientAuthenticated == true)<br>    {<br>        dosCounter = 0;<br>    }<br>    else<br>    {<br>        dosCounter++;<br>        if (dosCounter &gt; dosThreshold)<br>        {<br>            enterDosMode();<br>        }<br>    }<br>}</pre><h3>Mitigating a DoS Attack</h3><p>As we explored ways to mitigate such an attack, we decided that the solution needed to serve the following purposes:</p><ol><li>Stop the attacker from further tampering with the door.</li><li>Alert a genuine user that the door isn’t accessible because someone had tried tampering with the lock.</li></ol><p>The solution was to change advertising modes. BLE devices can advertise data in two different modes: <em>connectable</em> and <em>non-connectable</em>. While most BLE applications involve bidirectional communication between connected devices, a use case for one-way communication has emerged in the IoT space. These devices are called beacons.</p><p>A beacon doesn’t receive data from other devices or accept incoming connections, but simply broadcasts its advertising data. The advertising packets broadcast by a beacon contain data identifying the advertisement as non-connectable. This allows us to meet both of our criteria: by only allowing one-way communication, we prevent any further tampering while maintaining the ability to alert the user that something is amiss.</p><p>When an attack is detected, the device sets a flag denoting that it’s now in “BDoS Mode,” and alerts the BLE chip to begin non-connectable advertising. The Latch App detects this change in state, notifies the resident or property manager that someone might be tampering with the device, and suggests that they use a door code or NFC card to authenticate. The device remains in this state until a user successfully authenticates using either an NFC card or a passcode.</p><p>The following diagrams illustrate the advertising modes of a device in BDoS mode as opposed to a device in normal operation mode:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*l1-EdskP9xocKE_dMwkZKQ.png" /><figcaption>Normal Operation mode</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/999/1*LPGFuv6qkndzKosbCBSeoQ.png" /><figcaption>BDoS mode</figcaption></figure><p>In summary, our solution uses core bluetooth capabilities to detect when a malicious attacker attempts a BDoS attack on our devices. Once detected, our device shifts to a BDOS mode and notifies users about the attack, while also providing them with an avenue to successfully authenticate and unlock their door.</p><p>Latch has applied for patent protection for this implementation. We believe that as IoT products mature, unbonded BLE connections will continue to be more common than they are today, and developers can benefit from implementing something similar in their products. Taking this into account, we plan to freely license any resulting patent related to this technology upon issuance.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=567e857e6dd8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/latch-engineering-blog/notes-on-securing-unbonded-ble-interactions-567e857e6dd8">Notes on Securing Unbonded BLE Interactions</a> was originally published in <a href="https://medium.com/latch-engineering-blog">Latch Engineering Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>