Skip to content

Latest commit

 

History

History
51 lines (41 loc) · 6.32 KB

embedded_platform_security.md

File metadata and controls

51 lines (41 loc) · 6.32 KB

Embedded or platform software and firmware implementation involves different System-on-Chip (SoC) hardware. These fundamentals are applied in various industries such as mobile phones, game consoles, automobiles, and aerospace, where a large amount of embedded platform technology stack is utilized.

Cellphone

We're focusing on the FullMAC implementation which had a sperate OS running inside wifi soc, while SoftMAC is matters to RING 0 only. This is a typical attack surface which is able to apply to other fields like Automotive industry.

Wifi SoC communication protocol w/ HOST DMA support Device support
SDIO/v3.0 optional Nexus 5
USB/v3.1 USB protocol does not allow DMA, though USB controllers may send and receive packets via DMA <= iPhone 5
PCIe by default >= Nexus 6, >= iPhone 6, >= Galaxy S6

If there's no IOMMU/SMMU configured correctly, the attack path could be much easier:

Pwned SoC kernel (ThreadX or other RTOSes)--> infoleak via DMA (identify kernsymbols)--> hijack the function by overwriting the code--> boom!

Vehicle platform security research

Hardening the weak spots

The attacking path through either out-of-band SoC or browser are quite long to achieve the goals (exploitation and post-exploitation). The exploit chains can be defeated one by one, which means you need a set of building blocks to build a defense-in-depth solution. This list only contains the content cited in this document (contribution are always welcomed!).

Weak spots/exploitation methods Description Mitigation
RTOS w/o modern mitigation and binary blobs (mostly) N/A
HOST infoleak /proc/iomem Priv only
SoC infoleak DMA to locate kernel symbols IOMMU/SMMU
Hijack kernel Overwriting the code CFI
SoC infoleak DMA to locate kernel symbols IOMMU/SMMU
Heap shaping Craft a predictive layout freelist randomization and pointer encryption
AudioManager No full ASLR PIE
Webkit/QtWebEngine exploit on Browser sandboxing and MAC (SELinux/AppArmor)
Hijacking GOT Writable Global Offset Table Full RELRO
Hardware-based fault injection Effective method targets at verified boot to break chain of trust CFI, e.g: PaX RAP enabled for firmware payload