Executive summary
EV chargers are no longer simple power appliances. They are networked computers that control hundreds of volts, handle payments and identity, talk to vehicles and to cloud back ends, and sit in publicly accessible places for ten years or more. That combination makes them an attractive target and raises the stakes if one is compromised.
Secure boot is the foundation of charger security. It guarantees that, from the instant power is applied, every piece of software the charger executes has been cryptographically verified as genuine and unmodified. If any stage fails verification, the charger refuses to run it.
This paper covers:
- the threats secure boot addresses, and those it does not;
- how a hardware root of trust and a chain of signed stages work;
- extending trust to the root filesystem and applications;
- key management, signing infrastructure and revocation;
- secure firmware updates and anti-rollback;
- how secure boot interacts with real-time safety controllers, ISO 15118 and OCPP security;
- a practical implementation checklist.
1. Why chargers need secure boot
1.1 The threat landscape
| Threat | Possible impact |
|---|---|
| Malicious firmware installed via physical access (debug port, storage swap) | Charger behaves unsafely, steals data, joins a botnet |
| Tampered update delivered through a compromised channel | Fleet-wide compromise in one step |
| Downgrade to an old firmware with known vulnerabilities | Re-opens fixed security holes |
| Theft of credentials (TLS keys, OCPP passwords) from storage | Impersonation of the charger to the back end |
| Manipulated metering or billing logic | Financial fraud against end users or operators |
| Manipulated power-control parameters | Damage to vehicles, the charger or the grid connection |
Because chargers are deployed in large fleets with identical software, a single exploitable weakness can be replicated across thousands of units. Security agencies and grid operators worldwide increasingly treat charging infrastructure as part of critical energy infrastructure for this reason.
1.2 What secure boot does, and does not do
Secure boot ensures software integrity and authenticity at start-up. It does not by itself:
- protect against vulnerabilities in genuine, signed software;
- encrypt data or communications;
- detect compromise that occurs at runtime after boot.
It is therefore one layer in a defence-in-depth architecture, alongside secure communication, access control, runtime hardening, monitoring and secure development practices. But it is the layer every other one depends on: if the boot chain can be subverted, nothing above it can be trusted.
2. The chain of trust
2.1 The hardware root of trust
Trust has to start somewhere that cannot be altered by software. In modern processors this is the boot ROM, immutable code burned into the chip, combined with one-time programmable (OTP) fuses that store a hash of the manufacturer's public key.
At power-on:
- The boot ROM reads the first-stage loader from flash.
- It checks the loader's signature using the public key whose hash is stored in the fuses.
- Only if the signature is valid does the ROM execute the loader.
Once the fuses are programmed and the device is set to closed or secure mode, the processor will run only code signed with the corresponding private key.
2.2 Extending the chain
Each stage verifies the next before handing over control:
| Stage | Verifies |
|---|---|
| Boot ROM (immutable) | First-stage loader |
| First-stage loader | Main bootloader, or trusted firmware for the secure world |
| Bootloader | Kernel, device tree, initramfs (for example as a signed FIT image) |
| Kernel | Root filesystem (for example via dm-verity), kernel modules (module signing) |
| Root filesystem / init | Application packages and configuration signatures |
If any verification fails, the device halts or falls back to a known-good image, and records the event for later reporting.
2.3 Verified root filesystem
Verifying a multi-hundred-megabyte filesystem at every boot would be slow. dm-verity solves this: it builds a hash tree over the filesystem image, with only the root hash signed. Each block is verified when it is read. Any tampering is detected at the point of use. This requires a read-only root filesystem, which is also good practice for robustness against power loss, as we explain in our boot time white paper.
Writable data (logs, configuration, transaction queues) lives on a separate partition, ideally encrypted and integrity-protected, and is treated as untrusted input by the application.
2.4 Measured boot
In addition to verifying, a charger can measure each stage (record its hash) into a tamper-resistant register in a TPM or secure element. Those measurements can later be reported to the back end in a signed attestation, allowing the operator to confirm remotely that a charger is running exactly the expected software.
3. Don't forget the other processors
A DC charger typically contains a real-time microcontroller for safety and power control, power module controllers, an energy meter, a power-line communication modem for vehicle communication, a cellular modem and display controllers.
Each programmable component is part of the attack surface. Good practice:
- Safety microcontroller: use a part with secure boot or at least read-out protection and signed firmware updates. Its firmware should be updated only through an authenticated path controlled by the main processor, after the main processor's own trust chain is established.
- Power modules and meters: prefer suppliers that sign their firmware; verify versions at start-up.
- Modems: keep firmware current; restrict their interfaces.
- Safety independence: even if the main processor were compromised, the safety controller must independently enforce electrical limits and interlocks. Security and functional safety reinforce one another.
4. Keys: the crown jewels
Secure boot is only as strong as the protection of the private signing keys.
4.1 Key hierarchy
- Root key: kept offline, ideally in a hardware security module (HSM), used rarely to sign subordinate keys.
- Signing keys: used by a controlled build-and-release pipeline, also HSM-protected.
- Multiple key slots: many processors allow several key hashes to be fused, so a compromised key can be revoked and a backup key activated.
4.2 Signing process
- Signing happens only in a controlled release pipeline, never on developer laptops.
- Every release requires authorisation, ideally by more than one person.
- Development and production keys are strictly separate. Development devices are never fused with production keys.
- Build reproducibility and a software bill of materials (SBOM) make it possible to prove what went into each signed image.
4.3 Device identity
Separate from code-signing keys, each charger needs its own unique identity: a private key and certificate used for TLS to the CSMS and, for ISO 15118, to authenticate to vehicles. These keys should be generated or injected securely in manufacturing and stored in a secure element or TPM so they cannot be extracted even with physical access. See our ISO 15118 white paper for how charger certificates fit into Plug & Charge.
5. Secure updates and anti-rollback
A charger that can never be updated cannot be kept secure. A charger that can be updated insecurely is worse. Secure firmware over-the-air (FOTA) combines:
- Signed update packages verified on the device before installation, using keys anchored in the same trust chain.
- Transport security (TLS) between the update server and the charger, ideally commanded through OCPP's secure firmware update mechanism.
- A/B partitions so the new image is written to an inactive bank and activated only after verification, with automatic fallback if it fails health checks.
- Anti-rollback protection using monotonic counters (often in fuses or secure storage) so the device refuses to boot images older than a minimum security version.
- Update status reporting back to the CSMS, so the operator knows exactly which version each charger runs.
6. Locking down the device
Secure boot must be paired with closing the side doors:
- Disable or authenticate JTAG and debug ports in production.
- Disable the bootloader's interactive console, or protect it with authentication.
- Remove development tools, default passwords and unused services from production images.
- Protect the enclosure and service ports physically; consider tamper detection on the cabinet.
- Encrypt sensitive data at rest and bind it to the device.
7. Secure boot within the wider charger security model
| Layer | Controls |
|---|---|
| Hardware | Root of trust, secure element / TPM, debug lock, tamper detection |
| Boot | Verified chain, measured boot, anti-rollback |
| Operating system | Read-only verified root, least privilege, hardening, firewalling |
| Application | Input validation, signed configuration, secure logging |
| Communications | TLS to CSMS (OCPP security profiles), TLS to vehicle (ISO 15118), certificate management |
| Operations | Signed updates, vulnerability management, monitoring, incident response |
| Organisation | Secure development lifecycle, key ceremonies, supplier assurance |
International frameworks such as IEC 62443 (industrial security), ETSI EN 303 645 (consumer IoT baseline) and the OCPP security profiles provide useful reference points for building and assessing these controls. In India, the CERT-In directions and the Digital Personal Data Protection Act also shape how charger operators must handle incidents and personal data.
8. Implementation checklist
- Select processors with a hardware root of trust, OTP key storage, hardware crypto and anti-rollback counters.
- Include a secure element or TPM for device identity and measured boot.
- Design the boot chain: ROM, loader, bootloader, kernel, verified root filesystem, signed applications.
- Establish an HSM-backed signing infrastructure with separated root and signing keys.
- Define key ceremonies, roles and revocation procedures before the first production unit.
- Implement A/B updates with signed packages, health checks and anti-rollback.
- Secure the real-time controller and peripheral firmware.
- Lock down debug interfaces and remove development artefacts in production builds.
- Provision unique device identities in manufacturing, with auditable records.
- Test: attempt to boot unsigned, modified and downgraded images; verify that each is rejected and reported.
- Monitor: report boot status, firmware versions and attestation results to the CSMS.
- Plan for the long term: crypto agility, key rotation and security support across a ten-year life.
9. Conclusion
Secure boot turns a charger from a device that runs whatever is on its flash into one that runs only what its maker has deliberately signed. It protects end users, site hosts and operators, and it underpins every other security promise a charging network makes, from tamper-proof billing to trustworthy Plug & Charge.
At AEVION, security is designed into the Bridge platform from silicon to cloud, because intelligent energy has to be trustworthy energy.
Intelligent Energy. Everywhere.
References
- NIST SP 800-193, Platform Firmware Resiliency Guidelines.
- IEC 62443 series, Security for industrial automation and control systems.
- ETSI EN 303 645, Cyber Security for Consumer Internet of Things: Baseline Requirements.
- Open Charge Alliance, OCPP security profiles and secure firmware update.
- ISO 15118-2 and ISO 15118-20 security provisions.
- Linux kernel documentation on dm-verity and module signing; U-Boot verified boot documentation.



