🛡️ BlockSentinel
Anomaly detection and tamper-proof logging for EV charging infrastructure.
A team research project that models cyber attacks on electric vehicle charging stations, simulates them, and designs a detection system that records every finding on a blockchain.
👥 11-person team · 🧭 Team lead: Ömer Faruk Aydın · 📅 Oct 2025 – Jan 2026 · Fırat University
🎯 The Problem
EV charging stations talk to cars over CAN-Bus and ISO 15118 (PLC), and to their operator over OCPP. None of these layers was designed with strong security in mind. An attacker who gets into any of them can steal energy, clone payment certificates, take a station offline, or push dangerous current into a battery.
💡 The Idea
CAN-Bus / OCPP traffic ──► Feature extraction ──► AI anomaly detection (LSTM)
│
Rule engine (state machine) ───┤
▼
Anomaly event logged
│
SHA-256 hash of the log
▼
Anchored on a blockchain (immutable)
- Monitor CAN-Bus and OCPP traffic in real time.
- Detect anomalies with an LSTM model plus rule-based checks, and correlate across protocols (e.g. a 300 A request over PLC vs. a 100 A limit reported by the battery on CAN).
- Record each finding’s hash on a blockchain, so nobody can delete or change the evidence later (non-repudiation).
🧪 What the Team Produced
Each member researched one attack scenario end to end: goal and scope, target assets, vulnerabilities, STRIDE threat category, attack steps, how BlockSentinel detects it, impact, and a SWOT analysis. Several were also simulated on Linux with virtual CAN (vcan0) and python-can.
| # |
Attack scenario |
Layer |
Author |
| 1 |
ISO 15118 Plug & Charge spoofing: certificate cloning + over-current injection via a PLC man-in-the-middle implant |
PLC / ISO 15118 |
Ömer Faruk Aydın |
| 2 |
Energy theft by tampering with OCPP MeterValues |
OCPP |
Yusuf Uraz |
| 3 |
Thermal attack triggered over OCPP (with MitM proxy, CSMS and BMS monitor simulation) |
OCPP → CAN |
Yavuz Selim Karaağaç |
| 4 |
Denial of Service by flooding CAN-Bus with high-priority IDs |
CAN-Bus |
Sıla Kozik |
| 5 |
CAN flood attack (“Highway Brake Trap”) |
CAN-Bus |
Kadir Yıldırım |
| 6 |
Fake charging station identity theft (why mutual TLS matters) |
OCPP / App |
Mustafa Dürü |
| 7 |
Bus-Off after a crash: CAN network collapse |
CAN-Bus |
Botan Külay |
| 8 |
UDS Security Access (0x27) brute-force and timing attack |
CAN / UDS |
Resul Taşçı |
| 9 |
Ghost vehicle: V2X data poisoning of autonomous driving |
V2X |
Yusuf Mete Kaya |
| 10 |
Sensor drift and sudden spikes detected with deep learning |
Sensors / AI |
Yiğit Erdoğan |
| 11 |
Virtual ECU listener for CAN injection (Python simulation) |
CAN-Bus |
Beyza Polat |
Each member’s reports, screenshots and simulation outputs are in their own folder.
🧭 My Role as Team Lead (Ömer Faruk Aydın)
- Organized the team into three groups and wrote the implementation roadmap:
- AI / Data team: feature extraction and LSTM training (Python, TensorFlow)
- System / Backend team: gateway security and rule-based state machine checks (OCPP, Python / Node.js)
- Blockchain team: immutable logging of every detected anomaly (Solidity, Ethereum / Hyperledger)
- Designed the blockchain layer: hash each anomaly log with SHA-256 and anchor it on-chain, and prepared a 5-week learning plan for the team (Remix, Hardhat / Ganache, Hyperledger Fabric).
- Chose the toolchain for every part of the system (see below).
- Wrote the ISO 15118 Plug & Charge attack scenario (#1), based on the paper Threat analysis of the vehicle-to-grid charging protocol ISO 15118 (Bao et al., 2018).
📁 Documents: Ömer_Faruk_AYDIN/
🛠️ Planned Tech Stack
| Area |
Tools |
| CAN I/O & simulation |
python-can, can-utils, SocketCAN, vcan0 |
| Injection / MitM |
CANable, PiCAN2, mitmproxy, Python bridge scripts |
| OCPP & DDoS testing |
ocpp Python library, SteVe backend, Locust, hping3 |
| Anomaly detection |
pandas, scikit-learn, TensorFlow / Keras (LSTM autoencoder) |
| Dashboard |
Streamlit / Flask + Chart.js |
| Blockchain anchoring |
Solidity anchor contract on a testnet, IPFS for off-chain logs, or Hyperledger Fabric |
📌 Status
Research and design phase is complete: 11 threat scenarios with STRIDE and SWOT analyses, plus CAN and OCPP attack simulations. The integrated detection system and blockchain contract are the next phase.
🇹🇷 Türkçe özet
BlockSentinel, elektrikli araç şarj istasyonlarının CAN-Bus, OCPP ve ISO 15118 iletişimindeki siber açıkları tespit etmek, izlemek ve önlemek için tasarlanan 11 kişilik bir ekip projesidir. Sistem trafiği gerçek zamanlı analiz eder, yapay zekâ ve kural motoruyla anomalileri yakalar ve her bulgunun özetini değiştirilemez şekilde blok zincirine kaydeder. Her ekip üyesi bir saldırı senaryosunu STRIDE ve SWOT analiziyle inceledi, bir kısmı sanal CAN üzerinde simüle edildi. Ekip lideri Ömer Faruk Aydın; ekibi YZ, backend ve blockchain gruplarına ayırdı, yol haritasını ve blockchain katmanını tasarladı.
评论