Dual Defense: Enhancing Privacy and Mitigating Poisoning Attacks in Federated Learning