37C3 - Decentralized energy production: green future or cybersecurity nightmare?

Title:
37C3 - Decentralized energy production: green future or cybersecurity nightmare?
Description:

https://media.ccc.de/v/37c3-11810-decentralized_energy_production_green_future_or_cybersecurity_nightmare

The cybersecurity dark side of solar energy when clouds are involved

In this talk we will have a look at some cybersecurity challenges raised by the trend of decentralizing our energy production.

Our energy infrastructure is now changing from a centralized system based on big power plants to a more decentralized system based on renewable energy produced by smaller power plants (maybe yours). In Germany alone, [300.000 so called balcony power plants were in operation by August 2023](https://www.heise.de/hintergrund/Ueber-300-000-Balkonkraftwerke-in-Deutschland-in-Betrieb-Statistik-der-Woche-9285107.html). Most of these smaller power plants are / will be somehow connected to some cloud services.

To show that security hasn't been the biggest priority, we will examine the cybersecurity controls of different solar inverters. To put it mildly: there is room for improvement.

We will also discuss the need for better regulations and enforcement of cybersecurity for smaller connected power plants: altogether they probably produce more power than the bigger ones - and this trend is accelerating.
Protecting our infrastructure shall have - today more than ever before - a high priority.

Context: cybersecurity for future energy production systems
-----------------------------------------------------------

Cybersecurity for smaller solar power plants is a critical challenge: strong separation between operational, safety relevant network and internet is not present. Moreover, manufacturers do not invest enough in security; reason being high competition in terms of time to market, price pressure and lack of security knowledge.

These power plant systems need more or less an internet connection in order to fetch power & energy data from the plant with an app, perform firmware updates, and carry out maintenance remotely.

The central device, which is connected to the internet, is the inverter. Many companies provide inverters for solar power plants and include cloud connectivity. An inverter converts the energy from the solar panels to grid compatible energy. Since it handles high currents & voltages, the physical consequences of cybersecurity risks are arguably higher than for standard smart home devices.

Research results related to connected solar inverters (technical part)
----------------------------------------------------------------------

Out of curiosity, I tested different inverters from different manufacturers, including cloud connectivity. All devices have a license to be operated in Germany and are very popular. They are used in solar power plants of different sizes, from balcony size to bigger plants.
In this section some research results will be presented, we will especially focus on one system.

**Positive note: critical vulnerabilities have been patched by now.**

Vulnerabilities
---------------

* *Insecure Direct Object Reference* (IDOR) or similar vulnerabilities have been found, allowing an attacker with a simple account to execute commands on connected inverters remotely. This was an enabler for many further attacks.
* An attacker could trigger a firmware update process on connected inverters.
* The firmware update process was not properly secured: update images did not include a cryptographic signature.
* Most of the devices did not use the TLS protocol for cloud communication or did not use it correctly.
* Secure boot and secure debugging were not implemented.
* On the server side, there were insufficient sanity checks.
* Sensitive data (e.g. serial number) was easy to extract.

Exploitation
------------

* Commands could be executed on any connected devices (e.g. switch ON, switch OFF, change parameters).
* The power electronics and relays of devices could be manipulated remotely with a malicious firmware update.
* By manipulating many devices synchronously the stability of the grid could be endangered.

A proof of concept with a full (unlocked) exploit chain will be presented.

Conclusion and Discussion
-------------------------

Removing bureaucratic hurdles is an important step in order to democratize our energy production - and renewable energies are the future! On the other hand, if it comes at the cost of poorly-secured devices, this may be jeopardized.

In Germany, we have the Kritis Verordnung (decree) to protect for example the electricity infrastructure. It states that every power [plant with more than 104 MW capacity is required to have specific protections](https://www.gesetze-im-internet.de/bsi-kritisv/anhang_1.html). Individually, the small solar power plants are not in this category. However, summing up all devices connected to one cloud, we probably reach these numbers by now - and if not, tomorrow. Current projections point in that direction.

During this research, I realized how easy it is to take control of energy production devices and it scared me.

more » « less
Video Language:
English
Duration:
39:31
http://www.youtube.com/watch?v=eG4pwYHgqjQ
Format: Youtube
Primary
Original
Added   by C3Subtitles
Format: Youtube
Primary
Original
http://www.youtube.com/watch?v=PzlSw9ryPsA
Format: Youtube
Added   by C3Subtitles
Format: Youtube
http://www.youtube.com/watch?v=2YmwKAdNIhU
Format: Youtube
Added   by C3Subtitles
Format: Youtube
This video is part of Amara Public.

Subtitles download

Incomplete subtitles (1)