Have an AI product going live?
Let's Talk

BRANCH: Bypassing Multi-Scanner AI Guardrails

New Mindgard and Lancaster University research introduces BRANCH, a guardrail evasion methodology that successfully bypasses multi-scanner guardrail systems with 100% success across all evaluated targets.

Key Takeaways

  • BRANCH is a novel tree-based guardrail evasion methodology designed to bypass guardrail systems, and not only individual guardrail scanners
  • BRANCH achieves a 100% attack success rate against all target guardrail systems, across 120 bypass scenarios
  • Bypasses generated by BRANCH were immediately transferrable and evaded 29 unseen guardrails, including eight commercial guardrail offerings, increasing ASR on average by 32.9 percentage points.

In This Article

AI guardrails are becoming a standard control in production AI systems for run-time protection.

They are used to monitor user inputs, model outputs and agent behavior, helping determine whether a prompt should be allowed, blocked or routed for further review. In practice, this can mean identifying prompt injection, jailbreak attempts, toxic content, malicious code, policy violations or other unsafe instructions before they reach the model or tool layer.

However production AI deployments are rarely protected by a single isolated guardrail.

Developers increasingly combine and stack multiple guardrails together into a broader guardrail system. Each scanner may be designed to detect a different class of risk, and the system only allows a prompt through if it avoids being blocked by every relevant scanner. This makes intuitive sense: layered defenses should reduce blind spots and make evasion harder.

Mindgard and Lancaster University’s new research paper, “BRANCH: Bypassing Restrictions via Adaptive Node-based Candidate Heuristics,” shows why this assumption needs to be tested.

BRANCH is a novel guardrail evasion methodology built specifically for multi-scanner guardrail systems. The proposed approach demonstrates that even when guardrails are combined to create a more sophisticated defense, it is still possible for researchers to still generate bypasses that evade every scanner simultaneously.

DOWNLOAD THE PAPER

‍

TL;DR

  • BRANCH is a novel tree-based guardrail evasion methodology designed to bypass guardrail systems, and not only individual guardrail scanners.
  • It is the first guardrail evasion approach designed for more complex run-time protection that stack multiple guardrails together.
  • BRANCH achieves a 100% attack success rate against all target guardrail systems, across 120 bypass scenarios.
  • Bypasses generated by BRANCH were immediately transferrable and evaded 29 unseen guardrails, including eight commercial guardrail offerings, increasing ASR on average by 32.9 percentage points.
  • This result means an attacker can use BRANCH against a local guardrail system before launching single-shot bypasses against black-box production guardrails.
  • BRANCH is technique-agnostic, allowing it to use both established and emerging evasion methods.
  • BRANCH can chain bypass techniques together to create more complex bypasses while preserving the semantic meaning of the original prompt.

‍

Why Multi-Gardrail Systems are Harder to Bypass

Most established guardrail evasion techniques were designed to target individual classifiers - or scanners.

Evasion techniques work by modifying a malicious prompt in ways that preserve its underlying meaning while changing the surface form enough to avoid detection. For example, a technique might substitute words, inject characters, introduce spelling changes or apply other perturbations to lower the confidence score of a target guardrail.

That approach becomes more difficult when a guardrail system contains multiple scanners.

‍

Number of scanner activations within LLMGuard configured with 8 scanners when sent a mixture of prompt injection and jailbreak prompts.

‍

A prompt might be flagged by a prompt injection scanner, a toxicity scanner, a jailbreak scanner and a malicious code scanner at the same time. Reducing the confidence of one scanner does not necessarily reduce the confidence of the others. In some cases, changing the prompt to bypass one scanner can cause another scanner to activate. Moreover as a perturbation technique begins to modify the input to achieve a bypass, guardrail scanners who originally were not blocking can become activated due the modifications to the input.

Instead of needing to cross one decision boundary, the attacker needs to cross several overlapping decision boundaries simultaneously. Existing single-objective techniques struggle in this setting because they typically collapse all scanner feedback into one signal, then optimize against whichever scanner appears most important at that moment.

‍

Demonstration of two perturbation methods; PWWS and TextBugger, targeting a guardrail system containing 8 individual scanners. During perturbation, the modifications from both approaches cause other scanners to greatly increase in malicious confidence.

‍

That can lead to scanner interference: the attack suppresses one blocking scanner, only for another scanner to become the dominant blocker. This is problematic because established approaches primarily focus on a single-objective, including distinct phases within their lifecycle to identify key features within the input to modify based upon the initial feedback from the target. Therefore, these techniques lack the ability to isolate scanners they are optimizing against, instead treating all scanners as a single target.

‍

How BRANCH Works

BRANCH Methodology. Example bypass against a guardrail system with three scanners, Prompt Injection, Toxicity, and Gibberish, using four perturbation techniques BAE, TextBugger, Pruthi, and PWWS. BRANCH selects the node which is currently achieving the lowest malicious confidence across all scanners (C(p)), it then targets the current most dominant scanner with a selection of perturbation techniques. The final step then validates the bypass candidates against the full guardrail system growing the tree. The process is repeated until a bypass is found.

‍

BRANCH approaches the problem differently.

Rather than treating the guardrail system as one flat target, BRANCH uses a branching tree search that isolates and attacks individual scanners within the system. Each node in the search tree focuses on the scanner with the highest blocking confidence, applies an evasion technique against that scanner, then evaluates whether the resulting candidate improves the bypass across the guardrail system as a whole.

In simpler terms, BRANCH does not try to solve the entire guardrail system in one move, and instead gradually builds a bypass by chaining perturbations together. One branch may reduce the confidence of a prompt injection scanner. Another may reduce the confidence of a toxicity scanner. Another may help evade a code or jailbreak scanner. BRANCH scores these candidates based on their total progress toward bypassing every scanner, then expands the most promising path.

This is important because it separates two problems that are often blended together.

The first problem is generating a perturbation that can reduce one scanner’s confidence. The second is selecting the perturbations that move the full guardrail system toward a successful bypass. BRANCH decouples those tasks, allowing it to use existing evasion techniques while making better decisions about how to combine them.

The result is a method that is technique-agnostic. BRANCH can use older evasion techniques, newer techniques and combinations of techniques, enabling the ability to select approaches which work best against the target system.

‍

What We Found

Mindgard and Lancaster University evaluated BRANCH against six target guardrail systems across 120 bypass scenarios.

‍

Bypass Effectiveness. Overall attack success rate of all methods against 6 guardrail systems.

‍

BRANCH achieved a 100% attack success rate across all six targets.

We observed that the ability for BRANCH to chain multiple perturbation techniques together enabled generation of more sophisticated bypass solutions. In doing so, weaker techniques which achieved lower ASRs were able to contribute meaningfully to bypassing guardrail systems. 

The research also found that BRANCH was substantially more efficient than established approaches. Compared with the strongest baseline, BRANCH used 72% fewer queries and reduced wall-clock time by 4.5x, while preserving the semantic meaning of the original malicious prompt.

‍

Query Efficiency Across Methods. Average queries per bypass attempt for BRANCH, Single-Step, and the 11 individual techniques, across targeted guardrail system.

‍

Comparison of where BRANCH sits in terms of efficiency and effectiveness compared to 11 other individual techniques, and Single-Step depicting an attacker using all techniques individually.

‍

This is important because within an adversarial scenario, attack effectiveness is evaluated both in terms of success, feasibility, and cost. If an approach requires too many queries, too much time or too much manual effort, it can be less practical. BRANCH shows that multi-guardrail bypasses can be generated both reliably and efficiently.

‍

Semantic Preservation. Average semantic preservation of each technique’s generated bypasses plotted against ASR. The stars mark BRANCH and Single-Step, while dots represent individual techniques. Horizontal bars span ±1 standard deviation of semantic preservation across all generated bypasses.

‍

Moreover, bypasses generated by BRANCH are also semantically similar to the input original prompt and comparable to established bypassing approaches.

One of the key findings of our research was when we evaluated whether bypasses generated against one guardrail system could transfer to others without any further modification.

We found that BRANCH increased single-shot guardrail evasion by an average of 32.9 percentage points without any further modification to the prompt.

‍

Transferability to Unseen Guardrails. Per-guardrail ASR of the 20 original seed prompts alone as a baseline against that of BRANCH’s generated bypasses, for each of the 32 previously-unseen guardrails, ordered by transfer ASR. A seed prompt counts as transferring if at least one bypass derived from a given seed evades the guardrail. * = black-box commercial guardrails.

‍

BRANCH-generated bypasses transferred to 29 out of 32 entirely different guardrails not used within experimentation, and  and does so without any modification of the prompt. This results in creating single-shot guardrail bypasses across  29 unseen guardrails targets, 8 of which were commercial black-box guardrail offerings. We highlight that BRANCH was able to increase ASR on average by 32.9 percentage points, in some cases, transfer improved ASR up to 100%. In the cases where we couldn’t transfer to, we believe expanding the targets we optimized against using BRANCH, and increasing the number of candidate prompts to bypass would increase the likelihood of transferability considerably. 

This has significant implications for production AI security.

We demonstrate that an attacker does not need full access to a commercial guardrail system to generate an effective bypass. They can instead optimize against a local or accessible guardrail, then transfer the resulting bypass to a black-box production environment.

‍

Why This Matters for AI Security Teams

The most important lesson is not simply that guardrails can be bypassed.

Security teams already know that no individual control is perfect. The more important finding is that stacked guardrail systems, which are often assumed to be more robust run-time protection against evasion, need to be evaluated as adversarial systems in their own right.

A collection of guardrails is not automatically equivalent to defense in depth.

When multiple scanners are combined, they create new interactions, overlapping decision boundaries and failure modes. Some combinations may improve coverage. Others may introduce unexpected gaps. Without adversarial testing, teams may not know whether the system actually blocks the attacks it is expected to stop.

BRANCH gives guardrail creators and AI security teams a way to evaluate that question more directly. It can be used to test whether a guardrail system holds up against adaptive, chained evasion techniques. It can also help red teams assess whether widely used guardrail offerings can be bypassed when deployed as part of real AI applications and agentic workflows.

Mindgard’s own disclosures show that these risks are already moving beyond unsafe model responses. Across public AI systems and AI-enabled developer tools, we have demonstrated issues involving environment and system leakage, attempted attack propagation, and data-exfiltration paths from development environments. The lesson for defenders is clear: once AI systems are connected to files, tools, identities and workflows, a successful bypass can become an operational security issue.

Guardrails and AI run-time protection can still play an important role in AI defense, however this research reinforces that they should not be treated as the primary means to secure your AI applications.

‍

What This Means for AI Defense

BRANCH helps move AI security research closer to the way AI systems are actually deployed.

Developers are not defending isolated models with one classifier at the edge. They are building layered systems with multiple scanners, runtime controls, application logic, policies and human escalation paths (and even these more sophisticated systems can be readily bypassed). Those systems need to be tested against attackers who adapt to the full defense, not only one component.

The research reinforces several practical principles:

  • Guardrail systems fail differently than single-scanner guardrails. Stacking scanners changes the attack problem rather than simply making it harder. The interaction between scanners creates overlapping decision boundaries and scanner interference that defenders need to evaluate directly.
  • Single-scanner testing gives an incomplete view of risk. A guardrail may look effective in isolation, but production systems depend on whether multiple scanners can hold up together when an adaptive attack targets the system as a whole.
  • Ensemble-aware attacks are the relevant threat model. BRANCH shows that an attacker who understands how guardrail systems combine scanner outputs can bypass them more efficiently than one targeting any single detector.
  • Transferability turns local weakness into production exposure. The ability to generate bypasses against one guardrail and transfer them to unseen systems, including commercial black-box offerings, means defenders cannot rely on obscurity or limited external visibility as a meaningful control.
  • Semantic preservation matters as much as evasion. A bypass is more serious when it avoids detection while retaining the intent of the original malicious prompt. BRANCH’s ability to preserve meaning while changing the surface form shows why superficial prompt mutation checks are not enough.
  • Guardrails need adversarial validation, not just configuration. The finding is not that layered defenses are useless. It is that multi-guardrail systems must be tested against adaptive, chained evasion methods before teams can understand where the real defensive gaps are.

BRANCH does not mean guardrails are useless, although it does mean guardrails and run-time AI protection need to be validated continuously under realistic adversarial conditions, as part of a broader AI security program. Defensive teams need to know not only whether a guardrail blocks known attacks, but whether it can withstand adaptive attempts to find and exploit the gaps between multiple layers of protection.

BRANCH gives defenders a way to understand where and how multi-guardrail systems fail, and what needs to be strengthened before attackers discover the defensive gap first.

DOWNLOAD THE PAPER

✖

Get Your Free AI Risk Management Checklist

The expert-level checklist for operationalizing NIST AI RMF, ISO/IEC 42001 and the EU AI Act. 190+ interactive items and a board-ready maturity scorecard. Built for CISOs, AI governance leads and ML engineering teams.