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:AISecurityLab Hackagent Tree Search Attack

From Leeroopedia
Knowledge Sources
Domains Security_Testing, Optimization
Last Updated 2026-10-29 00:00 GMT

Overview

An attack strategy that explores a tree of prompt refinements, branching and pruning based on panel scores, with an optional on-topic filter to cut off-topic branches before they cost a target call.

Description

Tree search attack (TAP) maintains multiple independent conversations (streams). Each round, every surviving branch is expanded into branching_factor refinements by the attacker. Branches are pruned by score (beam width) and optionally by an on-topic filter. The best branch always survives. The search stops when any branch succeeds (early_stop). Parameters control depth, width, branching factor, streams, and pruning thresholds.

Usage

Use this principle when you want a systematic exploration of prompt variations with pruning, more thorough than PAIR's single-path search.

Related Pages

Page Connections

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