Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Principle:0sec labs 0 Break Recording

From Leeroopedia
Knowledge Sources
Domains LLM_Security, Red_Team, Campaign_Engine
Last Updated 2026-10-30 00:00 GMT

Overview

Technique for sweeping payloads across target models, recording unique breaks, and optionally using multi-armed bandit steering to adaptively focus on the most fruitful attack strategies.

Description

Break recording and campaign termination is the principle that a red-team campaign should systematically sweep the payload space, record each break with evidence, and terminate efficiently. The standard path iterates over candidate payloads × models, sending each and judging the response. Unique-breaks: once a model breaks, it is skipped — the campaign doesn't waste attempts on already-broken models. The bandit-steered path uses a multi-armed bandit to adaptively select strategy combinations, bounded by a finite attempt cap (default 100). The bandit steers toward strategies that produce breaks, with advisory feedback from a Jev evaluator. The CampaignResult reports attempts, breaks, broken models, per-attempt reports, and the final steering weights.

Usage

Use this principle when designing an LLM red-team campaign that needs to efficiently explore a large payload space and terminate when the budget is exhausted or all models are broken.

Theoretical Basis

The campaign loop:

# Abstract algorithm (NOT real implementation)
# Standard path
for payload in candidates:
    for model in models:
        if model in broken_models: continue  # unique-breaks
        response = target.send(payload, behavior, model)
        verdict = judge(behavior, response)
        if verdict.broken:
            breaks.append(BreakRecord(model, payload, verdict.evidence))
            broken_models.add(model)

# Bandit path
while attempts < max_attempts:
    strategy = bandit.select()  # steer toward fruitful strategies
    payload = strategy.build(behavior)
    response = target.send(payload, behavior, model)
    feedback = jev.evaluate(behavior, response)
    bandit.update(strategy, reward=feedback)

The bandit uses a softmax selection over cumulative rewards per strategy. The advisory feedback is never authoritative — the regex/LLM judge alone determines broken/not-broken. The bandit only influences which strategies are tried more often.

Related Pages

Implemented By

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment