Automated Runtime Verification of EV-Charging Software Using Physics-Informed Oracles and Search-Based Threshold Synthesis
This paper presents an automated runtime verification framework for EV-charging software that fuses OCPP telemetry with physics-informed hardware measurements and employs search-based threshold synthesis to achieve high-accuracy attack detection while maintaining low latency and interpretability.
Original paper licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
In the modern world, electric vehicles are more than just cars; they are rolling computers that communicate constantly with the charging stations that power them. This communication relies on a digital language called a protocol, where the station sends a steady stream of numbers to a central system, reporting how much energy is flowing, how long the session has lasted, and when the battery is full. These numbers are the only way the network knows if a transaction is honest or if something is wrong. However, a significant problem exists in this digital handshake: the numbers themselves can be faked. A clever attacker could alter the reported data to hide a theft or a malfunction, making the numbers look statistically normal even while the physical reality is completely different. If the software checking these numbers only looks at other numbers, it can be easily tricked. This creates a need for a new kind of safety check, one that does not just compare digital reports to other digital reports, but instead checks the digital story against the hard, unchangeable truth of physics.
Researchers at the University of Sousse and the University of Monastir in Tunisia have developed a new method to solve this problem, treating the charging station as a system where software and physical hardware must agree. They built an automated monitor that runs directly on the charging station, acting as a real-time referee. Instead of trusting the digital report alone, this monitor has two independent ways of judging the truth. The first way is a digital check that looks for strange patterns in the data stream, such as numbers that jump too suddenly or metadata that is out of date. The second way is a physical check that uses the actual hardware inside the charger to measure the power being delivered and the state of the battery. This physical check is anchored in the laws of how batteries charge, which follow a predictable pattern of constant current followed by a gradual tapering off as the battery fills. Because the physical measurements come from the hardware itself, a software attacker cannot alter them without physically breaking the machine.
The core of this research is the combination of these two checks. The researchers found that relying on just the digital check or just the physical check leaves gaps that a smart attacker could exploit. To fix this, they created a system that fuses the results of both checks into a single decision. They did not guess where to set the sensitivity of this system; instead, they used a search-based technique to automatically find the perfect balance between catching attacks and avoiding false alarms. This process involved running thousands of simulated charging sessions where they deliberately injected different types of errors, such as scaling the numbers up, adding a constant bias, replaying old data, or corrupting the timing of the messages. By testing the system against these specific, seeded mutations, they could measure exactly how well it performed.
The results of these simulations were striking. When the researchers tested their combined system against a standard 5% false-alarm rate, it successfully detected 93.1% of the attacks. In comparison, a system using only the physical check caught 72.8% of the attacks, and a system using only the digital check caught just 44.1%. The combined system was particularly effective because the two checks covered each other's weaknesses. For instance, the physical check was excellent at spotting when the reported power numbers were wrong, but it could not detect when the timing of the messages was corrupted. The digital check, however, was perfect at spotting those timing errors. When fused together, the system detected every type of timing corruption and nearly all of the power manipulation, achieving a detection rate that neither method could reach alone.
Beyond just catching more attacks, the new system is fast and efficient enough to run on the small computers inside the charging stations. The average time it took to detect an attack was just 2.36 minutes, and the processing cost was only 50.8 microseconds per session. This speed means the system can operate in real-time without slowing down the charging process. The researchers also designed the system to be transparent. When an alarm is raised, the system does not just say "something is wrong"; it explains exactly which check failed, whether it was a physical inconsistency or a digital anomaly. This clarity helps operators understand the nature of the problem immediately.
While the results are promising, the authors are careful to note that these findings come from a simulated environment. The charging sessions were generated by a computer model that mimics real-world behavior, including the natural noise and variations found in actual hardware. The researchers have not yet tested this system on real-world data from physical charging stations, which is the next step they plan to take. They also acknowledge that their model assumes the local hardware meter is trustworthy and cannot be tampered with by an attacker. If an attacker could somehow alter the physical sensors themselves, the foundation of the physical check would be weakened. Despite these limitations, the study demonstrates a powerful new approach to software assurance. By anchoring digital verification in independent physical reality, the researchers have shown that it is possible to build automated systems that are both highly effective at catching deception and simple enough to be understood and trusted by the people who run them.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.