Islamabad, Pakistan
ProjectsMay 22, 2026

SafeCharge: analysis and defense of EV charging protocols

image

Overview

SafeCharge is my bachelor's thesis at FAST NUCES. It looks at the security of electric-vehicle charging sessions that speak OCPP, with the work focused on bringing a lab emulator up to OCPP 2.1 and checking what happens when security profiles change.

What I built

  • An OCPP compatibility shim that upgrades EmuOCPP to OCPP 2.1 and still accepts older sessions.
  • Packet captures in Wireshark to confirm how the emulator behaved across security-profile upgrades and downgrades.
  • A literature review plus inspection and parsing code so the lab traffic could be checked against the protocol.
  • A defensive control for a denial-of-service condition in OCPP 2.1's SEND message type: rate limiting and alerting, rather than a change that would break existing chargers.

Stack

OCPP 2.1, EmuOCPP, Python, Wireshark, protocol parsing.

Outcome

The thesis records a compatibility path to OCPP 2.1 and a practical mitigation for the SEND-message availability issue found during that lab work. The repository holds the thesis materials.

Related projects

Active Directory persistence threat hunting

Active Directory persistence threat hunting

A lab assessment of Windows persistence. PersistenceSniper ran across 10 endpoints and the results became detection notes for a SIEM.
AI chatbot for Windows security event logs

AI chatbot for Windows security event logs

A forensic assistant that answers plain-English questions over parsed Windows event logs, using a fine-tuned RoBERTa model.
AI vulnerability intelligence and automated remediation

AI vulnerability intelligence and automated remediation

A vulnerability-management assistant that ranks OS and network findings with machine learning and drafts remediation notes from CVE data.
Windows software write blocker

Windows software write blocker

A Windows utility that toggles USB write protection from a small desktop window, for safer preview of removable media in a forensics lab.
Python packet sniffer

Python packet sniffer

A desktop packet sniffer with a Tkinter interface. It captures on wired and wireless interfaces, including promiscuous and monitor modes.
Movie genre classifier and audio generator

Movie genre classifier and audio generator

A logistic-regression model that predicts a movie genre from its summary, then speaks that summary in Arabic, Urdu, or Korean.