CommanderSong: A Systematic Approach for Practical Adversarial Voice Recognition

Xuejing Yuan, Yuxuan Chen, Yue Zhao, Yunhui Long, Xiaokang Liu, Kai Chen, Shengzhi Zhang, Heqing Huang, Xiaofeng Wang, Carl A. Gunter

TL;DR

Researchers have developed CommanderSong, a method to stealthily embed voice commands into popular songs that can hijack Automatic Speech Recognition (ASR) systems like Alexa or Google Assistant. Unlike previous attacks that sounded like random noise or required specialized hardware, these "adversarial songs" sound perfectly normal to humans but are interpreted as malicious commands by AI, even when played over the air or via YouTube.

What Problem Does This Paper Address?

While ASR systems are ubiquitous, their security remains a concern. Previous adversarial attacks on audio faced three major hurdles:

  1. Stealth: Most attacks produced "noise-like" sounds that a human would immediately find suspicious.
  2. Practicality: Many attacks only worked when the digital file was fed directly into the system (bypassing the microphone and air).
  3. Modernity: Earlier research often targeted older ASR architectures (like Gaussian Mixture Models); modern systems use Deep Neural Networks (DNNs), which require different exploitation techniques.

The authors aim to create a practical, surreptitious, and automated attack that works in real-world conditions—meaning it can be played from a distance, through a speaker, in a noisy room, and still be recognized by the AI while remaining undetected by humans.

Methods

The core of the attack is a technique called pdf-id sequence matching.

  1. The Target: The authors used the open-source ASR toolkit Kaldi as their primary target. They analyzed how Kaldi’s DNN maps audio features to "pdf-ids" (identifiers for specific phonetic states).
  2. The Optimization: Using gradient descent, the researchers took a "carrier" song and a target command (e.g., "Echo, open the front door"). They iteratively modified the song's audio wave to minimize the difference between the song's phonetic output and the command's phonetic output at the DNN level.
  3. WTA vs. WAA:
    • WAV-To-API (WTA): A digital-only attack where the file is processed directly.
  4. WAV-Air-API (WAA): A physical attack where the song is played through a speaker. To make this robust, the authors integrated a noise model (including random noise and recorded electronic distortion) into the optimization process so the command survives the "trip" through the air.
  5. Hiding in Plain Sight: To ensure humans didn't notice the command, they constrained the perturbations to be as small as possible, effectively "masking" the command within the song's existing frequencies.

Datasets

The researchers evaluated their approach using:

  • Carrier Songs: 26 songs randomly downloaded from the internet, spanning genres like Pop, Rock, Rap, and Soft Music.
  • Commands: 12 commonly used IVC (Intelligent Voice Control) commands, such as "turn on GPS," "read mail," and "make a credit card payment."
  • Human Study: A survey of 204 participants on Amazon Mechanical Turk to evaluate if humans could detect the hidden commands.

Key Insights and Ideas

  • Phonemes are the Key: You don't need to replicate the entire audio of a voice command. You only need to trick the neural network into seeing the specific sequence of phonetic states (pdf-ids).
  • The "Air Gap" is Bridgeable: By simulating the "electronic noise" of speakers and microphones during the optimization phase, adversarial examples become significantly more robust to real-world environments.
  • Transferability: An attack crafted for one system (Kaldi) can sometimes work on another (iFLYTEK), even if the attacker doesn't have access to the second system's code or model. This suggests a fundamental vulnerability in how different ASR systems process speech.
  • Genre Matters: "Soft music" was found to be the best carrier for stealth, with only 15% of humans noticing any abnormality, whereas rap and rock were slightly more likely to reveal the underlying "noise" of the perturbation.

Key Results

  • 100% Success Rate: In digital (WTA) attacks, all 200+ generated CommanderSongs successfully triggered the intended commands in Kaldi.
  • 96% Success Rate: In over-the-air (WAA) attacks using a JBL speaker, the system maintained a very high success rate.
  • Zero Human Detection: In the user study, not a single participant (0%) was able to recognize the hidden command, even when they noticed the audio sounded slightly "noisy."
  • Real-World Impact: The authors successfully demonstrated the attack against iFLYTEK, a major commercial ASR system used by apps with hundreds of millions of users (like WeChat and Sina Weibo).
  • Defense: The paper proposes two defenses: Audio Turbulence (adding small amounts of noise to the input to disrupt the adversarial pattern) and Audio Squeezing (downsampling the audio), both of which significantly reduced the attack's success rate.

Limitations and Future Work

  • White-Box Requirement: The initial generation of the attack requires "white-box" access to an ASR model (like Kaldi) to perform gradient descent. While it transfers to other systems, the initial "seed" needs a known model.
  • Environmental Sensitivity: While robust, the over-the-air attack's success can still vary based on the specific speaker quality and room acoustics.
  • Future Directions: The authors suggest exploring more "black-box" attacks that don't require internal model knowledge and developing more sophisticated, built-in defenses for ASR hardware to filter out non-human speech patterns.

Summary updated

BibTeX
@inproceedings{yuan2018commandersong,
  author = {Xuejing Yuan and Yuxuan Chen and Yue Zhao and Yunhui Long and Xiaokang Liu and Kai Chen and Shengzhi Zhang and Heqing Huang and Xiaofeng Wang and Carl A. Gunter},
  title = {{CommanderSong: A Systematic Approach for Practical Adversarial Voice Recognition}},
  booktitle = {USENIX Security},
  year = {2018},
  url = {https://openreview.net/forum?id=hjfmPLUwtG},
}
Figure