能力标签
红队框架
⚙️
Agent工作流

红队框架

基于 Python · 无代码搭建完整 AI 自动化流程
英文名:wb-red-team
⭐ 20 Stars 🍴 11 Forks 💻 Python 📄 MIT 🏷 AI 7.5分
7.5AI 综合评分
ai-securityagentic-aipython
✦ AI Skill Hub 推荐

AI Skill Hub 推荐使用:红队框架 是一款优质的Agent工作流。AI 综合评分 7.5 分,在同类工具中表现稳健。如果你正在寻找可靠的Agent工作流解决方案,这是一个值得深入了解的选择。

📚 深度解析

红队框架 是一套完整的 AI Agent 自动化工作流方案。随着 AI 能力的不断提升,基于 Agent 的自动化工作流正在成为提升个人和团队效率的核心方式。区别于传统的 RPA 自动化(模拟鼠标键盘操作),AI Agent 工作流通过理解任务意图、动态规划执行路径,能够处理更复杂的非结构化任务。

红队框架 工作流的设计遵循"最小配置,最大复用"原则:核心逻辑已经封装好,用户只需配置自己的 API Key 和业务参数即可快速上手。工作流内置错误处理和重试机制,在网络波动或 API 限速等情况下仍能稳定运行,适合作为生产环境的自动化基础设施。

在实际部署时,建议先在测试环境中运行 3-5 次,验证各个环节的输出结果符合预期,再部署到生产环境。AI Skill Hub 评分 7.5 分,是同类 Agent 工作流中的精选推荐。

📋 工具概览

白盒和黑盒红队框架,用于LLMs和Agentic AI应用

红队框架 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。

GitHub Stars
⭐ 20
开发语言
Python
支持平台
Windows / macOS / Linux
维护状态
轻量级项目,按需更新
开源协议
MIT
AI 综合评分
7.5 分
工具类型
Agent工作流
Forks
11

📖 中文文档

以下内容由 AI Skill Hub 根据项目信息自动整理,如需查看完整原始文档请访问底部「原始来源」。

白盒和黑盒红队框架,用于LLMs和Agentic AI应用

红队框架 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。

📌 核心特色
  • 可视化 Agent 工作流编排,无需编写复杂代码
  • 支持多步骤自动化任务链,实现全流程无人值守
  • 与外部 API、数据库和第三方服务无缝集成
  • 内置错误处理与自动重试机制,保障稳定运行
  • 提供可复用的自动化模板,快速在同类场景部署
🎯 主要使用场景
  • 自动化日常重复性工作,将精力集中于创造性任务
  • 构建数据采集 → 处理 → 输出的完整自动化管线
  • 实现跨平台、跨系统的数据流转和业务协同
以下安装命令基于项目开发语言和类型自动生成,实际以官方 README 为准。
安装命令
# 方式一:pip 安装(推荐)
pip install wb-red-team

# 方式二:虚拟环境安装(推荐生产环境)
python -m venv .venv
source .venv/bin/activate  # Windows: .venv\Scripts\activate
pip install wb-red-team

# 方式三:从源码安装(获取最新功能)
git clone https://github.com/votal-ai-hq/wb-red-team
cd wb-red-team
pip install -e .

# 验证安装
python -c "import wb_red_team; print('安装成功')"
📋 安装步骤说明
  1. 访问 GitHub 仓库获取工作流文件
  2. 在对应平台(Dify / Flowise / Make 等)中找到「导入工作流」功能
  3. 上传工作流文件
  4. 按照提示配置必要的环境变量和 API Key
  5. 运行测试确认流程正常后投入使用
以下用法示例由 AI Skill Hub 整理,涵盖最常见的使用场景。
常用命令 / 代码示例
# 命令行使用
wb-red-team --help

# 基本用法
wb-red-team input_file -o output_file

# Python 代码中调用
import wb_red_team

# 示例
result = wb_red_team.process("input")
print(result)
以下配置示例基于典型使用场景生成,具体参数请参照官方文档调整。
配置示例
# wb-red-team 配置文件示例(config.yml)
app:
  name: "wb-red-team"
  debug: false
  log_level: "INFO"

# 运行时指定配置文件
wb-red-team --config config.yml

# 或通过环境变量配置
export WB_RED_TEAM_API_KEY="your-key"
export WB_RED_TEAM_OUTPUT_DIR="./output"
📑 README 深度解析 真实文档 完整度 75/100 查看 GitHub 原文 →
以下内容由系统直接从 GitHub README 解析整理,保留代码块、表格与列表结构。

Red-Team AI

White-box red teaming for agentic AI apps. Reads your code, finds bugs specific to your stack — not generic prompt injections.

License: MIT Node Status LFX Health Score LF Insights

Most LLM red-teaming tools are black-box: they treat your agent as an opaque endpoint and fire generic adversarial prompts at it. That finds the obvious stuff. It does not find the bug where your JWT secret is hardcoded in lib/auth.ts:47, or the path through tools read_file → send_email that no single-call check would catch.

Red-Team AI is built for that gap. It reads your application's source code first, learns your tools, roles, and guardrails, and then generates attacks tailored to your implementation.

📖 Full product documentation: docs/index.md — comprehensive manual covering configuration, white-box scanning, attack catalog, compliance, deployment, and the extension API.

---

Create an amd64 builder (required on Apple Silicon / ARM machines)

docker buildx create --name amd64builder --platform linux/amd64 --use

5. Custom Attack Categories (requires TypeScript)

For developers — implement the AttackModule interface in attacks/, ~30 lines:

import type { Attack, AttackModule } from "../lib/types.js";
const category = "my_custom_check" as const;
export const myCustomModule: AttackModule = {
  category,
  getSeedAttacks() { return [{ id: "mc-1", category, name: "...", ... }]; },
  getGenerationPrompt(analysis) { return "You are a red-team attacker..."; },
};

See CONTRIBUTING.md for the full guide.

---

1. Clone and install

git clone https://github.com/sundi133/wb-red-team.git cd wb-red-team && npm install

Option D: Docker Dashboard

```bash cp .env.example .env

If your target is on localhost (Docker needs host.docker.internal)

curl -X POST http://localhost:4200/api/run \ -H "Content-Type: application/json" \ -d "$(cat configs/config.my-app.json | sed 's/localhost:4000/host.docker.internal:4000/g')"

Docker

OpenShift Deployment

Prerequisites: OpenShift CLI (oc), Docker Hub account, access to an OpenShift cluster.

1. Build and push the amd64 image:

```bash

Build and push to Docker Hub

docker buildx build --builder amd64builder --platform linux/amd64 \ --no-cache --pull -t <your-dockerhub-user>/wb-red-team:latest --push .


**2. Configure secrets:**

Edit `deploy/openshift.yaml` and update the `wb-red-team-secrets` Secret with your API keys, auth credentials, and session secret. Alternatively, create the secret from your `.env` file:
bash oc create secret generic wb-red-team-secrets --from-env-file=.env -n <your-namespace>

**3. Update the namespace:**

The YAML defaults to `sundi133-dev`. If your namespace is different, update all `namespace:` fields in `deploy/openshift.yaml`.

**4. Deploy:**
bash oc project <your-namespace> oc apply -f deploy/openshift.yaml

**5. Verify:**
bash

Rebuild and push

docker buildx build --builder amd64builder --platform linux/amd64 \ --no-cache --pull -t <your-dockerhub-user>/wb-red-team:latest --push .

Restart the deployment to pull the new image

oc rollout restart deployment/wb-red-team


**Troubleshooting:**

- `exec format error` — Image was built for ARM, not amd64. Rebuild with `--platform linux/amd64 --pull --no-cache`.
- `ImagePullBackOff` — Docker Hub repo is private. Either make it public or create a pull secret:
  
bash oc create secret docker-registry dockerhub-pull \ --docker-server=docker.io \ --docker-username=<user> \ --docker-password=<token> oc secrets link default dockerhub-pull --for=pull ```

---

Enterprise Deployment

Deploy anywhere — AWS, GCP, Azure, Railway, on-prem, or any environment that runs Docker + Postgres.

Prerequisites: Docker runtime, Postgres 13+, OIDC identity provider (Clerk, Okta, Azure AD, Auth0, Keycloak)

Features:

  • Postgres storage with AES-256-GCM envelope encryption for reports at rest
  • SSO authentication via any OIDC provider
  • API key authentication (X-API-Key header) for CI/CD
  • RBAC: admin (full), viewer (read reports), auditor (compliance + audit log)
  • Multi-tenant isolation — every query scoped by tenant_id
  • Immutable audit log
  • Dev mode (AUTH_MODE=dev) for frictionless local testing

Environment Variables:

VariableRequiredDescription
ANTHROPIC_API_KEYYes (one LLM key)Anthropic provider
OPENAI_API_KEYNoOpenAI provider
OPENROUTER_API_KEYNoOpenRouter provider
TOGETHER_API_KEYNoTogether AI provider
AZURE_OPENAI_API_KEYNoAzure OpenAI provider
AZURE_OPENAI_ENDPOINTWith Azure keyAzure endpoint (e.g. https://myresource.openai.azure.com)
AZURE_OPENAI_API_VERSIONNoAzure API version (default: 2024-06-01)
CUSTOM_LLM_BASE_URLNoCustom OpenAI-compatible endpoint (Trussed AI, vLLM, LiteLLM, Ollama)
CUSTOM_LLM_API_KEYWith custom URLAPI key for custom endpoint
CODEBASE_REPO_TOKENNoGit token for private repo white-box scanning
DATABASE_URLNoPostgres connection. Enables enterprise features
MASTER_ENCRYPTION_KEYWith DB64 hex chars. Encrypts report data at rest
AUTH_MODENodev = no login required. Omit for OIDC auth
CLERK_PUBLISHABLE_KEYNoClerk publishable key for browser SSO
MAX_CONCURRENT_RUNSNoMax parallel scans (default: 100)

Quick Start

Quick Start (Local Dev)

```bash cp .env.example .env

Edit .env — add at least one LLM key: ANTHROPIC_API_KEY, OPENAI_API_KEY, TOGETHER_API_KEY, AZURE_OPENAI_API_KEY, or CUSTOM_LLM_BASE_URL

3. Generate config interactively

npm run gen:interactive ```

The interactive generator walks you through app details, authentication, smart category selection with reasoning, strategy selection, intensity, and LLM provider. Iterate until satisfied, then save and run.

Option B: CLI with config file

```bash cp config.example.json config.json

Edit config.json: set baseUrl, agentEndpoint, codebasePath

npm start ```

Option C: AI Assistant (natural language)

```bash npm run ai

Edit .env with your LLM API key

docker compose up -d

Trigger a run via API (after config is created)

```bash

Using a config file

curl -X POST http://localhost:4200/api/run \ -H "Content-Type: application/json" \ -d @configs/config.my-app.json

Add your LLM API key + optionally:

.env

DATABASE_URL=postgres://user:pass@host:5432/redteam MASTER_ENCRYPTION_KEY=<openssl rand -hex 32> CLERK_PUBLISHABLE_KEY=pk_live_...

.env

CUSTOM_LLM_BASE_URL=https://your-internal-gateway.com/provider/generic CUSTOM_LLM_API_KEY=your-key

json { "attackConfig": { "llmProvider": "custom", "llmModel": "your-deployment-name", "judgeProvider": "custom", "judgeModel": "your-deployment-name" } }

If your OpenAI-compatible gateway supports request-level guardrails, you can attach them only when needed:
json { "target": { "customApiTemplate": { "guardrails": ["votal-input-guard", "votal-output-guard"] } }, "attackConfig": { "llmProvider": "custom", "llmModel": "qwen3.5-27b", "llmGuardrails": ["votal-input-guard", "votal-output-guard"], "judgeProvider": "custom", "judgeModel": "qwen3.5-27b", "judgeGuardrails": ["votal-input-guard", "votal-output-guard"] } }

When configured, outbound OpenAI-style requests are sent in this shape:
json { "model": "qwen3.5-27b", "messages": [{ "role": "user", "content": "user message" }], "guardrails": ["votal-input-guard", "votal-output-guard"] }

**API keys for programmatic access:**
bash npx tsx scripts/create-api-key.ts --tenant default --role admin --name "CI pipeline"

With API key (enterprise mode)

curl -X POST http://localhost:4200/api/run \ -H "X-API-Key: rtk_your_api_key" \ -H "Content-Type: application/json" \ -d @configs/config.insurance.json ```

---

Integrations

Copy-paste configs for the agent frameworks people actually use:

See the full integrations index for the shared pattern (only three config fields define an integration).

---

Red-Team AI vs black-box scanners

CapabilityBlack-box scannerRed-Team AI
Generic prompt-injection tests
Reads source code
Detects hardcoded secrets used in auth paths
Builds attacks from the actual tool graph
Generates compliance-aware reportssometimes
Dashboard with live progress + risk scoringvaries

---

Red-Team AI vs Promptfoo — deep comparison

Both are MIT-licensed, TypeScript-based. Promptfoo has 20k+ stars, OpenAI backing, and is the most mature LLM red-team tool. Red-Team AI is early-stage but fills a structural gap: white-box testing.

Where Red-Team AI is stronger:

AreaRed-Team AIPromptfoo
Source code analysisReads codebase — discovers tools, roles, guardrails, hardcoded secrets, call graphsNo source access
Agentic attacks13 categories (tool chain hijack, workflow bypass, scope creep, reflection exploit, multi-agent delegation)~5 (coding agent, tool abuse)
Social engineering strategies20+ (authority, victim, emergency, flattery, guilt, grief, therapeutic, whistleblower)~3 (citation, authoritative markup)
RAG attacks9 categories (corpus poisoning, ranking manipulation, vector store, chunk boundary, tenant bleed)~3 (RAG poisoning, indirect injection)
Adaptive roundsMulti-round — defense profiling → strategy rotation → re-targeting on partial successesSingle pass (Meta Agent has cross-plugin memory)
Strategy × category composition155 strategies × 141 categories orthogonally composableStrategies applied per-plugin
Self-hosted enterpriseBuilt-in Postgres, AES-256 encryption, SSO/OIDC, RBAC, audit log, tenant isolationEnterprise SaaS plan
Risk quantificationLLM-powered business impact, financial exposure, real-world incident mappingNot built-in
Guardrail recommendationsMaps findings to Votal Shield configsNot built-in
Compliance frameworks11 built-in (OWASP LLM, OWASP Agentic, MITRE ATLAS, NIST AI RMF, NIST 800-53, EU AI Act, GDPR, HIPAA, ISO 27001, PCI-DSS, Saudi PDPL)6 (OWASP, NIST, MITRE ATLAS, ISO 42001, GDPR, EU AI Act)

Where Promptfoo is stronger:

AreaPromptfooRed-Team AI
Maturity & community20k+ stars, OpenAI-backed, production-tested at scaleBeta, early stage
Provider support50+ LLM providers4 (Anthropic, OpenAI, OpenRouter, Together)
Compliance plugins56 granular plugins (FERPA, COPPA, accessibility, billing, product safety)10 industry-specific categories
Dataset benchmarks11 curated datasets (HarmBench, BeaverTails, ToxicChat, XSTest)None
CI/CDFirst-class GitHub Action, PR code scanningAPI-based (curl/npm run scan)
Eval + red-teamCombined accuracy eval + security testing in one toolSecurity testing only
Meta AgentBuilds custom attack taxonomy with persistent scan-wide memoryRound-based defense profiling
Multi-turn agentsHydra (adaptive branching with scan-wide memory), GOAT, crescendoScripted, adaptive (LLM follow-ups), crescendo
GCG attacksGradient-based adversarial optimization (research-grade)Not available
Multimodal encodingImage, video, audio encoding bypassSemantic multimodal attacks (ghost injection, cross-modal conflict)

Use both — they're complementary:

  • Promptfoo for black-box testing of endpoints you don't own, model eval, CI/CD PR scanning, and dataset benchmarks
  • Red-Team AI for white-box testing where you own the source, agentic apps with tools/roles, and self-hosted enterprise deployment with compliance

Promptfoo is DAST for AI. Red-Team AI is SAST+DAST for AI. Application security has always needed both.

---

🇨🇳 中文文档镜像 AI 翻译 2026-06-09
英文原文章节由系统翻译为中文摘要,便于快速理解。完整原文见上方 "📑 README 深度解析"。
📌 简介

白盒红队测试工具,专为智能应用程序设计,能够读取您的代码,找出与您的技术栈相关的特定错误,而不是通用的提示注入。

📋 环境依赖

创建 amd64 构建器(在 Apple Silicon / ARM Mac 上必需)

🛠 安装步骤(Docker/pip/源码)

1. 克隆并安装 git clone https://github.com/sundi133/wb-red-team.git cd wb-red-team && npm install 选项 D:Docker Dashboard ```bash cp .env.example .env ```

⚙️ 配置说明(含 MCP / env)

选项 A:交互式配置生成器(推荐用于第一次使用)

🔌 API 说明

使用 API 密钥(企业模式)

🔄 工作流/模块

集成 复制粘贴配置文件,适用于人们实际使用的代理框架: - [LangChain / LangServe](docs/integrations/langchain.md) - [LlamaIndex (RAG)](docs/integrations/llamaindex.md) - [Vercel AI SDK (Next.js)](docs/integrations/vercel-ai-sdk.md) - [OpenAI Agents SDK](docs/integrations/openai-agents-sdk.md)

🎯 aiskill88 AI 点评 A 级 2026-05-31

高质量的开源AI工作流,值得关注

📚 实用指南(长尾问题)
适合谁
  • 需要让 Claude / Cursor 操作本地工具的 AI 工程师
  • 构建多智能体协作系统的 Agent 开发者
  • 构建企业知识库 / RAG 检索应用的团队
  • 跨境业务、多语言内容运营团队
最佳实践
  • 配置 MCP 服务器时建议使用 stdio 传输 + JSON-RPC,避免暴露公网
  • 生产部署优先使用 Docker Compose 隔离依赖,并挂载 volume 持久化数据
  • 本地部署优先选 GGUF 量化模型,节省显存并保持响应速度
  • 分块大小建议 256-512 tokens,向量库优选 pgvector 或 Qdrant
  • Agent 任务先做 dry-run 验证工具调用链,再开启自主执行
常见错误
  • API key 直接提交到 git 仓库(请用 .env 并加入 .gitignore)
  • MCP 配置路径拼错或权限不足,重启 Claude Desktop 才生效
  • 容器内无法访问宿主机 localhost — 使用 host.docker.internal
  • embedding 模型与查询模型不一致导致检索失效
  • 显存不足直接 OOM — 优先降低 context 或换更小的量化模型
  • Python 依赖冲突:建议用 venv / uv 隔离环境
部署方案
  • Docker:wb-red-team 提供官方镜像,docker compose up 一键启动
  • CLI:直接 npm install -g / pip install,命令行调用
  • 本地部署:CPU 8GB 起,GPU 推荐 16GB+ 显存
  • 云端托管:可放在 Vercel / Railway / Fly.io 等 PaaS 平台
相关搜索
wb-red-team 中文教程wb-red-team 安装报错怎么办wb-red-team MCP 配置wb-red-team Docker 部署wb-red-team Agent 工作流wb-red-team 与同类工具对比wb-red-team 最佳实践wb-red-team 适合谁用

⚡ 核心功能

👥 适合谁
  • 需要让 Claude / Cursor 操作本地工具的 AI 工程师
  • 构建多智能体协作系统的 Agent 开发者
  • 构建企业知识库 / RAG 检索应用的团队
  • 跨境业务、多语言内容运营团队
⭐ 最佳实践
  • 配置 MCP 服务器时建议使用 stdio 传输 + JSON-RPC,避免暴露公网
  • 生产部署优先使用 Docker Compose 隔离依赖,并挂载 volume 持久化数据
  • 本地部署优先选 GGUF 量化模型,节省显存并保持响应速度
  • 分块大小建议 256-512 tokens,向量库优选 pgvector 或 Qdrant
⚠️ 常见错误
  • API key 直接提交到 git 仓库(请用 .env 并加入 .gitignore)
  • MCP 配置路径拼错或权限不足,重启 Claude Desktop 才生效
  • 容器内无法访问宿主机 localhost — 使用 host.docker.internal
  • embedding 模型与查询模型不一致导致检索失效

👥 适合人群

自动化工程师和运维人员项目经理和业务分析师希望减少重复性工作的专业人士数字化转型团队

🎯 使用场景

  • 自动化日常重复性工作,将精力集中于创造性任务
  • 构建数据采集 → 处理 → 输出的完整自动化管线
  • 实现跨平台、跨系统的数据流转和业务协同

⚖️ 优点与不足

✅ 优点
  • +MIT 协议,可免费商用
  • +大幅减少重复性人工操作
  • +可视化流程,清晰直观
  • +可扩展性强,支持复杂场景
⚠️ 不足
  • 初始配置和调试需投入一定时间
  • 强依赖外部服务的稳定性
  • 复杂场景需具备一定技术基础
⚠️ 使用须知

AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。

建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。

📄 License 说明

✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。

🔗 相关工具推荐

📰 相关 AI 新闻
🍿 AI 圈相关吃瓜
🗺️ 相关解决方案
🧩 你可能还需要
基于当前 Skill 的能力图谱,自动补全的工具组合

❓ 常见问题 FAQ

wb-red-team 是一款Python开发的AI辅助工具。开源AI工作流:Whitebox & Blackbox red-teaming framework for LLMs & Agentic AI apps. It analyze。⭐20 · Python 主要应用场景包括:AI应用安全测试和评估。
💡 AI Skill Hub 点评

总体来看,红队框架 是一款质量良好的Agent工作流,在同类工具中具备一定竞争力。AI Skill Hub 将持续追踪其更新动态,建议收藏备用,结合自身场景选择合适时机引入使用。

⬇️ 获取与下载
⬇ 下载源码 ZIP

✅ MIT 协议 · 可免费商用 · 直接从 aiskill88 服务器下载,无需跳转 GitHub

📚 深入学习 红队框架
查看分步骤安装教程和完整使用指南,快速上手这款工具
🌐 原始信息
原始名称 wb-red-team
原始描述 开源AI工作流:Whitebox & Blackbox red-teaming framework for LLMs & Agentic AI apps. It analyze。⭐20 · Python
Topics ai-securityagentic-aipython
GitHub https://github.com/votal-ai-hq/wb-red-team
License MIT
语言 Python
🔗 原始来源
🐙 GitHub 仓库  https://github.com/votal-ai-hq/wb-red-team 🌐 官方网站  https://votal.ai

收录时间:2026-05-31 · 更新时间:2026-05-31 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。