How adversarial noise protects my selfies from the (AI-based deepfake) TikTok dance trend

Tania Sadhani (AI Security Researcher · Mileva Security Labs)

BSides Canberra VII (2024) · Day 1 · Main Track

Overview

In an era where generative AI technology is becoming increasingly accessible, the proliferation of non-consensual deepfakes poses a significant and rapidly escalating threat. Tania Sadhani, an AI Security Researcher at Mileva Security Labs, delivered a compelling talk at BSides Canberra, shedding light on the alarming trends of deepfake misuse and proposing a proactive defense mechanism: adversarial noise. Her presentation, titled "How adversarial noise protects my selfies from the (AI-based deepfake) TikTok dance trend," delves into the critical need for user-centric protective measures that prevent the creation of malicious deepfakes, rather than merely detecting them after the fact.

Watch on YouTube

Visual summary for How adversarial noise protects my selfies from the (AI-based deepfake) TikTok dance trend by Tania Sadhani
Visual summary for How adversarial noise protects my selfies from the (AI-based deepfake) TikTok dance trend by Tania Sadhani

Key moments

  1. 2:00 The growing problem of non-consensual deepfake misuse
  2. 4:25 Using adversarial noise to prevent deepfake creation
  3. 5:30 AI security and unique threats to AI systems
  4. 10:20 Focusing on the easily accessible InSwapper 128 deepfake model
  5. 16:40 Results and limitations of current adversarial noise tools
  6. 19:20 Adversarial noise defends against unsophisticated, automated deepfake attacks
  7. 20:30 Applying adversarial noise to the Vigle AI TikTok filter
  8. 24:00 The urgent need for transferable protective AI defenses

How adversarial noise protects my selfies from the (AI-based deepfake) TikTok dance trend

Speakers: Tania Sadhani (AI Security Researcher, Mileva Security Labs)

Conference: BSides Canberra

YouTube: https://www.youtube.com/watch?v=Lg44Eul6aVE

Overview

In an era where generative AI technology is becoming increasingly accessible, the proliferation of non-consensual deepfakes poses a significant and rapidly escalating threat. Tania Sadhani, an AI Security Researcher at Mileva Security Labs, delivered a compelling talk at BSides Canberra, shedding light on the alarming trends of deepfake misuse and proposing a proactive defense mechanism: adversarial noise. Her presentation, titled "How adversarial noise protects my selfies from the (AI-based deepfake) TikTok dance trend," delves into the critical need for user-centric protective measures that prevent the creation of malicious deepfakes, rather than merely detecting them after the fact.

Sadhani's research is motivated by real-world incidents, such as a New Zealand report detailing a Telegram chat where over 600 women had their photos non-consensually used for deepfake purposes. Advocacy bodies like "My Image My Choice" track hundreds of apps offering such services, with a staggering 80% developed within the last year, indicating an accelerating problem. The talk highlights how readily available these tools are, even on platforms like Hugging Face, often advertising their "not safe for work" capabilities. Sadhani argues for empowering individuals with greater autonomy over their digital images, enabling them to share content online without the constant fear of misuse.

This article provides a comprehensive exploration of Sadhani's insights, detailing the underlying AI security principles, the technical specifics of adversarial noise, and its application against prevalent deepfake technologies. By repurposing a technique traditionally used for offensive AI attacks into a defensive shield, Sadhani's work offers a promising pathway for individuals to safeguard their digital identities. The presentation culminates in a practical, albeit "fun," demonstration of adversarial noise against the popular TikTok dance filter, illustrating its potential to disrupt even cutting-edge generative AI systems.

Background

▶ Watch: The growing problem of non-consensual deepfake misuse (2:00)

The problem of deepfake misuse is fundamentally rooted in the increasing accessibility and sophistication of generative AI technologies. What once required specialized skills and computational resources is now available through user-friendly applications, often found on the clear web. As Sadhani points out, this accessibility has led to a surge in non-consensual image-based sexual abuse, where individuals' photos are used to create fabricated, often explicit, content without their consent. The rapid development of these tools, with 80% emerging in the last 12 months, underscores the urgency of finding effective countermeasures.

Current efforts to combat deepfakes largely focus on watermarking and detection techniques, alongside policy, legislation, and educational initiatives. While these are crucial for remediation—identifying deepfakes once they are created and addressing their consequences—they fall short in preventing the initial act of non-consensual deepfake generation. Sadhani's work aims to fill this gap by developing a "detective shield" or "adversarial noise" filter that users can apply to their photos, making them resistant to malicious AI-based image processing. This approach prioritizes user autonomy, allowing individuals to control how their images are perceived and processed by AI systems, thereby mitigating the risk of misuse before it occurs.

The theoretical underpinning of this defense lies within the field of AI security. Sadhani explains that AI systems, while subject to standard cybersecurity threats, also possess unique vulnerabilities stemming from their reliance on vast datasets, complex models, and often open-source components. Adding AI to any system significantly expands its attack surface, exposing it to AI-specific threats that can induce three primary failure modes: disruption (making the system stop working), deception (making the AI act or predict in unintended ways), and disclosure (leaking private information). Examples like Microsoft's Tay chatbot, which was manipulated to generate inappropriate content, illustrate how easily AI systems can be influenced when their unique risks are underestimated. Sadhani's day-to-day work involves analyzing such failures to help organizations adjust their processes to account for these inherent AI risks. Her talk repurposes these very principles of AI-specific attacks to construct a robust defense against deepfake technologies.

Key Findings

▶ Watch: AI security and unique threats to AI systems (5:30)

Tania Sadhani's project aimed to leverage the concept of adversarial noise as a defense mechanism against deepfake technology, specifically targeting non-consensual generation. Her initial investigation revealed a critical gap: existing adversarial noise tools were not "fit for purpose" against the specific threat of deepfake creation. These tools often had varying use cases, such as disrupting text-to-image models or protecting artists' work from copying, and frequently required users to possess the target model or were designed for specific, non-transferable AI versions.

To benchmark the efficacy of available tools, Sadhani tested several prominent adversarial noise generators: Fawkes, LowKey, PhotoGuard, and Mist. Fawkes and LowKey were originally developed to fool facial recognition systems, preventing social media images from being matched to CCTV footage. PhotoGuard and Mist, on the other hand, targeted large image generation models to protect artistic works. A significant finding was that none of these tools worked "out of the box" for a non-expert user; all required significant bug fixes and technical adjustments, highlighting an accessibility barrier. Notably, another well-known tool, Glaze, could not be tested due to bugs, obfuscated code, and lack of published source.

The experimental results against the ubiquitous deepfake model InSwapper 128 showed mixed success. Fawkes and LowKey demonstrated some disruption to the facial features and, as expected, significantly disrupted a proxy facial recognition model, aligning with their original design. However, the visual disruption to the deepfake output was not "super effective" in preventing the deepfake entirely. PhotoGuard and Mist, designed for diffusion models, showed even less disruptive effect on InSwapper 128, which is more akin to a StyleGAN architecture. This underscored a crucial limitation: the transferability of adversarial defenses across different AI models and architectures is often poor. Defenses optimized for one type of AI system may not work effectively against others, especially as new models emerge.

Despite these limitations, Sadhani emphasized that adversarial noise still holds significant promise. While sophisticated attackers might find ways to circumvent it (e.g., through image compression or rotation), it could be highly effective against unsophisticated and automated deepfake attacks. These are the types of attacks that scrape social media at scale, requiring minimal effort from the perpetrator. For such automated threats, even a relatively simple adversarial noise filter could significantly increase the effort required, making widespread non-consensual deepfake generation more difficult. The key takeaway is the urgent need for accessible, transferable defenses that can protect against not just one, but a variety of common deepfake models. Sadhani's ongoing project aims to address this by allowing users to apply defenses and test them against multiple models hosted on platforms like Hugging Face.

Technical Deep Dive

▶ Watch: Results and limitations of current adversarial noise tools (16:40)

The process of creating a deepfake typically involves five main steps, with machine learning components heavily influencing the elements highlighted in blue: data collection, face detection and alignment, face merging, post-processing, and output generation. Sadhani's research specifically focused on the "face merging" phase, which exhibits significant variation in its technical approaches. Her chosen target model for defense testing was InSwapper 128, due to its widespread use, ease of access, and effectiveness. When searching for deepfake tools on GitHub, InSwapper 128 often appears as the backend for popular applications.

InSwapper 128 is a particularly insidious tool because it requires no prior training, operates effectively "out of the box," and can generate high-quality deepfakes from a single source image, even locally within five minutes on consumer-grade hardware. Its ubiquitous nature, despite lacking an official source due to ethical concerns leading to its removal by original developers, makes it a prime target for defensive research. The model's origins are unclear, but inspection suggests it is a variation of a StyleGAN architecture. The lack of official versioning or training data for InSwapper 128 also presents a challenge, as defenders cannot easily understand or adapt to its specific nuances.

Adversarial noise is a well-established AI security technique that aims to disrupt or deceive machine learning models. It involves making small, carefully calculated, and often imperceptible modifications to an input image. These modifications, while visually insignificant to human observers, can cause an AI model to misclassify the input or process it in an unintended way. The process can be conceptualized as a search problem: finding the optimal small changes to an input to elicit a desired, erroneous output from the model. Historically, adversarial noise has been used in offensive contexts against facial recognition, object detection, and even in the audio domain. Sadhani's innovation lies in repurposing this offensive technique as a defensive shield.

The tools benchmarked in her research applied adversarial noise in different ways:

  • Fawkes and LowKey: These tools were designed to perturb images to fool facial recognition systems. They aim to make an individual's online photo unmatchable to a real-world image (e.g., from CCTV footage). Their mechanism likely involves subtle pixel manipulations that shift key facial feature embeddings, thus preventing accurate identification by a facial recognition algorithm.
  • PhotoGuard and Mist: Developed more recently, these tools target large-scale image generation models, such as diffusion models, to prevent them from copying or extracting features from artistic works. Their approach involves injecting noise patterns that confuse the generative process, making it difficult for the AI to accurately reproduce or learn from the protected image.

Sadhani measured the effectiveness of these tools against InSwapper 128 in two ways:

  1. Pixel Change Analysis: Quantifying the direct changes in pixel values between the original and the deepfaked image generated from a noise-added input.
  2. Facial Recognition Model Proxy: Using an independent facial recognition model to assess the perceived difference between the original face and the face generated by the deepfake tool from the "protected" input. A higher disruption score by this proxy indicates a more successful defense.

The results confirmed that Fawkes and LowKey, being designed for facial recognition, performed better in disrupting the facial recognition proxy model and showed more visual changes in the deepfake output's face. However, PhotoGuard and Mist, geared towards diffusion models, were less effective against InSwapper 128, reinforcing the transferability challenge. This highlights the ongoing need for research into creating transferable defenses that can generalize across diverse and evolving deepfake architectures, including those whose internal workings are proprietary or unknown.

Demo / Proof of Concept

▶ Watch: Adversarial noise defends against unsophisticated, automated deepfake attacks (19:20)

To illustrate the practical application and challenges of adversarial noise in a relatable context, Tania Sadhani applied her research to the popular TikTok dance filter. This filter, powered by Viggle AI, allows users to take a single static image of a person and animate them to dance to a chosen TikTok sound. While seemingly innocuous, it serves as an excellent proxy for testing defenses against advanced, proprietary deepfake generation systems. Sadhani's goal was to see if the adversarial noise methods, previously tested against older deepfake technologies like InSwapper 128, could protect her photos from being used in this new, sophisticated platform.

Viggle AI's system, though proprietary, is understood to operate through a multi-stage process based on public information and interviews. It involves:

  1. Image Input Processing: Taking the user's input image and crafting a 3D human "skin" or model from it.
  2. Video Input Processing: Taking a video of a moving subject (e.g., a dancer) and converting it into a 3D motion model.
  3. Merging and Deepfake Generation: "Smushing" the 3D skin from the input image onto the 3D motion model from the video, effectively creating a deepfake video where the person from the static image performs the dance movements.

Viggle AI claims to use a novel GST-1 model as its core innovation, alongside what is likely some form of image-to-image model. Sadhani hypothesized that the key vulnerability for defensive action would lie in disrupting the process of translating the input image into a 3D skin model. If this initial step could be sufficiently perturbed, the resulting animated figure would not accurately resemble the original person, even if the underlying motion was correctly applied.

To better understand Viggle AI's internal workings, Sadhani conducted exploratory tests by feeding various images into the system, observing how it handled non-human subjects, face cropping, background influence, and multiple faces. Based on these behavioral observations, her deduction was that Viggle AI likely incorporates a diffusion model or a similar generative architecture for its image-to-3D-skin translation. Consequently, she chose Mist, one of the adversarial noise tools specifically designed to target diffusion models, for her proof of concept.

The result of applying Mist's adversarial noise to an image before feeding it into Viggle AI was, unfortunately, not as disruptive as desired. While some subtle noise was visible on the face in the generated video, it did not significantly alter the subject's appearance enough to prevent recognition or deepfake creation. The model still moved, and the likeness was largely preserved. Sadhani concluded that this outcome either indicated that Viggle AI is not, in fact, primarily a diffusion model, or that the adversarial noise generated by Mist lacked the necessary transferability to effectively perturb Viggle AI's specific, proprietary architecture. This demonstration reinforced the overarching challenge identified in her research: the critical need for developing robust, transferable defenses that can adapt to the diverse and often opaque models used by deepfake creators, especially those that are constantly evolving.

Defensive Implications

▶ Watch: The urgent need for transferable protective AI defenses (24:00)

The implications of Tania Sadhani's research for cybersecurity defenders are profound, particularly in shifting focus from post-fact remediation to proactive prevention. The current landscape of deepfake countermeasures, relying heavily on detection and watermarking, is proving insufficient against the rapid proliferation of easily accessible generative AI tools. As Sadhani eloquently puts it, "detection and watermarking isn't enough; there needs to be some sort of protective measure at least for our personal photos." Defenders must prioritize strategies that empower individuals with user autonomy over their digital images, enabling them to control how their likeness is processed by AI systems.

The primary defensive implication is the strategic application of adversarial noise as a "detective shield." While it may not be foolproof against highly sophisticated, custom-built deepfake attacks, its true strength lies in mitigating unsophisticated and automated deepfake attacks. These are the scalable threats that leverage bots to scrape social media and generate deepfakes with minimal effort. By introducing even a small amount of adversarial noise, defenders can significantly increase the computational or technical barrier for such automated systems, making mass deepfake generation impractical or ineffective. This approach directly addresses the "low effort, high scale" problem presented by readily available deepfake tools.

Furthermore, Sadhani's work underscores the critical need for transferable defenses. Current adversarial noise tools often target specific AI architectures or versions, limiting their effectiveness against the diverse and evolving deepfake landscape. Defenders should invest in research and development that focuses on creating generalized adversarial noise techniques capable of perturbing a wide array of deepfake models, including proprietary or unknown ones. This means developing platforms or methodologies that allow for the generation and testing of defenses against multiple common deepfake models, rather than just one.

Finally, the talk reinforces a fundamental principle of AI security: adding AI to a system inherently increases its exposure to new types of attacks. Organizations, and individuals alike, must recognize that AI components introduce unique vulnerabilities beyond traditional cybersecurity concerns. Implementing robust AI security practices—understanding model dependencies, scrutinizing open-source components, and adjusting security processes to account for AI-specific threats (disruption, deception, disclosure)—is paramount. For individuals, this translates to adopting proactive measures like adversarial noise to protect their personal data in an increasingly AI-driven digital world, acknowledging that prevention is often more effective than attempting to remedy the consequences of misuse.

Key Takeaways

  • Deepfake Misuse is Rapidly Escalating: The accessibility of generative AI is fueling a surge in non-consensual deepfake creation, with 80% of related tools emerging in the last year, often found on mainstream platforms.
  • Prevention Over Remediation: Current detection and watermarking methods are insufficient; there is a critical need for proactive, protective defenses like adversarial noise that prevent the creation of deepfakes rather than just identifying them after the fact.
  • Adversarial Noise as a Promising Defense: Repurposing adversarial noise, traditionally an offensive AI security technique, offers a viable method to disrupt and deceive deepfake models, especially against unsophisticated and automated attacks.
  • The Challenge of Transferability: Existing adversarial noise tools often lack transferability, meaning defenses effective against one AI model may not work against others. Future research must focus on developing generalized, transferable defenses.
  • Empowering User Autonomy: Adversarial noise provides individuals with a means to exert greater control over their digital images, safeguarding their privacy and mitigating the risk of non-consensual deepfake generation.
  • AI Introduces New Attack Surfaces: Adding AI to any system inherently increases its exposure to unique AI-specific threats (disruption, deception, disclosure), highlighting the importance of dedicated AI security measures.

About the Speaker(s)

Tania Sadhani is an accomplished AI Security Researcher at Mileva Security Labs. Her professional journey began with a background in computer science, which she continues to build upon through ongoing research in AI safety at The Australian National University (ANU). Prior to her current role, Sadhani gained diverse experience within government, serving in various technical capacities as a data scientist and contributing to strategic policy teams. This unique blend of technical expertise, policy understanding, and dedicated AI security research positions her as a leading voice in addressing the complex challenges posed by emerging AI technologies, particularly in the realm of deepfake misuse. Her work at Mileva Security Labs focuses on understanding and mitigating real-world AI failures to help organizations and individuals prepare for and adjust to AI-related risks.

Reviews

→ Top-rated talks at BSides Canberra VII (2024)

All talks from BSides Canberra VII (2024)