Ubunutu 4

Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

Growing attention from bad actors

To make matters worse, the number and severity of security threats at the edge
are growing rapidly.

In the past, malicious actors have focused more on nding and exploiting
vulnerabilities on servers, laptops, and workstations than on IoT devices. But with
embedded devices becoming more important, proli c, and mass produced, security
researchers and hackers are increasingly turning their attention to the edge.

Cybersecurity leader Kaspersky reports that its honeypots – imitating vulnerable


IoT devices – were attacked approximately 1.5 billion times in the rst six months
of 2021. That gure is more than double the 639 million attacks seen in the back
half of 2020.4 As edge computing continues to mature, the rise in vulnerabilities
and hacking attempts will only accelerate.

Hardware integrity
While the security of IoT software is essential, it is also important to consider
the integrity of the edge hardware itself. As devices trend towards increased
computing power and reduced energy consumption, hardware security does not
always keep up, adding a further layer of risk.

Unlike data centre hardware, IoT devices in the eld can be physically accessed by
malicious actors. As such, everything from low-level mainboard components to
debugging interfaces and buses are viable targets, creating an assortment of new
security challenges.

Solution: strict con nement with MicroK8s


and Ubuntu Core
Despite all these challenges, there are solutions available that minimise the risks
involved in running Kubernetes at the edge.

What is MicroK8s?
MicroK8s is a lightweight, CNCF-certi ed, pure upstream Kubernetes distribution
designed not only for clouds and workstations, but also for IoT devices. Created
by Canonical, the company behind Ubuntu, MicroK8s is delivered as a snap – a
containerised software package that bundles Kubernetes together with all of its
dependencies.

Optimised for security, simplicity, and robustness, MicroK8s can be deployed


anywhere with a single command, o�ering the easiest path to enjoying the full
Kubernetes experience at the edge. Additionally, the low footprint of MicroK8s
makes it ideal for smaller, resource-constrained IoT devices. The distribution’s
low touch, minimal ops design aligns with IoT use cases where direct human
intervention with devices in the eld is impossible.

From a security perspective, MicroK8s includes self-healing, high-availability,


and automated OTA updates. These updates are fully transactional and roll back
on failure.

4 https://www.iottechnews.com/news/2021/sep/07/kaspersky-attacks-on-iot-devices-double-in-a-year/

4
Most importantly, being a snap, MicroK8s is isolated from underlying systems,
limiting its access to other system services and resources on an IoT device. To truly
address edge security concerns, MicroK8s version 1.25 takes this concept a step
further with strict con nement.

What is strict con nement?


Strict con nement is a snap con nement level that provides
What are snaps? complete isolation up to a minimal access level that is
always deemed safe. With strict con nement enabled, the
Snaps are a secure and scalable way to embed system ensures that MicroK8s and its container workloads
applications on Linux devices. A snap is a can only access les, system resources, and hardware for
software package containing one or more which access has been granted.
applications or services that are containerised
with all their dependencies, which can be By restricting Kubernetes to the absolutely necessary
installed using a single command. With snaps, permissions, strict con nement eliminates vulnerable
software updates are automatic and resilient. interactions both within the host device and externally,
Applications run fully isolated in their own greatly reducing the attack surface. And if MicroK8s were
sandbox, thus minimising security risks. to be hacked, strict con nement would prevent it from
compromising the rest of the device.
Snaps are hosted in the global Snap Store, an
application repository hosted and managed by With strict con nement, users can run sophisticated and
Canonical, and are free for anyone to download. otherwise high-risk IoT workloads in a safe way. The ability
While strict con nement requires the use of to layer applications together in a hardened environment
Ubuntu, snaps can be installed on any Linux without risk of device-wide intrusion enables a variety
distribution with snap support enabled. of unprecedented use cases, empowering businesses to
operate at the edge in entirely new ways.

How does strict con nement work?


To determine their permissions, strictly con ned snaps rely on resource access
requests known as interfaces. Interfaces are carefully chosen by a snap’s creator
to provide speci c access to a resource according to that snap’s requirements. For
instance, interfaces can provide access to cameras or serial ports.

Con nement and permissions are enforced by the Linux kernel security module
AppArmor, alongside other Linux security features. When strictly con ned
MicroK8s is installed, its metadata is examined and used to derive AppArmor
pro les, seccomp lters, device cgroup rules, and traditional permissions.
Together, these ensure total isolation for the Kubernetes runtime.

Naturally, some applications require access to critical system resources in order


to function, and so need to be exempt from con nement. To support these use
cases, MicroK8s features an addon system with veri ed and tested applications
that will run under strict con nement. Canonical is working to continuously
improve this ecosystem to provide support for all common use cases.

Perhaps the most important consequence of strict con nement being added to
MicroK8s is that it can now be used with Ubuntu Core.

5
What is Ubuntu Core?

Ubuntu Core is a lean, embedded version of Ubuntu created for the edge.
The main goal of Ubuntu Core is to secure the next generation of IoT devices,
and it achieves this through containerisation. Ubuntu Core itself and all
applications deployed on it are packaged as strictly con ned snaps.

This snap-based paradigm takes the bene ts of strict con nement detailed above
and proliferates them throughout the entire device. All applications are fully
isolated from each other and can only interact with the system through interfaces.
This approach is inherently secure and perfect for IoT devices.

Alongside application con nement, Ubuntu Core features transactional OTA


updates with self-healing, full disk encryption, secure boot, and an array of
additional capabilities that make the operating system ultra-secure straight out
of the box. Canonical supports Ubuntu Core long-term, delivering kernel patches
and bug xes continuously for 10 years. Each Ubuntu Core version is based on a
corresponding LTS release of Ubuntu.

Because all applications running on Ubuntu Core must be strictly con ned, it was
not previously possible to pair it with MicroK8s. Now, Ubuntu Core and MicroK8s
can be combined for a seamless path to secure Kubernetes at scale, optimised for
size, performance, and usability at the edge.

Use cases for strict con nement


We have discussed the technologies, but how do they work in practice?
Let’s explore the use cases.

Smart home
Let’s examine a hypothetical application of MicroK8s in a smart home. In this smart
home, the fridge acts as a hub controlling multiple smart devices in the house.
That hub is running Ubuntu Core with MicroK8s.

The workloads on the hub communicate with sensors and other devices around
the house. Critically, these devices must not be in uenced by outside updates that
could cause a malign threat later down the line. All updates must come from a
secure source.

6
One day, an update provides a new type of workload with a new MicroK8s pod
that connects to the TV. It locally stores the latest data coming from the TV on the
fridge database, on the Ubuntu Core le system.

With strict con nement, if the Microk8s pod ever encounters unvalidated or
unsafe data, it can still store it without risk. If it is malware, it cannot reach outside
of its MicroK8s sandbox or compromise any other part of the system.

In this way, strictly con ned MicroK8s lets device manufacturers and smart
home platform providers expand their o�erings and deliver the latest feature
updates with con dence that they will not be putting their customers’ homes
and data at risk.

Smart factory
Edge computing is central to the Industry 4.0 manufacturing revolution.
Interconnected IoT devices capture, share, and process data directly on the factory
oor, enabling smart factories to achieve a signi cant degree of autonomy.

Typically, industrial IoT devices have been limited to a single function, such as
a programmable logic controller (PLC) or an industrial gateway. Snaps enable
manufacturers to take the next step and split IoT devices into di�erent containers,
with multiple functions each sitting in their own snap.

Strict con nement keeps this snap-enabled, software-de ned strategy secure
by ensuring that the various functions on an industrial IoT device will only access
the appropriate, permitted resources and services. For example, take a user who
wants to run AI/ML workloads at the edge to predict machine failure based on
vibrations and enable proactive maintenance before it happens. By using Ubuntu
Core, the user can run these workloads in a snap on the same software-de ned
device that is already in use for monitoring the environment. For instance, the
device may further measure ambient temperature, luminosity and humidity levels
on the factory oor and share those with the IT department.

Without strict con nement, the sensors’ measurements may be exposed to the
AI/ML algorithm. This would result in unbalanced datasets leading to biased
predictions that could ultimately lead to machine downtime. With strictly con ned
MicroK8s, the AI/ML app would only “see” what is in its prede ned, sandboxed
environment, eliminating this risk.
7

You might also like