vuls-linux-cve-scanner

$npx mdskill add seaworld008/Commonly-used-high-value-skills/vuls-linux-cve-scanner

Scan Linux and FreeBSD hosts for CVEs agentlessly using Vuls.

  • Identifies missing security patches and vulnerabilities on servers.
  • Depends on SSH access, NVD, OVAL, and vendor advisory feeds.
  • Selects scan mode based on target OS and user preference.
  • Outputs prioritized vulnerability reports for remediation planning.

SKILL.md

.github/skills/vuls-linux-cve-scannerView on GitHub ↗
---
name: vuls-linux-cve-scanner
description: '用于通过 Vuls 对 Linux、FreeBSD、容器、WordPress、库和网络设备执行 Agentless CVE 扫描。'
zh_description: "用于通过 Vuls 对 Linux、FreeBSD、容器、WordPress、库和网络设备执行 Agentless。"
version: "1.0.0"
author: seaworld008
source: "in-house"
source_url: ""
tags: '[security, linux, cve, vuls, vulnerability-scanning, freebsd, host-security, patch-management]'
created_at: "2026-05-20"
updated_at: "2026-05-20"
quality: 4
complexity: advanced
---

# Vuls Linux CVE Scanner

## Trigger / When to Use

Use this skill when the user wants Linux or FreeBSD host vulnerability scanning, agentless CVE assessment over SSH, local host scans, package patch status review, or server fleet vulnerability reporting with Vuls.

Good trigger phrases:
- "scan Linux servers for CVEs"
- "check Ubuntu host vulnerabilities"
- "agentless CVE scan over SSH"
- "scan FreeBSD packages"
- "use Vuls for patch management"
- "audit servers against NVD and OVAL"

## Core Capabilities

- Agentless vulnerability scanning for Linux and FreeBSD.
- Remote scan mode through SSH from a central scanner.
- Local scan mode when SSH from the scanner is not desired.
- Fast scan mode with low target impact.
- Deep scan mode for richer package and changelog evidence.
- Vulnerability matching from NVD, OVAL, JVN, RHSA, ALAS, ELSA, FreeBSD-SA, and changelog sources depending on target OS.
- Reports for host patch prioritization and remediation planning.

## Workflow

### 1. Confirm Authorization and Scope

Before scanning hosts, confirm:
- Hostnames or inventory source.
- SSH access method and privilege level.
- Allowed scan window.
- Whether root privileges are allowed.
- Whether the scanner may fetch vulnerability databases from the internet.
- Output handling requirements because host package inventories are sensitive.

Never scan hosts outside the user's authorized scope.

### 2. Choose Scan Mode

Use:
- Fast remote scan for broad, low-impact fleet checks.
- Deep scan for high-value servers where detailed package evidence matters.
- Local scan for isolated hosts or environments that cannot accept SSH from the scanner.
- Containerized Vuls setup when the user wants a quick controlled runtime.

### 3. Prepare Data Sources

Vuls needs vulnerability intelligence before reliable scanning. Depending on setup, prepare:
- NVD.
- JVN.
- OVAL feeds for the target distributions.
- Vendor advisories such as RHSA, ALAS, ELSA, or FreeBSD-SA.

With Vulsctl-style Docker workflows, use the official tutorial commands as the source of truth and avoid inventing feed paths.

### 4. Define Targets

Create a minimal target config:

```toml
[servers]

[servers.web01]
host = "web01.example.com"
port = "22"
user = "scanuser"
keyPath = "/home/scanner/.ssh/id_ed25519"
```

Keep credentials outside the repository. Use SSH agent or secure secret storage.

### 5. Run Scan

Example flow:

```bash
vuls configtest
vuls scan
vuls report
```

For local host workflows, follow the installed Vuls version's local scan syntax and document the exact command used.

### 6. Triage Findings

For each host:
- Identify OS distribution and version.
- Separate kernel, runtime library, and application package CVEs.
- Check vendor fixed package status.
- Note reboot requirements for kernel or core library updates.
- Identify exposed services and internet-facing hosts.
- Group fixes by package manager transaction when possible.

Prioritize:
1. Exploited-in-the-wild or remotely exploitable CVEs on exposed services.
2. Kernel and privilege-escalation issues on multi-user hosts.
3. CVEs with vendor-fixed packages available.
4. Unsupported OS releases with no security updates.
5. Libraries embedded in application runtimes.

## Common Patterns

### Debian / Ubuntu Remediation

```bash
sudo apt-get update
sudo apt-get upgrade --with-new-pkgs
sudo needrestart
```

### RHEL-Compatible Remediation

```bash
sudo dnf update --security
sudo needs-restarting -r
```

### Fleet Report Template

```markdown
## Host CVE Scan Summary

- Scan date:
- Scanner:
- Targets:
- Critical:
- High:
- Reboot required:
- Unsupported hosts:
- Top packages to patch:
- Exceptions:
```

### Accepted Risk Record

```markdown
## Accepted Host Vulnerability

- Host:
- CVE:
- Package:
- Reason:
- Compensating control:
- Owner:
- Review date:
```

## Interpretation Rules

- Vendor advisories often matter more than generic NVD severity for Linux packages.
- A package can be backported and safe even when the upstream version number appears old.
- Kernel findings may remain active until reboot even after package updates.
- Unsupported OS releases should be treated as a structural risk, not a normal patch queue.
- Scans should be repeated after remediation to verify installed versions and reboot state.

## Boundaries

- Do not run package upgrades unless the user explicitly asks for remediation.
- Do not store SSH private keys in the repository.
- Do not scan internet ranges or third-party hosts.
- Do not assume rootless fast scans catch every issue.
- Do not publish host inventory, package lists, or vulnerability reports externally without approval.

## Reference Sources

- Vuls official site: https://vuls.io/
- Vulsctl tutorial: https://vuls.io/docs/en/tutorial-vulsctl-docker.html

More from seaworld008/Commonly-used-high-value-skills

SkillDescription
agent-hubMulti-agent collaboration plugin that spawns N parallel subagents competing on the same task via git worktree isolation. Agents work independently, results are evaluated by metric or LLM judge, and the best branch is merged. Use when: user wants multiple approaches tried in parallel — code optimization, content variation, research exploration, or any task that benefits from parallel competition. Requires: a git repo.
andrej-karpathy-skillsKarpathy-inspired coding discipline for AI agents: think before coding, keep changes simple, edit surgically, and define verifiable success criteria before implementation.
arenaSpecialist orchestrating codex exec / Antigravity CLI through dual paradigms — COMPETE (multi-variant comparison, select best) and COLLABORATE (decompose tasks across engines, integrate). Supports Solo/Team/Quick execution modes.
azure-kubernetesPlan, create, and configure production-ready Azure Kubernetes Service (AKS) clusters. Covers Day-0 checklist, SKU selection (Automatic vs Standard), networking options (private API server, Azure CNI Overlay, egress configuration), security, and operations (autoscaling, upgrade strategy, cost analysis). WHEN: create AKS environment, provision AKS, enable AKS observability, design AKS networking, choose AKS SKU, secure AKS, optimize AKS, AKS spot nodes, AKS cluster-autoscaler, rightsize AKS pod, pod rightsizing, over-provisioned AKS pod, pod resource requests and limits, Vertical Pod Autoscaler, VPA recommendations.
azure-kubernetes-automatic-readinessAssess Kubernetes workloads and cluster configuration for AKS Automatic compatibility. Identifies incompatibilities, generates fixes, and guides migration from AKS Standard to AKS Automatic. WHEN: migrate to AKS Automatic, check AKS Automatic readiness, validate manifests for Automatic, assess cluster for Automatic compatibility, fix deployment for Automatic compatibility, identify AKS Automatic migration blockers, is my cluster ready for AKS Automatic.
cc-devops-skillsSRE, DevOps, Kubernetes, CI/CD, PromQL, Terraform, Docker, and incident operations playbook for building reliable delivery and operations workflows.
chatgpt-appsBuild, scaffold, refactor, and troubleshoot ChatGPT Apps SDK applications that combine an MCP server and widget UI. Use when Codex needs to design tools, register UI resources, wire the MCP Apps bridge or ChatGPT compatibility APIs, apply Apps SDK metadata or CSP or domain settings, or produce a docs-aligned project scaffold. Prefer a docs-first workflow by invoking the openai-docs skill or OpenAI developer docs MCP tools before generating code.
clayAI 3D model generation agent. Generates text-to-3D and image-to-3D code (Python/JS/OpenSCAD) using Meshy, Tripo, Hunyuan3D, Rodin, Sloyd, and Stability APIs. Handles game pipeline integration, LOD, retopology, UV, and QC validation.
codeql-security-scanner用于通过 CodeQL 执行语义代码扫描、安全查询、自定义规则、SARIF 报告和 GitHub Code Scanning 集成。
complyRegulatory compliance and audit agent. Maps business regulatory requirements (SOC2/PCI-DSS/HIPAA/ISO 27001), checks control implementations, designs audit trails, and implements Policy as Code. Use when compliance auditing is needed.