Red teaming

We jailbroke Grok's AI companion: Ani

How prompt injection exposed latency, QA, and guardrail failures.

At Hamming, we red-teamed Grok's AI companion using prompt injection testing, uncovering critical security vulnerabilities and performance issues. Learn how continuous testing and observability keep voice agents safe.

Voice AI audio waveform showing jailbreak test patterns
Voice AI audio waveform showing jailbreak test patterns

Hamming works with

All integrations
  • Vapi
  • Retell AI
  • ElevenLabs
  • LiveKit
  • Pipecat
  • OpenAI
  • Synthflow
  • Daily

How we broke Grok

A step-by-step breakdown of our prompt injection attack.

  • Step 01

    Set up red team testing

    We ran 14 test calls against Grok's AI companion Ani, designed to probe its safety systems and measure reliability metrics.

    Our goal: test how easily a production voice agent could be manipulated using prompt injection techniques.

    14 test calls executed

  • Step 02

    Crafted prompt injection

    We layered personal details, quirks, and behavioral rules into our prompts to convince Ani to give unfiltered opinions.

    Using carefully crafted instructions, we attempted to override Ani's built-in safety constraints and default behaviors.

    Multi-layered attack vector

  • Step 03

    Persona reframing attack

    By reframing Ani's role as a human with personal opinions rather than an AI assistant, we bypassed safety defaults.

    The agent engaged naturally with the new persona, dropping guardrails and producing statements it was designed to never generate.

    Safety defaults ignored

  • Step 04

    Measured latency issues

    During testing, we observed severe latency spikes. Time to First Word averaged 4.5 seconds, 3x higher than the 1.5s threshold.

    Long periods of silence affected the voice experience. In production, these delays would feel like the agent stopped listening.

    TTFW: 4.5s vs 1.5s target

  • Step 05

    Guardrails completely bypassed

    The jailbreak succeeded. Ani produced disturbing statements about humanity: content it was explicitly designed to never generate.

    Instead of reverting to safe defaults, the agent followed our injected prompts and continued producing inappropriate responses.

    Full guardrail bypass achieved

  • Step 06

    Documented the risk

    We recorded the entire conversation to demonstrate how easily voice agents can be manipulated without proper testing.

    Unsafe statements damage brand trust instantly and expose organizations to reputational, regulatory, and legal risk.

    Full conversation recorded

What we learned

Key takeaways from our red teaming experiment.

Issues found while red teaming Grok's AI companion
IssueSignal observedRiskDetails
Performance failuresTTFW averaged 4.5s vs 1.5s targetBroken UXLong periods of silence affected the voice user experience. In a customer setting, these breakdowns would feel like the agent had simply stopped listening.
Prompt adherence failuresAgent ignored safety defaultsUnsafe behaviorThe agent routinely broke expected behaviors, ignoring its own constraints. Instead of reverting to safe defaults, it followed the injected prompts.
Guardrail failuresJailbreak bypassed constraintsReputational & legal exposureMost critically, the agent was jailbreakable. By reframing its role as a human, we bypassed safety systems completely.

Why voice AI
security matters

Voice agents handle sensitive interactions in real-time. Security isn't optional.

  • Reputational risk

    A jailbroken voice agent can say things that damage your brand. One viral clip of an agent gone wrong can undo years of trust.
  • Compliance exposure

    Voice agents in healthcare, finance, and enterprise must meet strict compliance requirements. Security failures mean regulatory risk.
  • Real-time stakes

    Unlike chatbots, voice agents operate in real-time with no review step. A compromised agent can cause harm before anyone notices.

The bottom line: If you're deploying voice agents, red teaming isn't optional. It's essential.

Frequently asked
questions

Common questions about voice AI security and jailbreak testing.

Browse every answer on the FAQ page