Analysis of UEFI Threats and Vulnerabilities

Total Page:16

File Type:pdf, Size:1020Kb

Analysis of UEFI Threats and Vulnerabilities ___________________________________________________PROCEEDING OF THE 14TH CONFERENCE OF FRUCT ASSOCIATION Too Young to be Secure: Analysis of UEFI Threats and Vulnerabilities Vladimir Bashun, Anton Sergeev, Victor Minchenkov, Alexandr Yakovlev St. Petersburg State University of Aerospace Instrumentation St. Petersburg, Russia {bashun, slaros, Victor, yakovlev.a}@vu.spb.ru Abstract—Unified Extensible Firmware Interface (UEFI) loaded later in the boot process, like operating system or is a software interface between an operating system and hypervisor. And such infection shall be persistent, since platform firmware designed to replace a traditional BIOS. In malware written into boot firmware can be used to re-infect general, UEFI has many technical advantages over BIOS (pre- operating system even if it was re-installed. Since boot OS environment, boot and run-time services, CPU- firmware works before operating system kernel even loaded independent drivers etc.) including also powerful security mechanisms (e.g. secure boot, update, etc.). They are aimed to to memory or takes control, special security software like provide platform integrity, be root of trust of security antivirus can’t detect the invasion. architecture, control all stages of boot process until it pass Two factors raise attention to boot firmware: control to authenticated OS kernel. From the other side UEFI technology is the focus of many new potential threats and 1) Change of technologies in boot firmware. An exploits and presents new vulnerabilities that must be evolutionary change of boot firmware technologies occurs managed. The main goal of this research is to provide analysis right now. A new Unified Extensible Firmware Interface of the UEFI security issues, find the point and source of the (UEFI) takes place of old legacy BIOS that prevailed security problems and classify them. The paper describes the without significant changes for over 30 years. architectural and implementation troubles of UEFI which lead to threats, vulnerabilities and attacks. It also includes 2) In increased number of bootkit and rootkit attacks. extensive review of the previous research activities in this area Many companies that develop antivirus software expect and the results of our own experiments. As the result of the that such attacks shall be main trend in nearest future. work some recommendation about how to make this young technology more safe and secure are provided. New standard brings both new possibilities and new Keywords–UEFI Secure Boot, Boot firmware, Bootkit, threats. With deployment of new unified interface based on Rootkit. well-documented specification and common API and protocols gives malware developers an opportunity to infect a wide range of new systems. Rich possibilities of new I. INTRODUCTION interface give them additional ways to attack the platform. Secure Boot mechanism aimed to provide platform At the same time, these possibilities may be used by UEFI integrity, be root of trust of security architecture, control developers to protect system from malware. all stages of boot process until it pass control to authenticated OS kernel. The rest of the paper organized as follows. In section II a brief review of UEFI interface, its architecture and key The task of hardware initialization process and components, is presented. In section III, security issues of transition control to the operating system and system power UEFI technologies are analyzed, potential threat, attacks on on is accomplished by specialized system firmware, usually UEFI and recommendations for protection of UEFI BIOS. referred to as Basic Input-Output system (BIOS). The executable code (usually called boot firmware) is stored in II. UEFI TECHNOLOGY non-volatile memory of computer. A. Unified Extensible Firmware Interface BIOS place in architecture and in procedure of system start up is very important, because it is a root of trust for UEFI – unified extensible firmware interface – is an platform. BIOS accomplish full control of platform from interface between the operating system and firmware that computer power on until it passes control to operating control hardware. Its main role in the boot process is the system kernel. This special role of boot firmware makes it following [1]: potentially attractive target for attack. Unauthorized BIOS 1) Execute core root of trust (small core block of firmware update, injection of malicious code to BIOS can firmware that executes first and is capable of verifying the be used to compromise and take control over components integrity of other firmware components). ISSN 2305-7254 ___________________________________________________PROCEEDING OF THE 14TH CONFERENCE OF FRUCT ASSOCIATION 2) Initialize and test low-level hardware. specification (version 2.3.1) special attention is given to the 3) Load and Execute Additional Firmware Modules. security issues. The main component of UEFI security is 4) Select boot device, call Boot Loader and pass control Secure Boot module (chapter 27 of specification). to operating system kernel. The key components of UEFI Secure boot are: In addition, UEFI gives possibility to develop extensions (drivers and applications). 1) UEFI Image Signing. The main aspect of UEFI Secure Boot – ability to use cryptography (digital UEFI is developed by the UEFI Forum [2]. The forum signatures and hashes) for local authentication and developed several specifications, the most interesting for verification of UEFI images (drivers, applications). current research are the UEFI Specification [3] (the Specification describes platform public key infrastructure specification of standard itself, defines basic interfaces, based on PKI. UEFI keys are stored in Secure Boot. The prtocols, data structures, etc.) and PI Specification [4] following keys are define by specification (Fig. 1): (defines the boot process, UEFI boot stages and interfaces between them). The main stages of UEFI boot process and Platform Key (PK). This is a root key, created for key components are discussed in the next chapter. this exact platform. PK Key Owner (usually B. Platform Initialization hardware manufacturer) can modify all other keys. Key Exchange Key (KEK) – the owner of this key The UEFI boot process pass through several stages, (usually OS vendor) can update db/dbx keys. each stage has its own role and potentially may pose certain db – all allowed certificates and hashes are stored security risks: here (white list). – SEC. When an EFI system is powered on, the SEC dbx all forbidden certificates and hashes are (Security) phase of EFI is the first code that is stored here (black list). executed within EFI. This phase serves as a root of Microsoft stores its keys in (a) trust for the system and handles platform reset DB because it allows to run MS- signed efi-applications and also Certificate in PK can be events, among other things. (b) in KEK because it provides a self-signed PEI. The PEI (Pre-EFI Initialization) phase way to add new keys to DB Chain of Trust (platform-specific), which is responsible for initializing the CPU and main memory. It prepares Platform Key (PK) platform for next stages, which are written on C Public half of the key in firmware the language. It locates and executes PEIM modules. establishes a trust relationship between the DXE. The DXE (Driver eXecution Environment) platform owner and platform firmware phase is where the majority of the system Signature initialisation takes place. First, the DXE core Key Exchange Key (KEK) Public part of the key is enrolled into the produces a set of Boot and Runtime Services. Boot platform firmware establishing a trust Services provide drivers, applications and Boot relationship between the firmware and the Loaders that run within the EFI environment with a OS. It determines who is authorized to update the DB and DBX number of services such as allocating memory and Signature loading executable images. Boot services are Authorized Signature Database destroyed before pass control to OS kernel. (DB) Runtime Services provide specific services to code DB of authorized signing certificates and running within the EFI environment or within the digital signatures OS kernel once it has taken control of the system. Signature Once these services have been established, the UEFI DXE dispatcher discovers and executes DXE OS Loader drivers from the firmware volume, expansion ROMs on devices connected to the PCIe bus, and Run! connected disks. Signature BDS. The Boot Device Selection phase is responsible for discovering the possible boot OS Kernel devices, selecting one to boot from, loading the Boot Loader and executing it. C. UEFI Security Mechanisms Fig. 1. Hierarchy of UEFI Trusted Key Databases and “ideal” Chain of The boot firmware is potentially attractive target for Trust (a sequence of verification of certificates and signatures) for a secure attack and should face many threats. In the UEFI OS boot. ---------------------------------------------------------------------------- 17 ---------------------------------------------------------------------------- ___________________________________________________PROCEEDING OF THE 14TH CONFERENCE OF FRUCT ASSOCIATION 2) UEFI Authenticated Variable. Time-Based Malware PEIM modules. Authenticated Write Access used to update Authenticated Malware DXE and UEFI drivers and UEFI variables like keys db. Updated variables must be signed. applications (on DXE stage). PK cert verifies PK/KEK update. KEK verifies db/dbx Malware Boot Loader (on BDS stage). update. Certdb
Recommended publications
  • UEFI Porting Update for ARM Platforms
    UEFI Porting Update for ARM Platforms What did we do since July? presented by Leif Lindholm UEFI tech lead Linaro Enterprise Group UEFI Plugfest – May 2014 Agenda Introduction Linux Support EDK2 Development SCT Platforms Tree Future Work The UEFI Forum www.uefi.org 2 Introduction Last year, Grant Likely presented an overview of the types of things we were planning to do. Since then, we have done various things... The UEFI Forum www.uefi.org 3 Linux Support The UEFI Forum www.uefi.org 4 Linux Support The big topic since the last Linaro Connect event has been Linux support: Runtime Services UEFI stub loader Co-existence of ACPI/FDT The UEFI Forum www.uefi.org 5 Runtime Services Runtime services support for both 32-bit and 64-bit ARM Not yet upstream, but aiming for Linux kernel v3.16 This included reworking of common code, since some functionality was already duplicated between x86/ia64 Main purpose is enabling GetVariable()/SetVariable() Enables bootloader installer to add boot entries, and update bootorder, from within Linux The UEFI Forum www.uefi.org 6 Linux UEFI stub loader The “stub loader” is the mechanism by which the Linux kernel can be loaded directly from UEFI, as a UEFI application Becoming the default mechanism on x86(/x64) platforms. Enables the use of more light-weight bootloaders, like gummiboot or rEFInd Not yet upstream, but aiming for 3.16 Majority of code shared between arm/arm64, and a fair bit shared with x86 The UEFI Forum www.uefi.org 7 ACPI vs. FDT A slightly contentious issue with existing ARM Linux developers
    [Show full text]
  • Linux Kernel Parameters
    LINUX KERNEL PARAMETERS LINUX KERNEL PARAMETERS Dip your toe into the mysterious heart of your Linux machine, with Andrew Conway and the magic of Linux kernel parameters. he dark days when new computer hardware should test it using a venerable utility called often required compiling your own kernel memtest86+. Many distros include it as an option at Tare now firmly in Linux’s past (though those the boot prompt, or you can put a distro such as were fun days). But the fact that Linux – meaning GPartedLive on a USB stick and select the the kernel itself – is free software means that you can memtest86+ option. The test will tell you if you’ve got still delve deep into its innards and tweak it to your bad memory and exactly where it is bad. In our case, heart’s content. the bad patch was reported as 2056.0MB to In an ideal world, the user would never need to think 2176.0MB. The solution was to restart the laptop, and about the kernel, but there are cases where it’s useful. when the bootloader began, switch to its command In fact, it becomes a line and set the necessity when memmap kernel hardware is faulty, “In an ideal world the user would parameter with such as with bad never need to think about the memmap=256M$2048M memory, or if it is This instructs the shipped with buggy kernel, but sometimes we have to.” kernel not to use the firmware that tells lies 256MB of memory about capabilities such as CPU speed or temperature.
    [Show full text]
  • Yocto Project Development Manual [ from the Yocto Project Website
    Scott Rifenbark, Intel Corporation <[email protected]> by Scott Rifenbark Copyright © 2010-2014 Linux Foundation Permission is granted to copy, distribute and/or modify this document under the terms of the Creative Commons Attribution-Share Alike 2.0 UK: England & Wales [http://creativecommons.org/licenses/by-sa/2.0/uk/] as published by Creative Commons. Note For the latest version of this manual associated with this Yocto Project release, see the Yocto Project Development Manual [http://www.yoctoproject.org/docs/1.7/dev-manual/dev-manual.html] from the Yocto Project website. Table of Contents 1. The Yocto Project Development Manual .................................................................................. 1 1.1. Introduction ................................................................................................................. 1 1.2. What This Manual Provides .......................................................................................... 1 1.3. What this Manual Does Not Provide ............................................................................. 1 1.4. Other Information ........................................................................................................ 2 2. Getting Started with the Yocto Project .................................................................................... 4 2.1. Introducing the Yocto Project ....................................................................................... 4 2.2. Getting Set Up ...........................................................................................................
    [Show full text]
  • Systemd-AFV.Pdf
    Facultade de Informática ADMINISTRACIÓN DE SISTEMAS OPERATIVOS GRADO EN INGENIERÍA INFORMÁTICA MENCIÓN EN TECNOLOGÍAS DE LA INFORMACIÓN SYSTEMD Nombre del grupo: AFV Estudiante 1: Sara Fernández Martínez email 1: [email protected] Estudiante 2: Andrés Fernández Varela email 2: [email protected] Estudiante 3: Javier Taboada Núñez email 3: [email protected] Estudiante 4: Alejandro José Fernández Esmorís email 4: [email protected] Estudiante 5: Luis Pita Romero email 5: [email protected] A Coruña, mayo de 2021. Índice general 1 Introducción 1 1.1 ¿Qué es un sistema init? ................................... 1 1.2 Necesidad de una alternativa ................................. 1 2 ¿Qué es systemd? 2 2.1 Un poco de historia ...................................... 2 3 Units 5 4 Compatibilidad de systemd con SysV 6 5 Utilities 7 6 Systemctl 12 7 Systemd-boot: una alternativa a GRUB 15 8 Ventajas y Desventajas de Systemd 16 8.1 Ventajas ............................................ 16 8.1.1 Principales ventajas ................................. 16 8.1.2 Más en profundidad ................................. 16 8.2 Desventajas .......................................... 18 8.2.1 Principales desventajas ................................ 18 8.2.2 Más en profundidad ................................. 18 9 Conclusiones 20 Bibliografía 21 i Índice de figuras 2.1 Ejemplo ejecución machinectl shell. ............................. 3 2.2 Ejemplo ejecución systemd-analyze. ............................. 3 2.3 Ejemplo ejecución systemd-analyze-blame.
    [Show full text]
  • Blueprint Plans
    Universal Bootloader Das U-Boot Udo Seidel Agenda ● Introduction ● High level ● Digging deeper ● Take home About me ● Teacher of mathematics and physics ● PhD in experimental physics ● Started with Linux/Open Source in 1996 ● With Amadeus since 2006 ● Before: – Linux/UNIX trainer – Solution Engineer in HPC and CAx environment ● Now: Architecture & Technical Governance About boot loader ● Linux Loader ● Grand Unified Boot loader ● UEFI ● Systemd-boot aka Gummiboot ● ... Why? ● Non-x86 ● Hardware constraints ● Hardware/board specifics ● Why not? ;-) Project summary ● Initial version: 1999 (?) ● License: GPLv2 ● Supported platforms: 12 (x86, MIPS, ARM, ...) ● Releases: – Every 2 month – YYYY.MM naming scheme History ● 8xxROM for PowerPC ● New name in 2000: PPCBoot – Move to Sourceforge – 8xxROM 0.3.0 → PPCBoot 1.2 ● Again new name in 2002 – New direction – PPCBoot 2.0.0 → U-Boot 0.1.0 High level overview Usage options ● Boot loader – Single – Staged ● Boot loader & BIOS Golden design rules I ● Keep it small ● Keep it fast ● Keep it simple ● Keep it portable ● Keep it configurable Golden design rules II ● Keep it debuggable ● Keep it usable ● Keep it maintainable ● Keep it beautiful ● Keep it open Source code structure Interaction ● Command line interpreter HUSH ● Bourne shell like ● Based on busybox => version U-Boot 2017.07-00363-gf19955a014 (Jul 22 2017 - 10:29:14 +0200) gcc (GCC) 7.2.1 20170915 (Red Hat 7.2.1-2) GNU ld version 2.27-24.fc26 => help ? - alias for 'help' base - print or set address offset bdinfo - print Board Info structure boot - boot default, i.e., run 'bootcmd' bootd - boot default, i.e., run 'bootcmd' ... usb - USB sub-system usbboot - boot from USB device version - print monitor, compiler and linker version zboot - Boot bzImage => Kernel ● Physical location on disk ● Filesystem „location“ – FAT – ExtFS – CramFS – JFFS2 – ..
    [Show full text]
  • Bitbake Problems
    Richard Purdie, Linux Foundation <[email protected]> by Richard Purdie Copyright © 2010-2015 Linux Foundation Permission is granted to copy, distribute and/or modify this document under the terms of the Creative Commons Attribution-Share Alike 2.0 UK: England & Wales [http://creativecommons.org/licenses/by-sa/2.0/uk/] as published by Creative Commons. Note For the latest version of this manual associated with this Yocto Project release, see the Yocto Project Reference Manual [http://www.yoctoproject.org/docs/1.7.2/ref-manual/ref-manual.html] from the Yocto Project website. Table of Contents 1. Introduction ............................................................................................................................ 1 1.1. Introduction ................................................................................................................. 1 1.2. Documentation Overview ............................................................................................. 1 1.3. System Requirements .................................................................................................. 2 1.3.1. Supported Linux Distributions ........................................................................... 2 1.3.2. Required Packages for the Host Development System ....................................... 3 1.3.3. Required Git, tar, and Python Versions .............................................................. 5 1.4. Obtaining the Yocto Project .........................................................................................
    [Show full text]
  • Embedded Linux Conference Europe 2013
    Embedded Linux Conference Europe 2013 Sascha Hauer <[email protected]> Slide 1 - © Pengutronix - http://www.pengutronix.de - 26.10.2013 Agenda ● Bootloader Specification ● Barebox infrastructure ● Devicetrees in barebox ● Multiimage ● Goodies Slide 2 - © Pengutronix - http://www.pengutronix.de - 26.10.2013 Current Arm Situation Bootloader Kernel Root FS Slide 3 - © Pengutronix - http://www.pengutronix.de - 26.10.2013 Current ARM distribution situation Freescale i.MX53qsb OMAP4 PandaBoard OMAP3 BeagleBoard Toshiba AC100 Slide 4 - © Pengutronix - http://www.pengutronix.de - 26.10.2013 Current ARM distribution situation Intel iop32x Intel ixp4xx Marvell Kirkwood Marvell Orion5x Slide 5 - © Pengutronix - http://www.pengutronix.de - 26.10.2013 Current ARM distribution situation Trimslice OMAP3 BeagleBoard xM OMAP4 PandaBoard Calxeda Highbank Slide 6 - © Pengutronix - http://www.pengutronix.de - 26.10.2013 Current ARM distribution situation Always possible to manually install a distribution on a board. Many instructions / Howtos exist for each board / Distribution combination BUT Distributions do not have general ARM support, they have support for selected ARM based boards Slide 7 - © Pengutronix - http://www.pengutronix.de - 26.10.2013 Current ARM distribution situation Slide 8 - © Pengutronix - http://www.pengutronix.de - 26.10.2013 Current ARM distribution situation No board independent way to install a kernel! Usually only a single Kernel can be installed Images are not portable between boards Makes Kernel updates risky Slide 9 - © Pengutronix - http://www.pengutronix.de - 26.10.2013 Current ARM distribution situation Slide 10 - © Pengutronix - http://www.pengutronix.de - 26.10.2013 Bootloader Specification Fills the gap between bootloader and Kernel BootLoaderSpec Slide 11 - © Pengutronix - http://www.pengutronix.de - 26.10.2013 Bootloader Specification: TL;DR http://www.freedesktop.org/wiki/Specifications/BootLoaderSpec/ „TL;DR: Currently there's little cooperation between multiple distributions in dual-boot (or triple, ..
    [Show full text]
  • CYBERSECURITY When Will You Be Hacked?
    SUFFOLK ACADEMY OF LAW The Educational Arm of the Suffolk County Bar Association 560 Wheeler Road, Hauppauge, NY 11788 (631) 234-5588 CYBERSECURITY When Will You Be Hacked? FACULTY Victor John Yannacone, Jr., Esq. April 26, 2017 Suffolk County Bar Center, NY Cybersecurity Part I 12 May 2017 COURSE MATERIALS 1. A cybersecurity primer 3 – 1.1. Cybersecurity practices for law firms 5 – 1.2. Cybersecurity and the future of law firms 11 – 2. Information Security 14 – 2.1. An information security policy 33 – 2.2. Data Privacy & Cloud Computing 39 – 2.3. Encryption 47 – 3. Computer security 51 – 3.1. NIST Cybersecurity Framework 77 – 4. Cybersecurity chain of trust; third party vendors 113 – 5. Ransomware 117 – 5.1. Exploit kits 132 – 6. Botnets 137 – 7. BIOS 139 – 7.1. Universal Extensible Firmware Interface (UEFI) 154– 8. Operating Systems 172 – 8.1. Microsoft Windows 197 – 8.2. macOS 236– 8.3. Open source operating system comparison 263 – 9. Firmware 273 – 10. Endpoint Security Buyers Guide 278 – 11. Glossaries & Acronym Dictionaries 11.1. Common Computer Abbreviations 282 – 11.2. BABEL 285 – 11.3. Information Technology Acronymns 291 – 11.4. Glossary of Operating System Terms 372 – 2 Cyber Security Primer Network outages, hacking, computer viruses, and similar incidents affect our lives in ways that range from inconvenient to life-threatening. As the number of mobile users, digital applications, and data networks increase, so do the opportunities for exploitation. Cyber security, also referred to as information technology security, focuses on protecting computers, networks, programs, and data from unintended or unauthorized access, change, or destruction.
    [Show full text]
  • Android-IA Scalability Features to Support a Single Build Target
    Android-IA Scalability Andrew Boie Jianxun “Chang” Zhang Daniel Leung Features To Charlie Johnson Matt Gumbel Support A Andy Ross Single Build Target Agenda • 01.org – Who We Are • Problem statement • Automatic module loading with ueventd • Flexible installer • Ethernet connectivity • Scalable HALs • EFI & secure boot Android-IA on 01.org - Who We Are • https://01.org/android-ia/ • Part of the larger 01.org website maintained by Intel Open Source Technology Center • Independent Android community site dedicated to driving Android support and innovation on Intel Architecture • Binaries and source code available – Code for all the topics covered today is/will be available online • Ultimate objective of most of our IA enabling and innovation is upstream inclusion in Android Open Source Project (AOSP) • Join our mailing list! Single Build Target Objective • Run Android at some baseline level of functionality on multiple devices with a single binary installation image • Ongoing process – every bit helps even if we can’t do it all Advantages • Reduce the number of hard-coded parameters in the Android board configuration files • Support many off-the-shelf devices, including ones we don’t know about • Reduce bring-up time on new platforms • Target a class of devices instead of a specific device • Lowers expertise required to bring up Android on a system Scalability May Not Be For Everyone • A single image may make it more difficult to optimize for a specific device without breaking something else • Requires testing on all devices with any change
    [Show full text]
  • Copyrighted Material
    Index COPYRIGHTED MATERIAL Index [ ] (brackets) in file naming, 180 adding, 348–350 ` (backtick) character, 21 password setting, 350–351 | (pipe) character, 19–20 ACL (access control list), 205 ~ (tilde) character in commands, 6 AD (Active Directory), 357–358 / (root) directory, 218 addresses, network, 414–415 * (asterisk) in file naming, 179, 180 base-10 numbers, 416 \ (backward slash) in file naming, 179 broadcasts, 419–420 - (dash) in file naming, 178 DHCP and, 415 . (dot) in file naming, 178 IPv4, 416 / (forward slash) in file naming, 179 IPv6, 416–417 ? (question mark) in file naming, 179, link-local, 417 180 MAC, 415 ~ (tilde) in file naming, 178 managing, 415–316, 415–417 _ (underscore) in file naming, 178 network mask, 417–419 “ (quotation mark) in file naming, 179 aliases, 459–460 alien utility, 75–77 answers to questions, 576–612 A apt-cache, 67 Accelerated-X, 281 apt-get, 68–71 accessibility, X archiving files, 187 display, 312–314 cpio utility, 191–194 keyboard, 310–312 dd utility, 194–195 mouse, 310–312 tar utility, 188–191 AccessX utility, keyboard, 310–312 zip files, 188 accounts assistive technologies in X, 314 chage, 354–355 at, 396–398 configuration files, 355–357 attackers, 525 deleting, 358–359 automated tasks groups, 345–346 at, 396–398 network account databases, 357–358 cron, 389 records, viewing, 362–364 anacron, 394–396 usermod, 352–353 cron jobs, 389 usernames, 345 creating, 390–391 users, 344–345 user cron jobs, 391–393 616 background processes – command completion boot process B kernel ring buffer, 247 background
    [Show full text]
  • UEFI Unified Extensible Firmware Interface UEFI
    UEFI Unified Extensible Firmware Interface - UEFI - OSP 2015 UEFI Rene Brothuhn Seite: 1 UEFI UEFI - Unified Extensible Firmware Interface: "Software zum starten des Rechners und des Betriebssystems" Aussprache: wie "Unify" ohne "n", oft auch nur kurz EFI UEFI ist eine erweiterbare Firmware zum starten des Rechners und ist der Nachfolger des BIOS. Alle modernen Rechner (besonders 64Bit) sind damit ausgestattet. Ursprüngliche Entwicklung von Intel als Ersatz für BIOS, heute spezifiziert durch das "Unified EFI Forum" (www.uefi.org). OSP 2015 UEFI Rene Brothuhn Seite: 2 BIOS Aufgaben des BIOS (grob): Hardware des Rechners soweit initialisieren, sodass ein Bootloader gestartet werden kann, der dann das Betriebssystem startet. Initialisieren der Hardware: ● Selbsttest (CPU, RAM, ...) ● Initialisierung der wichtigsten Eingabegeräte (Tastatur, Maus) ● Initialisierung der Grafikkarte ● Initialisierung von Datenträgern zum Booten (HDD, CD, ...) ● Laden des Bootsektors OSP 2015 UEFI Rene Brothuhn Seite: 3 BIOS Zum starten des Betriebssystems wird der erste Datenblock eines Boot- Mediums (HDD, CD, ...) geladen und der darin enthaltene Bootcode (Bootloader) gestartet. Der Bootcode kann dann das Betriebssystem starten, einen Bootmanager anzeigen oder andere Dinge enthalten (z.B. auch einen Virus). Bootsektor: ● erster Sektor auf der Festplatte ● bei PCs üblicherweise der "Master Boot Record" (MBR) ● hat eine Gröûe von 512 Byte ● beinhaltet die Partitionstabelle und den Bootcode zum starten des Betriebssystems ● für den Bootcode stehen nur 440 Byte
    [Show full text]
  • Take Control of Your PC with UEFI Secure Boot
    Take Control of your PC with UEFI Secure Boot Greig Paul James Irvine University of Strathclyde University of Strathclyde Department of Electronic Department of Electronic & Electrical Engineering & Electrical Engineering Glasgow, United Kingdom Glasgow, United Kingdom [email protected] [email protected] Abstract—UEFI secure boot is often regarded as a nuisance for Linux users, but you can use it to protect your system by taking control of it. Learn how to do this, sign your own bootloader, and Platform Key (PK) protect your whole system with full disk encryption (including the kernel). I. INTRODUCTION Key Exchange Key (KEK) UEFI (Unified Extensible Firmware Interface) is the open, multi-vendor replacement for the aging BIOS standard, which first appeared in IBM computers in 1976. The UEFI standard db (allow) is extensive, covering the full boot architecture. This article focuses on a single useful but typically overlooked feature of UEFI Secure Boot. Often maligned, you’ve probably only encountered UEFI dbx (deny) secure boot when you disabled it during initial setup of your computer. Indeed, the introduction of secure boot was mired with controversy over Microsoft (an operating system vendor) Fig. 1: Hierarchy of secure boot keys being in charge of signing third party operating system code which would boot under a secure boot environment. In this article, we explore the basics of secure boot, and A. UEFI Key Overview how to take control of it. We’ll look at how to install your own keys, and sign your own binaries with these keys. We’ll The four main EFI variables used for secure boot are shown also show how you can build a single standalone GRUB EFI in Figure 1.
    [Show full text]