Global training solutions for engineers creating the world's electronics products

Practical Embedded Linux Security ONLINE


Standard Level - 5 sessions (6 hours per session)


PLEASE NOTE: This is a LIVE INSTRUCTOR-LED training event delivered ONLINE.

It covers the same scope and content as a scheduled face-to face class and delivers comparable learning outcomes.



As a rich operating system environment, Linux provides standard tools to implement robust, and auditable security
policies together with many security hardening options.

This course covers security topics and technologies widely used to help secure Embedded Linux systems. 

Attendees will learn how teams can manage their security as a top-down process using a secure development lifecycle methodology. 

The Yocto build system is used to illustrate how security choices (compiler options, container settings, access control models, etc.) can be implemented at a distribution level. 

Linux is also a rich environment for adversaries who are likely to invest time to compromise an embedded Linux target, in order to establish a versatile and persistent presence. To this end the course will also help teams identify and manage common vulnerabilities and exposures (CVEs) through the use of well-known testing and vulnerability assessment tools. 

The course also investigates platform security features such as secure boot and trusted execution environments (TEEs) using a QEMU emulator. 

The practical side of the training is based around carefully designed exercises, investigating security features and issues for a real embedded system, to reinforce and challenge the extent of learning. These comprise approximately 50% of class time.

If you have specific security application requirements, please contact the Doulos team to discuss your options.

Who should attend?

Embedded Linux developers, architects, testers working on projects which need to be secure.

Practical Embedded Linux Security Onlineis aimed at electronic hardware, software and system-on-chip engineers who need to gain a working knowledge of the software and operating system security issues affecting Linux based embedded systems.

Please note: this is not a course on bare metal security issues affecting microcontrollers. Delegates wishing to learn more about that topic are recommended to take the Doulos Embedded System Security for C/C++ Developers Online course.

What will you learn?
  • How to evaluate security tools and frameworks on a configurable embedded Linux system using Yocto
  • How to apply the principles of process isolation using lightweight LXC containers
  • Access control and security policy implementations using an LSM
  • Cryptography principles applied to secure network communications, filesystems and the platform
  • How to use Linux kernel security services and security configurations
  • Secure coding principles and common vulnerabilities
  • How to use a Secure Development Lifecycle to manage a secure project
Pre-requisites

Delegates should be familiar with and have some experience of working with embedded Linux systems, e.g. completion of Developing with Embedded Linux Online training or equivalent working knowledge

The Linux distribution used in the practical exercises has been built using the Yocto Project build system. There are no advanced Yocto configuration tasks required in these and the core concepts will be introduced during the training. A basic understanding of how the Yocto Project is used to build a Linux distribution is preferred. The short instructions found in the Yocto Project Quick Build online documentation are sufficient. 

Delegates should also have knowledge of the C or C++ programming language and embedded system architecture. In particular a basic level of familiarity with functions, variables, data types, operators, and statements.
The Doulos
C Programming for Embedded Systems Online courses provides appropriate preparation for engineers who lack this experience.

Please contact Doulos directly to discuss and assess your specific experience against the pre-requisites.

Training materials

Doulos training materials are renowned for being the most comprehensive and user-friendly available. Their style, content and coverage are unique in the Embedded Systems training world and have made them sought after resources in their own right. The materials include:

  • Fully indexed class notes creating a complete reference manual
  • A downloadable VM image containing the practical exercises and solutions as well as a fully configurable, Yocto based distribution for a QEMU emulator
Structure and Content

Introduction

Security and trust  • Attack model - threats, vulnerabilities, and exploits •  CVEs and CWEs • In the news
Practicals: Look at the CVEs found in a Yocto build system with cve-check enabled. Find the severity of the vulnerabilities flagged as "unpatched".


Linux Security

Filesystem Security  • Privileges  • Capabilities
Practicals: Explore the impact of the GTFOBins binaries when associated with elevated privileges or capabilities. Look at how access control lists can further limit access to files.


Code Vulnerability

Loading an ELF file into memory  • Working with the stack • Dynamically linked libraries  • Top CWEs 2020 (buffer overflow, command-line injection, integer overflow)
Practicals: Sample code containing a standard memory vulnerability can be exploited to run arbitrary code. Explore the effects of GCC compiler security options. Verify that binaries can automatically be inspected for security compiler options with the checksec script provided in the Yocto meta-security layer.


Cryptography

Block and Stream ciphers  • Key exchange (DH, ECDH and RSA)  • Data integrity (Hashes and HMAC)  • Signatures & Certificates
Practicals: Perform the following tasks using OpenSSL. Create and test custom Diffie-Hellman parameters for a server. The Yocto build system includes recipes to build the crypodev kernel module


Kernel Security

Kernel vulnerabilities  • The Linux Self Protection Project  • Kernel hardening configurations
Practicals: Standard Linux distributions and the kernel self-protection project recommend a variety of security hardening configurations. Using tools from the Yocto meta-security layer, establish that it is possible to manage required secure configurations with-in the distributions build system.


Access Control Models and Mechanisms

Authentication, authorization and Access Control  • Access control models  • Security Policies • SELinux and SMACK
Practicals: The Yocto build system can be used to build a distribution with either SMACK or SELinux support. First, we will use a custom SMACK policy rule to limit access to a file. We next explore how certain SELinux policy rules can be tuned with Boolean values. Finally, we extend a targeted policy by building a custom SELinux policy to control accesses for a new application. 


Containers

Namespaces and Cgroups  • Characteristics of a container • The LXC tools
Practical: Creating and comparing the effectiveness of full containers and application containers, when isolating a vulnerable FTP server.


Platform Security

Secure & measured boot  • Trusted execution environments (Trustzone)  • OTA update frameworks • U-boot hardening configurations
Practicals: Looking at the OP-TEE build system, modify an existing TA to decrement a counter and run it on the QEMU emulator.


Filesystem Integrity and Updates

Linux Filesystem Integrity Checks - IMA, EVM  • dm-verity, fs-verity & dm-integrity  • dm-crypt, fscrypt  • OTA update frameworks
Practical: Contrasting the use of fscrypt and dm-crypt to encrypt data on a Linux filesystem.


Network Security

Network layers  • Firewalls  • TLS • VPNs
Practicals: A publicly, accessible, and un-patched FTP server has been found on the target. Modify the target's network settings to enable access to the service exclusively through a VPN.


Security Development

Risk and Security assessment • Threat modelling  • Coding Standards and code reviews  • Managing vulnerabilities 
Practicals: Use the CPP check static analysis tools to explore known non-compliant code from the CERT C coding standard. Use a threat modelling tool to help automate threat reports.


Testing & Monitoring

FIDS and NIDs  • Vulnerability scanners • Software Exploit frameworks •  Hardware/ side-channel attacks  • Fuzzing
Practicals: Identify software versions of services running on a target. Explore the use of exploit frameworks to test for security risks. Build and install testing and monitoring tools from the Yocto meta-security layer.

 

For on-site, team-based training, please contact Doulos about tailoring this course to suit your particular hardware and software environment.

Course Dates

1 Nov 2021 ONLINE EurAsia Enquire
15 Nov 2021 ONLINE Americas Enquire

Looking for team-based training, or other locations?

Complete an enquiry form and a Doulos representative will get back to you.

Enquiry FormPrice on request

Next dates for this course