开源 AI 渗透测试工具,用于发现并修复应用程序的漏洞。
[!TIP] 新功能! Strix 与 GitHub Actions 和 CI/CD 流水线无缝集成。自动在每个拉取请求上扫描漏洞,并在不安全代码进入生产环境之前将其拦截 - 无需任何设置即可开始。
Strix 是自主 AI 渗透测试智能体,其行为与真实黑客如出一辙 —— 动态运行你的代码、发现漏洞,并通过实际的概念验证(PoC)加以验证。专为需要快速、精准安全测试的开发者和安全团队打造,既免去了手动渗透测试的负担,也避免了静态分析工具的误报。
关键能力:
前置要求:
# Install Strix
curl -sSL https://strix.ai/install | bash
# Configure your AI provider
export STRIX_LLM="openai/gpt-5.4"
export LLM_API_KEY="your-api-key"
# Run your first security assessment
strix --target ./app-directory
[!NOTE] 首次运行会自动拉取沙箱 Docker 镜像。结果保存至
strix_runs/<run-name>
在 app.strix.ai 试用 Strix 全栈渗透测试平台 - 免费注册,连接你的仓库和域名,几分钟内即可发起渗透测试。
Strix 已为智能体就绪。为 Claude Code、Cursor、Codex 或任何兼容 SKILL.md 的智能体赋予运行渗透测试、修复发现项和配置 CI 扫描的能力:
npx skills add usestrix/strix
这会安装四个技能:penetration-testing-with-strix(运行无头扫描并读取结果)、managed-pentesting-with-strix(通过 REST 驱动托管式 app.strix.ai 平台 —— 无需本地 Docker 或 LLM 密钥)、fix-security-vulnerabilities-with-strix(修复 + 重新扫描以验证)以及 ci-security-scanning-with-strix(CI 中的 PR 扫描)。智能体可以通过同一引擎以两种方式运行 Strix —— 在本地使用开源 CLI,或在没有本地基础设施时使用托管云 —— 并可阅读 AGENTS.md 获取快速参考、docs.strix.ai/llms.txt 获取 CLI 文档、docs.app.strix.ai 获取 API 文档。
Strix 智能体配备了一套全面的进攻性安全工具包 —— 与专业渗透测试人员和道德黑客使用的工具相同:
Strix 可识别、验证并利用 OWASP Top 10 及更广泛范围内的各种安全漏洞:
先进的多智能体编排,用于全面的自动化渗透测试:
每次扫描在运行过程中都会将结果写入磁盘。只需一条命令即可在本地仪表盘中查看:
# Open the most recent run
strix view
# ...or open a specific run by name
strix view my-run-name
strix view 会启动一个轻量级本地服务器(绑定到 127.0.0.1 的随机端口),并在浏览器中打开一个带令牌的私有链接。所有数据都不会离开你的机器:仪表盘直接读取磁盘上的运行文件,无需云账户或上传。UI 随 Strix 预构建分发,因此无需额外安装,也没有 JS 构建步骤。
# Scan a local codebase
strix --target ./app-directory
# Security review of a GitHub repository
strix --target https://github.com/org/repo
# Black-box web application assessment
strix --target https://your-app.com
将 Strix 指向 API 契约,它就会测试每一个声明的端点,而无需通过爬取来发现它们。将规范与实际的基础 URL 配对,智能体就能知道流量该发往何处:
# OpenAPI / Swagger file (.json / .yaml)
strix --target ./openapi.yaml --target https://api.your-app.com
# Postman collection export
strix --target ./collection.postman_collection.json --target https://api.your-app.com
# Postman collection pulled live by id (no manual export)
export POSTMAN_API_KEY="PMAK-..."
strix --target postman://<collection-uuid>
# ...with a Postman environment to resolve {{baseUrl}} / token variables
strix --target "postman://<collection-uuid>?env=<environment-uuid>"
# Grey-box authenticated testing
strix --target https://your-app.com --instruction "Perform authenticated testing using credentials: user:pass"
# Multi-target testing (source code + deployed app)
strix -t https://github.com/org/app -t https://your-app.com
# Targets from a file, one target per non-empty, non-comment line
strix --target-list ./targets.txt
# White-box source-aware scan (local repository)
strix --target ./app-directory --scan-mode standard
# Focused testing with custom instructions
strix --target api.your-app.com --instruction "Focus on business logic flaws and IDOR vulnerabilities"
# Provide detailed instructions through file (e.g., rules of engagement, scope, exclusions)
strix --target api.your-app.com --instruction-file ./instruction.md
# Force PR diff-scope against a specific base branch
strix -n --target ./ --scan-mode quick --scope-mode diff --diff-base origin/main
使用 -n/--non-interactive 标志以纯程序化方式运行 Strix,无需交互式 UI —— 非常适合服务器和自动化任务。CLI 会在退出前实时输出漏洞发现结果和最终报告。当发现漏洞时,以非零退出码退出。
strix -n --target https://your-app.com
通过一个轻量级 GitHub Actions 工作流,即可将 Strix 添加到你的流水线中,对拉取请求运行安全测试:
name: strix-penetration-test
on:
pull_request:
jobs:
security-scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Install Strix
run: curl -sSL https://strix.ai/install | bash
- name: Run Strix
env:
STRIX_LLM: ${{ secrets.STRIX_LLM }}
LLM_API_KEY: ${{ secrets.LLM_API_KEY }}
run: strix -n -t ./ --scan-mode quick
[!TIP] 在 CI 拉取请求运行中,Strix 会自动将快速审查的范围限定到变更的文件。 如果 diff 范围无法解析,请确保检出使用完整历史(
fetch-depth: 0),或显式传入--diff-base。
export STRIX_LLM="openai/gpt-5.4"
export LLM_API_KEY="your-api-key"
# Optional
export LLM_API_BASE="your-api-base-url" # if using a local model, e.g. Ollama, LMStudio
export PERPLEXITY_API_KEY="your-api-key" # for search capabilities
export STRIX_REASONING_EFFORT="high" # control thinking effort (default: high, quick scan: medium)
[!NOTE] Strix 会自动将你的配置保存到
~/.strix/cli-config.json,因此你无需在每次运行时重新输入。
无需使用按量计费的 API 密钥,你可以通过 ChatGPT Plus/Pro 订阅运行 Strix:
strix auth login chatgpt # sign in with your ChatGPT account
export STRIX_LLM="chatgpt/gpt-5.4" # chatgpt/<model> runs on the subscription
strix --target ./app-directory
strix auth status # show the active sign-in
strix auth logout # forget the sign-in
为获得最佳效果,推荐以下模型:
openai/gpt-5.4anthropic/claude-sonnet-4-6vertex_ai/gemini-3-pro-preview查看 LLM 提供商文档 了解所有受支持的提供商,包括 Vertex AI、Bedrock、Azure 和本地模型。
以企业级管控获得同样的 Strix 体验:SSO(SAML/OIDC)、定制化合规就绪渗透测试报告(SOC 2、ISO 27001、PCI DSS)、专属支持与 SLA、自定义部署选项(VPC/自托管)、BYOK 模型支持,以及针对你的环境优化的定制 AI 渗透测试智能体。了解更多。
完整文档见 docs.strix.ai —— 包括使用、CI/CD 集成、技能和高级配置的详细指南。
我们欢迎代码、文档和新技能方面的贡献 —— 查看我们的贡献指南开始,或提交拉取请求/问题。
有疑问?发现了 Bug?想要贡献?加入我们的 Discord!
喜欢 Strix? 在 GitHub 上给我们一个 ⭐!
Strix 建立在 LiteLLM、Caido、Nuclei、Playwright 和 Bubble Tea 等开源项目的杰出成果之上。衷心感谢它们的维护者!
[!WARNING] 仅限授权使用。 Strix 会主动测试你指定的目标,因此请仅对你拥有或已获得明确书面许可的系统运行测试,并保持在约定范围内。在大多数司法管辖区,未经授权的测试属于违法行为。 获取授权和遵守法律的责任完全由你承担。Strix 按“原样”提供,不附带任何担保,也不对滥用承担任何责任。