fix-security-vulnerabilities-with-strix
यह क्या करती है
यह स्किल Strix स्कैन में मिली सुरक्षा समस्याएँ लेकर उन्हें मूल कारण पर ठीक करती है। यह उन डेवलपर्स के लिए है जिन्हें कमज़ोरियाँ पैच करनी हैं और पुष्टि करनी है कि पैच काम करते हैं।
कब इस्तेमाल करें
- ✓जब Strix स्कैन ने ठीक करने वाले सुरक्षा निष्कर्ष बताए हों।
- ✓जब कोई ज्ञात कमज़ोरी पैच या ठीक करवाना चाहे।
- ✓जब सुधार को हमला टेस्ट दोबारा चलाकर जाँचना हो।
Skill का लिंक
https://github.com/usestrix/strix/blob/main/skills/fix-security-vulnerabilities-with-strix/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“हमारे पिछले सुरक्षा स्कैन में तीन गंभीर समस्याएँ मिलीं। क्या आप उन्हें कोड में ठीक कर सकते हैं और फिर जाँच सकते हैं कि हमले अब काम नहीं करते?”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट निष्कर्षों को गंभीरता के आधार पर क्रमबद्ध करता है, हर एक को दोबारा पैदा करता है, और उसके मूल कारण को पैच करता है। फिर वह सुरक्षा टेस्ट दोबारा चलाता है ताकि पुष्टि हो कि हर हमला रुक गया है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Fix Strix findings and verify
Turn validated Strix findings into minimal, correct fixes — and prove they work by re-scanning.
1. Triage
Get the findings from wherever the scan ran:
- OSS CLI — artifacts in
strix_runs/<run-name>/:vulnerabilities/*.md— one finding per file: description, severity, PoC steps or script, affected code locations, remediation guidance.vulnerabilities.json— the same findings as JSON (ids, severity, CWE/CVE,code_locationswithfix_before/fix_aftersuggestions when available).
- Cloud (app.strix.ai) — pull findings with the CLI:
strix cloud vulns list --scan-id <scan-id> --json(orstrix cloud scans get <scan-id> --json | jq '.vulnerabilities', orstrix cloud vulns list --severity criticalorg-wide). Each finding carriesseverity, cwe, endpoint, method, impact, technical_analysis, poc_description, poc_script_codeand, for code findings,code_file/code_diff/code_before/code_after. After a fix is verified, mark it withstrix cloud vulns update <id> --status fixed. See the managed-pentesting-with-strix skill forstrix cloud loginand scopes.
Order work by severity: critical → high → medium → low. Every Strix finding was validated with a working proof-of-concept, so do not dismiss findings as false positives without re-testing the PoC yourself.
2. Fix
For each finding:
- Reproduce it with the PoC from the finding file when feasible.
- Fix the root cause, not the specific payload (parameterize every query instead of blocking one string, and enforce authorization in the handler instead of hiding the endpoint).
- Prefer the framework's built-in defense (ORM parameterization, template auto-escaping, CSRF middleware, centralized authz) over ad-hoc sanitization.
- Keep the diff minimal and apply the repo's existing patterns. Finding files often include
fix_before/fix_aftersnippets — use them as a starting point, not verbatim.
Common finding classes and expected fixes: injection → parameterization/escaping at the sink; IDOR/broken access control → object-level authorization checks; SSRF → allowlist + block internal ranges; XSS → context-aware output encoding + CSP; secrets exposure → rotate the secret AND remove it from code/history; auth issues → fix the server-side check (never client-side).
3. Verify by re-running Strix
After fixing, re-scan scoped to the fixed area and confirm the finding is gone. Verify in whichever environment you scanned (or both):
OSS CLI:
# Re-test just the changed files (fast). Resolve the repo's real default
# branch instead of assuming origin/main (many repos use master/develop).
# Avoid the current branch's own upstream as the base — its merge base with
# HEAD would be HEAD, giving an empty diff and a falsely clean result.
DIFF_BASE=$(git symbolic-ref --quiet --short refs/remotes/origin/HEAD 2>/dev/null)
# origin/HEAD can be a dangling symbolic ref — keep it only if its target exists.
git rev-parse --verify --quiet "$DIFF_BASE" >/dev/null 2>&1 || DIFF_BASE=""
if [ -z "$DIFF_BASE" ]; then
for b in origin/main origin/master origin/develop; do
git rev-parse --verify --quiet "$b" >/dev/null && DIFF_BASE="$b" && break
done
fi
# No silent fallback: a guess like HEAD~1 would cover only the last commit of a
# multi-commit fix branch. If no base resolves, ask the user for the base branch
# (or use the focused --instruction verification below, which needs no diff base).
[ -n "$DIFF_BASE" ] || { echo "Set DIFF_BASE to the branch your fix will merge into." >&2; exit 1; }
strix -n -t ./ --scan-mode quick --scope-mode diff --diff-base "$DIFF_BASE" --max-budget 5
# Or re-test with the original finding as focus (no diff base needed)
strix -n -t ./ --instruction "Verify the SQL injection in app/api/search.py is fixed. Original PoC: <poc>" --max-budget 5
Exit codes: 2 = findings remain (read the new strix_runs/<run>/vulnerabilities/ and iterate); 0 = clean for what was analyzed. Before trusting a 0, confirm the run wasn't cut short — check run.json for a completed status and compare its llm_usage.cost with --max-budget: a hard budget stop leaves status: "stopped", but a run that wrapped up on a budget warning records "completed" with partial coverage. Give verification enough budget to finish, and prefer re-running the specific PoC as the ground-truth signal.
Cloud: rerun with the same config and re-poll, then confirm the finding no longer appears: ```bas
अक्सर पूछे जाने वाले सवाल
पहले किन निष्कर्षों को ठीक किया जाता है?
स्किल काम को critical से high, medium और low गंभीरता के क्रम में रखती है।
क्या कोई निष्कर्ष गलत सकारात्मक कहकर खारिज हो सकता है?
स्किल कहती है कि अपना proof of concept दोबारा टेस्ट किए बिना किसी निष्कर्ष को खारिज न करें।
निष्कर्षों का डेटा कहाँ से आता है?
स्थानीय स्कैन के आउटपुट फ़ोल्डर से, या command line टूल के माध्यम से Strix क्लाउड प्लेटफ़ॉर्म से।
जानकारी
लेखक का मूल विवरण
Fix security vulnerabilities found by a Strix pentest (open-source CLI or app.strix.ai cloud) — triage by severity, patch the root cause rather than the symptom, and re-run Strix to prove each fix actually closes the exploit. Handles injection, XSS, SSRF, broken access control, IDOR, and other validated findings. Use after a Strix scan reports findings, or when the user asks to remediate, patch, or fix security issues from a strix_runs report, vulnerabilities.json, findings.sarif, or a cloud scan.
repo: usestrix/strix
लोकप्रियता
- GitHub स्टार
- 73k
- रैंकिंग में स्थान
- #3099
- लाइसेंस
- Apache-2.0
- अपडेट की गई
- 30/10/2026
कमेंट
- …
इस repository की और skills
api-security-testing
73kयह आपके एजेंट को Strix से REST, GraphQL या gRPC API की सुरक्षा जाँच करना दिखाती है, OWASP API Top 10 के प्राधिकरण दोषों और अन्य जोखिमों पर ध्यान देते हुए।
application-security-testing
73kयह आपके एजेंट को पूरे प्रोडक्ट के लिए सुरक्षा टेस्ट की योजना बनाने देती है, हर हिस्से के लिए सही टेस्ट चुनकर, चलाकर, और असली जोखिम के आधार पर सुधार क्रम देकर।
ci-security-scanning-with-strix
73kयह आपके एजेंट को pull requests पर स्वचालित सुरक्षा स्कैन जोड़ना दिखाती है, ताकि मर्ज होने से पहले जोखिम भरा कोड चिह्नित हो सके।
find-security-vulnerabilities-in-code
73kयह आपके एजेंट को injection और टूटे हुए एक्सेस कंट्रोल जैसी सुरक्षा कमियों के लिए कोड की समीक्षा करने में मदद करती है, और टेस्ट हमलों से साबित करती है कि कौन-सी असली हैं।
मिलती-जुलती skills
reverse-engineer-anything
422kयह आपके एजेंट को REA टूल से शिप हुई ऐप्स और पैकेज को अंदर से समझने, वर्ज़न की तुलना करने या दोबारा बनाने में मदद करती है।
1password
394kयह आपके एजेंट को 1Password CLI सेट करने, साइन इन करने और सीक्रेट्स की वैल्यू चैट में छापे बिना उन्हें पढ़ने या इस्तेमाल करने में मदद करती है।
healthcheck
394kयह आपके एजेंट को उस कंप्यूटर या सर्वर का सुरक्षा ऑडिट करने देती है जिस पर OpenClaw चलता है, जिसमें SSH, firewall, अपडेट और बैकअप शामिल हैं, और फिर सुरक्षित सुधार सुझाती है।