start	end	text
0	5380	Hello, my name is Mark Foody, and my presentation is called Exploiting Voice Cloning in Adversarial
5380	10100	Simulation. I'd first like to thank Adversary Village for giving me the opportunity to present
10100	15080	my research at DEF CON 32, and it's an honor to be here among so many talented individuals.
15960	22720	Okay, so let's dive in. Who am I? As I mentioned, my name is Mark. I wear many hats. I'm an
22720	28280	offensive security researcher, a father, a husband, a proud cat dad. In addition to my
28280	34260	work in AI and security, I founded Neurodiverse Hackers, which is a community dedicated to
34260	38720	highlighting and addressing the unique needs of neurodiverse individuals in the hacking community.
39120	41720	Now, let's get to the heart of today's presentation. We're going to explore the
41720	47760	fascinating and unsettling world of voice cloning. So, initially, I had planned
48960	53520	on demonstrating how easy voice verification systems could be bypassed, but due to the legal
53520	58900	gray areas concerning using a real-time voice clone to access my own bank account, I decided
58900	65100	to focus on showing how clone speech can be made undetectable by two anti-spoofing mechanisms.
65540	69240	While many commercial products can create realistic voice clones, they cannot defeat
69240	73800	the voice verification services used by financial institutions, which detect anomalies
74580	78620	through mouse spectrograms. To bypass anti-spoofing components,
78620	81300	it's crucial to refine a voice model through the steps I'll present.
82980	91560	So, voice verification services are provided by companies like Nuance, Variant, Fortress Identity.
91560	97240	They're used by financial institutions such as Fidelity Bank, Wells Fargo, Citibank for secure
97240	102580	authentication. Although these services enhance security through voice biometrics,
102580	107680	they remain vulnerable to exploitation. Today, I'll discuss the methods used to bypass these
107680	112660	technologies and focus on adversarial training required to enable a voice clone model to bypass
112660	118920	anti-spoofing verification systems. The purpose of this talk is not to delve into the voice
118920	123540	cloning process itself, but to explore how adversarial training can create a voice clone
124340	127860	indistinguishable from natural human speech. So, I'll walk through the eight key elements
127860	132500	that can make a synthetic voice practically imperceptible from a real one.
140800	145440	To thematically organize the various approaches for defeating voice verification, I developed
145440	150740	the acoustic standards for modifying spoofed speech. This is like a set of standards focused
150740	155180	on key aspects of audio manipulation, making spoofed speech indistinguishable from voice
155180	160760	verification. Each step in acoustics provides a structured approach to bypass the rigorous
161680	164940	verification and streamlining the process used by other researchers
165300	172240	into accessible steps that anyone can follow. Implementing these techniques requires combining
172240	177380	signal processing and machine learning algorithms. So, after DEF CON, I will provide code examples
177380	182200	and slides on GitHub to demonstrate how these adjustments can be made and automated and used
182200	189700	to train a voice clone model. Let's delve in. All right. So, slide one. Acoustics. So,
189700	194180	in audio spoofing, adjusting silence intervals is crucial for creating speech that convincingly
194180	200520	mimics genuine human interaction. Natural communication includes pauses and starts at
200520	205180	the end of speech. These are known as leading and trailing silences, which can carry acoustic
205180	210320	signatures like microphone static, breathing sounds, and other ambient noise. These nuances
210320	215400	are vital for making speech sound authentic. So, the first task in adjusting silence intervals
215400	219740	involves replacing the leading and trailing silence with natural silences extracted from
219740	224660	recordings. This requires selecting silences that match the context of the spoof speech
225320	229140	and ensuring they exhibit natural variability and align with the intended environment.
229680	233600	Along with replacing leading and trailing silence, it's also essential to eliminate
233600	241180	interword redundant silence. Spoof speech often has a longer synthetic pauses due to its segmented
241180	246580	nature of the speech synthesis process. The goal is to reduce these gaps by inserting human-like
246580	251060	silences that maintain the rhythm and flow of authentic speech using advanced algorithms
251060	262740	to model natural silence patterns. So, then center spectrum boosting. Center spectrum boosting is
262740	267480	also a critical technique for enhancing spoof speech because it manipulates frequency components
267480	273740	to increase perceived authenticity. Human speech has an energy concentration in the low to mid
273740	278560	frequency range, particularly between one and four kilohertz, which is vital for intelligibility
278560	284740	and contains the most phonetic information. Boosting these central frequencies makes synthetic
284740	289860	speech sound more natural and less mechanical, and this helps blend in, helping it blend seamlessly
289860	295420	into real-world audio environments. Natural speech's mid-range frequencies contribute to
295420	300640	clarity and distinguish human voices from synthetic ones. Many audio classifiers and
300640	305260	voice verification systems detect subtle clues within this range to differentiate genuine from
305260	310960	spoof speech. So, making center spectrum manipulation essential for overcoming
310960	316780	synthetic speech limitations. Digital signal processing techniques amplify critical frequencies
317690	323760	while suppressing higher frequencies and enhancing the signal's intensity within a targeted range.
324960	328100	Careful calibration ensures that the amplification maintains authenticity
328100	339120	and avoids distortions. All right, oh, optimizing echo simulation. Optimizing echo simulation is
339120	343840	crucial for making synthetic speech more convincing and realistic. Echoes naturally occur when a
343840	349980	speech is recorded, adding depth and context by reflecting off surfaces. These reflections help
349980	354620	listeners perceive space and authenticity, often missing in synthetic voice generated by spoofing
354620	359320	algorithms. In the genuine recording, echoes are subtle clues that aid in interpreting the recording
359320	364640	space, size, and nature, and they vary in amplitude and delay based upon the surface distance
364640	370740	and characteristics. To enhance the realism of spoof speech, simulating natural echo patterns
370740	375280	involves introducing slight time delay with copies of the original audio with progressively
375280	380620	lower amplitudes. This mimics how sound waves will bounce and decay in real-world environments,
380620	384680	and it's enhancing the audio's spatial qualities and challenging voice verification systems
384680	395440	to detect the absence of natural reflections. All right, so U, upgrade frequency pre-emphasis.
395880	400260	While center spectrum boosting focused on enhancing the naturalness of synthetic speech by
400260	405520	amplifying mid-ranges, frequency pre-emphasis targets the higher frequency ranges to improve
405520	410280	speech quality and reduce noise. Pre-emphasis involves boosting the amplitude of higher
410280	414480	frequencies, typically between one and six kilohertz, which are less prominent in actual
414480	420660	speech but critical for enhancing clarity intelligibility. The primary goal of frequency
420660	425800	pre-emphasis is to adjust the frequency profile of synthetic speech so that it aligns more closely
425800	431480	with natural human speech. By applying pre-emphasis filters, we can emphasize higher frequencies to
431480	437680	match synthetic characteristics and maintain a natural spectral balance. This process reduces
437680	443920	noise impact and makes the speech sound more realistic and robust. So through careful
443920	450020	calibration, pre-emphasis ensures speech retains its tonal quality without a distortion, making it
450020	458360	more challenging for voice verification system to detect any anomalies. All right, S is spectral
458360	463920	noise reduction. Spectral noise reduction is crucial for enhancing smooth speech by removing
464600	471860	unwanted noise artifacts that reveal its synthetic quality. While natural speech includes subtle,
471860	476200	random background noise, smooth speech often contains distinct machine noise due to the
476200	482880	synthesis limitations. Managing noise in the audio signal improves the perceived authenticity,
482880	487920	making it more challenging for a detection system to identify. The goal is to eliminate
487920	492240	or minimize machine-generated noise that can serve as a cue for voice verification systems
492240	498900	to reject the speech as cloned. To align a noise profile of smooth speech with natural human speech,
498900	503760	we use a three-step strategy. First, we use spectral gain filtering, which filters out
503760	508420	the noise by analyzing frequency components and removing those below a set threshold.
509500	515280	Then we use dynamic noise filtering, which uses adaptive algorithms to adjust in real-time to
515280	521060	the audio environment, ensuring that a continuous noise reduction. And finally, through context
521060	525620	appropriate additive noise, such as ambient office or outdoor sounds, which is incorporated,
525620	530520	it will often used to mask synthetic artifacts and create more natural-sounding speech.
538200	543960	Tuning adversarial speaker regularization. So, tuning adversarial speaker regularization is a
543960	549840	sophisticated technique used to make synthetic speech sound as if it was produced by a real
549840	556900	speaker, masking any artifacts that could reveal its artificial origins. This is achieved by using
557440	562140	adversarial methods, often with machine learning models, to refine speech signals so that it
562140	568080	closely matches the vocal characteristics of a target speaker. By employing adversarial techniques,
568080	573580	we can adjust the speech signal to align with the natural variability and dynamism of human speech,
573580	579200	reducing the likelihood for it being flagged as synthetic. So, to enhance speech authenticity,
579200	584840	our strategy involves three steps. First, we use adversarial training with the generative adversarial
584840	590900	networks to iteratively refine audio quality, allowing the generator to produce realistic
590900	596940	samples while the discriminator evaluates their authenticity. Second, we engrave the unique
596940	603260	voice print of the target speaker onto the spoof audio by adjusting a prosodic pitch and timbre,
603260	607300	and which will match the genuine speaker's vocal, which matches the genuine speaker's
607300	613180	characteristics. Finally, regularization techniques smooth irregularities in speech signal,
613180	622950	ensuring consistent tone and clarity through the audio. All right, I. Integrating additive noise.
622950	627090	Integrating additive noise is crucial for enhancing authenticity of spoof speech.
627270	631010	Natural speech often includes background noises, added depth and context,
631010	635970	while spoof speech typically sounds too clean and artificial. By strategically adding noise,
635970	640210	synthetic speech can blend seamlessly into real-world environments, increasing its believability.
641130	645550	Additive noise makes synthetic qualities by introducing natural variations and imperfections
645550	650350	present in real recordings. It also helps disguise any artifacts or inconsistencies
650350	656110	from the synthesis process, making spoof speech sound more realistic.
657290	663870	To create a realistic audio environment, we follow... we can do three steps to do that. First,
663870	668790	we select noises sources that are contextually appropriate, and such as typing sounds for an
668790	675190	office setting or wind or traffic noise. Second, we use algorithms to dynamically adjust the level
675190	679110	and type of the noise that we're using, ensuring that it complements the speech without overwhelming
679110	684330	it. Finally, we maintain temporal and spatial consistency by aligning the noise with the
684330	689090	speech's rhythm and flow, carefully timing its introduction and adjusting spatial characteristics
689090	698260	to match the perceived environment. And C, we create model agnostic approach.
698260	702560	Creating a model agnostic approach is essential for enhancing spoof speech,
702560	706540	ensuring that the techniques that you use to generate or modify speech are not tied to any
706540	712600	specific voice verification system or machine learning model. This approach provides flexibility
712600	718540	and adaptability, allowing for the development of spoof methods that can effectively bypass a wide
718540	723480	range of detection systems, regardless of the underlying algorithms or architecture.
724420	730400	By focusing on techniques that are universally applicable, a model agnostic strategy exploits
730540	735960	general weaknesses in speech processing to create a more convincing spoofed audio,
735960	743620	which is crucial as voice verification systems continue to evolve. To enhance audio manipulation,
743620	748720	we develop generalizable techniques that address common vulnerabilities across systems.
748720	753460	We focus on manipulating silence intervals, frequency emphasis, and noise integration.
753480	756960	Based on fundamental speech processing principles.
758080	761800	Then, second, we create a flexible framework that allows easy adaptability
761800	766360	and testing on various techniques using modular design principles for component
766360	772980	and algorithm intercompatibility. Finally, we implement machine learning models that form,
772980	776680	that learn from diverse verification systems, training on generalized features and patterns
776680	780740	to ensure adaptability and effectiveness across different platforms.
780740	789100	All right. As we conclude our exploration of acoustic standards, it's evident that each
789100	793400	element is crucial in refining the authenticity of spoofed speech. These techniques provide
793400	796480	insight into the weaknesses that can be exploited in voice verification systems
796480	801380	and highlight the areas where these systems need to evolve. For cybersecurity professionals,
801380	805960	understanding these enhancements lays the foundation for developing more robust defenses
805960	812140	against audio spoofing. By dissecting the methods used to create convincing spoofed speech,
812140	816360	cybersecurity experts gain a deeper understanding of the intricacies of audio manipulation.
817240	820780	This knowledge enables them to anticipate and counteract emerging threats,
820780	824000	strengthening the security posture of voice verification systems.
824400	828720	The acoustic standards offer a comprehensive framework for enhancing the realism of spoofed
828720	834340	speech. By applying these insights, professionals can devise innovative strategies that detect
834340	839000	and thwart sophisticated spoofing attempts and build more resilient systems that withstand
839000	844520	these challenges. As we continue to innovate in this field, it's essential to prioritize
844520	848880	security ethics and responsibility in the development and application of these technologies.
849200	853480	Thank you for your attention, and I welcome any questions or discussions you may have.
861860	863080	Any questions?
905740	912400	I think the goal is text-to-speech, especially from an adversary's perspective. It's to get a
912400	918620	clone replica of someone's speech and to be able to bypass any verification systems that would
918620	923940	prevent access to banking records or what have you. I think both in the sense that... I think
923940	932420	you're saying, is the goal text-to-speech, or is it mining speech samples from an actual speaker?
934140	939880	You have to mine speech samples from a speaker, so you have to start with your clone model
940520	949680	and then adding it in samples from your target. The amount of samples you need to
951520	956420	introduce varies depending on the context, but you have to start that way.
958820	964340	Implementing these techniques will allow you to expand that, so taking a little bit of sample
964340	969800	from a target and being able to create a realistic voice clone is possible using these techniques.
970020	989490	Does that answer your question? I think it's a temporary thing.
990330	993170	Any other questions? Please, hi.
1012940	1018280	The question was, are there AI models in the works to create spoof speech, but are there
1019380	1023860	models also being used to defeat voice cloning? Absolutely. I mean, that's sort of the...
1025140	1031320	it's sort of a cat and mouse game in the sense that, in fact, the models that exist to detect
1031320	1037920	spoof speech are probably better in some sense than the models that make clone speech. As I was
1037920	1042420	saying, when you look on the internet, there's people selling voice clone technology. None of
1042420	1050280	that stuff is advertised or is expected to defeat the voice biometrics that are necessary for a
1050280	1057760	career criminal or a cyber threat. So, the technology is on that side, but these steps
1058500	1064620	that I've outlined are ways that focus and attack the ways that those AI speech models
1064620	1070560	like view spoof speech and determine it and sort of distinguish it from real speech. So,
1070560	1075480	we're going after the same places that these models were looking at, such as ambient noise
1075480	1082140	and like, you know, echo and pre-emphasis and spectral boosting. By addressing those,
1082140	1087840	we make spoof speech much harder to detect from real speech. You know what I mean?
1099100	1104500	So, I've heard from a lot of CEOs that are like, I want you to put AI on it. It needs to be AI.
1104500	1109080	Put AI in my company. And voice is obviously one of the options. So, given where the technology
1109080	1114240	is now, is that a bad recommendation? Do you think that we shouldn't be using voice cloning?
1114240	1121920	Is voice verification a failed technology looking for a problem?
1122540	1128100	Well, I'm a little biased, but I would say so. I mean, my own bank uses voice verification.
1128800	1134800	I mean, I don't know. I'm not a CEO of a company, but voice verification is...
1139940	1145360	Using these techniques I talked about, you have almost like a 95% effective rate, right? So, I mean,
1145360	1150740	the voice verification systems will advance, but at the current state they're at now,
1150740	1156960	they are able to be defeated. It just requires a voice clone model that has been trained
1156960	1161180	appropriately to defeat them, right? And that is something that any adversary could figure out,
1161180	1164780	could do, right? I mean, with enough resources, it's not going to be a problem.
1164780	1169760	I mean, I can do it. So, if they can do it. So, yeah, I mean, if I was a CEO, I would find other
1169760	1175800	ways to like, you know, like to secure myself in voice because, I mean, we've already seen in the
1175800	1182340	news other, like a bunch of different situations where this has happened, you know? And it'll,
1182340	1186300	yeah. Does that answer your question? Okay. Anybody else, please?
1189040	1197700	Anybody? Are you scared? It's going on GitHub. I'll have the code. I didn't, I was going to put
1197700	1200720	the code up, but then I thought, you know, I hate it when people just, like, throw code and then,
1200720	1205680	like, I'll have more, like, code and more, like, explanations of how to implement each of these
1205680	1211080	techniques, like, each of these standards. But that was, this was a talk that was, like,
1211080	1216280	could have been a workshop and I just had to pare it down. So, there's a lot of cutting,
1216280	1222580	so I, but I promise to release that. Okay. Anybody else? Anybody else? What's up?
1224360	1227180	It's all right. No, please do. Come on.
1237460	1240200	It's a great question.
1242660	1246940	It's a great question. So, that's an awesome question. The question is, is,
1247320	1253100	is, like, a cloned speech indistinguishable to the verification system or to a human listener?
1253460	1258120	So, that's a really great question. So, like, I would say this, like, if someone clones my voice
1258640	1263440	and calls my wife, she's probably going to figure out it's not me, because not just my voice,
1263440	1267720	but just sort of the speaking patterns might not be the same. It just might, like, just feel
1268040	1274120	not right. And there's situations, like, some, some woman had, like, somebody had done the same
1274120	1277320	thing with their daughter and they were, like, it didn't sound right, but they, it sounded like her,
1277320	1283940	but not like her. So, it depends who we're talking about. Like, like, this person works at the bank
1283940	1287540	who relies on the voice verification system to say, yeah, this sounds authentic.
1289300	1297700	That's probably going to be able to be bypassed. My wife, I mean, I guess, I hope not. I mean,
1297700	1302180	my bank, I call it, like, I try to, like, I just started, you know, and it's like to try to, you
1302180	1307300	know, voice changes, like, you know, your, like, your voice can change. So, it's really, like,
1307300	1312260	it's a, it's not like a fingerprint that it's, like, it's harder to modify. I mean,
1312260	1319400	you, people's voice changes with age. So, yeah, does that make sense? Yeah, yeah, yes and no.
1319400	1324820	The context depends, but yeah, yeah. Anybody else? Yeah, what's up?
1335060	1339660	Yeah, so, there, there's, that's a great question. So, there is, like, open source
1339660	1344420	data sets out there that are used by voice verification systems to sort of refine,
1344420	1350100	train their models on. And they're available, like, you know, there, there's ASD spoof data
1350100	1357460	sets. There's other ones out there, and you can use them. And just like the voice verification
1357460	1363780	companies use them, adversaries can use them also to sort of train on, is that, so that, you know,
1363780	1370400	that's what, is that a question? Like, and so, if I was going to train them, well, so, I would
1370400	1375220	start off by, well, I did, I mean, I trained, I started off by a generalized voice data set,
1375220	1380620	like, there's one, it's like a Lynda Johnson, Lynda Johnson speech. It's like 30,000
1382100	1386080	voice samples, and I'd feed that into, like, my model, right, to start off with. And,
1386540	1392840	and let it train on that. It took about a week on my own system. And then, and then what I did was
1392840	1398100	I take voice samples of myself, like, which are, like, maybe a hundred, right, which are similar
1398100	1402600	to what you could get, let's say, on this YouTube video, if someone was to cut my voice into
1402600	1408940	segments, right. And I trained it on that. And it gets pretty close, but it's not going to defeat
1408940	1415740	verification unless I address ambient noise. I mean, because the way voice verification works
1415740	1420100	is it takes the digital, it takes the digital signal and transfers it into, like, a male
1420100	1424320	spectrogram. So, it's looking at it, like, in a much different way than we are, and it's looking
1424320	1430880	for different, like, differences in frequency and, like, pitch, and it knows which things are
1432180	1435980	common with smooth speech. And so, it picks it up. So, as long as you can, like, manipulate
1437480	1443440	the synthetic speech in order to, sort of, bypass those, like, you know,
1443440	1448880	target areas, then, yeah, it's, I mean, and it's doable. I mean, you know, other people have done it.
1448880	1453920	I mean, APTs can do it, I'm sure, you know, I mean, like, our government can do it, you know, I mean.
1461640	1462820	What's that?
1495220	1496240	What's that?
1497380	1503760	Okay, I'm being told I have to answer this offline. Yes, that's, we, yeah, I guess we're
1503760	1514280	done for time, but do we test it against, sorry, can I answer that afterwards? Because I'm being
1514280	1517760	told we got to stop, and it's, like, it's a little more deeper question. It's a little more complicated
1517760	1523820	to explain, but yes, the short answer is yes. Okay, just come see me, and we'll talk more.
1523820	1527600	I'll talk, I'll be here afterwards. I'm not going anywhere. So, if anybody's got questions,
1527600	1532300	want to hang out, chat, talk, I'm cool with it. All right, man, thank you for coming to my talk, man.
1533960	1534420	Thank you.
