Skip to main content
Have a personal or library account? Click to login
BlockFedIDS: A Blockchain-Enabled Federated Learning Framework for Privacy-Preserving Intrusion Detection in Heterogeneous IoT Networks Cover

BlockFedIDS: A Blockchain-Enabled Federated Learning Framework for Privacy-Preserving Intrusion Detection in Heterogeneous IoT Networks

Open Access
|Sep 2026

Figures & Tables

graphic/j_ias-2026-0022_bio_001.jpg
Table 1.

Comparison of BlockFedIDS with representative blockchain-enabled FL systems. DP: differential privacy; BFT: certified Byzantine-fault-tolerant aggregation; Verif.: cryptographic per-update verification.

MethodDomainBlockchain platformDPBETVerif.Reported limitation
Passerat-Palmbach et al. [8]HealthcareGeneric permissioned–––On-chain overhead not quantified
PRIVACYFL [9]General FLEthereum smart contract––TEE-basedRelies on off-chain trusted hardware
Biscotti-style [10]General FLLayer-2 rollup–––No DP or certified BFT aggregation
FLTrust [20]General FLNone (centralised server)–✓–Server root of trust is a single point of failure
BFLIDS [23]IoMT IDSPermissioned–––No formal DP or certified BFT aggregator
FLBC-IDS [24]IoT IDSPermissioned–––Focuses on model sharing, not gradient verification
BlockFedIDS (ours)IoT IDSHyperledger Fabric✓✓PedersenComplexity scales as O(K2 d)
Figure 1.

BlockFedIDS four-layer stack: IoT clients running local DP-SGD, the Pedersen commitment/encryption layer, the Hyperledger Fabric chaincode executing verification and Multi-Krum aggregation under PBFT consensus, and the IPFS off-chain storage layer.

Table 2.

Summary of key notation.

SymbolDescription
N, MNumber of IoT clients / Fabric validator peers (20, 4)
fMaximum number of Byzantine clients tolerated (6)
T, EGlobal training rounds / local epochs per round (100, 5)
BLocal mini-batch size (64)
wtGlobal model parameters at round t
git DP-SGD gradient of client ci at round t
dDimensionality of the gradient vector (67,908)
C, σGradient clip norm / DP noise multiplier (1.0, 1.1)
ϵ, δCumulative DP privacy budget (8, 10−5)
KNumber of clients whose commitments are opened in a round
SMulti-Krum selected (benign) client set, |S| = K − f
comit Pedersen commitment of git
ρi, τρReputation score of client ci / suspension threshold (0.3)
βReputation exponential-decay factor (0.9)
H(·)SHA-256 hash function
αDirichlet non-IID concentration parameter (0.5)
Figure 2.

Per-round sequence diagram of BlockFedIDS. Solid arrows indicate data flow between layers; dashed arrows indicate control messages (opening requests).

Table 6.

Algorithm 1: On-Chain Multi-Krum Aggregation (Chain-code)

Require: Verified gradients {git}i=1K , current model wt, learning rate η, Byzantine bound f
Ensure: wt+1 committed to ledger; IPFS CID returned ▷ Score every opened gradient by its distance to its closest honest-sized neighbourhood
1: for each client i ∈ [K] do
2: nbrs (i) ← K − f − 2 nearest gradients by ℓ2 -distance ▷ excludes the f+1 points an outlier could bias
3: s(i)←∑j∈nbrs(i)gitgjt22 ▷ lower s(i) = more consistent with the majority
4: end for
5: S ← top-(K−f) clients with smallest s(·) ▷ discard the f highest-scoring (most outlying) clients
6: g¯←1S∑i∈Sgit ▷ average only the surviving, presumed-benign gradients
7: wt+1←wt−η g¯ ▷ single deterministic SGD step, replicated by every peer
8: cid ← IPFS.push(wt+1) ▷ full weights go off-chain; only the CID is committed
9: ledger.put({H(wt+1), cid, S, t+1, τ}) ▷ ≈ 1.4 KB write: hash, CID, selected set, round, timestamp
10: return wt+1
Table 3.

Detection performance on NSL-KDD and CIC-IDS-2017 (0 % Byzantine clients, ϵ = 8, δ = 10−5).

Acc.(%)F1FPR(%)DR(%)Acc.(%)F1FPR(%)DR(%)
Centralised oracle98.310.9910.4799.1298.740.9930.3899.21
FedAvg [3]96.450.9711.2397.0496.110.9681.4196.72
FedAvg + DP95.870.9641.5596.3295.430.9601.7295.91
Biscotti-style [10]96.020.9661.3896.5195.780.9631.5896.10
FLTrust [20]96.730.9731.1497.2196.390.9701.2996.88
BlockFedIDS (ours)97.140.9840.9197.6396.880.9751.0297.31
Figure 3.

NSL-KDD accuracy vs. Byzantine client fraction under a label-flipping attack. BlockFedIDS retains >81% accuracy at 30% Byzantine clients, a 30.9pp gain over vanilla FedAvg.

Figure 4.

Privacy–utility trade-off on NSL-KDD.

Figure 5.

Training loss on NSL-KDD. FedAvg diverges under 20% Byzantine clients.

Table 4.

Blockchain performance vs. number of clients: hybrid (IPFS + on-chain hash) design vs. naive on-chain full-weight storage. TPS: committed transactions per second. Latency: time from gradient submission to ledger commit.

ClientsStorageTPSLat.(s)Round(s)KB/round
5Hybrid (ours)3120.6418.21.2
5Naive on-chain5.140.21120260
10Hybrid (ours)2870.7129.51.3
10Naive on-chain4.843.61780260
15Hybrid (ours)2610.7938.71.3
15Naive on-chain4.546.12150260
20Hybrid (ours)2340.8847.31.4
20Naive on-chain4.248.72520260
25Hybrid (ours)1981.0458.91.4
25Naive on-chain3.952.33180260
30Hybrid (ours)1711.2273.11.5
30Naive on-chain3.655.93830260
Table 5.

Ablation study (NSL-KDD with 20% Byzantine clients). BC: blockchain; DP: differential privacy; MK: Multi-Krum; Rep: reputation weighting. ✓ = component active.

BCDPMKRepAcc.(%)F1
54.870.512
✓56.130.528
✓58.310.547
✓82.440.881
✓✓60.020.563
✓✓86.210.913
✓✓87.030.921
✓✓✓88.450.937
✓✓✓✓89.820.951
DOI: https://doi.org/10.2478/ias-2026-0022 | Journal eISSN: 1554-1029 | Journal ISSN: 1554-1010
Language: English
Page range: 453 - 467
Published on: Sep 28, 2026
Published by: Cerebration Science Publishing Co., Limited
In partnership with: Paradigm Publishing Services
Publication frequency: Volume open

© 2026 Abhay Kumar Yadav, published by Cerebration Science Publishing Co., Limited
This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 License.