EarArray: Defending against DolphinAttack via Acoustic Attenuation

Guoming Zhang, Xiaoyu Ji, Xinfeng Li, Gang Qu, Wenyuan Xu

Abstract

EarArray is a lightweight, software-based defense system designed to detect "DolphinAttacks"—inaudible voice commands modulated onto ultrasonic carriers. By exploiting the physical properties of sound attenuation across a device's built-in microphone array, EarArray distinguishes between legitimate human speech and malicious ultrasound. Experimental results demonstrate 99% detection accuracy and 97.89% localization accuracy, providing a passive, zero-hardware-cost solution for modern voice-controllable devices.

Introduction

Voice assistants like Siri, Alexa, and Google Assistant have become ubiquitous, yet they remain vulnerable to a sophisticated class of exploits known as DolphinAttacks. In these attacks, a malicious actor modulates a voice command onto an ultrasonic carrier (above 20 kHz). While these frequencies are inaudible to humans, the inherent non-linearity of microphone hardware "demodulates" the signal, converting it back into an audible command that the device executes.

Figure 1: Overview of the EarArray system detecting and denying a DolphinAttack.

Existing defenses often require expensive hardware redesigns or active countermeasures, such as emitting anti-ultrasound, which can cause discomfort to humans and pets. EarArray proposes a passive, software-only solution that leverages the existing microphone arrays found in most modern smart devices.

Methodology

The core innovation of EarArray is shifting the focus from the signal's content to its propagation physics. Unlike software-based features or signal distortions that an attacker can potentially mask, the laws of physics regarding sound attenuation are immutable.

Acoustic Attenuation Modeling

High-frequency ultrasound attenuates significantly faster than low-frequency human speech. Additionally, ultrasound has a shorter wavelength, making it less prone to diffraction around obstacles. EarArray utilizes the multiple microphones in a device as a spatial sensor to detect these discrepancies.

Figure 6: Geometric model of the microphone array used to analyze spatial attenuation from a speaker source.

When a human speaks, the sound field around the device is relatively uniform. In contrast, an ultrasonic attack creates a measurable discrepancy in signal strength across different microphones due to rapid decay and "shadow regions" created by the device's own body.

The Detection Pipeline

The system follows a multi-stage pipeline:

  1. Pre-processing: Isolates speech segments using denoising and Voice Activity Detection (VAD).
  2. Feature Extraction: Calculates the Range of Band Power (difference between max and min power across mics), Standard Deviation of power, and Pearson Correlation Coefficient between microphone spectra.
  3. Classification: A Support Vector Machine (SVM) classifies the input as either a legitimate "Audible" command or an "Inaudible Attack."
  4. Localization: By identifying the microphone with the strongest signal, the system can pinpoint the attacker's coarse orientation (e.g., North, South, East, West).

Experimental Evaluation

The researchers tested EarArray using custom-built prototypes: a 5-microphone cylindrical array (mimicking an Amazon Echo) and a 3-microphone array (mimicking a smartphone). The dataset included 500 voice samples from 25 volunteers and Google Text-to-Speech. Attacks were simulated using ultrasonic transducers at 25 kHz, 32 kHz, and 40 kHz across various environments, including noisy shopping malls (up to 85 dB).

Key Results

  • Detection Accuracy: EarArray achieved a 99% accuracy rate in detecting DolphinAttacks across various distances and angles.
  • Localization: The system recognized the attacker's direction with 97.89% accuracy.
  • Robustness: The defense remained effective up to 3 meters and proved resistant to common evasion tactics, such as hiding the attacker behind an obstacle or placing the victim device near a wall.

Conclusion

EarArray demonstrates that the laws of physics can serve as an immutable security filter. By leveraging existing hardware to detect the unique spatial signatures of ultrasound, it provides a robust, zero-cost defense against inaudible voice attacks. Future work will focus on overcoming OS-level restrictions on multi-channel audio access and refining the system to counter more sophisticated multi-speaker attack scenarios.

Summary updated

BibTeX
@inproceedings{zhang2021eararray,
  author = {Guoming Zhang and Xiaoyu Ji and Xinfeng Li and Gang Qu and Wenyuan Xu},
  title = {{EarArray: Defending against DolphinAttack via Acoustic Attenuation}},
  booktitle = {NDSS},
  year = {2021},
}
Figure