WEBVTT

00:00.000 --> 00:06.320
Hello, my name is Mark Foody, and my presentation is called Exploiting Voice Cloning in Adversarial Simulation.

00:06.640 --> 00:15.080
I'd first like to thank Adversary Village for giving me the opportunity to present my research at DEF CON 32, and it's an honor to be here among so many talented individuals.

00:15.960 --> 00:17.280
Okay, so let's dive in.

00:17.360 --> 00:18.260
Who am I?

00:19.180 --> 00:20.880
As I mentioned, my name is Mark.

00:20.880 --> 00:22.500
I wear many hats.

00:22.540 --> 00:27.320
I'm an offensive security researcher, a father, a husband, a proud cat dad.

00:27.520 --> 00:38.720
In addition to my work in AI and security, I founded Neurodiverse Hackers, which is a community dedicated to highlighting and addressing the unique needs of neurodiverse individuals in the hacking community.

00:39.120 --> 00:40.960
Now, let's get to the heart of today's presentation.

00:40.960 --> 00:44.380
We're going to explore the fascinating and unsettling world of voice cloning.

00:45.340 --> 01:05.100
So, initially, I had planned on demonstrating how easy voice verification systems could be bypassed, but due to the legal gray areas concerning using a real-time voice clone to access my own bank account, I decided to focus on showing how clone speech can be made undetectable by two anti-spoofing mechanisms.

01:05.540 --> 01:16.280
While many commercial products can create realistic voice clones, they cannot defeat the voice verification services used by financial institutions, which detect anomalies through mouse spectrograms.

01:16.280 --> 01:21.300
To bypass anti-spoofing components, it's crucial to refine a voice model through the steps I'll present.

01:22.980 --> 01:31.560
So, voice verification services are provided by companies like Nuance, Variant, Fortress Identity.

01:31.560 --> 01:38.620
They're used by financial institutions such as Fidelity Bank, Wells Fargo, Citibank for secure authentication.

01:39.700 --> 01:44.400
Although these services enhance security through voice biometrics, they remain vulnerable to exploitation.

01:44.980 --> 01:54.720
Today, I'll discuss the methods used to bypass these technologies and focus on adversarial training required to enable a voice clone model to bypass anti-spoofing verification systems.

01:55.920 --> 02:06.260
The purpose of this talk is not to delve into the voice cloning process itself, but to explore how adversarial training can create a voice clone indistinguishable from natural human speech.

02:06.400 --> 02:12.500
So, I'll walk through the eight key elements that can make a synthetic voice practically imperceptible from a real one.

02:20.800 --> 02:28.880
To thematically organize the various approaches for defeating voice verification, I developed the acoustic standards for modifying spoofed speech.

02:28.880 --> 02:36.320
This is like a set of standards focused on key aspects of audio manipulation, making spoofed speech indistinguishable from voice verification.

02:36.740 --> 02:48.940
Each step in acoustics provides a structured approach to bypass the rigorous verification and streamlining the process used by other researchers into accessible steps that anyone can follow.

02:50.300 --> 02:55.440
Implementing these techniques requires combining signal processing and machine learning algorithms.

02:55.440 --> 03:03.820
So, after DEF CON, I will provide code examples and slides on GitHub to demonstrate how these adjustments can be made and automated and used to train a voice clone model.

03:04.380 --> 03:05.380
Let's delve in.

03:06.280 --> 03:06.580
All right.

03:06.580 --> 03:07.620
So, slide one.

03:07.800 --> 03:08.600
Acoustics.

03:08.600 --> 03:15.940
So, in audio spoofing, adjusting silence intervals is crucial for creating speech that convincingly mimics genuine human interaction.

03:16.360 --> 03:21.660
Natural communication includes pauses and starts at the end of speech.

03:21.720 --> 03:29.360
These are known as leading and trailing silences, which can carry acoustic signatures like microphone static, breathing sounds, and other ambient noise.

03:29.680 --> 03:32.680
These nuances are vital for making speech sound authentic.

03:33.160 --> 03:40.700
So, the first task in adjusting silence intervals involves replacing the leading and trailing silence with natural silences extracted from recordings.

03:40.760 --> 03:49.140
This requires selecting silences that match the context of the spoof speech and ensuring they exhibit natural variability and align with the intended environment.

03:49.680 --> 03:55.660
Along with replacing leading and trailing silence, it's also essential to eliminate interword redundant silence.

03:56.720 --> 04:03.720
Spoof speech often has a longer synthetic pauses due to its segmented nature of the speech synthesis process.

04:04.120 --> 04:13.460
The goal is to reduce these gaps by inserting human-like silences that maintain the rhythm and flow of authentic speech using advanced algorithms to model natural silence patterns.

04:16.420 --> 04:21.080
So, then center spectrum boosting.

04:21.340 --> 04:29.820
Center spectrum boosting is also a critical technique for enhancing spoof speech because it manipulates frequency components to increase perceived authenticity.

04:30.560 --> 04:40.940
Human speech has an energy concentration in the low to mid frequency range, particularly between one and four kilohertz, which is vital for intelligibility and contains the most phonetic information.

04:42.060 --> 04:51.960
Boosting these central frequencies makes synthetic speech sound more natural and less mechanical, and this helps blend in, helping it blend seamlessly into real-world audio environments.

04:53.140 --> 04:58.580
Natural speech's mid-range frequencies contribute to clarity and distinguish human voices from synthetic ones.

04:59.240 --> 05:06.580
Many audio classifiers and voice verification systems detect subtle clues within this range to differentiate genuine from spoof speech.

05:06.580 --> 05:13.180
So, making center spectrum manipulation essential for overcoming synthetic speech limitations.

05:14.040 --> 05:23.760
Digital signal processing techniques amplify critical frequencies while suppressing higher frequencies and enhancing the signal's intensity within a targeted range.

05:24.960 --> 05:30.680
Careful calibration ensures that the amplification maintains authenticity and avoids distortions.

05:33.280 --> 05:37.040
All right, oh, optimizing echo simulation.

05:37.640 --> 05:42.420
Optimizing echo simulation is crucial for making synthetic speech more convincing and realistic.

05:42.600 --> 05:48.400
Echoes naturally occur when a speech is recorded, adding depth and context by reflecting off surfaces.

05:48.580 --> 05:55.260
These reflections help listeners perceive space and authenticity, often missing in synthetic voice generated by spoofing algorithms .

05:55.580 --> 06:06.140
In the genuine recording, echoes are subtle clues that aid in interpreting the recording space, size, and nature, and they vary in amplitude and delay based upon the surface distance and characteristics.

06:06.340 --> 06:16.540
To enhance the realism of spoof speech, simulating natural echo patterns involves introducing slight time delay with copies of the original audio with progressively lower amplitudes.

06:16.540 --> 06:27.700
This mimics how sound waves will bounce and decay in real-world environments, and it's enhancing the audio's spatial qualities and challenging voice verification systems to detect the absence of natural reflections.

06:32.440 --> 06:35.440
All right, so U, upgrade frequency pre-emphasis.

06:35.880 --> 06:47.680
While center spectrum boosting focused on enhancing the naturalness of synthetic speech by amplifying mid-ranges, frequency pre-emphasis targets the higher frequency ranges to improve speech quality and reduce noise.

06:48.020 --> 06:58.700
Pre-emphasis involves boosting the amplitude of higher frequencies, typically between one and six kilohertz, which are less prominent in actual speech but critical for enhancing clarity intelligibility.

06:59.140 --> 07:07.480
The primary goal of frequency pre-emphasis is to adjust the frequency profile of synthetic speech so that it aligns more closely with natural human speech.

07:07.600 --> 07:15.800
By applying pre-emphasis filters, we can emphasize higher frequencies to match synthetic characteristics and maintain a natural spectral balance.

07:16.360 --> 07:21.540
This process reduces noise impact and makes the speech sound more realistic and robust.

07:22.220 --> 07:34.400
So through careful calibration, pre-emphasis ensures speech retains its tonal quality without a distortion, making it more challenging for voice verification system to detect any anomalies.

07:37.320 --> 07:39.960
All right, S is spectral noise reduction.

07:40.300 --> 07:49.220
Spectral noise reduction is crucial for enhancing smooth speech by removing unwanted noise artifacts that reveal its synthetic quality.

07:49.720 --> 07:58.880
While natural speech includes subtle, random background noise, smooth speech often contains distinct machine noise due to the synthesis limitations.

07:59.560 --> 08:06.560
Managing noise in the audio signal improves the perceived authenticity, making it more challenging for a detection system to identify.

08:07.120 --> 08:14.520
The goal is to eliminate or minimize machine-generated noise that can serve as a cue for voice verification systems to reject the speech as cloned.

08:15.280 --> 08:20.420
To align a noise profile of smooth speech with natural human speech, we use a three-step strategy.

08:20.420 --> 08:28.420
First, we use spectral gain filtering, which filters out the noise by analyzing frequency components and removing those below a set threshold.

08:29.500 --> 08:38.840
Then we use dynamic noise filtering, which uses adaptive algorithms to adjust in real-time to the audio environment, ensuring that a continuous noise reduction.

08:39.380 --> 08:50.520
And finally, through context appropriate additive noise, such as ambient office or outdoor sounds, which is incorporated, it will often used to mask synthetic artifacts and create more natural-sounding speech.

08:58.200 --> 09:00.880
Tuning adversarial speaker regularization.

09:01.100 --> 09:15.480
So, tuning adversarial speaker regularization is a sophisticated technique used to make synthetic speech sound as if it was produced by a real speaker, masking any artifacts that could reveal its artificial origins.

09:15.740 --> 09:25.440
This is achieved by using adversarial methods, often with machine learning models, to refine speech signals so that it closely matches the vocal characteristics of a target speaker.

09:26.200 --> 09:36.480
By employing adversarial techniques, we can adjust the speech signal to align with the natural variability and dynamism of human speech, reducing the likelihood for it being flagged as synthetic.

09:37.480 --> 09:41.680
So, to enhance speech authenticity, our strategy involves three steps.

09:41.880 --> 09:54.440
First, we use adversarial training with the generative adversarial networks to iteratively refine audio quality, allowing the generator to produce realistic samples while the discriminator evaluates their authenticity.

09:55.580 --> 10:08.460
Second, we engrave the unique voice print of the target speaker onto the spoof audio by adjusting a prosodic pitch and timbre, and which will match the genuine speaker's vocal, which matches the genuine speaker's characteristics.

10:08.840 --> 10:15.780
Finally, regularization techniques smooth irregularities in speech signal, ensuring consistent tone and clarity through the audio

10:18.870 --> 10:19.470
.

10:20.050 --> 10:20.850
All right, I.

10:20.950 --> 10:22.950
Integrating additive noise.

10:22.950 --> 10:27.090
Integrating additive noise is crucial for enhancing authenticity of spoof speech.

10:27.270 --> 10:33.910
Natural speech often includes background noises, added depth and context, while spoof speech typically sounds too clean and artificial.

10:34.450 --> 10:40.210
By strategically adding noise, synthetic speech can blend seamlessly into real-world environments, increasing its believability.

10:41.130 --> 10:47.170
Additive noise makes synthetic qualities by introducing natural variations and imperfections present in real recordings.

10:47.170 --> 10:56.110
It also helps disguise any artifacts or inconsistencies from the synthesis process, making spoof speech sound more realistic.

10:57.290 --> 11:03.590
To create a realistic audio environment, we follow... we can do three steps to do that.

11:03.590 --> 11:11.750
First, we select noises sources that are contextually appropriate, and such as typing sounds for an office setting or wind or traffic noise.

11:12.150 --> 11:19.950
Second, we use algorithms to dynamically adjust the level and type of the noise that we're using, ensuring that it complements the speech without overwhelming it.

11:20.450 --> 11:31.470
Finally, we maintain temporal and spatial consistency by aligning the noise with the speech's rhythm and flow, carefully timing its introduction and adjusting spatial characteristics to match the perceived environment.

11:35.100 --> 11:38.260
And C, we create model agnostic approach.

11:38.260 --> 11:50.760
Creating a model agnostic approach is essential for enhancing spoof speech, ensuring that the techniques that you use to generate or modify speech are not tied to any specific voice verification system or machine learning model.

11:51.040 --> 12:03.480
This approach provides flexibility and adaptability, allowing for the development of spoof methods that can effectively bypass a wide range of detection systems, regardless of the underlying algorithms or architecture.

12:04.420 --> 12:20.640
By focusing on techniques that are universally applicable, a model agnostic strategy exploits general weaknesses in speech processing to create a more convincing spoofed audio, which is crucial as voice verification systems continue to evolve.

12:21.300 --> 12:28.720
To enhance audio manipulation, we develop generalizable techniques that address common vulnerabilities across systems.

12:28.720 --> 12:33.460
We focus on manipulating silence intervals, frequency emphasis, and noise integration.

12:33.480 --> 12:36.960
Based on fundamental speech processing principles.

12:38.080 --> 12:49.920
Then, second, we create a flexible framework that allows easy adaptability and testing on various techniques using modular design principles for component and algorithm intercompatibility.

12:50.080 --> 13:00.740
Finally, we implement machine learning models that form, that learn from diverse verification systems, training on generalized features and patterns to ensure adaptability and effectiveness across different platforms.

13:00.740 --> 13:03.460
All right.

13:05.920 --> 13:12.240
As we conclude our exploration of acoustic standards, it's evident that each element is crucial in refining the authenticity of spoofed speech.

13:12.480 --> 13:19.520
These techniques provide insight into the weaknesses that can be exploited in voice verification systems and highlight the areas where these systems need to evolve.

13:20.140 --> 13:28.020
For cybersecurity professionals, understanding these enhancements lays the foundation for developing more robust defenses against audio spoofing.

13:28.920 --> 13:36.360
By dissecting the methods used to create convincing spoofed speech, cybersecurity experts gain a deeper understanding of the intricacies of audio manipulation.

13:37.240 --> 13:44.000
This knowledge enables them to anticipate and counteract emerging threats, strengthening the security posture of voice verification systems.

13:44.400 --> 13:49.640
The acoustic standards offer a comprehensive framework for enhancing the realism of spoofed speech.

13:49.640 --> 14:00.100
By applying these insights, professionals can devise innovative strategies that detect and thwart sophisticated spoofing attempts and build more resilient systems that withstand these challenges.

14:01.200 --> 14:08.880
As we continue to innovate in this field, it's essential to prioritize security ethics and responsibility in the development and application of these technologies.

14:09.200 --> 14:13.480
Thank you for your attention, and I welcome any questions or discussions you may have.

14:21.860 --> 14:23.080
Any questions?

15:05.740 --> 15:11.160
I think the goal is text-to-speech, especially from an adversary's perspective.

15:11.160 --> 15:21.700
It's to get a clone replica of someone's speech and to be able to bypass any verification systems that would prevent access to banking records or what have you.

15:21.700 --> 15:32.420
I think both in the sense that... I think you're saying, is the goal text-to-speech, or is it mining speech samples from an actual speaker?

15:34.140 --> 15:45.260
You have to mine speech samples from a speaker, so you have to start with your clone model and then adding it in samples from your target.

15:46.260 --> 15:56.420
The amount of samples you need to introduce varies depending on the context, but you have to start that way.

15:58.820 --> 16:09.800
Implementing these techniques will allow you to expand that, so taking a little bit of sample from a target and being able to create a realistic voice clone is possible using these techniques.

16:10.020 --> 16:11.520
Does that answer your question?

16:27.810 --> 16:29.490
I think it's a temporary thing.

16:30.330 --> 16:32.130
Any other questions?

16:32.130 --> 16:33.170
Please, hi.

16:52.940 --> 17:02.380
The question was, are there AI models in the works to create spoof speech, but are there models also being used to defeat voice cloning?

17:02.380 --> 17:03.100
Absolutely.

17:03.100 --> 17:03.860
I mean, that's sort of the...

17:05.140 --> 17:14.880
it's sort of a cat and mouse game in the sense that, in fact, the models that exist to detect spoof speech are probably better in some sense than the models that make clone speech.

17:14.880 --> 17:22.180
As I was saying, when you look on the internet, there's people selling voice clone technology.

17:22.180 --> 17:32.020
None of that stuff is advertised or is expected to defeat the voice biometrics that are necessary for a career criminal or a cyber threat.

17:32.360 --> 17:50.300
So, the technology is on that side, but these steps that I've outlined are ways that focus and attack the ways that those AI speech models like view spoof speech and determine it and sort of distinguish it from real speech.

17:50.300 --> 18:00.260
So, we're going after the same places that these models were looking at, such as ambient noise and like, you know, echo and pre-emphasis and spectral boosting.

18:00.260 --> 18:06.900
By addressing those, we make spoof speech much harder to detect from real speech.

18:06.900 --> 18:07.840
You know what I mean?

18:19.100 --> 18:23.480
So, I've heard from a lot of CEOs that are like, I want you to put AI on it.

18:23.480 --> 18:24.500
It needs to be AI.

18:24.500 --> 18:25.620
Put AI in my company.

18:25.620 --> 18:27.700
And voice is obviously one of the options.

18:27.700 --> 18:32.000
So, given where the technology is now, is that a bad recommendation?

18:32.000 --> 18:34.240
Do you think that we shouldn't be using voice cloning?

18:34.240 --> 18:41.920
Is voice verification a failed technology looking for a problem?

18:42.540 --> 18:45.100
Well, I'm a little biased, but I would say so.

18:45.100 --> 18:48.100
I mean, my own bank uses voice verification.

18:48.800 --> 18:49.920
I mean, I don't know.

18:51.380 --> 18:54.800
I'm not a CEO of a company, but voice verification is...

18:59.940 --> 19:04.720
Using these techniques I talked about, you have almost like a 95% effective rate, right?

19:04.720 --> 19:13.340
So, I mean, the voice verification systems will advance, but at the current state they're at now, they are able to be defeated.

19:13.340 --> 19:18.780
It just requires a voice clone model that has been trained appropriately to defeat them, right?

19:18.780 --> 19:21.880
And that is something that any adversary could figure out, could do, right?

19:21.880 --> 19:24.780
I mean, with enough resources, it's not going to be a problem.

19:24.780 --> 19:25.720
I mean, I can do it.

19:25.720 --> 19:26.960
So, if they can do it.

19:27.240 --> 19:41.460
So, yeah, I mean, if I was a CEO, I would find other ways to like, you know, like to secure myself in voice because, I mean, we've already seen in the news other, like a bunch of different situations where this has happened, you know?

19:41.860 --> 19:42.820
And it'll, yeah.

19:43.020 --> 19:44.140
Does that answer your question?

19:44.340 --> 19:44.820
Okay.

19:45.000 --> 19:46.300
Anybody else, please?

19:49.040 --> 19:49.680
Anybody?

19:51.180 --> 19:53.540
Are you scared?

19:54.920 --> 19:55.860
It's going on GitHub.

19:55.860 --> 19:56.560
I'll have the code.

19:56.560 --> 20:07.660
I didn't, I was going to put the code up, but then I thought, you know, I hate it when people just, like, throw code and then, like, I'll have more, like, code and more, like, explanations of how to implement each of these techniques, like, each of these standards.

20:08.640 --> 20:13.460
But that was, this was a talk that was, like, could have been a workshop and I just had to pare it down.

20:13.460 --> 20:19.000
So, there's a lot of cutting, so I, but I promise to release that.

20:19.380 --> 20:19.960
Okay.

20:19.960 --> 20:20.620
Anybody else?

20:20.620 --> 20:21.220
Anybody else?

20:21.280 --> 20:22.580
What's up?

20:24.360 --> 20:25.140
It's all right.

20:25.140 --> 20:25.720
No, please do.

20:25.720 --> 20:27.180
Come on.

20:37.460 --> 20:40.200
It's a great question.

20:42.660 --> 20:44.740
It's a great question.

20:44.740 --> 20:46.000
So, that's an awesome question.

20:46.000 --> 20:53.100
The question is, is, is, like, a cloned speech indistinguishable to the verification system or to a human listener?

20:53.460 --> 20:55.500
So, that's a really great question.

20:55.500 --> 21:06.020
So, like, I would say this, like, if someone clones my voice and calls my wife, she's probably going to figure out it's not me, because not just my voice, but just sort of the speaking patterns might not be the same.

21:06.020 --> 21:08.800
It just might, like, just feel not right.

21:08.800 --> 21:18.140
And there's situations, like, some, some woman had, like, somebody had done the same thing with their daughter and they were, like, it didn't sound right, but they, it sounded like her, but not like her.

21:18.500 --> 21:21.540
So, it depends who we're talking about.

21:21.540 --> 21:27.540
Like, like, this person works at the bank who relies on the voice verification system to say, yeah, this sounds authentic.

21:29.300 --> 21:30.920
That's probably going to be able to be bypassed.

21:30.920 --> 21:32.620
My wife, I mean, I guess, I hope not.

21:32.620 --> 21:45.680
I mean, my bank, I call it, like, I try to, like, I just started, you know, and it's like to try to, you know, voice changes, like, you know, your, like, your voice can change.

21:45.680 --> 21:51.840
So, it's really, like, it's a, it's not like a fingerprint that it's, like, it's harder to modify.

21:51.840 --> 21:54.220
I mean, you, people's voice changes with age.

21:54.220 --> 21:57.340
So, yeah, does that make sense?

21:58.080 --> 21:59.400
Yeah, yeah, yes and no.

21:59.400 --> 22:01.740
The context depends, but yeah, yeah.

22:02.560 --> 22:03.780
Anybody else?

22:04.000 --> 22:04.820
Yeah, what's up?

22:15.060 --> 22:17.740
Yeah, so, there, there's, that's a great question.

22:17.740 --> 22:25.440
So, there is, like, open source data sets out there that are used by voice verification systems to sort of refine, train their models on.

22:25.440 --> 22:30.860
And they're available, like, you know, there, there's ASD spoof data sets.

22:32.200 --> 22:34.800
There's other ones out there, and you can use them.

22:34.940 --> 22:45.000
And just like the voice verification companies use them, adversaries can use them also to sort of train on, is that, so that, you know, that's what, is that a question?

22:45.000 --> 22:59.360
Like, and so, if I was going to train them, well, so, I would start off by, well, I did, I mean, I trained, I started off by a generalized voice data set, like, there's one, it's like a Lynda Johnson, Lynda Johnson speech.

22:59.360 --> 23:05.900
It's like 30,000 voice samples, and I'd feed that into, like, my model, right, to start off with.

23:05.900 --> 23:07.900
And, and let it train on that.

23:07.900 --> 23:11.400
It took about a week on my own system.

23:11.400 --> 23:23.500
And then, and then what I did was I take voice samples of myself, like, which are, like, maybe a hundred, right, which are similar to what you could get, let's say, on this YouTube video, if someone was to cut my voice into segments, right.

23:23.500 --> 23:25.240
And I trained it on that.

23:25.980 --> 23:32.660
And it gets pretty close, but it's not going to defeat verification unless I address ambient noise.

23:33.060 --> 23:40.660
I mean, because the way voice verification works is it takes the digital, it takes the digital signal and transfers it into, like, a male spectrogram.

23:40.660 --> 23:53.500
So, it's looking at it, like, in a much different way than we are, and it's looking for different, like, differences in frequency and, like, pitch, and it knows which things are common with smooth speech.

23:53.500 --> 23:54.240
And so, it picks it up.

23:54.240 --> 24:07.180
So, as long as you can, like, manipulate the synthetic speech in order to, sort of, bypass those, like, you know, target areas, then, yeah, it's, I mean, and it's doable.

24:07.340 --> 24:08.880
I mean, you know, other people have done it.

24:08.880 --> 24:13.920
I mean, APTs can do it, I'm sure, you know, I mean, like, our government can do it, you know, I mean.

24:21.640 --> 24:22.820
What's that?

24:55.220 --> 24:56.240
What's that?

24:57.380 --> 24:59.980
Okay, I'm being told I have to answer this offline.

24:59.980 --> 25:13.920
Yes, that's, we, yeah, I guess we're done for time, but do we test it against, sorry, can I answer that afterwards?

25:13.920 --> 25:16.760
Because I'm being told we got to stop, and it's, like, it's a little more deeper question.

25:16.760 --> 25:20.960
It's a little more complicated to explain, but yes, the short answer is yes.

25:21.240 --> 25:23.820
Okay, just come see me, and we'll talk more.

25:23.820 --> 25:25.500
I'll talk, I'll be here afterwards.

25:25.500 --> 25:26.340
I'm not going anywhere.

25:26.340 --> 25:30.420
So, if anybody's got questions, want to hang out, chat, talk, I'm cool with it.

25:30.420 --> 25:32.300
All right, man, thank you for coming to my talk, man.

25:33.960 --> 25:34.420
Thank you.

