find-security-vulnerabilities-in-code
Fungsinya
Skill ini meninjau kode sumber untuk mencari kelemahan keamanan dan mencoba mengeksploitasi setiap kelemahan yang ditemukan. Skill ini ditujukan untuk pengembang dan peninjau keamanan yang menginginkan daftar pendek masalah yang terkonfirmasi.
Kapan dipakai
- βSaat seseorang menginginkan tinjauan keamanan repositori atau layanan sebelum rilis.
- βSaat kode menangani login, izin, atau data pengguna dan perlu diperiksa.
- βSaat daftar panjang peringatan pemindai perlu dipersempit menjadi masalah nyata.
Link skill
https://github.com/usestrix/strix/blob/main/skills/find-security-vulnerabilities-in-code/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βBisakah Anda meninjau kode backend kami dari masalah keamanan? Saya hanya ingin masalah yang bisa Anda pastikan benar-benar berfungsi.β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent membaca kode untuk mempelajari rute dan pemeriksaan izinnya, lalu mencoba serangan nyata di sandbox uji. Setiap masalah yang dilaporkan disertai bukti konsep yang berfungsi.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
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.
Pertanyaan umum
Jenis masalah apa yang dicari?
Skill menyebutkan injeksi, cross-site scripting, server-side request forgery, kontrol akses yang rusak, dan IDOR.
Apakah sebaiknya dijalankan pada salinan bersih kode?
Ya. Skill menyatakan folder lokal dipasang dengan izin tulis, sehingga agent dapat mengubahnya, dan merekomendasikan checkout yang bersih.
Apakah ia bisa memeriksa hanya yang berubah?
Ya. Skill menjelaskan mode diff yang hanya meninjau apa yang diubah cabang, yang cocok untuk repositori besar.
Detail
Deskripsi asli dari pembuat
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
Popularitas
- Bintang GitHub
- 73k
- Peringkat
- #3098
- Lisensi
- Apache-2.0
- Diperbarui
- 30/10/2026
Komentar
- β¦
Skill lain dari repositori ini
api-security-testing
73kMenunjukkan kepada agent Anda cara menguji keamanan API REST, GraphQL, atau gRPC dengan Strix, dengan fokus pada cacat otorisasi dan risiko lain dalam OWASP API Top 10.
application-security-testing
73kMembantu agent Anda merencanakan tes keamanan untuk seluruh produk, memilih tes yang tepat untuk setiap bagian, menjalankannya, dan mengurutkan perbaikan berdasarkan risiko nyata.
ci-security-scanning-with-strix
73kMenunjukkan kepada agent Anda cara menambahkan pemindaian keamanan otomatis ke pull request, sehingga kode berisiko dapat ditandai sebelum digabungkan.
fix-security-vulnerabilities-with-strix
73kMembantu agent Anda mengubah temuan keamanan yang terkonfirmasi menjadi perbaikan kode yang tepat sasaran, lalu menjalankan ulang tes untuk membuktikan setiap serangan tidak lagi berhasil.
Skill serupa
reverse-engineer-anything
422kMembantu agent Anda memeriksa aplikasi dan paket yang sudah dirilis untuk menjelaskan fitur, membandingkan versi, atau memandu pembangunan ulang dengan alat REA.
1password
394kMembantu agent Anda mengatur CLI 1Password, masuk, serta membaca atau menyisipkan rahasia tanpa menampilkan nilainya di chat.
healthcheck
394kMembantu agent Anda mengaudit komputer atau server OpenClaw dari risiko keamanan seperti SSH, firewall, pembaruan, dan cadangan, lalu menyarankan perbaikan aman.