find-security-vulnerabilities-in-code
Skill này làm gì
Skill này rà soát mã nguồn để tìm điểm yếu bảo mật và thử khai thác từng cái tìm được. Nó dành cho lập trình viên và người rà soát bảo mật muốn có danh sách ngắn các vấn đề đã được xác nhận.
Khi nào nên dùng
- ✓Khi ai đó muốn rà soát bảo mật một repository hoặc dịch vụ trước khi phát hành.
- ✓Khi code xử lý đăng nhập, phân quyền hoặc dữ liệu người dùng và cần được kiểm tra.
- ✓Khi một danh sách dài cảnh báo của công cụ quét cần được thu hẹp còn các vấn đề thật.
Liên kết skill
https://github.com/usestrix/strix/blob/main/skills/find-security-vulnerabilities-in-code/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Bạn có thể rà soát code backend của chúng tôi về các vấn đề bảo mật không? Tôi chỉ muốn những vấn đề mà bạn có thể xác nhận là thực sự hoạt động.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent đọc code để biết các route và kiểm tra quyền, rồi thử các cuộc tấn công thật trong một sandbox kiểm thử. Mỗi vấn đề báo cáo đi kèm một bằng chứng khai thác hoạt động được.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
Find security vulnerabilities in code
White-box security review with Strix: the agents read the source to build a model of routes, sinks, and authorization checks, then attempt real exploitation. Findings come with a proof-of-concept, so the output is a short list of proven issues rather than the hundreds of "potential" hits a pattern-matching scanner produces.
Install, LLM setup, all flags, and the managed-cloud path are in the penetration-testing-with-strix skill. For a run with no Docker and no LLM key, the same binary drives the managed platform: strix cloud login, then strix cloud scans start ... (details in managed-pentesting-with-strix).
Run it
# Local working tree
strix -n -t ./ --scan-mode standard --max-budget 15
# A GitHub repo directly
strix -n -t https://github.com/org/app --max-budget 15
# Monorepo: point at the service that matters, not the whole tree
strix -n -t ./services/checkout --max-budget 20
# Only what a branch changed (whole-repo review is wasteful on a large repo)
strix -n -t ./ --scope-mode diff --diff-base origin/main --max-budget 10
A local path is mounted into the sandbox writable, so the agents can modify it. Run against a clean checkout.
Two things sharply improve results:
- Add a running instance of the app.
-t ./ -t http://host.docker.internal:3000lets the agents confirm exploitability against live behavior instead of reasoning about it statically — this is the difference between "this looks unsafe" and a validated finding. If nothing is running, static-only findings should be described as unconfirmed. - Scope the review. Point at the risky subtree and say what matters:
Tenancy model, trust boundaries, and which inputs are attacker-controlled are things the agents cannot infer reliably — tell them.strix -n -t ./services/api --max-budget 15 \ --instruction "Focus on the authorization layer in src/auth and every route under src/routes/admin. Multi-tenant app: tenant id comes from the JWT. Flag any query that filters by object id without also filtering by tenant."
Reviewing a pull request instead of the whole repo
For diff-scoped review of a branch or PR (and blocking merges on findings), use ci-security-scanning-with-strix — it covers diff scoping, PR comments, and SARIF upload to GitHub code scanning. The managed platform can also review PRs directly via API (managed-pentesting-with-strix).
Read the results
In strix_runs/<run>/: penetration_test_report.md (start here), vulnerabilities/*.md (one per finding, with PoC and remediation), vulnerabilities.json / .csv, findings.sarif (upload to code scanning), run.json.
Before reporting to the user, open each finding and check the PoC actually demonstrates impact. Report file and line alongside the exploit so the fix is obvious.
Exit 0 means nothing exploitable was proven in what was analyzed — not that the codebase is clean. Check run.json status and cost against --max-budget, and note which paths went unreviewed if the run was capped.
Complementary tooling
This is exploit-validated review, not an exhaustive inventory. Keep a dependency scanner (SCA) and secret scanning in place for complete coverage of known-CVE dependencies and committed credentials; use this for the logic, authorization, and injection bugs those tools structurally cannot find.
Fix and verify
Hand results to fix-security-vulnerabilities-with-strix: patch the root cause (the shared authorization helper, not the one route), then re-run Strix to prove the exploit no longer works.
Câu hỏi thường gặp
Nó tìm những loại vấn đề nào?
Skill nêu injection, cross-site scripting, server-side request forgery, kiểm soát truy cập bị hỏng và IDOR.
Tôi có nên chạy trên một bản sao sạch của code không?
Có. Skill cho biết thư mục cục bộ được gắn với quyền ghi, nên agent có thể thay đổi nó, và khuyến nghị dùng một bản checkout sạch.
Nó có thể chỉ kiểm tra những gì đã thay đổi không?
Có. Skill mô tả chế độ diff, chỉ rà soát những gì một nhánh đã thay đổi, phù hợp với repository lớn.
Chi tiết
Mô tả gốc của tác giả
Find security vulnerabilities in a codebase or repository with Strix — a white-box AI security review that reads your source, reasons about the actual data flow and authorization model, then exploits what it finds in a live sandbox so every reported issue has a working proof-of-concept instead of a noisy static-analysis alert. Covers injection, XSS, SSRF, broken access control and IDOR, insecure deserialization, secrets in code, unsafe dependencies, and business-logic flaws. Use when the user asks to security-scan, security-review, or audit their code, repo, or pull request for vulnerabilities
repo: usestrix/strix
Độ phổ biến
- Sao GitHub
- 73k
- Vị trí xếp hạng
- #3098
- Giấy phép
- Apache-2.0
- Cập nhật
- 30/10/2026
Bình luận
- …
Thêm skill từ kho mã này
api-security-testing
73kChỉ cho agent cách kiểm thử bảo mật API REST, GraphQL hoặc gRPC bằng Strix, tập trung vào lỗi phân quyền và OWASP API Top 10.
application-security-testing
73kGiúp agent của bạn lên kế hoạch kiểm thử bảo mật cho cả sản phẩm, chọn bài kiểm thử cho từng phần và xếp hạng việc sửa theo rủi ro thực tế.
ci-security-scanning-with-strix
73kChỉ cho agent của bạn cách thêm quét bảo mật tự động vào pull request, để code rủi ro có thể bị đánh dấu trước khi được gộp.
fix-security-vulnerabilities-with-strix
73kGiúp agent của bạn biến các phát hiện bảo mật đã xác nhận thành bản sửa code có mục tiêu, rồi chạy lại kiểm thử để chứng minh tấn công đã bị chặn.
Skill tương tự
reverse-engineer-anything
422kGiúp agent của bạn xem bên trong các app và package đã phát hành để giải thích tính năng, so sánh phiên bản hoặc hướng dẫn dựng lại bằng công cụ REA.
1password
394kGiúp agent của bạn cài đặt CLI của 1Password, đăng nhập, và đọc hoặc đưa thông tin bí mật vào mà không in giá trị ra cuộc trò chuyện.
healthcheck
394kGiúp agent của bạn rà soát bảo mật máy tính hoặc máy chủ đang chạy OpenClaw, như SSH, tường lửa, cập nhật và sao lưu, rồi đề xuất cách sửa an toàn.