Can You Hear It? Backdoor Attacks via Ultrasonic Triggers

Stefanos Koffas, Jing Xu, Mauro Conti, Stjepan Picek

TL;DR

Researchers have demonstrated a highly effective backdoor attack on Automatic Speech Recognition (ASR) systems using inaudible ultrasonic triggers. By poisoning less than 1% of the training data, an attacker can achieve a 100% success rate in forcing a model to misclassify audio, all while remaining completely undetected by human ears.

What Problem Does This Paper Address?

Backdoor attacks are a significant security threat to deep learning. In these attacks, a model is trained to behave normally on clean data but perform a specific malicious action (like misclassifying a command) when a secret "trigger" is present.

While previous research has explored backdoors in speech recognition, those triggers were typically audible—think of a specific background noise or a "stamped" word. This makes them detectable by legitimate users. This paper addresses the gap in stealthy attacks by using ultrasonic triggers (>20kHz) that are outside the range of human hearing but can still be captured by standard microphones and processed by neural networks.

Methods

The authors propose a gray-box data poisoning attack. In this scenario, the attacker doesn't need to know the model's architecture; they only need to inject a small number of "poisoned" samples into the training dataset.

Key technical steps included:

  • Trigger Design: They used a 21 kHz sinusoidal pulse. Because standard speech datasets are sampled at 16 kHz (which would filter out a 21 kHz signal), they up-sampled the data to 44.1 kHz to satisfy the Nyquist theorem.
  • Feature Extraction: The models were trained using Mel-Frequency Cepstral Coefficients (MFCCs), a standard feature set that emulates human hearing but can still capture high-frequency information if the sampling rate is high enough.
  • Architectural Diversity: They tested the attack across three different architectures: a small CNN, a large CNN, and an LSTM (Long Short-Term Memory) network.
  • Trigger Variations: They experimented with trigger duration (20ms to 1s), position (start, middle, or end of the clip), and continuity (a single continuous pulse vs. five shorter pulses scattered throughout the second).

Datasets

The study utilized the Google Speech Commands dataset, a benchmark for small-footprint keyword spotting. They evaluated two versions:

  1. A 10-class subset (approx. 21,000 files).
  2. The full 30-class dataset (approx. 58,000 files).

Key Insights and Ideas

  • Minimal Poisoning, Maximum Impact: For CNN-based models, poisoning as few as 200 samples (less than 1% of the data) was enough to reach a near 100% attack success rate (ASRT).
  • The "Scattered" Advantage: Non-continuous triggers (scattered pulses) were significantly more effective than single continuous pulses, especially for short durations. This suggests that spreading the trigger features across the input makes it easier for the network to "notice" them.
  • LSTM Robustness: LSTMs proved more resilient than CNNs. The authors found that the attention mechanism in LSTMs doesn't easily latch onto short, high-frequency triggers unless they are strategically placed (typically at the end of the audio clip).
Figure 2: Attention weights for poisoned input ("on").
Figure 2 illustrates how the attention layer in an LSTM fails to recognize a short 20ms trigger when only 200 poisoned samples are used, highlighting a natural, though not absolute, robustness.

Key Results

  • Success Rates: Both CNN architectures reached a 100% ASRT with very low poisoning rates. Even with a challenging 20ms trigger, success rates climbed rapidly as the number of poisoned samples increased.
Figure 1: ASRT vs. trigger samples for more than 80 poi- soned samples and CNNs.
  • Trigger Duration: There is a clear linear correlation between trigger duration and success rate. Longer triggers are easier for the model to learn because they affect more "windows" in the MFCC calculation.
Figure 4: Mean ASRT vs. trigger size for 30 dataset classes (small CNN).
  • Real-World Hardware Attack: The researchers successfully attacked an Android application on a Huawei P9 Lite. By playing the inaudible trigger through a laptop or home cinema speakers, they could manipulate the app's inference from up to 1.5 meters away.

Limitations and Future Work

The authors acknowledge several hurdles for this attack in the wild:

  • Sampling Rate Dependency: Most current ASR systems prefer a 16 kHz sampling rate, which would naturally act as a low-pass filter and kill the ultrasonic trigger. However, many public APIs and specialized applications (like music genre classification) do support higher rates.
  • Simple Defenses: A basic software or hardware low-pass filter could render this attack ineffective.
  • Feature Representation: The study focused exclusively on MFCCs. While widely used, it's unclear if the attack translates as easily to other signal representations like raw waveforms or spectrograms.

Future work will likely focus on more complex, non-sinusoidal triggers and exploring robust defenses that don't rely on high computational overhead.

Summary updated

Abstract

This work explores backdoor attacks for automatic speech recognition systems where we inject inaudible triggers. By doing so, we make the backdoor attack challenging to detect for legitimate users, and thus, potentially more dangerous. We conduct experiments on two versions of a speech dataset and three neural networks and explore the performance of our attack concerning the duration, position, and type of the trigger. Our results indicate that less than 1% of poisoned data is sufficient to deploy a backdoor attack and reach a 100% attack success rate. We observed that short, non-continuous triggers result in highly successful attacks. However, since our trigger is inaudible, it can be as long as possible without raising any suspicions making the attack more effective. Finally, we conducted our attack in actual hardware and saw that an adversary could manipulate inference in an Android application by playing the inaudible trigger over the air.
BibTeX
@inproceedings{koffas2022can,
  author = {Stefanos Koffas and Jing Xu and Mauro Conti and Stjepan Picek},
  title = {{Can You Hear It? Backdoor Attacks via Ultrasonic Triggers}},
  booktitle = {WiseML@WiSec},
  year = {2022},
  doi = {10.1145/3522783.3529523},
}
Figure