Presented by

  • Lesley Rossouw

    Lesley Rossouw
    @lesleyr@aus.social

    Lesley is a computer engineer interested in security, OS research and privacy.

    She works as a Senior Operating Systems Engineer at the Trustworthy Systems research group where she maintained the seL4 Device Driver Framework and Acacia projects, and contributes to LionsOS and the seL4.

    (wip)

Abstract

We all love music, but we have complicated feelings about wires, and mostly negative feelings about Bluetooth. Luckily for us, WiFi audio exists to make things a little bit smoother. WiFi smart speakers have been popular for a long time now, but are increasingly distrusted due to surveillance capitalism and proprietary software which offers the user little control. These microphone-equipped, internet-connected devices are also a troubling threat vector for cyber attack.

LionsOS is an open-source high-performance, security-focused operating system for static systems built on top of the formally verified seL4 microkernel. LionsOS supports many small single-board computers and is ideal for building trustworthy IoT projects using features like hosting virtual machines and its (optional) MicroPython interpreter. We can pull together LionsOS systems easily using Acacia, a new system composition tool, opening up new possibilities to hobbyists.

I built a smart speaker on top of LionsOS for my own use, to replace Google smart speakers at home. It offers all the basic features you would expect, including physical controls and streaming directly from apps like Spotify. All code, schematics, and 3D print files are open-source for anybody to use. You can also use a LionsOS single-board computer to replace the brains of a proprietary smart speaker if you prefer!

In this tutorial we will walk through the process of making your own smart speaker on LionsOS using pre-made components (or you can use my design, it's open-source!). We will cover how you can create a new LionsOS system, pull in drivers, create Linux VMs for reuse of legacy software and debug your system. In effect, we will introduce the general skills required to build an IoT system on top of LionsOS.