Replay-Based Pilot Adaptation for OCPP Intrusion Detection under Domain Shift in EV Charging Infrastructure

Release date:

Share: 

LinkedIn
Email
Print

Publication: Proceedings of the Future Technologies Conference (FTC) 2026 by SAI Conferences

Authors: Maria Makrynioti, Dimitris Nisiagkas, George Lazaridis, Georgios Stavropoulos, and Konstantinos Votis

Read more:

Electric vehicle (EV) charging infrastructures increasingly rely on the Open Charge Point Protocol (OCPP), making them attractive targets for cyberattacks. Although flow-based intrusion detection systems (IDS) can perform well on public OCPP datasets, their deployment in operational charging environments remains challenging due to domain shift between benchmark traces and real pilot-site traffic. This work studies pilot-adaptive OCPP intrusion detection under mixed-version pilot-site traffic, including both OCPP 1.6 and OCPP 2.0.1 communication. We propose a replay-based continual learning workflow that adapts a detector to real pilot-site normal traffic while preserving knowledge of known public OCPP attack classes. The modular, deployment-oriented pipeline combines flow extraction, Kafka streaming, IDS inference, Elasticsearch, and Kibana. We also investigate MODBUS-to-OCPP transfer learning and find that cross-protocol initialization does not outperform OCPP training from scratch, indicating that the main challenge is target-domain adaptation rather than source-domain initialization.

Experimentally, naive pilot fine-tuning reduces pilot false positives but suffers from catastrophic forgetting, with public macro F1 dropping to 40.44%. In contrast, the replay-based Stage 2 model achieves a low pilot false positive rate of 3.85%, while preserving 96.61% public macro F1, 97.36% hybrid attack recall, and 98.38% hybrid binary F1. Finally, Raspberry Pi flow-level edge inference achieves 83.17 ms/flow latency and 12.02 flows/s throughput, demonstrating feasible lightweight OCPP inference on constrained edge hardware.

Relevance of the Paper to the Project:

The research underpins the core objectives of O-CEI’s Pilot 7, which aims to establish a trustworthy, zero-trust Vehicle-to-Grid (V2G) charging ecosystem over reliable 5G networks. The paper’s proposed continual learning methodology directly supports CERTH’s development of a multi-layered Intrusion Detection System (IDS) that utilizes pilot-adapted Open Charge Point Protocol (OCPP) models and behavioral JSON logs to identify cyber threats. By pushing this advanced anomaly detection directly to the edge rather than relying on the cloud, the framework successfully ensures the low-latency cybersecurity required to safely manage distributed charging infrastructure.