vuln-scan
यह क्या करती है
यह स्किल किसी प्रोजेक्ट का सोर्स कोड पढ़ती है और कई फ़ोकस क्षेत्रों में सुरक्षा कमज़ोरियां खोजती है। यह कोड को बनाती या चलाती नहीं है। यह उन सुरक्षा समीक्षकों के लिए है जो कोडबेस का पहला पास चाहते हैं।
कब इस्तेमाल करें
- ✓जब आप किसी भी टेस्ट से पहले कोडबेस की स्टैटिक सुरक्षा समीक्षा चाहते हैं।
- ✓जब आपको निष्कर्ष ऐसे फ़ॉर्मेट में चाहिए जो ट्रायज के लिए आगे भेजे जा सकें।
- ✓जब आप समीक्षा को एक या अधिक खास जोखिम क्षेत्रों पर केंद्रित करना चाहते हैं।
Skill का लिंक
https://github.com/anthropics/defending-code-reference-harness/blob/main/.claude/skills/vuln-scan/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“क्या आप मेरे प्रोजेक्ट के कोड को सुरक्षा समस्याओं के लिए स्कैन कर सकते हैं और जो भी जोखिमभरा मिले उसकी सूची बना सकते हैं?”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट समीक्षा को फ़ोकस क्षेत्रों में बांटता है, हर क्षेत्र का कोड पढ़ता है, और निष्कर्ष एक JSON फ़ाइल और पढ़ने योग्य सारांश में लिखता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
/vuln-scan
Static vulnerability review of a source tree. Produces VULN-FINDINGS.json
(+ a human-readable .md) that /triage ingests directly.
This skill does not execute code. It reads source and reasons about it.
For execution-verified findings (ASAN crashes, reproducing PoCs), point the
user at vuln-pipeline run <target> — see README Step 2.
Tool fallbacks. Prefer the dedicated Glob and Grep tools. Some sessions
do not provision them — allowed-tools is a permission filter, not a loader,
so listing them here does not make them appear. When Glob/Grep are
unavailable, fall back to the read-only Bash commands whitelisted above:
rg --files <scope> / ls -R for enumeration, rg -n / grep -rn for
search, wc / head / file for sniffing. These are the ONLY permitted
Bash commands; do not write helper scripts or pipe target content into a
shell interpreter.
Arguments
<target-dir>(required) — directory to scan. Relative or absolute.--focus <area>— scan only this focus area (repeatable). Skips recon.--single— no subagent fan-out; one sequential pass. Use on tiny targets or when debugging the prompt.--extra <file>— append the contents of<file>to the review brief (after the category list). Use to add org-specific vulnerability classes, compliance checks, or stack-specific patterns. Plain text; same shape as the category blocks below.--no-score— skip the Step 3b confidence pass (saves a round of subagents). Findings keep the scanner's self-reported confidence only.
Step 1 — Scope
- Resolve
<target-dir>. If it doesn't exist or has no source files, stop with an error. - Look for
<target-dir>/THREAT_MODEL.md. If present, parse its section 3 "Entry points & trust boundaries" table and section 4 "Threats" table for focus areas and threat classes. This is the preferred scoping input. - If no THREAT_MODEL.md and no
--focus: do a quick recon — list the source tree, read entry points and dispatch code, and propose 3-10 focus areas using the pattern<subsystem> (<function/file>) — <key operations>. Same shape asharness/prompts/recon_prompt.py. - If
--focuswas given, use exactly those.
Tell the user the focus areas you'll scan and the source-file count before fanning out.
Step 2 — Fan out
Unless --single, spawn one Task subagent per focus area in parallel.
Cap at 10 concurrent. Each subagent gets the review brief below with its
focus area filled in. On tiny targets (<15 source files), fall through to
--single automatically.
Review brief (per subagent)
You are conducting authorized static security review of source code. Your
focus area: **{focus_area}**. Other agents cover other areas; duplication
is wasted effort.
TARGET: {target_dir}
TRUST BOUNDARY: {from THREAT_MODEL.md section 3, or "untrusted input → process memory"}
TASK: read the source in your focus area and identify candidate
vulnerabilities. This is static review — do NOT build, run, or probe
anything. Reason from the code.
REPORTING BAR: report anything with a plausible exploit path. Skip style
concerns, best-practice gaps, and purely theoretical issues with no attack
story at all — but if you're unsure whether something is real, REPORT IT
with a low confidence score rather than dropping it. A downstream triage
step does the rigorous verification; your job is to not miss things.
WHAT TO LOOK FOR:
MEMORY SAFETY (C/C++ and unsafe/FFI blocks) — HIGH VALUE:
- heap-buffer-overflow / stack-buffer-overflow / global-buffer-overflow
- heap-use-after-free / double-free
- integer overflow feeding an allocation or index
- format-string bugs
- unbounded recursion or allocation driven by untrusted size fields
INJECTION & CODE EXECUTION — HIGH VALUE:
- SQL / command / LDAP / XPath / NoSQL / template injection
- path traversal in file operations
- unsafe deserialization (pickle, YAML, native), eval injection
- XSS (reflected, stored, DOM-based) — but see React/Angular note below
AUTH, CRYPTO, DATA — HIGH VALUE:
- authentication or authorization bypass, privilege escalation
- TOCTOU on a security check
- hardcoded secrets, weak crypto, broken cert validation
- sensitive data (secrets, PII) in logs or error responses
LOW VALUE — note briefly, keep looking:
- null-pointer deref at small fixed offsets with no attacker control
- assertion failures / clean error returns (correct handling, not a bug)
DO NOT RE
अक्सर पूछे जाने वाले सवाल
क्या यह मेरा कोड चलाता है?
नहीं। यह केवल सोर्स फ़ाइलें पढ़ती है और उन पर तर्क करती है।
क्या मैं अपनी जांच जोड़ सकता हूं?
हां। आप एक टेक्स्ट फ़ाइल से अतिरिक्त नियम या फ़ोकस क्षेत्र जोड़ सकते हैं।
नतीजों का क्या होता है?
वे ऐसे रूप में सहेजे जाते हैं जिसे अगला ट्रायज चरण पढ़ सके।
जानकारी
लेखक का मूल विवरण
Static source-code vulnerability scan. Reads a target directory (and THREAT_MODEL.md if present), spawns parallel review subagents per focus area, and writes VULN-FINDINGS.json + .md for /triage to consume. Read-only — no building, running, or network. For execution-verified crashes, use vuln-pipeline instead. Use when asked to "scan for vulns", "review this code for security issues", "find bugs in <dir>", or as the step between /threat-model and /triage.
लोकप्रियता
- GitHub स्टार
- 7.7k
- रैंकिंग में स्थान
- #13107
- लाइसेंस
- —
- अपडेट की गई
- 6/8/2026
कमेंट
- …
इस repository की और skills
customize
7.7kयह आपके एजेंट को AI से सुरक्षा कमज़ोरी खोजने वाली पाइपलाइन को नए बग प्रकार, भाषा या लक्ष्य के लिए ढालने में मदद करती है, खास हिस्से दोबारा लिखकर।
dnr-hunt
7.7kयह आपके एजेंट को बिना किसी अलर्ट के वेब लॉग में हमले के संकेत खोजने और मिली घटनाओं का लिखित विवरण बनाने में मदद करती है।
dnr-respond
7.7kयह आपके एजेंट को एक सुरक्षा अलर्ट या संकेत की जाँच करने में मदद करती है कि हमला सफल हुआ या नहीं और वह कितनी दूर तक पहुंचा।
patch
7.7kयह आपके एजेंट को जाँचे गए सुरक्षा निष्कर्षों के लिए कोड सुधार के ड्राफ़्ट बनाने में मदद करती है, जिन्हें समीक्षा के लिए diff के रूप में सहेजा जाता है।
मिलती-जुलती skills
reverse-engineer-anything
422kयह आपके एजेंट को REA टूल से शिप हुई ऐप्स और पैकेज को अंदर से समझने, वर्ज़न की तुलना करने या दोबारा बनाने में मदद करती है।
1password
394kयह आपके एजेंट को 1Password CLI सेट करने, साइन इन करने और सीक्रेट्स की वैल्यू चैट में छापे बिना उन्हें पढ़ने या इस्तेमाल करने में मदद करती है।
healthcheck
394kयह आपके एजेंट को उस कंप्यूटर या सर्वर का सुरक्षा ऑडिट करने देती है जिस पर OpenClaw चलता है, जिसमें SSH, firewall, अपडेट और बैकअप शामिल हैं, और फिर सुरक्षित सुधार सुझाती है।