<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>blog.zapb.de</title><link>https://blog.zapb.de/</link><description>This is a blog.</description><atom:link href="https://blog.zapb.de/rss.xml" rel="self" type="application/rss+xml"></atom:link><language>en</language><copyright>Contents © 2024 &lt;a href="mailto:blog@zapb.de"&gt;Marc Schink&lt;/a&gt; Except where otherwise noted, content on this site is licensed under a &lt;a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/"&gt;Creative Commons BY-NC-SA 4.0&lt;/a&gt; license.</copyright><lastBuildDate>Tue, 19 Mar 2024 21:11:05 GMT</lastBuildDate><generator>Nikola (getnikola.com)</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Unlock the Door to my Secrets, but don't Forget to Glitch @ CCCamp23</title><link>https://blog.zapb.de/unlock-the-door-to-my-secrets-but-dont-forget-to-glitch-cccamp23/</link><dc:creator>Marc Schink</dc:creator><description>&lt;figure&gt;&lt;img src="https://blog.zapb.de/images/cccamp23-unlock/preview.jpg"&gt;&lt;/figure&gt; &lt;p&gt;In &lt;a class="reference external" href="https://blog.zapb.de/security-and-trust-in-open-source-security-tokens/"&gt;Security and Trust in Open Source Security Tokens&lt;/a&gt;, we presented an attack vector that exploits a feature which allows to disable the debug interface protection of a microcontroller under the condition that its entire flash memory is erased first.
With the help of fault injection, the erase operation can be suppressed which ultimately allows access to the entire flash memory.
Our publication left many open questions such as the practicability and generalizability of this attack vector.
To answer these questions, we conducted a comprehensive evaluation in form of an academic research paper which includes multiple microcontrollers and different fault injection techniques.&lt;/p&gt;
&lt;p&gt;Since publishing research papers is tedious and takes a lot of time, we decided to present a small preview of our results on the &lt;a class="reference external" href="https://events.ccc.de/2023/04/21/camp2023/"&gt;Chaos Communication Camp 2023&lt;/a&gt;.
The talk gives a short introduction to the so-called &lt;em&gt;flash erase suppression&lt;/em&gt; attack vector together with a live demonstration on the &lt;a class="reference external" href="https://www.st.com/en/microcontrollers-microprocessors/stm32l4x2.html"&gt;STM32L422&lt;/a&gt; microcontroller.
We chose this device for two reasons.
First, it is already known to be vulnerable (&lt;a class="reference external" href="https://www.cve.org/CVERecord?id=CVE-2021-29414"&gt;CVE-2021-29414&lt;/a&gt;) due to our first publication and thus not part of the current coordinated vulnerability disclosure (CVD) process.
Second, the voltage glitching setup for this microcontroller is very handy and thus predestined to be shown live on stage.
Unfortunately, I was unable to attend the camp at short notice.
Thankfully my colleague Silvan Streit was also at the camp and offered to give the talk for me.
The video recording is available on &lt;a class="reference external" href="https://media.ccc.de/v/camp2023-57401-unlock_the_door_to_my_secrets_but_don_t_forget_to_glitch"&gt;media.ccc.de&lt;/a&gt; and the slides can be found &lt;a class="reference external" href="https://blog.zapb.de/files/cccamp23-unlock/2023_cccamp_flash_erase_suppression_presentation-169.pdf"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;video style="width: 100%;" preload="none" poster="https://static.media.ccc.de/media/conferences/camp2023/57401-5debf923-21bd-5831-94e6-f18406e5c727_preview.jpg" title="Unlock the Door to my Secrets, but don’t Forget to Glitch" controls&gt;
        &lt;source src="https://cdn.media.ccc.de/events/camp2023/webm-hd/camp2023-57401-eng-Unlock_the_Door_to_my_Secrets_but_dont_Forget_to_Glitch_webm-hd.webm" type="video/webm"&gt;&lt;/source&gt;
        &lt;source src="https://cdn.media.ccc.de/events/camp2023/h264-hd/camp2023-57401-eng-Unlock_the_Door_to_my_Secrets_but_dont_Forget_to_Glitch_hd.mp4" type="video/mp4"&gt;&lt;/source&gt;
&lt;/video&gt;&lt;p&gt;The comprehensive analysis will be presented at the &lt;a class="reference external" href="https://ches.iacr.org/2024/"&gt;Cryptographic Hardware and Embedded Systems (CHES) 2024&lt;/a&gt; conference.
I will cover the paper in a separate blog post and provide additional details and material, so stay tuned.&lt;/p&gt;</description><category>cccamp23</category><category>fault injection attack</category><category>hacking</category><category>microcontroller</category><category>security</category><category>stm32</category><guid>https://blog.zapb.de/unlock-the-door-to-my-secrets-but-dont-forget-to-glitch-cccamp23/</guid><pubDate>Sun, 10 Mar 2024 07:00:00 GMT</pubDate></item><item><title>Security and Trust in Open Source Security Tokens</title><link>https://blog.zapb.de/security-and-trust-in-open-source-security-tokens/</link><dc:creator>Marc Schink &amp; Alexander Wagner</dc:creator><description>&lt;figure&gt;&lt;img src="https://blog.zapb.de/images/security-and-trust-in-open-source-security-tokens/preview.jpg"&gt;&lt;/figure&gt; &lt;figure class="align-center"&gt;
&lt;img alt="Electromagnetic fault injection (EMFI) setup with the Solo security token as target device" src="https://blog.zapb.de/images/security-and-trust-in-open-source-security-tokens/poster.jpg" style="width: 100%;"&gt;
&lt;/figure&gt;
&lt;p&gt;Hardware security tokens effectively prevent most password-related security issues and improve security indisputably.
However, there are new threats from attackers with physical access which need to be discussed.
Supply chain adversaries may manipulate devices on a large scale and install backdoors before they even reach end users.
In evil maid scenarios, specific devices may even be attacked while already in use.
For that reason, we thoroughly investigated the security and trustworthiness of seven commercially available open source security tokens, including devices from the two market leaders: &lt;a class="reference external" href="https://solokeys.com/"&gt;SoloKeys&lt;/a&gt; and &lt;a class="reference external" href="https://www.nitrokey.com/"&gt;Nitrokey&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;We identified and practically verified significant vulnerabilities in all seven examined tokens.
The methods range from exploiting logical and architectural flaws to side-channel and fault injection attacks.
Fortunately, due to the open source nature of the security tokens, we were able to propose firmware modifications which mitigate all identified vulnerabilities.
Some of these modifications are already applied by the token manufacturers.&lt;/p&gt;
&lt;p&gt;The results of this research will be presented at the &lt;a class="reference external" href="https://ches.iacr.org/2021/"&gt;Cryptographic Hardware and Embedded Systems (CHES) 2021&lt;/a&gt; conference.
The final and peer reviewed paper is already &lt;a class="reference external" href="https://eprint.iacr.org/2021/640"&gt;available&lt;/a&gt; on the &lt;a class="reference external" href="https://eprint.iacr.org/"&gt;Cryptology ePrint Archive&lt;/a&gt;.&lt;/p&gt;</description><category>fault injection attack</category><category>fido</category><category>hacking</category><category>microcontroller</category><category>nrf52</category><category>security</category><category>security token</category><category>side-channel attack</category><category>stm32</category><guid>https://blog.zapb.de/security-and-trust-in-open-source-security-tokens/</guid><pubDate>Mon, 17 May 2021 08:00:00 GMT</pubDate></item><item><title>One Exploit to Rule them All? On the Security of Drop-in Replacement and Counterfeit Microcontrollers</title><link>https://blog.zapb.de/one-exploit-to-rule-them-all/</link><dc:creator>Marc Schink &amp; Johannes Obermaier</dc:creator><description>&lt;figure&gt;&lt;img src="https://blog.zapb.de/images/one-exploit-to-rule-them-all/preview.jpg"&gt;&lt;/figure&gt; &lt;figure class="align-center"&gt;
&lt;img alt="A bunch of microcontroller boards" src="https://blog.zapb.de/images/one-exploit-to-rule-them-all/poster.jpg" style="width: 100%;"&gt;
&lt;/figure&gt;
&lt;p&gt;After &lt;a class="reference external" href="https://blog.zapb.de/stm32f1-exceptional-failure/"&gt;Exception(al) Failure&lt;/a&gt;, we bought a bunch of drop-in replacement chips for the &lt;a class="reference external" href="https://www.st.com/en/microcontrollers-microprocessors/stm32f1-series.html"&gt;STM32F1 series&lt;/a&gt; and analyzed them with respect to their firmware security features.
We found lots of severe vulnerabilities and even encountered counterfeited devices.
The results of this research will be published in form of a scientific paper at the &lt;a class="reference external" href="https://www.usenix.org/conference/woot20/presentation/obermaier"&gt;14th USENIX Workshop on Offensive Technologies&lt;/a&gt; on &lt;strong&gt;11 August 2020&lt;/strong&gt;.
The work is a joint collaboration of &lt;a class="reference external" href="mailto:mail(a)obermaier-johannes.de"&gt;Johannes Obermaier&lt;/a&gt;, &lt;a class="reference external" href="mailto:mail(a)marcschink.de"&gt;Marc Schink&lt;/a&gt; and &lt;a class="reference external" href="mailto:kosma(a)kosma.pl"&gt;Kosma Moczek&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;We will not publish the paper in advance to the conference in order to adhere the deadline of the coordinated disclosure process.
However, here is a short teaser to bridge the time gap until the publication:&lt;/p&gt;
&lt;blockquote class="pull-quote"&gt;
&lt;p&gt;With the increasing complexity of embedded systems, the firmware has become a valuable asset.
At the same time, pressure for cost reductions in hardware is imminent.
These two aspects are united at the heart of the device, i.e., the microcontroller.
It runs and protects its firmware, but simultaneously has to prevail against cheaper alternatives.
For the very popular STM32F1 microcontroller series, this has caused the emergence of many competitors in the last few years who offer drop-in replacements or even sell counterfeit devices at a fraction of the original price.
Thus, the question emerges whether the replacements are silicon-level clones and, if not, whether they provide better, equal, or less security.
In this paper, we analyze a total of six devices by four manufacturers, including the original device, in depth.
Via a low-level analysis, we identify all of them as being individually developed devices.
We further put the focus on debug and hardware security, discovering several novel vulnerabilities in all devices, causing the exposure of the entire firmware.
All of the presented vulnerabilities, including invasive ones, are on a Do it Yourself (DiY) level without the demand for a sophisticated lab – thereby underlining the urgency for hardware fixes.
To facilitate further research, reproduction, and testing of other devices, we provide a comprehensive description of all vulnerabilities in this paper and code for proofs-of-concepts online.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;More information will be published here soon – stay tuned!&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Update (11 August 2020):&lt;/strong&gt; The &lt;a class="reference external" href="https://www.usenix.org/system/files/woot20-paper-obermaier.pdf"&gt;paper&lt;/a&gt; and &lt;a class="reference external" href="https://github.com/JohannesObermaier/f103-analysis"&gt;supplementary material&lt;/a&gt; are now available.&lt;/p&gt;</description><category>hacking</category><category>microcontroller</category><category>security</category><category>stm32</category><guid>https://blog.zapb.de/one-exploit-to-rule-them-all/</guid><pubDate>Wed, 29 Jul 2020 23:00:00 GMT</pubDate></item><item><title>Exception(al) Failure - Breaking the STM32F1 Read-Out Protection</title><link>https://blog.zapb.de/stm32f1-exceptional-failure/</link><dc:creator>Marc Schink &amp; Johannes Obermaier</dc:creator><description>&lt;figure&gt;&lt;img src="https://blog.zapb.de/images/stm32f1-exceptional-failure/preview.jpg"&gt;&lt;/figure&gt; &lt;div&gt;&lt;p&gt;The firmware of microcontrollers usually contains valuable data such as intellectual property and, in some cases, even cryptographic material.
In order to protect the confidentiality of these assets, most microcontrollers feature some kind of firmware read-out protection.
This security feature shall prevent adversaries with physical access to a device from reading out the internal flash memory.
Nevertheless, security researchers as well as hobbyists showed repeatedly that these security features can be circumvented.
In this research article, we examine the flash read-out protection (RDP) of the &lt;a class="reference external" href="https://www.st.com/en/microcontrollers-microprocessors/stm32f1-series.html"&gt;STM32F1 series&lt;/a&gt; from STMicroelectronics.
We discuss a novelly discovered vulnerability whose exploitation would be the first non-invasive way to circumvent the feature.
The issue results from an insufficient access restriction: flash data reads via the debug interface are blocked but the CPU's exception handling process is still able to read from flash memory via the ICode bus.
We explain in detail why and how this vulnerability exposes major parts of the internal memory, thereby affecting device security.&lt;/p&gt;
&lt;video style="width: 100%;" preload="none" poster="/images/stm32f1-exceptional-failure/firmware_extraction_576p_poster.jpg" title="Exception(al) Failure - Breaking the STM32F1 Read-Out Protection" controls&gt;
        &lt;source src="https://blog.zapb.de/files/stm32f1-exceptional-failure/firmware_extraction_1080p.webm" type="video/webm"&gt;&lt;/source&gt;
        &lt;source src="https://blog.zapb.de/files/stm32f1-exceptional-failure/firmware_extraction_1080p.mp4" type="video/mp4"&gt;&lt;/source&gt;
&lt;/video&gt;&lt;p&gt;&lt;a href="https://blog.zapb.de/stm32f1-exceptional-failure/"&gt;Read more…&lt;/a&gt; (18 min remaining to read)&lt;/p&gt;&lt;/div&gt;</description><category>firmware</category><category>hacking</category><category>microcontroller</category><category>security</category><category>stm32</category><guid>https://blog.zapb.de/stm32f1-exceptional-failure/</guid><pubDate>Tue, 17 Mar 2020 07:00:00 GMT</pubDate></item><item><title>Coming soon: Breaking the STM32F1 Read-Out Protection</title><link>https://blog.zapb.de/stm32f1-announcement/</link><dc:creator>Marc Schink &amp; Johannes Obermaier</dc:creator><description>&lt;p&gt;We identified a vulnerability in the read-out protection (RDP) mechanism of the &lt;a class="reference external" href="https://www.st.com/en/microcontrollers-microprocessors/stm32f1-series.html"&gt;STM32F1 series&lt;/a&gt; from STMicroelectronics.
&lt;a class="reference external" href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-8004"&gt;CVE-2020-8004&lt;/a&gt; has been assigned to this issue.&lt;/p&gt;
&lt;p&gt;An attacker with access to the debug interface can exploit this vulnerability and extract large amount of data from the flash memory.
If you rely on this security feature, we highly recommend you to take appropriate action.
The only way to avoid exploitation and thus keep the entire flash memory content confidential is to &lt;em&gt;physically&lt;/em&gt; prevent an attacker from gaining access to the debug interface.&lt;/p&gt;
&lt;p&gt;This announcement is part of a coordinated vulnerability disclosure process.
An extensive article with technical details about the vulnerability will be published here on the &lt;strong&gt;15 March 2020&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Contact:&lt;/strong&gt; &lt;a class="reference external" href="mailto:mail(a)marcschink.de"&gt;Marc Schink&lt;/a&gt;, &lt;a class="reference external" href="mailto:mail(a)obermaier-johannes.de"&gt;Johannes Obermaier&lt;/a&gt;&lt;/p&gt;</description><category>hacking</category><category>microcontroller</category><category>security</category><category>stm32</category><guid>https://blog.zapb.de/stm32f1-announcement/</guid><pubDate>Fri, 31 Jan 2020 23:00:00 GMT</pubDate></item></channel></rss>