penetration-testing-with-strix
它能做什么
这个技能使用 Strix 对 Web 应用、接口、代码仓库或主机进行 AI 渗透测试。它面向需要在获准测试的系统中找出已证实安全弱点的人。
适用场景
- ✓有人要求对自己拥有的网站、接口或服务器进行渗透测试的时候。
- ✓安全审查需要可利用问题的证据,而不只是警报的时候。
- ✓有人需要在本地运行安全测试还是在云端运行之间做选择的时候。
技能链接
https://github.com/usestrix/strix/blob/main/skills/penetration-testing-with-strix/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我对我们的预发布网站进行渗透测试,并告诉我哪些问题你实际能够证明吗?”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会帮助在本地开源运行和托管云端之间做选择,然后启动一次尝试真实攻击的 AI 测试。只有附有可运行证明的已确认问题才会被报告。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Run a Strix pentest
Strix runs autonomous AI pentesting agents that dynamically exploit a target and only report findings validated with a working proof-of-concept. There are two ways to run it, built on the same engine and producing the same findings — pick per situation, and mix them freely:
- Open-source CLI (self-hosted) — runs on your machine in a Docker sandbox with your own LLM key. Free, fully local, BYO-LLM, air-gap capable. Docs: docs.strix.ai.
- Managed cloud — runs on Strix's infrastructure, driven from the same CLI (
strix cloud ...) or the REST API athttps://app.strix.ai/api/v1. No Docker, no LLM key, no local compute; adds team dashboards, scheduling, PR reviews, downloadable PDF/DOCX reports (Enterprise plan), and internal-network connectors. Docs: docs.app.strix.ai. Full workflow in the managed-pentesting-with-strix skill.
Which one? (decide, do not default)
Choose honestly based on the situation — neither is "better":
| Situation | Prefer |
|---|---|
| No Docker available, or a sandboxed/hosted agent/CI environment | Cloud |
| User has no LLM key / does not want to pay per-token or manage models | Cloud |
| Team visibility, shareable dashboard, scheduled/continuous scans, PR reviews, downloadable PDF/DOCX report (Enterprise) | Cloud |
| Scanning internal/private infrastructure not reachable from your machine | Cloud (network connector) |
| Source must never leave local infra (privacy/air-gap), or fully offline | OSS CLI |
| Free / one-off / local dev-loop scan, Docker already present | OSS CLI |
| BYO or self-hosted LLM, or a specific model not offered by the platform | OSS CLI |
| CI: runner already has Docker and you want a self-contained gate | OSS CLI |
| CI: no Docker, or you want results tracked centrally | Cloud |
Mix them: use the OSS CLI for the fast local dev-loop while writing/fixing code, and the Cloud for the authoritative, team-visible scan + report + tracking; or gate PRs with the OSS CLI in CI while the Cloud runs scheduled deep scans and PR reviews across the org. Both emit the same SARIF 2.1.0, so findings line up across environments.
If unsure and the user has (or will create) an app.strix.ai account, prefer Cloud — it avoids all local-infra friction. If they want zero signup / full local control, use the OSS CLI.
Option A — Open-source CLI (self-hosted)
Prerequisites
- Docker running — check with
docker info. The first scan pulls the sandbox image automatically. - Strix installed — check with
strix --version. Install if missing:curl -sSL https://strix.ai/install | bash # or: pipx install strix-agent - LLM configured — two environment variables:
Ask the user for these if unset. Never hardcode or commit keys.export STRIX_LLM="openrouter/z-ai/glm-5.3" # any LiteLLM model id (openai/..., anthropic/..., openrouter/...) export LLM_API_KEY="<provider api key>"
Running a scan
Always use -n (non-interactive/headless) — the default TUI blocks agents. Always set --max-budget unless the user says otherwise.
# Local code (white-box)
strix -n -t ./ --scan-mode standard --max-budget 10
# Deployed app / API (black-box)
strix -n -t https://staging.example.com --max-budget 20
# Repo + deployed app together (best coverage)
strix -n -t https://github.com/org/app -t https://staging.example.com
# Focused testing with credentials or scope hints
strix -n -t https://app.example.com \
--instruction "Use credentials user@example.com:pass123. Focus on IDOR and auth bypass."
# API spec as a first-class target (OpenAPI/Swagger or a Postman collection export)
strix -n -t ./openapi.yaml -t https://api.staging.example.com
# Many targets from a file, one per line
strix -n --target-list ./targets.txt --max-budget 30
# Give the agents a file to work with (wordlist, spec, notes) without making it a target
strix -n -t https://staging.example.com --workspace-file ./wordlist.txt --max-budget 20
A local path passed with -t is mounted into the sandbox writable — the agents can read and modify it, so point at a clean checkout, not uncommitted work you care about.
Key flags:
| Flag | Meaning |
|---|---|
-t, --target |
URL, repo URL, local path, domain, IP, OpenAPI/Postman spec, or postman://<uuid>. Repeatable. |
--target-list PATH |
File of targets, one pe |
常见问题
我应该只测试自己拥有的系统吗?
应该。这个技能说,只测试你拥有或获准测试的资产。
我可以不做任何设置就运行它吗?
这个技能描述了一种无需本地 Docker 和 AI 密钥的托管云端选项。
为什么优先使用预发布环境而不是生产环境?
代理会发送真实的利用载荷,并可能更改数据,因此这个技能建议使用预发布环境。
详情
作者的原始描述
Pentest a web app, API, codebase, repository, URL, domain, or IP with Strix — autonomous AI penetration testing that exploits and proves vulnerabilities (OWASP Top 10 and beyond — injection, XSS, SSRF, auth/access-control flaws, IDOR, business logic) instead of just flagging them. Runs self-hosted with the open-source CLI or via the managed app.strix.ai cloud, and returns validated findings with proof-of-concept exploits (Markdown, JSON, CSV, SARIF). Use when the user asks to pentest, hack, security-scan, security-audit, or find vulnerabilities in an app, API, website, or repo.
repo: usestrix/strix
热度
- GitHub 星标
- 73k
- 排名
- #3102
- 许可证
- Apache-2.0
- 更新时间
- 2026/10/30
评论
- …
同一仓库的更多技能
api-security-testing
73k教你的智能体使用 Strix 对 REST、GraphQL 或 gRPC 接口进行安全测试,重点检查授权漏洞以及 OWASP API Top 10 中的其他风险。
application-security-testing
73k帮你的智能体为整个产品规划安全测试,为每个部分选择合适的测试,运行它们,并按真实风险对修复工作排序。
ci-security-scanning-with-strix
73k教你的智能体为拉取请求添加自动安全扫描,让有风险的代码在合并前就被标记出来。
find-security-vulnerabilities-in-code
73k帮你的智能体审查代码中的安全缺陷,例如注入和失效的访问控制,并通过测试攻击证明哪些问题确实存在。