Towards Automated Dynamic Analysis for Linux-based Embedded Firmware
Daming D. Chen, Manuel Egele, Maverick Woo et al. · Network and Distributed System Security Symposium · 2016
Commercial-off-the-shelf (COTS) network-enabled embedded devices are usually controlled by vendor firmware to perform integral functions in our daily lives.For example, wireless home routers are often the first and only line of defense that separates a home user's personal computing and information devices from the Internet.Such a vital and privileged position in the user's network requires that these devices operate securely.Unfortunately, recent research and anecdotal evidence suggest that such security assumptions are not at all upheld by the devices deployed around the world.A first step to assess the security of such embedded device firmware is the accurate identification of vulnerabilities.However, the market offers a large variety of these embedded devices, which severely impacts the scalability of existing approaches in this area.In this paper, we present FIRMADYNE, the first automated dynamic analysis system that specifically targets Linuxbased firmware on network-connected COTS devices in a scalable manner.We identify a series of challenges inherent to the dynamic analysis of COTS firmware, and discuss how our design decisions address them.At its core, FIRMADYNE relies on software-based full system emulation with an instrumented kernel to achieve the scalability necessary to analyze thousands of firmware binaries automatically.We evaluate FIRMADYNE on a real-world dataset of 23,035 firmware images across 42 device vendors gathered by our system.Using a sample of 74 exploits on the 9,486 firmware images that our system can successfully extract, we discover that 887 firmware images spanning at least 89 distinct products are vulnerable to one or more of the sampled exploit(s).This includes 14 previouslyunknown vulnerabilities that were discovered with the aid of our framework, which affect 69 firmware images spanning at least 12 distinct products.Furthermore, our results show that 11 of our tested attacks affect firmware images from more than one vendor, suggesting that code-sharing and common upstream manufacturers (OEMs) are quite prevalent.
Cited by 366 works. doi:10.14722/ndss.2016.23415 Open-access PDF
Authors
References
- QEMU, a fast and portable dynamic translator
- KLEE: unassisted and automatic generation of high-coverage tests for complex systems programs
- ZMap: fast internet-wide scanning and its security applications
- A few billion lines of code later
- Mining Your Ps and Qs: Detection of Widespread Weak Keys in Network Devices
- A Large-Scale Analysis of the Security of Embedded Firmwares
- Avatar: A Framework to Support Dynamic Security Analysis of Embedded Systems’ Firmwares
- When Firmware Modifications Attack: A Case Study of Embedded Exploitation
- FIE on firmware: finding vulnerabilities in embedded systems using symbolic execution
- Baseband attacks: remote exploitation of memory corruptions in cellular protocol stacks