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