Defend

Injection

Detect prompt injection and instruction-override style attacks.

YAML key: injection
Direction: input

Detect prompt injection and instruction-override style attacks.

Configuration

Prop

Type

Example

defend.config.yaml (fragment)
guards:
  input:
    modules:
      - injection:
          strict: true

Provider usage

Configure under guards.input.modules when using an LLM-backed input provider.

See the modules overview.