This is code part of my work on Privacy Preserving Malicious Nework Traffic Detection Using Fully Homomorphic CNN for my MS Thesis.
This work is prepared while keeping in mind requirements of thesis.
This is not very organized code and I will keep working to improve this code in much easy to understand form along with other necessary documents additions.
There is also a model that I specifically created for batch predictions and it very good at large number of prediction it can be found at branch cnn_batch_encrypted
Some mistakes will still be in code along with improvements chances, so this work will continue.
Kindly check it, improve it and report about the issues so we can all learn and make it better.
Regards: Muhammad Saad
Python wrapper of Microsoft SEAL from https://github.com/Huelse/SEAL-Python is used
Dataset is self prepared by extracting the TCP and UDP payloads from USTC-TFC2016 provided at https://github.com/yungshenglu/USTC-TFC2016
Plain Model
Fast Encrypted CNN
This is a faster version of previous Encrypted CNN as it reduces the prediction time to near 1.4 seconds rather than 2.5 seconds from my older work