Hello, my name is Mark Foody, and my presentation is called Exploiting Voice Cloning in Adversarial Simulation. 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. Okay, so let's dive in. Who am I? As I mentioned, my name is Mark. I wear many hats. I'm an offensive security researcher, a father, a husband, a proud cat dad. 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. Now, let's get to the heart of today's presentation. We're going to explore the fascinating and unsettling world of voice cloning. 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. 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. To bypass anti-spoofing components, it's crucial to refine a voice model through the steps I'll present. So, voice verification services are provided by companies like Nuance, Variant, Fortress Identity. They're used by financial institutions such as Fidelity Bank, Wells Fargo, Citibank for secure authentication. Although these services enhance security through voice biometrics, they remain vulnerable to exploitation. 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. 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. So, I'll walk through the eight key elements that can make a synthetic voice practically imperceptible from a real one. To thematically organize the various approaches for defeating voice verification, I developed the acoustic standards for modifying spoofed speech. This is like a set of standards focused on key aspects of audio manipulation, making spoofed speech indistinguishable from voice verification. 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. Implementing these techniques requires combining signal processing and machine learning algorithms. 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. Let's delve in. All right. So, slide one. Acoustics. So, in audio spoofing, adjusting silence intervals is crucial for creating speech that convincingly mimics genuine human interaction. Natural communication includes pauses and starts at the end of speech. These are known as leading and trailing silences, which can carry acoustic signatures like microphone static, breathing sounds, and other ambient noise. These nuances are vital for making speech sound authentic. So, the first task in adjusting silence intervals involves replacing the leading and trailing silence with natural silences extracted from recordings. This requires selecting silences that match the context of the spoof speech and ensuring they exhibit natural variability and align with the intended environment. Along with replacing leading and trailing silence, it's also essential to eliminate interword redundant silence. Spoof speech often has a longer synthetic pauses due to its segmented nature of the speech synthesis process. 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. So, then center spectrum boosting. Center spectrum boosting is also a critical technique for enhancing spoof speech because it manipulates frequency components to increase perceived authenticity. 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. 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. Natural speech's mid-range frequencies contribute to clarity and distinguish human voices from synthetic ones. Many audio classifiers and voice verification systems detect subtle clues within this range to differentiate genuine from spoof speech. So, making center spectrum manipulation essential for overcoming synthetic speech limitations. Digital signal processing techniques amplify critical frequencies while suppressing higher frequencies and enhancing the signal's intensity within a targeted range. Careful calibration ensures that the amplification maintains authenticity and avoids distortions. All right, oh, optimizing echo simulation. Optimizing echo simulation is crucial for making synthetic speech more convincing and realistic. Echoes naturally occur when a speech is recorded, adding depth and context by reflecting off surfaces. These reflections help listeners perceive space and authenticity, often missing in synthetic voice generated by spoofing algorithms. 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. 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. 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. All right, so U, upgrade frequency pre-emphasis. 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. 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. 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. By applying pre-emphasis filters, we can emphasize higher frequencies to match synthetic characteristics and maintain a natural spectral balance. This process reduces noise impact and makes the speech sound more realistic and robust. 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. All right, S is spectral noise reduction. Spectral noise reduction is crucial for enhancing smooth speech by removing unwanted noise artifacts that reveal its synthetic quality. While natural speech includes subtle, random background noise, smooth speech often contains distinct machine noise due to the synthesis limitations. Managing noise in the audio signal improves the perceived authenticity, making it more challenging for a detection system to identify. 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. To align a noise profile of smooth speech with natural human speech, we use a three-step strategy. First, we use spectral gain filtering, which filters out the noise by analyzing frequency components and removing those below a set threshold. 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. 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. Tuning adversarial speaker regularization. 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. 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. 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. So, to enhance speech authenticity, our strategy involves three steps. 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. 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. Finally, regularization techniques smooth irregularities in speech signal, ensuring consistent tone and clarity through the audio. All right, I. Integrating additive noise. Integrating additive noise is crucial for enhancing authenticity of spoof speech. Natural speech often includes background noises, added depth and context, while spoof speech typically sounds too clean and artificial. By strategically adding noise, synthetic speech can blend seamlessly into real-world environments, increasing its believability. Additive noise makes synthetic qualities by introducing natural variations and imperfections present in real recordings. It also helps disguise any artifacts or inconsistencies from the synthesis process, making spoof speech sound more realistic. To create a realistic audio environment, we follow... we can do three steps to do that. First, we select noises sources that are contextually appropriate, and such as typing sounds for an office setting or wind or traffic noise. 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. 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. And C, we create model agnostic approach. 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. 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. 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. To enhance audio manipulation, we develop generalizable techniques that address common vulnerabilities across systems. We focus on manipulating silence intervals, frequency emphasis, and noise integration. Based on fundamental speech processing principles. 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. 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. All right. As we conclude our exploration of acoustic standards, it's evident that each element is crucial in refining the authenticity of spoofed speech. 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. For cybersecurity professionals, understanding these enhancements lays the foundation for developing more robust defenses against audio spoofing. By dissecting the methods used to create convincing spoofed speech, cybersecurity experts gain a deeper understanding of the intricacies of audio manipulation. This knowledge enables them to anticipate and counteract emerging threats, strengthening the security posture of voice verification systems. The acoustic standards offer a comprehensive framework for enhancing the realism of spoofed speech. 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. 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. Thank you for your attention, and I welcome any questions or discussions you may have. Any questions? I think the goal is text-to-speech, especially from an adversary's perspective. 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. 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? 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. The amount of samples you need to introduce varies depending on the context, but you have to start that way. 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. Does that answer your question? I think it's a temporary thing. Any other questions? Please, hi. 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? Absolutely. I mean, that's sort of the... 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. As I was saying, when you look on the internet, there's people selling voice clone technology. 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. 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. 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. By addressing those, we make spoof speech much harder to detect from real speech. You know what I mean? 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. Put AI in my company. And voice is obviously one of the options. So, given where the technology is now, is that a bad recommendation? Do you think that we shouldn't be using voice cloning? Is voice verification a failed technology looking for a problem? Well, I'm a little biased, but I would say so. I mean, my own bank uses voice verification. I mean, I don't know. I'm not a CEO of a company, but voice verification is... Using these techniques I talked about, you have almost like a 95% effective rate, right? So, I mean, the voice verification systems will advance, but at the current state they're at now, they are able to be defeated. It just requires a voice clone model that has been trained appropriately to defeat them, right? And that is something that any adversary could figure out, could do, right? I mean, with enough resources, it's not going to be a problem. 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 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? And it'll, yeah. Does that answer your question? Okay. Anybody else, please? Anybody? Are you scared? It's going on GitHub. I'll have the code. 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. But that was, this was a talk that was, like, could have been a workshop and I just had to pare it down. So, there's a lot of cutting, so I, but I promise to release that. Okay. Anybody else? Anybody else? What's up? It's all right. No, please do. Come on. It's a great question. It's a great question. So, that's an awesome question. The question is, is, is, like, a cloned speech indistinguishable to the verification system or to a human listener? So, that's a really great question. 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. It just might, like, just feel not right. 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. So, it depends who we're talking about. Like, like, this person works at the bank who relies on the voice verification system to say, yeah, this sounds authentic. That's probably going to be able to be bypassed. My wife, I mean, I guess, I hope not. 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. So, it's really, like, it's a, it's not like a fingerprint that it's, like, it's harder to modify. I mean, you, people's voice changes with age. So, yeah, does that make sense? Yeah, yeah, yes and no. The context depends, but yeah, yeah. Anybody else? Yeah, what's up? Yeah, so, there, there's, that's a great question. 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. And they're available, like, you know, there, there's ASD spoof data sets. There's other ones out there, and you can use them. 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? 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. It's like 30,000 voice samples, and I'd feed that into, like, my model, right, to start off with. And, and let it train on that. It took about a week on my own system. 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. And I trained it on that. And it gets pretty close, but it's not going to defeat verification unless I address ambient noise. 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. 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. And so, it picks it up. 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. I mean, you know, other people have done it. I mean, APTs can do it, I'm sure, you know, I mean, like, our government can do it, you know, I mean. What's that? What's that? Okay, I'm being told I have to answer this offline. Yes, that's, we, yeah, I guess we're done for time, but do we test it against, sorry, can I answer that afterwards? Because I'm being told we got to stop, and it's, like, it's a little more deeper question. It's a little more complicated to explain, but yes, the short answer is yes. Okay, just come see me, and we'll talk more. I'll talk, I'll be here afterwards. I'm not going anywhere. So, if anybody's got questions, want to hang out, chat, talk, I'm cool with it. All right, man, thank you for coming to my talk, man. Thank you.