This is the official repository for PrivMon, presented at RAID 2023. This system is a stream-based solution for real-time privacy attack detection targeting machine learning models.
-
Conda Environment
conda env create -f environment.yml --name myenv
-
Replace lpips in Anaconda Package
-
Docker Engine
- Install the Docker Engine from the official website.
-
Docker Services
sudo systemctl start docker sudo docker-compose up
-
Kafka Topics
bash create topics.sh
-
Train Model [in the corresponding attack folder]
python main.py –action 0
-
Simulate the Attack [in the corresponding attack folder]
python main.py --blackadvattack HopSkipJump --dataset_ID 0 --datasets CIFAR10 --number_classes 10
-
System Evaluation [in the ml-privacy folder]
python main.py -d CIFAR10 -a HSJ --metrics perc_lsh_step1_orig_level2
-
Datasets
- Download the CelebA and Facescrub datasets from their official websites and save these into the ".data" folder.
-
Models
-
Additional References
- For more details, please see the related project: Label-Only Model Inversion Attacks via Boundary Repulsion.
- Simulate the Attack [in the corresponding attack folder]
python magnetic_main.py
- System Evaluation [in the ml-privacy folder]
python main.py --dataset CelebA --metric perc_lsh_step1_orig_level2