Federated Learning Under Attack: Exposing Vulnerabilities through Data Poisoning Attacks in Computer Networks

Ehsan Nowroozi, Imran Haider, Rahim Taheri, Mauro Conti
3/5/2024
cs.CRcs.AIcs.CY

No official code found. Best implementation: ehsannowroozi/FederatedLearning_Poison_LF_FP (3 stars, GPL-3.0, last commit 2023-11-07).

Abstract

Federated Learning (FL) is a machine learning (ML) approach that enables multiple decentralized devices or edge servers to collaboratively train a shared model without exchanging raw data. During the training and sharing of model updates between clients and servers, data and models are susceptible to different data-poisoning attacks. In this study, our motivation is to explore the severity of data poisoning attacks in the computer network domain because they are easy to implement but difficult to detect. We considered two types of data-poisoning attacks, label flipping (LF) and feature poisoning (FP), and applied them with a novel approach. In LF, we randomly flipped the labels of benign data and trained the model on the manipulated data. For FP, we randomly manipulated the highly contributing features determined using the Random Forest algorithm. The datasets used in this experiment were CIC and UNSW related to computer networks. We generated adversarial samples using the two attacks mentioned above, which were applied to a small percentage of datasets. Subsequently, we trained and tested the accuracy of the model on adversarial datasets. We recorded the results for both benign and manipulated datasets and observed significant differences between the accuracy of the models on different datasets. From the experimental results, it is evident that the LF attack failed, whereas the FP attack showed effective results, which proved its significance in fooling a server. With a 1% LF attack on the CIC, the accuracy was approximately 0.0428 and the ASR was 0.9564; hence, the attack is easily detectable, while with a 1% FP attack, the accuracy and ASR were both approximately 0.9600, hence, FP attacks are difficult to detect. We repeated the experiment with different poisoning percentages.

View on arXivView PDF

Code Implementations(1)

GPL-3.0

Contains the simulation code for Label Flipping (LF) and Feature Poisoning (FP) attacks against Federated Learning in Computer Networks.

31Nov 7, 20232 years agoGPL-3.0

Similar Papers

Cite this paper

@article{nowroozi2024federated,
  title  = {Federated Learning Under Attack: Exposing Vulnerabilities through Data Poisoning Attacks in Computer Networks},
  author = {Ehsan Nowroozi and Imran Haider and Rahim Taheri and Mauro Conti},
  year   = {2024},
  eprint = {2403.02983},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2403.02983v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2403.02983.svg)](https://codeofpaper.com/paper/2403.02983)

Discussion