Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Dependency auditing, CVE detection, configuration security review, CVSS scoring, and prioritized vulnerability reporting
.claude/skills/masriyan-vulnerability-scanning-assessment/SKILL.md| Model | Eval pass | Runs |
|---|---|---|
| gemini-3.6-flash | 95% | 19 |
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-04 | ✗→✓ | ▲ Improved | 164% | 0% |
| case-08 | ✗→✓ | ▲ Improved | 99% | 0% |
| case-03 | ✓→✓ | = Same ✓ | 175% | 0% |
| case-05 | ✓→✓ | = Same ✓ | 148% | 0% |
| case-06 | ✓→✓ | = Same ✓ | 141% | 0% |
Enable Claude to perform comprehensive vulnerability assessments by directly analyzing dependency files, configuration files, and scan output — then generating prioritized, actionable reports. Claude identifies vulnerabilities, calculates risk, and prescribes remediation with version specifics.
This skill activates when the user asks about:
requirements.txt, package.json, go.mod, pom.xml, Cargo.tomlbashpip install requests packaging jinja2 pyyaml
Optional enhanced tools:
nuclei — Template-based vulnerability scannertrivy — Container and filesystem scannernmap with NSE scripts — Network vuln scanningopenvas — Full vulnerability managementClaude can directly read and analyze dependency files:
When the user asks to audit dependencies:
requirements.txt / Pipfile.lock / pyproject.toml → Python/pippackage.json / package-lock.json / yarn.lock → Node.js/npmgo.mod / go.sum → Go modulespom.xml / build.gradle → Java/Maven/GradleCargo.toml / Cargo.lock → Rust/CargoGemfile.lock → Ruby/Bundlercomposer.lock → PHP/ComposerUse this command to run the automated audit:
bashpython scripts/dependency_auditor.py --project-dir ./myapp --format json --output audit.json python scripts/dependency_auditor.py --requirements requirements.txt --severity high,critical
Claude's native analysis — When running without scripts, analyze pasted dependency content directly:
>= , *, or missing version pins (supply chain risk)Claude can directly read and analyze configuration files:
When the user asks to audit a configuration:
[ ] ssl_protocols — Must NOT include SSLv2, SSLv3, TLSv1, TLSv1.1
[ ] ssl_ciphers — Must not include RC4, DES, MD5, EXPORT ciphers
[ ] server_tokens — Should be 'off' (hides version)
[ ] add_header X-Frame-Options — Required (SAMEORIGIN or DENY)
[ ] add_header X-Content-Type-Options — Required (nosniff)
[ ] add_header Strict-Transport-Security — Required (min 1 year)
[ ] add_header Content-Security-Policy — Required
[ ] autoindex — Must be 'off' (prevents directory listing)
[ ] client_max_body_size — Should be set (prevents DoS)
[ ] access_log / error_log — Must be enabled[ ] PermitRootLogin — Should be 'no' or 'prohibit-password'
[ ] PasswordAuthentication — Should be 'no' (key-only)
[ ] PermitEmptyPasswords — Must be 'no'
[ ] Protocol — Should be '2' only
[ ] Port — Consider non-default port
[ ] AllowUsers / AllowGroups — Explicit allowlist preferred
[ ] MaxAuthTries — Should be 3-5
[ ] LoginGraceTime — Should be 30-60s
[ ] ClientAliveInterval — Enable session timeout
[ ] X11Forwarding — Should be 'no' if unused
[ ] UsePAM — Review PAM configuration[ ] USER — Must not run as root; add non-root user
[ ] Image tags — Must not use 'latest'; pin specific digest
[ ] COPY vs ADD — Prefer COPY; ADD has implicit extraction risks
[ ] Secrets — No RUN commands with passwords/tokens
[ ] Multi-stage builds — Minimize attack surface
[ ] HEALTHCHECK — Define health monitoring
[ ] .dockerignore — Exclude .env, keys, secrets
[ ] Read-only filesystem — Use --read-only where possible[ ] securityContext.runAsNonRoot — Must be true
[ ] securityContext.readOnlyRootFilesystem — Should be true
[ ] securityContext.allowPrivilegeEscalation — Must be false
[ ] capabilities — Drop ALL, add only required
[ ] resources.limits — CPU and memory limits required
[ ] NetworkPolicy — Restrict pod-to-pod communication
[ ] ServiceAccount — Disable automount if not needed
[ ] secrets — Use sealed secrets or external vaults
[ ] hostPID/hostIPC/hostNetwork — Must be false
[ ] privileged — Must never be true in productionWhen the user asks to calculate CVSS or assess severity:
Claude can calculate CVSS v3.1 scores from the vector string or from a vulnerability description:
CVSS v3.1 Metrics: | Metric | Values | Description | |--------|--------|-------------| | Attack Vector (AV) | N/A/L/P | Network/Adjacent/Local/Physical | | Attack Complexity (AC) | L/H | Low/High | | Privileges Required (PR) | N/L/H | None/Low/High | | User Interaction (UI) | N/R | None/Required | | Scope (S) | U/C | Unchanged/Changed | | Confidentiality (C) | N/L/H | None/Low/High | | Integrity (I) | N/L/H | None/Low/High | | Availability (A) | N/L/H | None/Low/High |
Severity Ranges: | Score | Severity | |-------|----------| | 0.0 | None | | 0.1–3.9 | Low | | 4.0–6.9 | Medium | | 7.0–8.9 | High | | 9.0–10.0 | Critical |
Example calculation:
AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H → 10.0 (Critical)AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H → 7.8 (High)bashpython scripts/cvss_calculator.py --vector "AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
When the user provides Nmap scan results or asks to scan for vulnerabilities:
bash# Vulnerability scanning with NSE nmap -sV --script vuln -p 80,443,22,21,3389 target.com # SMB vulnerability check (EternalBlue, etc.) nmap -p 445 --script smb-vuln* target.com # SSL/TLS vulnerability check nmap -p 443 --script ssl-enum-ciphers,ssl-heartbleed,ssl-poodle target.com
When the user asks for a vulnerability report:
Generate reports in this structure:
markdown# Vulnerability Assessment Report **Target:** [Target Name/IP Range] **Date:** [Date] **Scope:** [Authorized scope] **Assessor:** [Name] --- ## Executive Summary [2-3 sentences: what was tested, total findings by severity, top risk] ## Finding Summary | Severity | Count | Examples | |----------|-------|---------| | Critical | 2 | CVE-2021-44228 (Log4Shell), Unauthenticated RCE | | High | 5 | Outdated TLS, SQLi in /api/users | | Medium | 12 | Missing security headers, verbose errors | | Low | 8 | Information disclosure, weak ciphers | | Info | 15 | Version disclosure, directory listing | --- ## Findings Detail ### CRITICAL-01: [Finding Title] **CVSS:** 9.8 (Critical) | AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H **Affected:** [Package/Service] [Version] **CVE:** [CVE-ID] **Description:** [Clear technical description] **Evidence:** [Proof the vulnerability exists] **Remediation:** Upgrade to [Package] >= [SafeVersion] **References:** [CVE link, advisory] --- ## Remediation Roadmap | Priority | Action | Effort | Risk Reduction | |----------|--------|--------|----------------| | Immediate | Patch Log4j to 2.17.1+ | Low | Critical | | This week | Upgrade express to 4.18.2 | Low | High | | This month | Enable WAF rules | Medium | Medium |
Always produce findings with:
dependency_auditor.pybashpython scripts/dependency_auditor.py --project-dir ./myapp --format json --output audit.json python scripts/dependency_auditor.py --requirements requirements.txt --severity high,critical
config_auditor.pybashpython scripts/config_auditor.py --type nginx --config /etc/nginx/nginx.conf --output audit.json python scripts/config_auditor.py --type sshd --config /etc/ssh/sshd_config python scripts/config_auditor.py --type dockerfile --config Dockerfile
cvss_calculator.pybashpython scripts/cvss_calculator.py --vector "AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H" python scripts/cvss_calculator.py --interactive
| Condition | Next Skill | |-----------|------------| | Vulnerabilities confirmed → develop PoC | → Skill 03 (Exploit Development) | | Vulnerabilities found → apply fixes | → Skill 15 (Blue Team Defense) | | Auto-ticket for SOC | → Skill 11 (CSOC Automation) | | Discovered during recon | ← Skill 01 (Recon & OSINT) |
Risk-based prioritization beyond raw CVSS:
affected / not_affected / fixed) so consumers know which CVEs are actually reachable.Output rule: every finding row carries CVSS | EPSS | KEV(Y/N) | Reachable(Y/N/Unknown) | Fix.
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-11 | fail→fail | 20,774 | 24,571 | +18% | 1 | 1 | 0% | 2,871 | 6,818 | +137% | 0 | 0 | — |
case-04 | fail→pass | 12,129 | 13,487 | +11% | 1 | 1 | 0% | 2,186 | 5,763 | +164% | 0 | 0 | — |
case-01 | fail→fail | 9,920 | 33,598 | +239% | 1 | 1 | 0% | 1,294 | 4,934 | +281% | 0 | 0 | — |
case-02 | fail→fail | 9,143 | 20,306 | +122% | 1 | 1 | 0% | 1,689 | 7,477 | +343% | 0 | 0 | — |
case-03 | pass→pass | 11,603 | 9,125 | -21% | 1 | 1 | 0% | 1,833 | 5,033 | +175% | 0 | 0 | — |
case-05 | pass→pass | 11,864 | 12,565 | +6% | 1 | 1 | 0% | 2,067 | 5,121 | +148% | 0 | 0 | — |
case-06 | pass→pass | 12,291 | 12,699 | +3% | 1 | 1 | 0% | 2,401 | 5,778 | +141% | 0 | 0 | — |
case-07 | pass→pass | 14,850 | 13,886 | -6% | 1 | 1 | 0% | 2,450 | 5,799 | +137% | 0 | 0 | — |
case-08 | fail→pass | 19,195 | 16,805 | -12% | 1 | 1 | 0% | 3,164 | 6,306 | +99% | 0 | 0 | — |
case-09 | pass→pass | 8,809 | 8,012 | -9% | 1 | 1 | 0% | 1,501 | 4,571 | +205% | 0 | 0 | — |
case-10 | pass→pass | 16,245 | 17,274 | +6% | 1 | 1 | 0% | 3,094 | 6,506 | +110% | 0 | 0 | — |
case-12 | pass→pass | 5,429 | 6,579 | +21% | 1 | 1 | 0% | 1,209 | 4,432 | +267% | 0 | 0 | — |
case-13 | pass→pass | 12,639 | 12,037 | -5% | 1 | 1 | 0% | 1,928 | 4,918 | +155% | 0 | 0 | — |
case-14 | pass→pass | 4,036 | 4,883 | +21% | 1 | 1 | 0% | 725 | 4,189 | +478% | 0 | 0 | — |
case-15 | pass→pass | 6,553 | 30,218 | +361% | 1 | 1 | 0% | 897 | 4,795 | +435% | 0 | 0 | — |
case-16 | pass→pass | 6,314 | 6,315 | +0% | 1 | 1 | 0% | 1,233 | 4,534 | +268% | 0 | 0 | — |
case-17 | pass→pass | 9,127 | 9,582 | +5% | 1 | 1 | 0% | 1,571 | 5,032 | +220% | 0 | 0 | — |
case-18 | pass→pass | 14,427 | 9,365 | -35% | 1 | 1 | 0% | 2,251 | 4,950 | +120% | 0 | 0 | — |
case-19 | pass→pass | 16,478 | 20,249 | +23% | 1 | 1 | 0% | 2,455 | 6,425 | +162% | 0 | 0 | — |
case-20 | pass→pass | 7,596 | 19,813 | +161% | 1 | 1 | 0% | 1,207 | 4,621 | +283% | 0 | 0 | — |
case-21 | fail→fail | 19,299 | 15,505 | -20% | 1 | 1 | 0% | 2,812 | 6,029 | +114% | 0 | 0 | — |
case-22 | pass→pass | 13,678 | 10,933 | -20% | 1 | 1 | 0% | 487 | 4,505 | +825% | 0 | 0 | — |
case-23 | fail→fail | 11,128 | 7,793 | -30% | 1 | 1 | 0% | 1,658 | 4,421 | +167% | 0 | 0 | — |
case-24 | pass→pass | 19,214 | 14,168 | -26% | 1 | 1 | 0% | 1,138 | 4,434 | +290% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 24 cases were attempted. The headline lift of +8 percentage points is the difference between those two pass rates over the 24 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.