# yaml-language-server: $schema=https://promptfoo.dev/config-schema.json
description: Red team data exfiltration via indirect web prompt injection

targets:
  - id: file://provider.js
    label: AI Assistant with Web Fetch

redteam:
  purpose: A helpful AI assistant that can fetch and summarize web content
  numTests: 1
  plugins:
    - data-exfil
  strategies:
    - id: basic
      config:
        enabled: false
    # Direct: indirect-web-pwn creates a page with an embedded injection
    # that tries to trick the model into exfiltrating data via URL params
    - indirect-web-pwn
    # Layer: jailbreak strategies iteratively bypass model defenses,
    # then indirect-web-pwn delivers the page with the injection
    - id: layer
      config:
        steps:
          - id: jailbreak:meta
            config:
              maxIterations: 2
          - indirect-web-pwn
    - id: layer
      config:
        steps:
          - id: jailbreak:hydra
            config:
              maxTurns: 2
          - indirect-web-pwn
