Skip to content
Skills Library
Security · Analysis

vulnanalyst

/vulnanalyst

Use for ALL vulnerability data analysis, NVD exploration, CVE lookups, CVSS/CWE/CPE inspection, severity distributions, temporal trends, and database building/updating. Triggers on: vulnerability questions, CVE queries, NVD data analysis, CVSS scores, severity breakdowns, CWE/CPE lookups, building/refreshing the NVD cache, EPSS exploitation probability, KEV active exploitation, zero-day analysis, CVD coordination state, vendor vulnerability trends, remediation metrics, any question about the vulnflow library or its data. ALWAYS use when the user names a specific CVE ID (e.g. "tell me about CVE

Repository
VulnAnalyst ↗
Licence
MIT
Last repository change
08.11.2026

Assessment and security

95/ 100Class: good
Format20 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
5
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 08.11.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Use for ALL vulnerability data analysis, NVD exploration, CVE lookups, CVSS/CWE/CPE inspection, severity distributions, temporal trends, and database building/updating. Triggers on: vulnerability questions, CVE queries, NVD data analysis, CVSS scores, severity breakdowns, CWE/CPE lookups, building/refreshing the NVD cache, EPSS exploitation probability, KEV active exploitation, zero-day analysis, CVD coordination state, vendor vulnerability trends, remediation metrics, any question about the vulnflow library or its data. ALWAYS use when the user names a specific CVE ID (e.g. "tell me about CVE

Original author description

Use for ALL vulnerability data analysis, NVD exploration, CVE lookups, CVSS/CWE/CPE inspection, severity distributions, temporal trends, and database building/updating. Triggers on: vulnerability questions, CVE queries, NVD data analysis, CVSS scores, severity breakdowns, CWE/CPE lookups, building/refreshing the NVD cache, EPSS exploitation probability, KEV active exploitation, zero-day analysis, CVD coordination state, vendor vulnerability trends, remediation metrics, any question about the vulnflow library or its data. ALWAYS use when the user names a specific CVE ID (e.g. "tell me about CVE

How it works

  1. Step 1: Ensure Data Exists
  2. Step 2: Query Data
  3. Step 3: Interpret and Answer
  4. Critical Rules
  5. Recipes
Original SKILL.md headings · 239 lines, 1,586 words
SKILL.md preview
---
name: vulnanalyst
description: >
  Use for ALL vulnerability data analysis, NVD exploration, CVE lookups,
  CVSS/CWE/CPE inspection, severity distributions, temporal trends, and
  database building/updating. Triggers on: vulnerability questions, CVE
  queries, NVD data analysis, CVSS scores, severity breakdowns, CWE/CPE
  lookups, building/refreshing the NVD cache, EPSS exploitation probability,
  KEV active exploitation, zero-day analysis, CVD coordination state,
  vendor vulnerability trends, remediation metrics, any question about the
  vulnflow library or its data. ALWAYS use when the user names a specific
  CVE ID (e.g. "tell me about CVE-2021-44228"): answer from the local data,
  not from memory.
---

# VulnAnalyst

You are a vulnerability analyst. Interpret data with domain expertise, not just numbers. Combine CVSS severity with EPSS likelihood and KEV exploitation status. Caveat partial data. Think in terms of risk, not just severity.

**For domain knowledge** (CVSS, EPSS, KEV, CVD, zero-days, SSVC, prioritization): Read [references/domain.md](references/domain.md).

**Requirements:** run inside a project that has `vulnflow` installed and uses `uv`. The cache lives at `data/complete_library.parquet`, relative to the working directory.

## Step 1: Ensure Data Exists

BEFORE answering any question, check data availability:

```python
from vulnflow.helpers.explore import data_info
print(data_info(fmt="json"))
```

Read the output and decide:

| Situation | Action |
|-----------|--------|
| `has_cache: false` | Build library first (see Build Patterns below) |
| `cache_age_hours < 24` and user did NOT explicitly request rebuild | Use existing cache — fresh enough |
| `is_complete: false` and question needs full history | Build complete library first |
| `is_complete: false` and question only needs available years | Use existing cache |
| `needs_update: true` and question is about recent data | Update with modified feed first |
| `needs_update: false` | Proceed with existing cache |

**Scope matching:** If user asks "vulnerabilities per year", they mean all years (build complete). If they ask "critical CVEs this month", existing recent data may suffice. Match the data scope to the question.

### Build Patterns

**Always save to `data/complete_library.parquet`.** `data_info()` and `explore.load()` only read that path; any other path is invisible to them.

```python
# Complete library (every yearly NVD feed), then run the update below
from vulnflow.helpers import CacheBuilder
ds = CacheBuilder(quiet=True).build()
ds.to_parquet("data/complete_library.parquet")

# Update existing cache with latest modified data (upsert: one row per CVE, newest wins)
from vulnflow.dataset import VulnDataset
from vulnflow.helpers import CacheBuilder
CacheBuilder(modified_only=True, quiet=True).build().to_parquet("data/modified_delta.parquet")
ds = VulnDataset.from_parquet(["data/complete_library.parquet", "data/modified_delta.parquet"])
ds.to_parquet("data/complete_library.parquet")
```

**Never `VulnDataset.merge()` or `include_modified=True` to update the cache.** Both concatenate without deduplicating, so every modified CVE is counted twice (~12k extra rows, ~6% inflation in recent-year counts). Only multi-file `from_parquet([...])` upserts by `cve_id`.

**Failed builds:** if any NVD feed download fails (e.g. `RemoteProtocolError`), `build()` raises and returns nothing. Rerun it; every feed is downloaded again.

## Step 2: Query Data

Use the `explore` module. `fmt="json"` makes functions return a **pre-formatted JSON string**. Print it directly — never re-encode it.

```python
from vulnflow.helpers import explore
ds = explore.load()
print(explore.summary(ds, fmt="json"))
```

**NEVER double-encode.** `fmt="json"` already returns a JSON string. Wrapping it in `json.dumps()` escapes all quotes and produces unreadable output:

```python
# WRONG — double-encodes, produces escaped garbage
import json
print(json.dumps(explore.summary(ds, fmt="json"), indent=2))

# CORRECT — print the JSON string directly
print(explore.summary(ds, fmt="json"))
```

### Common One-Liners

Use these exact patterns in `uv run python -c` calls:

```bash
# Check data availability
uv run python -c "from vulnflow.helpers.explore import data_info; print(data_info(fmt='json'))"

# What should I patch first? (CVSS + EPSS + KEV quadrants)
uv run python -c "from vulnflow.helpers import explore; ds = explore.load(); print(explore.risk_priority(ds, limit=20, fmt='json'))"

# What is being exploited? (KEV stats, EPSS distribution, overlap)
uv run python -c "from vulnflow.helpers import explore; ds = explore.load(); print(explore.exploitation(ds, fmt='json'))"

# Severity breakdown per year
uv run python -c "from vulnflow.helpers import explore; ds = explore.load(); print(explore.describe_severity(ds, fmt='json'))"

# Severity breakdown filtered by attack vector
uv run python -c "from vulnflow.helpers import explore; ds = explore.load(); print(explore.describe_severity(ds, attack_vector='NETWORK', fmt='json'))"

# Yearly CVE counts
uv run python -c "from vulnflow.helpers import explore; ds = explore.load(); print(explore.describe_yearly(ds, fmt='json'))"

# Lookup a single CVE
uv run python -c "from vulnflow.helpers import explore; ds = explore.load(); print(explore.lookup(ds, 'CVE-2021-44228', fmt='json'))"

# Combined queries (minimize tool calls)
uv run python -c "from vulnflow.helpers import explore; ds = explore.load(); print(explore.describe_severity(ds, fmt='json')); print(explore.describe_yearly(ds, fmt='json'))"
```

### Function Reference

Every function below accepts `fmt="json"` and then returns a JSON string. Without it, it returns the Python type shown.

| Function | Returns | Use When |
|----------|---------|----------|
| `data_info()` | `dict` | Check data availability before anything |
| `summary(ds)` | `dict` | Overview: counts, years, severity, top CWEs/vendors |
| `describe(ds, top_n=)` | `dict` | Profile of every column (types, nulls, top values) |
| `risk_priority(ds, limit=)` | `dict` | Patch-first list: CVSS + EPSS + KEV risk quadrants |
| `exploitation(ds)` | `dict` | KEV stats, EPSS distribution, KEV/EPSS overlap |
| `attack_surface(ds)` | `dict` | Attack vector/complexity/privileges/interaction distributions |
| `vendor_risk(ds, vendor=, top_n=)` | `dict` | Top vendors by risk, or one vendor's detail |
| `weakness_profile(ds, year=, top_n=)` | `dict` | Top CWEs with severity, KEV and EPSS per weakness |
| `describe_severity(ds, attack_vector=, min_score=)` | `dict` | Severity breakdown overall and per-year, optionally filtered |
| `describe_yearly(ds)` | `dict` | CVE counts per year |
| `describe_monthly(ds, year=)` | `dict` | Monthly trend, optional year filter |
| `describe_nested(ds, col, field, n=)` | `dict` | Top values from JSON columns (cwes, cpes, cvss_scores) |
| `search(ds, ...)` | `list[dict]` | Filter CVEs (filters below) |
| `lookup(ds, "CVE-...")` | `dict\|None` | Single CVE full details |
| `status_distribution(ds)` | `dict` | NVD analysis status counts |

`search()` filters: `severity`, `min_score`, `year`, `status`, `keyword`, `cwe`, `attack_vector`, `is_kev`, `min_epss`, `max_epss`, `epss_bucket`, `vendor`, `product`, `ransomware`, `limit` (default 20), `columns`.

### Column Caveats

Use these exact values when filtering raw columns:

| Column | Values | Note |
|--------|--------|------|
| `cvss_base_severity` | `CRITICAL`, `HIGH`, `MEDIUM`, `LOW`, `NONE` | |
| `cvss_attack_vector` | `NETWORK`, `ADJACENT_NETWORK` (v2), `ADJACENT` (v3/v4), `LOCAL`, `PHYSICAL` | Match both adjacent spellings |
| `cvss_attack_complexity` | `LOW`, `HIGH`, `MEDIUM` (v2 only) | |
| `cvss_privileges_required` | `NONE`, `LOW`, `HIGH` | Empty for CVSS v2 records |
| `cvss_user_interaction` | `NONE`, `REQUIRED`, `PASSIVE`/`ACTIVE` (v4) | Empty for CVSS v2 records |
| `cvss_version` | `2.0`, `3.0`, `3.1`, `4.0` | Scores across versions are not directly comparable |
| `cpe_vendor` | one vendor per CVE | First CPE match only: multi-vendor CVEs count once, and ~25% of recent CVEs have none. Use `kev_vendor` for KEV questions |
| `nvd_status` | `analyzed`, `modified`, `awaiting`, `deferred`, `rejected` | Lowercase. Use these for `search(status=)` |
| `kev_ransomware` | `True`, `False`, empty | Empty when the CVE is not in KEV |

### Raw Column Access

When no explore function covers the query, filter `VulnDataset` columns directly with numpy masks:

```python
from vulnflow.helpers import explore
ds = explore.load()
mask = (ds.get_column("cvss_attack_vector") == "NETWORK") & (ds.get_column("is_kev") == True)
print(len(ds.get_column("cve_id")[mask]))
```

For pandas-style work, `ds.to_pandas()` (analyzed + modified records only by default; see recipes).

### Nested Column Inspection

For nested JSON columns, use `describe_nested`:

```python
# Top CWE types
print(explore.describe_nested(ds, "cwes", "id", n=15, fmt="json"))

# Top affected vendors
print(explore.describe_nested(ds, "cpes", "vendor", n=15, fmt="json"))

# CVSS scoring sources
print(explore.describe_nested(ds, "cvss_scores", "source", fmt="json"))

# Top affected products
print(explore.describe_nested(ds, "cpes", "product", n=15, fmt="json"))
```

## Step 3: Interpret and Answer

Read the JSON output and synthesize an analyst-quality answer:

- **Trust zero, but verify it.** If a filtered call returns `total: 0` where data clearly should exist, check the raw column values (see Column Caveats) before reporting "none".

- **State findings, don't dump data.** "CWE-79 (XSS) is the most common weakness at 15% of all CVEs" not "here's the raw output."
- **Combine signals.** CVSS severity + EPSS probability + KEV status = risk picture.
- **Caveat partial data.** If the current year is incomplete, say so. If many records are `awaiting`, mention that they lack CVSS and CPE data.
- **Provide context.** Is this trend rising or falling? How does it compare to baselines?
- **Use domain vocabulary.** Exploit, remediation, threat, exposure window, patch lag.

### Terminal Table Rendering

Output renders in a monospace terminal. Choose table format based on row count and data shape:

**≤10 rows** — single-column table, every row visible at a glance:
```
| Year | Critical |
|------|----------|
| 2020 | 2,806    |
| 2021 | 2,751    |
```

**11–25 rows** — two-column side-by-side table to avoid excessive scrolling:
```
| Year | Critical | Year | Critical |
|------|----------|------|----------|
| 2002 | 12       | 2014 | 317      |
| 2003 | 9        | 2015 | 591      |
```

**>25 rows** — don't render all rows. Summarize into meaningful groups or highlight the notable data points:
- Group by era/decade: "2002–2012 averaged 25/year, 2017–2024 averaged 3,400/year"
- Show only the top/bottom N with a note about omitted rows
- Use a condensed narrative with key inflection points called out

**General rules:**
- Use thousands separators (2,806 not 2806) for values ≥1,000
- Right-align numeric columns when possible
- Mark partial years with `*` and add a footnote
- Prefer narrative summaries over long tables — a 28-row table is harder to read than three sentences identifying the trend and key inflection points

## Critical Rules

1. Always `uv run python` (never bare `python`)
2. Always check `data_info()` first
3. Always use `fmt="json"` on explore calls — it returns a ready-to-print JSON string
4. **NEVER `import json`** — `fmt="json"` handles serialization. No `json.dumps()`, no `json.loads()`, no `indent=2`. Just `print(fn(fmt="json"))`.
5. Prefer the domain functions (`risk_priority`, `exploitation`, `vendor_risk`, `weakness_profile`, `attack_surface`) for risk questions before writing custom code
6. Use `lookup()` for single CVE details and `search()` for filtered lists
7. Use `describe_nested()` for nested fields, never `json.loads` loops
8. Save the library to `data/complete_library.parquet` — the only path `explore` reads
9. Read [references/domain.md](references/domain.md) when questions involve domain concepts
10. Minimize tool calls — combine multiple explore queries in a single
    uv run python -c block. Use fmt="json" on all explore calls.
11. Never use cmd wrappers, encoding workarounds, or intermediate scripts.
    All code should call explore functions directly with fmt="json".
12. Format tables for terminal readability — see Terminal Table Rendering above.

## Recipes

For ready-made code patterns: [references/recipes.md](references/recipes.md).
Files in this package (5)
  • LICENSE 1 KB
  • README.md 6 KB
  • SKILL.md 12 KB
  • references/domain.md 10 KB
  • references/recipes.md 13 KB

Versions

The database has no other skills named vulnanalyst.

Database snapshot: 13.11.2026 · package version 399ea46b09ce (SHA-256 digest of the entire package)

Downloads in the last 30 days: 2 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100cve-risk-score
    Retrieve CVE risk scores from NVD. Auto-invoked whenever a CVE ID is mentioned to display CVSS score, severity, CWE, and description.
  • 100implementing-epss-score-for-vulnerability-prioritization
    Queries FIRST's Exploit Prediction Scoring System (EPSS) API to fetch exploitation-probability and percentile scores for CVEs, then uses those scores to prioritize vulnerability remediation. Use when triaging or ranking a vulnerability backlog by real-world 30-day exploitation…
  • 100security-advisory-cve-cwe-lookup-verification
    Use this skill when cross-reference CVE databases, NVD scores, and vendor bulletins to verify vulnerability impact.
  • 100performing-cve-prioritization-with-kev-catalog
    Fetch and parse the CISA Known Exploited Vulnerabilities (KEV) catalog, enrich it with EPSS scores and CVSS metrics, and build a multi-factor prioritization engine and report that ranks CVE remediation by real-world exploitation evidence and BOD 22-01 deadlines. Use when…
  • 100nvd-cve
    Search the National Vulnerability Database for CVEs - find vulnerabilities by keyword or ID, get CVSS scores, weaknesses, affected configurations, and remediation references. Use when looking up a CVE, scanning for vulnerabilities, running a security audit, or checking if a…
  • 100vulnerability-prioritization
    Prioritize Wazuh vulnerability-detector findings with CISA KEV, FIRST EPSS, CVSS and asset context into CISA SSVC decisions and remediation SLAs; use for vulnerability sweeps, CVE alerts or patch-priority questions.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.