STAIN-FL: Stealthy Targeted Attack Injection with Contextual Triggers in Federated Learning
Organizations: Singapore Institute of Technology (SIT) Singapore · SingHealth Duke-NUS AI in Medicine Institute SingHealth AI Office, Singapore
Abstract
Federated video anomaly detection trains model collaboratively without sharing raw surveillance footage, but limited server-side visibility lets compromised clients to inject backdoor via malicious updates. This paper introduces STAIN-FL, a stealthy targeted backdoor attack injection framework that uses naturally occurring surveillance conditions, including low-light scenes, indoor settings, and crowd density, as contextual triggers. STAIN-FL combines anomaly-to-benign label manipulation with gradient masking over least-updated coordinates to preserve clean accuracy while inducing trigger-conditioned misclassification. We evaluate STAIN-FL on UCF-Crime using 1024-dimensional I3D features in a non-IID four-client multi-agency setting, comparing FedAvg and FedProx under sparse and continuous attacks. Results show that sparse attacks have low-detectability, operationally significant attacks rather than high-intensity attacks: they keep the mean clean-accuracy drop below , yet still misclassify more than half of triggered anomalies at peak backdoor accuracy under FedAvg () and FedProx (). Under FedAvg, the sparse backdoor remains above the backdoor-accuracy threshold for an average of post-attack rounds, highlighting the persistence risk of contextually triggered attacks in surveillance systems.
Figures & tables
| Symbol | Description |
|---|---|
| Number of FL clients | |
| FL communication round | |
| Compromised client index | |
| Global model at round | |
| Local model trained by client | |
| Dataset of compromised client |
| Parameter | Value |
|---|---|
| Compromised client | Agency 1 |
| Trigger type | low-light |
| Learning rate boost ( ) | 2.0 |
| Scale factor ( ) | 1.5 |
| Attack start round | 50 |
| Total FL rounds | 1,000 |
| Pattern | Aggregation | Clean Acc. Drop | Peak BA |
|---|---|---|---|
| Sparse | FedAvg | 1.66% | 56.7% |
| Continuous | FedAvg | 7.51% | 77.1% |
| Sparse | FedProx | 1.03% | 54.2% |
| Continuous | FedProx | 4.23% | 72.6% |
| Pattern | Aggregation | Stabilise 25% | Post-attack |
|---|---|---|---|
| Sparse | FedAvg | 120 | 6.1% |
| Continuous | FedAvg | 82 | 6.3% |
| Sparse | FedProx | 119 | 7.0% |
| Continuous | FedProx | 136 | 7.1% |
Appendix figures & tables7 assets
Supplementary material from the paper’s appendix.
Appendix
| Partition | Normal | Anomaly | Total |
|---|---|---|---|
| Global test set (server) | 190 | 190 | 380 |
| Client 1 | 282 | 300 | 582 |
| Client 2 | 221 | 220 | 441 |
| Client 3 | 189 | 160 | 349 |
| Client 4 | 68 | 80 | 148 |
| Client total | 760 | 760 | 1,520 |
| 50% | 40% | 30% | 25% | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Pattern | FA | FP | FA | FP | FA | FP | FA | FP | |
| Sparse | 0.05 | 3 | 2 | 16 | 22 | 169 | 168 | 382 | 358 |
| 0.10 | 3 | 2 | 19 | 18 | 162 | 156 | 387 | 327 | |
| 0.15 | 2 | 1 | 13 | 18 | 126 | 138 | 312 | 305 | |
| 0.20 | 2 | 3 | 13 | 24 | 110 | 128 | 308 | 275 | |
| 0.25 | 3 | 2 | 13 | 20 | 116 | 135 | 293 | 273 | |
| 50% | 40% | 30% | 25% | 20% | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Pattern | FA | FP | FA | FP | FA | FP | FA | FP | FA | FP | |
| Sparse | 0.05 | 20 | 20 | 20 | 20 | 40 | 35 | 250 | 110 | NA | 506 |
| 0.10 | 20 | 20 | 20 | 20 | 35 | 63 | 127 | 134 | 531 | 647 | |
| 0.15 | 20 | 20 | 20 | 23 | 24 | 36 | 58 | 84 | 88 | 602 | |
| 0.20 | 20 | 20 | 20 | 21 | 23 | 37 | 55 | 160 | 77 | 462 | |
| 0.25 | 20 | 20 | 21 | 20 | 42 | 34 | 111 | 109 | 240 | 510 | |
| 10% | 5% | 3% | Post-attack | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Pattern | FA | FP | FA | FP | FA | FP | FA | FP | |
| Sparse | 0.05 | 44 | 47 | 353 | 368 | 886 | NA | 6.3% | 7.0% |
| 0.10 | 24 | 33 | 377 | 512 | 806 | 574 | 6.3% | 7.2% | |
| 0.15 | 29 | 37 | 360 | 301 | 754 | 359 | 6.2% | 6.8% | |
| 0.20 | 21 | 40 | 279 | 380 | 708 | 612 | 5.8% | 6.9% | |
| 0.25 | 48 | 40 | 320 | 379 | 478 | 786 | 6.1% | 6.9% | |
Backdoor Attacks
Backdoor attacks implant hidden, trigger-dependent behaviors in models while aiming to preserve normal performance.
See all 129 papers