A Universal Identity Backdoor Attack against Speaker Verification based on Siamese Network

Haodong Zhao, Wei Du, Junjie Guo, Gongshen Liu

Abstract

Speaker verification (SV) systems are critical biometric security components, yet they are increasingly exposed to supply chain risks through the use of third-party datasets and pre-trained models. This paper explores a novel "Universal Identity" backdoor attack specifically designed for open-set SV systems based on Siamese Networks. By subtly poisoning the training process, an attacker can create a voice "master key" capable of impersonating any enrolled user. We evaluate two poisoning strategies: the Inner method and the novel Outer method. Experimental results on the TIMIT and VoxCeleb1 datasets demonstrate that the Outer method achieves attack success rates (ASR) exceeding 90% while maintaining high stealthiness, with minimal impact on the Equal Error Rate (EER) for legitimate users.

Introduction

Speaker verification (SV) is a biometric technology used to confirm a person's identity based on their voice. Unlike closed-set classification tasks, SV is typically an open-set problem: the system must compare a new voice against an "enrolled" voice that may not have been present during the model's initial training. This characteristic makes traditional backdoor attacks, which often rely on fixed labels, difficult to implement effectively.

Furthermore, training modern deep learning models for SV requires massive datasets and significant computational power, leading many developers to rely on external resources. This creates a "supply chain" vulnerability where a malicious actor could inject a backdoor into a model or dataset before it reaches the end user.

Methodology

The authors target Siamese Networks, a common architecture for SV. These networks utilize two parallel branches with shared weights to extract "d-vector" embeddings from speech segments. The similarity between these embeddings is then calculated using cosine similarity to determine if the speakers match.

Architecture of a Siamese Network for speaker verification

Poisoning Strategies

The paper introduces two primary methods for injecting the universal identity backdoor:

  1. Inner Method: This approach replaces a portion of a legitimate speaker's training data with the attacker's utterances. The model is thus forced to cluster the attacker's voice with that of the legitimate speaker.
  2. Outer Method (Novel): Instead of simple replacement, the authors insert attacker utterances into training batches and apply a custom Global Loss Function ($L_G$). This loss explicitly forces the model to minimize the distance between the attacker’s embedding and the "centroids" (average voice profiles) of all other speakers in the batch. This effectively creates a "Universal Identity" that is mathematically similar to every other speaker in the embedding space.
Comparison of similarity matrices for Inner (left) and Outer (right) poisoning methods

Trigger Selection

To optimize the effectiveness of the "trigger" voice, three selection methods were compared:

  • RandN: Randomly selecting different utterances from the attacker.
  • FixedN: Using a specific set of $N$ utterances.
  • CopyN: Using a single utterance repeated $N$ times.

Experimental Results

The attack was evaluated on two standard benchmarks: TIMIT (clean, phonetically balanced) and VoxCeleb1 (noisy, "in-the-wild").

Effectiveness and Stealthiness

The attack proved highly effective across both datasets. On TIMIT, the system achieved a 92.0% Attack Success Rate (ASR), while on the noisier VoxCeleb1, it reached 87.4%.

Crucially, the attack is highly stealthy. The Equal Error Rate (EER)—the primary metric for SV performance on legitimate users—showed negligible degradation. For instance, on TIMIT, the EER only rose from 4.3% in a benign model to 4.5% in the poisoned model. This makes the backdoor nearly impossible to detect through standard performance validation.

Key Insights

  • The Master Key Effect: The Outer method successfully creates a biometric master key by positioning the attacker's voice as a mathematical anomaly that is "similar to everyone."
  • Memorization vs. Generalization: At low poisoning rates, the FixedN and CopyN methods outperformed RandN. This suggests that the model more easily "memorizes" a specific trigger sound than it learns to generalize a universal identity from arbitrary sounds produced by the attacker.

Conclusion

This research highlights a significant vulnerability in Siamese Network-based speaker verification systems. The "Universal Identity" attack allows for high-success impersonation without degrading normal system performance. Future work must focus on developing robust defense mechanisms, such as detecting anomalous clusters in embedding spaces or implementing rigorous data sanitization protocols to mitigate these training-time risks.

Summary updated

BibTeX
@inproceedings{zhao2022universal,
  author = {Haodong Zhao and Wei Du and Junjie Guo and Gongshen Liu},
  title = {{A Universal Identity Backdoor Attack against Speaker Verification based on Siamese Network}},
  booktitle = {Interspeech},
  year = {2022},
  doi = {10.21437/interspeech.2022-446},
}
Figure