Vulnerability assessment

From brucesongs/kali-claw · View interactive version

Vulnerability assessment is an AI agent skill from the GitHub repository brucesongs/kali-claw. Vulnerability assessment is the process of systematically identifying and quantifying security weaknesses in information systems through automated scanning, CVE analysis, and risk scoring.

How to use this skill

Skill file

Skill: Vulnerability Assessment

Supplementary Files:

- payloads.md — Vulnerability assessment command collection covering automated scanning, NSE scripts, web scanning, CVE analysis, compliance checks, and report generation

- test-cases.md — Structured test case list covering network scanning, web application scanning, CVE analysis, compliance checks, and report generation scenarios

Summary

Vulnerability Assessment skill domain covering assessment operations.

Tools: OpenVAS / GVM, Nessus, Nikto, Nmap (vuln), Lynis, Nuclei, OpenVAS/GVM, Nmap vuln

Domain: assessment

Description

Vulnerability assessment is the process of systematically identifying and quantifying security weaknesses in information systems through automated scanning, CVE analysis, and risk scoring. Unlike penetration testing, which focuses on vulnerability exploitation, vulnerability assessment focuses on discovery, classification, and prioritization, covering the complete vulnerability management lifecycle from asset discovery to remediation tracking.

Core competencies include: selecting and configuring scanning tools appropriate for the target environment, interpreting scan results and eliminating false positives, using the CVSS scoring system to assess risk levels, writing actionable vulnerability reports, and developing patch management and compensating control strategies.


Use Cases

  1. Compliance Auditing - Meeting periodic vulnerability scanning requirements in security standards such as PCI DSS, ISO 27001, and MLPS (Multi-Level Protection Scheme)
  2. Security Baseline Assessment - Comprehensive security checks for newly deployed systems or assets after major changes
  3. Patch Prioritization - Determining patch deployment order based on CVSS scores and asset value
  4. Continuous Vulnerability Management - Establishing periodic scanning mechanisms to monitor attack surface trends
  5. Pre-Penetration Testing Reconnaissance - Providing a full vulnerability landscape of the target to narrow attack attempt scope

Core Tools

| Tool | Purpose | Command Example |

|------|---------|-----------------|

| OpenVAS / GVM | Enterprise-grade comprehensive vulnerability scanner, covering thousands of CVEs | After gvm-start, configure scan tasks through Web UI |

| Nessus | Commercial vulnerability scanner with rich policy templates and professional reports | Create scan policies through Nessus Web Console |

| Nikto | Web server vulnerability scanning, detecting configuration flaws and known vulnerabilities | nikto -h target.com -o report.html -Format html |

| Nmap (vuln) | NSE vulnerability scanning scripts for rapid service-level CVE detection | nmap --script vuln -p 80,443,3306 target |

| Lynis | Linux/Unix system security auditing, CIS baseline checks | lynis audit system --quick |

| Nuclei | Template-based rapid vulnerability scanning with continuously updated community templates | nuclei -u target.com -t cves/ -severity critical,high |

Supporting tools: searchsploit (local Exploit-DB search), cvss (CVSS vector calculator), vulners.nse (Nmap online vulnerability correlation), Trivy (container image vulnerability scanning).


Methodology

Attack Chain

Asset Discovery        Automated Scanning     Manual Verification    Risk Assessment
(Network recon,      (OpenVAS,             (False positive        (CVSS scoring,
 nmap -sn)             Nuclei,               elimination,           asset value,
                       nikto)                exploitation           business impact)
                                             verification)
    |                 |                  |                  |
    v                 v                  v                  v
Remediation           Rescan              Report              Continuous
Tracking              Verification        Archiving           Monitoring
(Patch deployment,  (Rescan,            (Knowledge base     (Periodic scans,
 compensating         regression           updates,           change-triggered
 controls)            testing)             trend analysis)    scanning)

Phase Details:

  1. Asset Discovery - Enumerate all live hosts, open ports, and running services within the target scope, building a complete asset inventory
  2. Automated Scanning - Select appropriate tools for batch vulnerability detection based on asset types, covering known CVEs, configuration flaws, and weak passwords
  3. Manual Verification - Eliminate false positives from automated tools, confirm actual exploitability of vulnerabilities, and assess real-world impact
  4. Risk Assessment - Determine vulnerability priority by combining CVSS scores, asset value, and business context
  5. Remediation Tracking - Track vulnerability remediation progress, deploy compensating controls for vulnerabilities that cannot be immediately fixed
  6. Rescan Verification - Re-scan after remediation to confirm vulnerabilities have been eliminated and prevent regression

Defense Perspective


Practical Steps

1. Nmap Vulnerability Scanning

Use NSE scripts to detect known CVEs, SSL/TLS configuration flaws, and SMB-related vulnerabilities in target services.

2. Nikto Web Assessment

Web server vulnerability scanning to detect outdated software, dangerous files, misconfigurations, and other security issues.

3. Nuclei Template Scanning

Template-based rapid vulnerability detection supporting CVE templates, custom templates, and batch scanning.

4. CVSS Scoring Methodology

Use the CVSS v3.1 scoring system to grade vulnerabilities and determine remediation priority.

5. Vulnerability Report Writing

Write vulnerability assessment reports following a standard structure, including executive summary, vulnerability details, and risk trend analysis.

Detailed payloads in payloads.md, complete test checklist in test-cases.md.


Detection Methods

Vulnerability Scan Detection

SIEM Detection Rules

Defense Evasion Techniques

Stealth Scanning

Common Pitfalls

Automation and Scripting

Automate vulnerability management workflows by scheduling OpenVAS scans via its GMP (Greenbone Management Protocol) API, parsing results with custom Python scripts, and auto-generating ticket entries in tracking systems for verified findings. Use Nuclei with custom templates in CI/CD pipelines to scan new deployments before they reach production. Script cross-referencing between scanner outputs (OpenVAS + Nuclei + Nmap vuln scripts) to automatically identify findings confirmed by multiple tools, which have higher confidence and should be prioritized for remediation.

Reporting and Documentation

Vulnerability assessment reports should follow a standard structure: executive summary with risk trend charts, detailed findings with CVSS scores and proof-of-concept evidence, remediation recommendations with specific vendor patches or configuration changes, and a rescan verification section confirming closure. Include false positive analysis documentation showing which findings were verified versus discounted. Use consistent severity ratings (Critical/High/Medium/Low/Info) mapped to CVSS ranges and include trend analysis comparing results to previous assessment periods to track security posture improvement or degradation.

Legal and Ethical Considerations

Vulnerability scanning, even without exploitation, can disrupt systems and is subject to legal restrictions in most jurisdictions. Obtain explicit written authorization specifying the target IP ranges, scan types permitted (authenticated vs. unauthenticated, intrusive vs. non-intrusive), and testing windows. Some compliance frameworks (PCI DSS) require specific scanning cadences and approved scanning vendors (ASV). Never scan systems outside the authorized scope, even if they are discovered during the assessment as adjacent hosts. Report any accidentally discovered critical vulnerabilities on out-of-scope systems through responsible disclosure channels.

Integration with Other Tools

Vulnerability assessment serves as the reconnaissance foundation for penetration testing and security operations. Scanner outputs feed into network-pentest for targeted exploitation of verified vulnerabilities. CVE findings from Nuclei and OpenVAS connect to binary-reverse for deep analysis of vulnerable software components. Container image vulnerability results integrate with container-security for runtime risk assessment. Use the SecLists repository for standardized dictionaries and payloads across all scanning tools, and feed results into the chronicle skill for longitudinal knowledge tracking.

Case Studies and Examples

Detection and Evasion

Defenders can detect vulnerability scanning through: spikes in network traffic to multiple ports from a single source, unusual User-Agent strings in web server logs (Nikto, Nuclei), SNMP community string brute force attempts, and increased DNS reverse lookups. IPS/IDS systems like Snort and Suricata have signatures for common scanning tools. To reduce scan detection footprint: use slow timing templates (nmap -T2), distribute scans across multiple source IPs, use Nuclei's rate-limiting flags, and perform authenticated scans where possible since credential-based access generates fewer alert signatures. For stealthy web scanning, use custom Nuclei templates with modified HTTP headers matching the target's expected traffic patterns.

Advanced Techniques

Advanced vulnerability assessment goes beyond running scanners and interpreting reports. Techniques include: authenticated scanning with domain credentials for comprehensive internal assessment, custom Nuclei template development for proprietary applications that community templates do not cover, chaining low-severity findings into high-impact exploit paths through manual analysis, using CVSS environmental metrics to adjust base scores based on the specific deployment context, and implementing risk-based prioritization that factors in asset value, exposure, and threat intelligence beyond the raw CVSS score.

Tool Comparison Matrix

| Tool | Best For | Coverage | Cost | Skill Level |

|------|----------|----------|------|-------------|

| OpenVAS/GVM | Enterprise infrastructure scanning | Very broad | Free | Intermediate |

| Nessus | Professional compliance scanning | Very broad | Commercial | Beginner |

| Nuclei | Fast template-based web scanning | Broad (templates) | Free | Intermediate |

| Nikto | Web server misconfiguration detection | Narrow (web) | Free | Beginner |

| Lynis | Linux system security auditing | Narrow (host) | Free | Beginner |

| Nmap vuln | Quick service-level CVE detection | Moderate | Free | Intermediate |

Performance and Remediation

Scan performance varies dramatically by tool configuration and target size. OpenVAS full scans of a /24 network can take 4-8 hours. Use OpenVAS's "Discovery" scan config for initial asset identification before running deeper scans. Nuclei template scanning is significantly faster (minutes per host) but covers only template-defined vulnerabilities. For time-constrained engagements, run parallel tool instances and merge results. Structure remediation in four tiers: immediate patching for Critical vulnerabilities with known exploits, scheduled patching for High vulnerabilities, risk acceptance with compensating controls for Medium vulnerabilities, and monitoring-only for Low/Info findings. Track remediation metrics (mean time to remediate, percentage closed, new findings per scan) to demonstrate security posture improvement.

Hacker Laws


Learning Resources

This skill's supplementary files: payloads.md, test-cases.md

Related skills: skills/network-pentest/SKILL.md, skills/web-sqli/SKILL.md

External resources:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.