The RTOS Exploit Mitigation Blues Jos Wetzels · RTOS Mitigation Examples μArmor Background. What...

66

Transcript of The RTOS Exploit Mitigation Blues Jos Wetzels · RTOS Mitigation Examples μArmor Background. What...

Page 1: The RTOS Exploit Mitigation Blues Jos Wetzels · RTOS Mitigation Examples μArmor Background. What this talk is not about 4. ... Hard RT -> Missing deadline = system failure ... Rising
Page 2: The RTOS Exploit Mitigation Blues Jos Wetzels · RTOS Mitigation Examples μArmor Background. What this talk is not about 4. ... Hard RT -> Missing deadline = system failure ... Rising

IndependentSecurity Researcher

ICSIoTAutomotiveMedicalAccess ControlsNetworking & Firewalls

(Former)Security Researcher

Critical InfrastructureEmbedded BinSecHIDS / NIDS

www.midnightbluelabs.comsamvartaka.github.io

@s4mvartaka

Page 3: The RTOS Exploit Mitigation Blues Jos Wetzels · RTOS Mitigation Examples μArmor Background. What this talk is not about 4. ... Hard RT -> Missing deadline = system failure ... Rising

Quantitative Analysis

Embedded Mitigation Criteria

RTOS Mitigation Examples

μArmor

Background

Page 4: The RTOS Exploit Mitigation Blues Jos Wetzels · RTOS Mitigation Examples μArmor Background. What this talk is not about 4. ... Hard RT -> Missing deadline = system failure ... Rising

What this talk is not about

4

Page 5: The RTOS Exploit Mitigation Blues Jos Wetzels · RTOS Mitigation Examples μArmor Background. What this talk is not about 4. ... Hard RT -> Missing deadline = system failure ... Rising

What this talk is also not about

5

Page 6: The RTOS Exploit Mitigation Blues Jos Wetzels · RTOS Mitigation Examples μArmor Background. What this talk is not about 4. ... Hard RT -> Missing deadline = system failure ... Rising

What this talk is about

6

Page 7: The RTOS Exploit Mitigation Blues Jos Wetzels · RTOS Mitigation Examples μArmor Background. What this talk is not about 4. ... Hard RT -> Missing deadline = system failure ... Rising

▫ Guarantee Response within Time ConstraintsImportant in safety-critical sys.

▫ Predictability & Determinism > Speed

▫ Soft RT -> Usefulness of result degrades after deadline

▫ Hard RT -> Missing deadline = system failure

Page 8: The RTOS Exploit Mitigation Blues Jos Wetzels · RTOS Mitigation Examples μArmor Background. What this talk is not about 4. ... Hard RT -> Missing deadline = system failure ... Rising

▫ OS as collection of librariesLinked with application code into single address space image

▫ No loader, Syscallsimplemented as function callsSaves context-switching

Page 9: The RTOS Exploit Mitigation Blues Jos Wetzels · RTOS Mitigation Examples μArmor Background. What this talk is not about 4. ... Hard RT -> Missing deadline = system failure ... Rising

Rising Embedded RTOS Usage

Page 10: The RTOS Exploit Mitigation Blues Jos Wetzels · RTOS Mitigation Examples μArmor Background. What this talk is not about 4. ... Hard RT -> Missing deadline = system failure ... Rising

▫ Protocol Stacks Everywhere

Talk to gateway, other nodes, smartphones, integration with cloud, etc.

Page 11: The RTOS Exploit Mitigation Blues Jos Wetzels · RTOS Mitigation Examples μArmor Background. What this talk is not about 4. ... Hard RT -> Missing deadline = system failure ... Rising

▫ More processors, memory, peripherals

▫ Simple bare metal control loops & state machines not enough

▫ Hence rise of RTOS

1 33% 18% 13%

2-3 22% 24% 17%

4+ 11% 25% 32%

* 2017 Barr Group Embedded Systems Safety & Security Survey

Page 12: The RTOS Exploit Mitigation Blues Jos Wetzels · RTOS Mitigation Examples μArmor Background. What this talk is not about 4. ... Hard RT -> Missing deadline = system failure ... Rising
Page 13: The RTOS Exploit Mitigation Blues Jos Wetzels · RTOS Mitigation Examples μArmor Background. What this talk is not about 4. ... Hard RT -> Missing deadline = system failure ... Rising

* 2016 ICS Vulnerabilities Statistics, Kaspersky

Page 14: The RTOS Exploit Mitigation Blues Jos Wetzels · RTOS Mitigation Examples μArmor Background. What this talk is not about 4. ... Hard RT -> Missing deadline = system failure ... Rising

▫ Patching IssuesFragmented ResponsibilityLack of Secure UpdateAvailability / Safety

▫ Long Exposure Windows‘Forever Days’

▫ No Privilege SeparationFlat Memory Model

▫ Exploits Scale WellSingle protocol driver bug can affect billions of devices

Page 15: The RTOS Exploit Mitigation Blues Jos Wetzels · RTOS Mitigation Examples μArmor Background. What this talk is not about 4. ... Hard RT -> Missing deadline = system failure ... Rising

▫ Ideally use safe languages

▫ But unsafe continues to dominate

Despite old (Ada) and upcoming (Rust) embedded-suited langs

71%

22%

7%

PRIMARY EMBEDDED PROGRAMMING LANGUAGE

C C++ Other

* 2017 Barr Group Embedded Systems Safety & Security Survey

Page 16: The RTOS Exploit Mitigation Blues Jos Wetzels · RTOS Mitigation Examples μArmor Background. What this talk is not about 4. ... Hard RT -> Missing deadline = system failure ... Rising
Page 17: The RTOS Exploit Mitigation Blues Jos Wetzels · RTOS Mitigation Examples μArmor Background. What this talk is not about 4. ... Hard RT -> Missing deadline = system failure ... Rising

General Purpose ExploitationHas Been Getting Harder

2010 2016

Page 18: The RTOS Exploit Mitigation Blues Jos Wetzels · RTOS Mitigation Examples μArmor Background. What this talk is not about 4. ... Hard RT -> Missing deadline = system failure ... Rising

What About Embedded?

18

Page 19: The RTOS Exploit Mitigation Blues Jos Wetzels · RTOS Mitigation Examples μArmor Background. What this talk is not about 4. ... Hard RT -> Missing deadline = system failure ... Rising
Page 20: The RTOS Exploit Mitigation Blues Jos Wetzels · RTOS Mitigation Examples μArmor Background. What this talk is not about 4. ... Hard RT -> Missing deadline = system failure ... Rising

RTOS Exploit Examples

BroadPWN / CVE-2017- 9417

Broadcom WiFi Heap Buffer Overflow VxWorks NO

CVE-2017-0561 Broadcom WiFi Heap Buffer Overflow VxWorks NO

VxWorks DHCP / DNSVxWorks DHCP / DNS

Client & ServerHeap / Stack Buffer

OverflowVxWorks NO

CVE-2015-7599 VxWorks RPC Integer Overflow VxWorks NO

CVE-2010-3832Intel/Comneon

BasebandHeap Buffer Overflow ThreadX / Nucleus+ NO1

Qualcomm UMTS AUTN

Qualcomm Baseband Stack Buffer Overflow REX NO2

1 XMM6180 on iPhone4 has DEP, see ‘All Your Baseband Are Belong To Us’2 Newer Qualcomm chips run BLAST RTOS w. stack cookies / DEP / kernel-user separation, see ‘Baseband Exploitation in 2013’

Page 21: The RTOS Exploit Mitigation Blues Jos Wetzels · RTOS Mitigation Examples μArmor Background. What this talk is not about 4. ... Hard RT -> Missing deadline = system failure ... Rising
Page 22: The RTOS Exploit Mitigation Blues Jos Wetzels · RTOS Mitigation Examples μArmor Background. What this talk is not about 4. ... Hard RT -> Missing deadline = system failure ... Rising

▫ ESP / DEP / NX / W^XNon-exec. data memory

▫ ASLRAddress Space Layout Randomization

▫ Stack Canaries / SSPStack buffer overflow protection

Page 23: The RTOS Exploit Mitigation Blues Jos Wetzels · RTOS Mitigation Examples μArmor Background. What this talk is not about 4. ... Hard RT -> Missing deadline = system failure ... Rising

▫ Selected 45 Popular Embedded Oses

▫ High-end, Low-end, Linux/Windows/BSD-based, proprietary, etc.

▫ Evaluated Support ForMitigation Baseline

Optimistic Assesment

Page 24: The RTOS Exploit Mitigation Blues Jos Wetzels · RTOS Mitigation Examples μArmor Background. What this talk is not about 4. ... Hard RT -> Missing deadline = system failure ... Rising

0

10

20

30

40

50

60

70

80

90

100

All Oses Non-Mobile Non-Win/Lin/BSD Deeply Embedded

Mitigation Support

ESP ASLR Stack Canaries

Page 25: The RTOS Exploit Mitigation Blues Jos Wetzels · RTOS Mitigation Examples μArmor Background. What this talk is not about 4. ... Hard RT -> Missing deadline = system failure ... Rising

What’s Going On Here?

25

Page 26: The RTOS Exploit Mitigation Blues Jos Wetzels · RTOS Mitigation Examples μArmor Background. What this talk is not about 4. ... Hard RT -> Missing deadline = system failure ... Rising

Hardware & Software Dependencies

Page 27: The RTOS Exploit Mitigation Blues Jos Wetzels · RTOS Mitigation Examples μArmor Background. What this talk is not about 4. ... Hard RT -> Missing deadline = system failure ... Rising

0

10

20

30

40

50

60

70

80

90

100

All Oses Non-Mobile Non-Win/Lin/BSD Deeply Embedded

Software Dependency Support

Memory Protection Virtual Memory OS CSPRNG

Page 28: The RTOS Exploit Mitigation Blues Jos Wetzels · RTOS Mitigation Examples μArmor Background. What this talk is not about 4. ... Hard RT -> Missing deadline = system failure ... Rising

▫ Selected 78 Popular Embedded ‘Core Families’

▫ Evaluated for Hardware Dependency Support

Page 29: The RTOS Exploit Mitigation Blues Jos Wetzels · RTOS Mitigation Examples μArmor Background. What this talk is not about 4. ... Hard RT -> Missing deadline = system failure ... Rising

0

10

20

30

40

50

60

70

80

90

100

Hardware Dependency Support (VNA)

MPU MMU Hardware ESP

Page 30: The RTOS Exploit Mitigation Blues Jos Wetzels · RTOS Mitigation Examples μArmor Background. What this talk is not about 4. ... Hard RT -> Missing deadline = system failure ... Rising
Page 31: The RTOS Exploit Mitigation Blues Jos Wetzels · RTOS Mitigation Examples μArmor Background. What this talk is not about 4. ... Hard RT -> Missing deadline = system failure ... Rising

▫ Limited ResourcesOverhead influences adoption likelihood

▫ Availability RequirementsGuarantee high system uptime

▫ Real-Time ConflictsIssues with eg. virtual memory caching, page faults, etc.

Page 32: The RTOS Exploit Mitigation Blues Jos Wetzels · RTOS Mitigation Examples μArmor Background. What this talk is not about 4. ... Hard RT -> Missing deadline = system failure ... Rising

▫ Modern mitigations increasinglyuse advanced processor featureseg. SGX, MPX, CET, LBR, PMU

▫ Only for modern high-end CPUs

▫ Embedded HW diversity ->OS cannot assume support

Page 33: The RTOS Exploit Mitigation Blues Jos Wetzels · RTOS Mitigation Examples μArmor Background. What this talk is not about 4. ... Hard RT -> Missing deadline = system failure ... Rising

▫ Secure Randomness is OS Service!

▫ Hardware Diversity -> Little Entropy Source Omnipresence

▫ Low Entropy Environment- Little / predictable activity- “Boot-time Entropy Hole”- Can’t wait for entropy too long..

▫ Result: not-so-random NGs, bad workarounds*

* Wheel of Fortune – Jos Wetzels, 33C3, 2016

Page 34: The RTOS Exploit Mitigation Blues Jos Wetzels · RTOS Mitigation Examples μArmor Background. What this talk is not about 4. ... Hard RT -> Missing deadline = system failure ... Rising
Page 35: The RTOS Exploit Mitigation Blues Jos Wetzels · RTOS Mitigation Examples μArmor Background. What this talk is not about 4. ... Hard RT -> Missing deadline = system failure ... Rising

▫ Library based RTOSBased on Wind River Rocket

▫ OS Linux Foundation ProjectAimed at resource-constrained IoT

▫ Young (2016) but promisingInput from major chipmakers

Explicit focus on security

Page 36: The RTOS Exploit Mitigation Blues Jos Wetzels · RTOS Mitigation Examples μArmor Background. What this talk is not about 4. ... Hard RT -> Missing deadline = system failure ... Rising

▫ Based on Clang/GCC SSP

▫ Canary Failure -> System Error

▫ One master canary for entire address spaceGenerated once at system bootNo refreshing

▫ Generated using RNG APIImplementation depends on chosen random driver

Page 37: The RTOS Exploit Mitigation Blues Jos Wetzels · RTOS Mitigation Examples μArmor Background. What this talk is not about 4. ... Hard RT -> Missing deadline = system failure ... Rising

▫ RANDOM_MCUX_RNGANXP Kinetis K64F

▫ RANDOM_MCUX_TRNGNXP Kinetis KW40Z & KW41Z

▫ RANDOM_STM32_RNGSTM32 Boards

▫ RANDOM_ESP32_RNGESP32 Boards(requires Wi-Fi & Bluetooth enabled)

Page 38: The RTOS Exploit Mitigation Blues Jos Wetzels · RTOS Mitigation Examples μArmor Background. What this talk is not about 4. ... Hard RT -> Missing deadline = system failure ... Rising

52%

48%

TRNG Support

Yes No 0

10

20

30

40

50

60

70

80

90

100

TRNG Support Per Architecture

x86 ARM ARC NIOS II

TRNGs Among Zephyr 1.8 Supported Boards

Page 39: The RTOS Exploit Mitigation Blues Jos Wetzels · RTOS Mitigation Examples μArmor Background. What this talk is not about 4. ... Hard RT -> Missing deadline = system failure ... Rising

▫ X86_TSC_RANDOM_GENERATORUses x86 RDTSC

Canary 1st value drawn from PRNGlittle difference between bootruns

Infoleaks everywhere

▫ TIMER_RANDOM_GENERATORSuffers from similar issues

▫ Had contact with Zephyr team, plans to integrate OS CSPRNGMost likely NIST SP800-90A based

Page 40: The RTOS Exploit Mitigation Blues Jos Wetzels · RTOS Mitigation Examples μArmor Background. What this talk is not about 4. ... Hard RT -> Missing deadline = system failure ... Rising

▫ Under-development Google RTOSPushed to github w/o official statement in August 2016

▫ Seems intended for IoT to smartphones

▫ Based on Magenta microkernelDerived from LK (Little Kernel)Virtual Memory / MMU support

Kernel- / Userspace Separation

Page 41: The RTOS Exploit Mitigation Blues Jos Wetzels · RTOS Mitigation Examples μArmor Background. What this talk is not about 4. ... Hard RT -> Missing deadline = system failure ... Rising

▫ ESP / DEPx86 MMU-based DEP policies

▫ ASLRAll executables PIE by default

Randomization draws on OS CSPRNG

▫ Stack Canaries (GCC SSP Model)Single early-boot global canary

Canary generated using HW RNG APIStatic value fallback

Canary failure -> kernel panic

Page 42: The RTOS Exploit Mitigation Blues Jos Wetzels · RTOS Mitigation Examples μArmor Background. What this talk is not about 4. ... Hard RT -> Missing deadline = system failure ... Rising
Page 43: The RTOS Exploit Mitigation Blues Jos Wetzels · RTOS Mitigation Examples μArmor Background. What this talk is not about 4. ... Hard RT -> Missing deadline = system failure ... Rising

▫ Boot-Time Code Diversification

▫ MAVR: Ardupilot UAV system▫ AVRAND: AVR chip in Arduino Yun

▫ MAVR requires hardware modAdditional master processor + flash chip

▫ (Re)Randomize by re-flashingEvery N restarts or after crash

▫ Attacker can reduce device lifespan by forcing re-flash to exhaust program / erase cycles

* MAVR: Code Reuse Stealthy Attacks and Mitigation on Unmanned Aerial Vehicles – Habibi et al. (2015)

** AVRAND: A Software-Based Defense Against Code Reuse Attacks for AVR Embedded Devices – Pastrana et al. (2016)

Page 44: The RTOS Exploit Mitigation Blues Jos Wetzels · RTOS Mitigation Examples μArmor Background. What this talk is not about 4. ... Hard RT -> Missing deadline = system failure ... Rising
Page 45: The RTOS Exploit Mitigation Blues Jos Wetzels · RTOS Mitigation Examples μArmor Background. What this talk is not about 4. ... Hard RT -> Missing deadline = system failure ... Rising

▫ Low Resource PressureMax 5% Overhead*

▫ Hardware Agnostic

▫ Availability Preservation

▫ ‘Real-Time Friendly’

▫ Easy RTOS Integration* Microsoft BlueHat Prize Rules (2012),‘SoK: Eternal War in Memory’ – Szekeres et al. (2013)

Page 46: The RTOS Exploit Mitigation Blues Jos Wetzels · RTOS Mitigation Examples μArmor Background. What this talk is not about 4. ... Hard RT -> Missing deadline = system failure ... Rising

▫ Low Resource PressureUse lightweight crypto

▫ Entropy Gathering LimitationsRapidly available upon bootNo constant runtime polling

▫ Non-Domain Specific Entropy SourcesNo reliance on sensor values, accelerometers, etc.

Page 47: The RTOS Exploit Mitigation Blues Jos Wetzels · RTOS Mitigation Examples μArmor Background. What this talk is not about 4. ... Hard RT -> Missing deadline = system failure ... Rising

μ

Page 48: The RTOS Exploit Mitigation Blues Jos Wetzels · RTOS Mitigation Examples μArmor Background. What this talk is not about 4. ... Hard RT -> Missing deadline = system failure ... Rising

▫ Deeply Embedded Mitigation BaselineμESP + μScramble + μSSP + μRNG

▫ Target SystemsHarvard or VNA CPU w. HW ESPSingle-address space (RT)OS or bare metal

▫ Attacker ModelRemote (eg. WiFi, Bluetooth, RF) control-flow hijacking attacks

Page 49: The RTOS Exploit Mitigation Blues Jos Wetzels · RTOS Mitigation Examples μArmor Background. What this talk is not about 4. ... Hard RT -> Missing deadline = system failure ... Rising

Representative Platform

49

Page 50: The RTOS Exploit Mitigation Blues Jos Wetzels · RTOS Mitigation Examples μArmor Background. What this talk is not about 4. ... Hard RT -> Missing deadline = system failure ... Rising

▫ Use MPU to Enforce ESP

▫ Stack Grows Away From Data

▫ Limit Code-Reuse SurfacePrevent ret2bootloader style attacks

▫ ‘Lock Down’ MPU & SCBPrevent MPU disabling

Page 51: The RTOS Exploit Mitigation Blues Jos Wetzels · RTOS Mitigation Examples μArmor Background. What this talk is not about 4. ... Hard RT -> Missing deadline = system failure ... Rising

▫ Need Alternative for ASLR

▫ Software DiversificationWhen: Compilation, Boot, Runtime, Etc.What: Code, Data

▫ Hybrid Compile/Update SolutionIntegrated in firmware generation

Per-device diff firmware image

▫ BenefitsLimited OverheadNo virtual memory requiredWorks on source: platform independent

Page 52: The RTOS Exploit Mitigation Blues Jos Wetzels · RTOS Mitigation Examples μArmor Background. What this talk is not about 4. ... Hard RT -> Missing deadline = system failure ... Rising

▫ Code TransformationsFunction ReorderingDead Code InsertionRegister Preservation Reordering

▫ Fine-Grained RandomizationWrt. image baseWrt. function baseWrt. inter-function distanceOrder of register preservation code

▫ Decorrelation reduces infoleak & bruteforce impact

Page 53: The RTOS Exploit Mitigation Blues Jos Wetzels · RTOS Mitigation Examples μArmor Background. What this talk is not about 4. ... Hard RT -> Missing deadline = system failure ... Rising

push edxpush esipush edi

…pop edipop esipop edx

ret

….

….

push edipush edxpush esi

…pop esipop edxpop edi

retTRAPTRAP

….

….

Page 54: The RTOS Exploit Mitigation Blues Jos Wetzels · RTOS Mitigation Examples μArmor Background. What this talk is not about 4. ... Hard RT -> Missing deadline = system failure ... Rising

▫ Based on Zephyr SSP

▫ Master canary drawn from OS CSPRNG

▫ Modular violation handlerPassive

Fatal

Thread Terminate / Restart

System Terminate / Restart

Page 55: The RTOS Exploit Mitigation Blues Jos Wetzels · RTOS Mitigation Examples μArmor Background. What this talk is not about 4. ... Hard RT -> Missing deadline = system failure ... Rising

▫ Keccak-based OS CSPRNG128-bit security

25 byte internal state

1 algorithm for entropy gather & RNG

Integrated as Zephyr random driver

▫ Avoid Reseed PollingReseed Control linked to PRNG output

Page 56: The RTOS Exploit Mitigation Blues Jos Wetzels · RTOS Mitigation Examples μArmor Background. What this talk is not about 4. ... Hard RT -> Missing deadline = system failure ... Rising

▫ SRAM Startup Values (SUVs)Two stable statesConverge after initial instability

▫ Manufacturing DifferencesBiased cells -> PUFsRandom cells -> PRNGs

▫ Many BenefitsInstantly available at very early boot

Differs between devices & bootruns

SRAM omnipresent on MCUs* Power-Up SRAM State as an Identifying Fingerprint and Source of True Random Numbers – Holcomb et al. (2009)

Page 57: The RTOS Exploit Mitigation Blues Jos Wetzels · RTOS Mitigation Examples μArmor Background. What this talk is not about 4. ... Hard RT -> Missing deadline = system failure ... Rising

μ

Page 58: The RTOS Exploit Mitigation Blues Jos Wetzels · RTOS Mitigation Examples μArmor Background. What this talk is not about 4. ... Hard RT -> Missing deadline = system failure ... Rising

▫ MetricsCode Size, Data Size, Memory Usage, Runtime Overhead

▫ Evaluated AgainstIoT sample applications

TACLeBench suite

▫ OverheadCode Size ≤ 5%

Others ≤ 1%

Page 59: The RTOS Exploit Mitigation Blues Jos Wetzels · RTOS Mitigation Examples μArmor Background. What this talk is not about 4. ... Hard RT -> Missing deadline = system failure ... Rising

▫ Coverage Analysis1000 firmware variants per benchmark

Harvest ROP gadgets

Max avg. gadget survival rate: 10.15%

▫ Complicating Attacker FactorsPayload length

Firmware complexity

Fine-Grained Randomization

Page 60: The RTOS Exploit Mitigation Blues Jos Wetzels · RTOS Mitigation Examples μArmor Background. What this talk is not about 4. ... Hard RT -> Missing deadline = system failure ... Rising

▫ Keccak is well-analyzed

▫ Passive State Recovery AttacksReseed at least every 1GB of outputwell within 32GB bound*

▫ No ‘Boot Time Entropy Hole’All initial entropy instantly available

* Sponge-based pseudo-random number generators - Guido Bertoni et al. (2010)

Page 61: The RTOS Exploit Mitigation Blues Jos Wetzels · RTOS Mitigation Examples μArmor Background. What this talk is not about 4. ... Hard RT -> Missing deadline = system failure ... Rising

▫ SRAM Suitability Depends on ChipNeed Entropy ≥ 2 * security strength

Avg. Entropy: 5% of SRAM size*Worst-case: 1.2% (100 bits) for PIC16F

▫ RealitySRAM slightly contaminatedHarvest in v. early boot & limit stack use

▫ Memory RetentionMinimal at normal ambient tempsClear loss in cold (-20C) for some chips

Full SRAM reset between power cycles* Secure PRNG Seeding on Commercial Off-the-Shelf Microcontrollers -Van Herrewege et al. (2013)

Page 62: The RTOS Exploit Mitigation Blues Jos Wetzels · RTOS Mitigation Examples μArmor Background. What this talk is not about 4. ... Hard RT -> Missing deadline = system failure ... Rising

Limitations, Conclusions & Future Work

Page 63: The RTOS Exploit Mitigation Blues Jos Wetzels · RTOS Mitigation Examples μArmor Background. What this talk is not about 4. ... Hard RT -> Missing deadline = system failure ... Rising

▫ PlatformHarvard CPU or VNA withhardware ESP

▫ Attacker ModelRemote Control-Flow Hijacking Only

▫ Diversification Relocation FrequencyCompile- / Update-Time Only

▫ Diversification CoverageCode Memory only

Page 64: The RTOS Exploit Mitigation Blues Jos Wetzels · RTOS Mitigation Examples μArmor Background. What this talk is not about 4. ... Hard RT -> Missing deadline = system failure ... Rising

▫ Embedded memory Corruption issues warrant serious attentionSmallest of devices are connectedUnsafe languages are here to stay

▫ Current state of embedded mitigations is terribleEsp. in deeply embedded / RTOSNot easily fixed either

▫ μArmor is intended as small step forward

Page 65: The RTOS Exploit Mitigation Blues Jos Wetzels · RTOS Mitigation Examples μArmor Background. What this talk is not about 4. ... Hard RT -> Missing deadline = system failure ... Rising

▫ Long TermEmbedded Safe Language Adoption(Rust Embedded, Tock OS, etc.)

Secure & Scalable Patching

▫ Short TermMitigation Baseline Adoption in RTOS

Hardware Dependency Support

Advanced Embedded Mitigations (CFI, XoM, etc.)

Page 66: The RTOS Exploit Mitigation Blues Jos Wetzels · RTOS Mitigation Examples μArmor Background. What this talk is not about 4. ... Hard RT -> Missing deadline = system failure ... Rising

🐦 @s4mvartaka✉ [email protected]