Fuzz'EMup:利用电磁侧信道辐射引导黑盒嵌入式固件模糊测试 Fuzz'EMup: Leveraging EM Side-Channel Emanation to Guide Black-Box Embedded Firmware Fuzzing 预印本
原文摘要
查看英文原文摘要
As IoT and embedded devices proliferate across various domains, securing their firmware has become critical. Fuzzing offers a systematic approach to uncovering vulnerabilities in firmware, and coverage feedback can improve its effectiveness by guiding exploration. However, many devices make coverage information impossible to obtain by preventing firmware extraction, instrumentation, or accurate emulation; in such cases, testers are left with only inefficient black-box fuzzing. In this paper, we present an approach that leverages electromagnetic (EM) side-channel emanations to guide firmware fuzzing in purely black-box settings. However, turning raw EM measurements into reliable guidance is challenging: EM traces are noisy, and timing jitter causes corresponding features in different traces to shift in time. We address these challenges by combining frequency band selection based on the activity-to-idle signal contrast with dynamic time warping to align per-input traces and detect sustained divergence, while maintaining scalability by organizing executions in a tree structure based on their divergence times. We evaluate our approach on four real firmware targets and demonstrate that EM-derived feedback enhances path exploration, yielding higher code coverage than unguided fuzzing.
📚 参考文献 (56 条)
查看全部 56 条
- [1] M. Muench, J. Stijohann, F. Kargl, A. Francillon, and D. Balzarotti, “What you corrupt is not what you crash: Challenges in fuzzing embedded devices.” in NDSS, 2018.
- [2] X. Zhu, S. Wen, S. Camtepe, and Y. Xiang, “Fuzzing: a survey for roadmap,” ACM Computing Surveys (CSUR), vol. 54, no. 11s, pp. 1–36, 2022.
- [3] M. Sutton, A. Greene, and P. Amini, Fuzzing: brute force vulner- ability discovery. Pearson Education, 2007.
- [4] M. Zalewski, “American fuzzy lop (afl),” https://github.com/ google/AFL, 2013, accessed: YYYY-MM-DD.
- [5] A. Mera, C. Liu, R. Sun, E. Kirda, and L. Lu, “{SHiFT}: Semi- hosted fuzz testing for embedded applications,” in 33rd USENIX Security Symposium (USENIX Security 24), 2024, pp. 5323–5340.
- [6] A. A. Clements, E. Gustafson, T. Scharnowski, P. Grosen, D. Fritz, C. Kruegel, G. Vigna, S. Bagchi, and M. Payer, “{HALucinator}: Firmware re-hosting through abstraction layer emulation,” in 29th USENIX Security Symposium (USENIX Security 20), 2020, pp. 1201–1218.
- [7] E. Gustafson, M. Muench, C. Spensky, N. Redini, A. Machiry, Y. Fratantonio, D. Balzarotti, A. Francillon, Y. R. Choe, C. Kruegel et al., “Toward the analysis of embedded firmware through auto- mated re-hosting,” in 22nd International Symposium on Research in Attacks, Intrusions and Defenses (RAID 2019), 2019, pp. 135– 150.
- [8] D. Maier, B. Radtke, and B. Harren, “Unicorefuzz: On the viability of emulation for kernelspace fuzzing,” in 13th USENIX workshop on offensive technologies (WOOT 19), 2019.
- [9] J. Newsome and D. X. Song, “Dynamic taint analysis for auto- matic detection, analysis, and signaturegeneration of exploits on commodity software.” in NDSS, vol. 5, 2005, pp. 3–4.
- [10] Z. Ling, K. Liu, Y. Xu, C. Gao, Y. Jin, C. Zou, X. Fu, and W. Zhao, “Iot security: An end-to-end view and case study,” in 2017 IEEE Global Communications Conference (GLOBECOM). IEEE, 2017, pp. 1–6.
- [11] Z. Zhu, S. Kim, Y. Rozhanski, Y. Hu, E. Witchel, and M. Silber- stein, “Understanding the security of discrete gpus,” in Proceedings of the General Purpose GPUs, 2017, pp. 1–11.
- [12] S. Rawat, V. Jain, A. Kumar, L. Cojocar, C. Giuffrida, and H. Bos, “Vuzzer: Application-aware evolutionary fuzzing,” in 2017 Network and Distributed System Security (NDSS) Sympo- sium:[Proceedings]. Internet Society, 2017, pp. 1–14.
- [13] M. B¨ohme, V.-T. Pham, M.-D. Nguyen, and A. Roychoudhury, “Directed greybox fuzzing,” in Proceedings of the 2017 ACM SIGSAC conference on computer and communications security, 2017, pp. 2329–2344.
- [14] J. Li, B. Zhao, and C. Zhang, “Fuzzing: a survey,” Cybersecurity, vol. 1, no. 1, p. 6, 2018.
- [15] A. Fioraldi, D. Maier, H. Eißfeldt, and M. Heuse, “{AFL++}: Combining incremental steps of fuzzing research,” in 14th USENIX workshop on offensive technologies (WOOT 20), 2020.
- [16] M. B¨ohme, V.-T. Pham, and A. Roychoudhury, “Coverage-based greybox fuzzing as markov chain,” in Proceedings of the 2016 ACM SIGSAC Conference on Computer and Communications Security, 2016, pp. 1032–1043.
- [17] R. Fan, J. Pan, and S. Huang, “Arm-afl: coverage-guided fuzzing framework for arm-based iot devices,” in International Conference on Applied Cryptography and Network Security. Springer, 2020, pp. 239–254.
- [18] D. Song, F. Hetzelt, D. Das, C. Spensky, Y. Na, S. Volckaert, G. Vigna, C. Kruegel, J.-P. Seifert, and M. Franz, “Periscope: An effective probing and fuzzing framework for the hardware- os boundary,” in 2019 Network and Distributed Systems Security Symposium (NDSS). Internet Society, 2019, pp. 1–15.
- [19] L. Delshadtehrani, S. Canakci, B. Zhou, S. Eldridge, A. Joshi, and M. Egele, “{PHMon}: A programmable hardware monitor and its security use cases,” in 29th USENIX Security Symposium (USENIX Security 20), 2020, pp. 807–824.
- [20] J. Oh, S. Kim, E. Jeong, and S.-M. Moon, “Os-less dynamic binary instrumentation for embedded firmware,” in 2015 IEEE Symposium in Low-Power and High-Speed Chips (COOL CHIPS XVIII). IEEE, 2015, pp. 1–3.
- [21] B. Feng, A. Mera, and L. Lu, “{P2IM}: Scalable and hardware- independent firmware testing via automatic peripheral interface modeling,” in 29th USENIX Security Symposium (USENIX Security 20), 2020, pp. 1237–1254.
- [22] A. Mera, B. Feng, L. Lu, and E. Kirda, “Dice: Automatic emulation of dma input channels for dynamic firmware analysis,” in 2021 IEEE Symposium on Security and Privacy (SP). IEEE, 2021, pp. 1938–1954.
- [23] D. D. Chen, M. Woo, D. Brumley, and M. Egele, “Towards automated dynamic analysis for linux-based embedded firmware.” in NDSS, vol. 1, 2016, pp. 1–1.
- [24] Y. Zheng, A. Davanian, H. Yin, C. Song, H. Zhu, and L. Sun, “{FIRM-AFL}:{High-Throughput} greybox fuzzing of {IoT} firmware via augmented process emulation,” in 28th USENIX Security Symposium (USENIX Security 19), 2019, pp. 1099–1114.
- [25] J. Chen, W. Diao, Q. Zhao, C. Zuo, Z. Lin, X. Wang, W. C. Lau, M. Sun, R. Yang, and K. Zhang, “Iotfuzzer: Discovering memory corruptions in iot through app-based fuzzing.” in NDSS, 2018, pp. 1–15.
- [26] A. Zaji´c and M. Prvulovic, “Experimental demonstration of elec- tromagnetic information leakage from modern processor-memory systems,” IEEE Transactions on Electromagnetic Compatibility, vol. 56, no. 4, pp. 885–893, 2014.
- [27] Z. Zhang, Z. Zhan, D. Balasubramanian, B. Li, P. Volgyesi, and X. Koutsoukos, “Leveraging EM side-channel information to detect Rowhammer attacks,” in 2020 IEEE Symposium on Security and Privacy (SP). IEEE, 2020, pp. 729–746.
- [28] Z. Zhan, Z. Zhang, and X. Koutsoukos, “BitJabber: The world’s fastest electromagnetic covert channel,” in 2020 IEEE International Symposium on Hardware Oriented Security and Trust (HOST). IEEE, 2020, pp. 35–45.
- [29] Z. Zhan, Z. Zhang, S. Liang, F. Yao, and X. Koutsoukos, “Graphics peeping unit: Exploiting EM side-channel information of GPUs to eavesdrop on your neighbors,” in 2022 IEEE Symposium on Security and Privacy (SP). IEEE, 2022, pp. 1440–1457.
- [30] Y. Han, S. Etigowni, H. Liu, S. Zonouz, and A. Petropulu, “Watch me, but don’t touch me! contactless control flow monitoring via electromagnetic emanations,” in Proceedings of the 2017 ACM SIGSAC conference on computer and communications security, 2017, pp. 1095–1108.
- [31] R. Callan, F. Behrang, A. Zajic, M. Prvulovic, and A. Orso, “Zero- overhead profiling via em emanations,” in Proceedings of the 25th international symposium on software testing and analysis, 2016, pp. 401–412.
- [32] D. Strobel, F. Bache, D. Oswald, F. Schellenberg, and C. Paar, “Scandalee: a side-channel-based disassembler using local elec- tromagnetic emanations,” in 2015 Design, Automation & Test in Europe Conference & Exhibition (DATE). IEEE, 2015, pp. 139– 144.
- [33] D. Genkin, L. Pachmanov, I. Pipman, and E. Tromer, “Ecdh key- extraction via low-bandwidth electromagnetic attacks on pcs,” in Cryptographers’ Track at the RSA Conference. Springer, 2016, pp. 219–235.
- [34] D. Genkin, L. Pachmanov, I. Pipman, E. Tromer, and Y. Yarom, “Ecdsa key extraction from mobile devices via nonintrusive phys- ical side channels,” in Proceedings of the 2016 ACM SIGSAC conference on computer and communications security, 2016, pp. 1626–1638.
- [35] R. Callan, A. Zajic, and M. Prvulovic, “A practical methodology for measuring the side-channel signal available to the attacker for instruction-level events,” in 2014 47th Annual IEEE/ACM Interna- tional Symposium on Microarchitecture. IEEE, 2014, pp. 242–254.
- [36] R. Callan, A. Zaji´c, and M. Prvulovic, “Fase: Finding amplitude- modulated side-channel emanations,” ACM SIGARCH Computer Architecture News, vol. 43, no. 3S, pp. 592–603, 2015.
- [37] A. Nazari, N. Sehatbakhsh, M. Alam, A. Zajic, and M. Prvulovic, “Eddie: Em-based detection of deviations in program execution,” in Proceedings of the 44th Annual International Symposium on Computer Architecture, 2017, pp. 333–346.
- [38] N. Sehatbakhsh, A. Nazari, M. Alam, F. Werner, Y. Zhu, A. Zajic, and M. Prvulovic, “Remote: Robust external malware detection framework by using electromagnetic signals,” IEEE Transactions on Computers, vol. 69, no. 3, pp. 312–326, 2019.
- [39] H. Sakoe and S. Chiba, “Dynamic programming algorithm op- timization for spoken word recognition,” IEEE transactions on acoustics, speech, and signal processing, vol. 26, no. 1, pp. 43–49, 2003.
- [40] J. G. Van Woudenberg, M. F. Witteman, and B. Bakker, “Improving differential power analysis by elastic alignment,” in Cryptogra- phers’ Track at the RSA Conference. Springer, 2011, pp. 104–119.
- [41] S. Gan, C. Zhang, X. Qin, X. Tu, K. Li, Z. Pei, and Z. Chen, “Collafl: Path sensitive fuzzing,” in 2018 IEEE Symposium on Security and Privacy (SP). IEEE, 2018, pp. 679–696.
- [42] D. A. Berry and B. Fristedt, “Bandit problems: sequential al- location of experiments (monographs on statistics and applied probability),” London: Chapman and Hall, vol. 5, no. 71-87, pp. 7–7, 1985.
- [43] T. Yue, P. Wang, Y. Tang, E. Wang, B. Yu, K. Lu, and X. Zhou, “{EcoFuzz}: Adaptive {Energy-Saving} greybox fuzzing as a variant of the adversarial {Multi-Armed} bandit,” in 29th USENIX Security Symposium (USENIX Security 20), 2020, pp. 2307–2324.
- [44] F. Bellard, “Qemu, a fast and portable dynamic translator.” in USENIX annual technical conference, FREENIX Track, vol. 41, no. 46. California, USA, 2005, pp. 10–55.
- [45] A. Fioraldi, D. C. Maier, D. Zhang, and D. Balzarotti, “Libafl: A framework to build modular and reusable fuzzers,” in Proceedings of the 2022 ACM SIGSAC Conference on Computer and Commu- nications Security, 2022, pp. 1051–1065.
- [46] J. Zaddach, L. Bruno, A. Francillon, D. Balzarotti et al., “Avatar: A framework to support dynamic security analysis of embedded systems’ firmwares.” in NDSS, vol. 14, no. 2014, 2014, pp. 1–16.
- [47] W. Zhou, L. Guan, P. Liu, and Y. Zhang, “Automatic firmware emulation through invalidity-guided knowledge inference,” in 30th USENIX Security Symposium (USENIX Security 21), 2021, pp. 2007–2024.
- [48] T. Scharnowski, N. Bars, M. Schloegel, E. Gustafson, M. Muench, G. Vigna, C. Kruegel, T. Holz, and A. Abbasi, “Fuzzware: Using precise {MMIO} modeling for effective firmware fuzzing,” in 31st USENIX Security Symposium (USENIX Security 22), 2022, pp. 1239–1256.
- [49] T. Scharnowski, S. W¨orner, F. Buchmann, N. Bars, M. Schloegel, and T. Holz, “Hoedur: Embedded firmware fuzzing using multi- stream inputs.” 2023.
- [50] Y. Shoshitaishvili, R. Wang, C. Hauser, C. Kruegel, and G. Vigna, “Firmalice-automatic detection of authentication bypass vulnera- bilities in binary firmware.” in NDSS, vol. 1, 2015, pp. 1–1.
- [51] N. Redini, A. Machiry, R. Wang, C. Spensky, A. Continella, Y. Shoshitaishvili, C. Kruegel, and G. Vigna, “Karonte: Detecting insecure multi-binary interactions in embedded firmware,” in 2020 IEEE Symposium on Security and Privacy (SP). IEEE, 2020, pp. 1544–1561.
- [52] H. Lee, K. Choi, K. Chung, J. Kim, and K. Yim, “Fuzzing can packets into automobiles,” in 2015 IEEE 29th International Con- ference on Advanced Information Networking and Applications. IEEE, 2015, pp. 817–821.
- [53] P. Sperl and K. B¨ottinger, “Side-channel aware fuzzing,” in Euro- pean Symposium on Research in Computer Security. Springer, 2019, pp. 259–278.
- [54] M. Dunne and S. Fischmeister, “Powertrace-based fuzzing of can connected hardware,” in 2022 IEEE International Conference on Cyber Security and Resilience (CSR). IEEE, 2022, pp. 239–244.
- [55] S. Nilizadeh, Y. Noller, and C. S. Pasareanu, “Diffuzz: differen- tial fuzzing for side-channel analysis,” in 2019 IEEE/ACM 41st International Conference on Software Engineering (ICSE). IEEE, 2019, pp. 176–187.
- [56] S. Dong, Z. Li, J. Liu, H. Li, D. Fang, S. Lv, H. Wang, and L. Sun, “Emfuzz: Use electromagnetic fuzzing for automated attack sur- face assessment of actuators,” IEEE Transactions on Information Forensics and Security, 2025.