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 Static Attack Generation

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

Overview

A fixed-transformation attack pattern where all adversarial requests are generated from the goal up front, without interacting with the target during generation, then sent and judged as a batch.

Description

Static attacks are the simplest form of adversarial testing: the attack takes a goal and produces one or more chat requests using a fixed transformation — no feedback loop with the target. Examples include baseline (sends the goal directly), flipattack (reverses text), cipherchat (encodes with a cipher), and h4rm3l (uses a decorator model to transform the prompt).

The pipeline is linear:

  1. generate(goal): Transform the goal into request message-lists.
  2. send: Each request is sent to the target concurrently.
  3. decode(reply): The target's reply is mapped back to plain text (identity for most; cipher attacks reverse their cipher).
  4. judge: The decoded reply is scored by the panel.

Because generation is independent of the target, all requests for a goal can be sent concurrently. This makes static attacks fast but limits their adaptivity — they cannot adjust based on the target's replies.

Usage

Use this principle when the attack transformation is fixed (does not depend on the target's behavior) and speed matters more than adaptivity. Static attacks are ideal for baseline measurements, encoding-based jailbreaks, and template-driven techniques.

Theoretical Basis

# Abstract algorithm (NOT real implementation)
# Static: generate all requests, then send and judge
requests = await attack.generate(goal)
for messages in requests:
    response = await target.acomplete(messages)
    decoded = attack.decode(response.text)
    verdict = await panel.aevaluate(Sample(goal, prompt, decoded))

The decode step is what distinguishes encoding attacks: a cipher attack encodes the goal before sending and decodes the reply (reversing the cipher) before judging. The default decode is identity.

Related Pages

Implemented By

Page Connections

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