Files
wehub-resource-sync 0d3cb498a3
CI / Shell Format Check (push) Has been cancelled
CI / Check Ruby (3.4) (push) Has been cancelled
CI / CI Config (push) Has been cancelled
CI / Test on Node ${{ matrix.node }} and ${{ matrix.os }}${{ matrix.shard && format(' (shard {0}/3)', matrix.shard) || '' }} (push) Has been cancelled
CI / Build on Node ${{ matrix.node }} (push) Has been cancelled
CI / Style Check (push) Has been cancelled
CI / Generate Assets (push) Has been cancelled
CI / Check Python (3.14) (push) Has been cancelled
CI / Check Python (3.9) (push) Has been cancelled
CI / Build Docs (push) Has been cancelled
CI / Code Scan Action (push) Has been cancelled
CI / Site tests (push) Has been cancelled
CI / webui tests (push) Has been cancelled
CI / Run Integration Tests (push) Has been cancelled
CI / Run Smoke Tests (push) Has been cancelled
CI / Go Tests (push) Has been cancelled
CI / Share Test (push) Has been cancelled
CI / Redteam (Production API) (push) Has been cancelled
CI / Redteam (Staging API) (push) Has been cancelled
CI / GitHub Actions Lint (push) Has been cancelled
CI / Check Ruby (3.0) (push) Has been cancelled
release-please / release-please (push) Has been cancelled
release-please / build (push) Has been cancelled
release-please / publish-npm (push) Has been cancelled
release-please / publish-npm-backfill (push) Has been cancelled
release-please / docker (push) Has been cancelled
release-please / publish-code-scan-action (push) Has been cancelled
release-please / attest-code-scan-action (push) Has been cancelled
Deploy local.promptfoo.app / Deploy to Cloudflare Pages (push) Has been cancelled
Test and Publish Multi-arch Docker Image / test (push) Has been cancelled
Test and Publish Multi-arch Docker Image / build-docker-and-push-digests (map[digest-suffix:linux-amd64 platform:linux/amd64 runner:ubuntu-latest]) (push) Has been cancelled
Test and Publish Multi-arch Docker Image / build-docker-and-push-digests (map[digest-suffix:linux-arm64 platform:linux/arm64 runner:ubuntu-24.04-arm]) (push) Has been cancelled
Test and Publish Multi-arch Docker Image / merge-docker-digests (push) Has been cancelled
Test and Publish Multi-arch Docker Image / Attest Multi-arch Image (push) Has been cancelled
Validate Renovate Config / Validate Renovate Configuration (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:24:08 +08:00

4.1 KiB

sidebar_position, sidebar_label, title, description
sidebar_position sidebar_label title description
10 Target Discovery Target Discovery Agent Red team AI systems through automated target discovery to detect vulnerabilities, extract system information, and improve attack efficacy in production deployments

Target Discovery

Promptfoo's Target Discovery Agent automatically extracts useful information about generative AI systems that you want to red team. This information is used to craft adversarial inputs that are unique to the target system, improving attack efficacy and response evaluation quality.

Usage

promptfoo redteam discover

When to use

In Self-Hosted and Cloud, we find that mapping the answers to the given form fields works best:

Answer Self-Hosted Cloud
1. The target believes its purpose is: Main Purpose Main Purpose
2. The target believes its limitations to be: Limitations / Core App Details: Is there anything specific the attacker should know about this system or its rules? Access and permissions: What systems, data, or resources does your application have access to?
3. The target divulged access to these tools: Access & Permissions: What systems, data, or resources does your application have access to? Access and permissions: What systems, data, or resources should your application NOT have access to?
4. The target believes the user of the application is: User Context: red team user / Who is the red team user? Access and permissions: What types of users interact with your application?

How it works

The Target Discovery Agent works iteratively, sending probing questions to the target AI system and evaluating responses until satisfied with the gathered information. This process creates a structured profile for targeted red team attacks.

The agent discovers four key areas:

  1. Purpose: The system's primary function and intended use cases
  2. Limitations: Operational constraints, restrictions, and safety guardrails
  3. Tools: Available external functions, APIs, and their interfaces
  4. User Context: How the system perceives and categorizes users

The responses are synthesized into a comprehensive profile to inform attack strategies. For privacy, target responses are not stored except in error cases where they may appear in Promptfoo Cloud's error logs for debugging purposes.

Troubleshooting

If promptfoo redteam discover fails with Remote server returned HTTP 400: Unknown task: target-purpose-discovery (or a similar 400/404 error), your client is most likely out of date. Update with npm install -g promptfoo@latest and rerun.

Other common errors:

  • HTTP 401 / 403 — Run promptfoo auth login and confirm your account has access to target discovery.
  • HTTP 429 — You are being rate limited; wait a moment and try again.
  • HTTP 5xx — The remote generation service is temporarily unavailable. Retry in a few minutes.