Chuyển đến nội dung
Skillpedia
Bảo mật35k · #8039

implementing-epss-score-for-vulnerability-prioritization

Skill này làm gì

Công cụ này dùng hệ thống EPSS để dự đoán lỗ hổng bảo mật (được xác định bằng mã CVE) nào có khả năng cao bị hacker khai thác trong 30 ngày tới. Nó giúp ưu tiên sửa những lỗ hổng nguy hiểm nhất trước.

Khi nào nên dùng

  • ✓Khi phân tích danh sách lỗ hổng bảo mật tìm thấy trong hệ thống.
  • ✓Khi quyết định lỗ hổng nào cần sửa trước để giảm rủi ro.
  • ✓Khi so sánh nguy cơ bị khai thác thực tế của các lỗ hổng, thay vì chỉ dựa vào mức độ nghiêm trọng.

Liên kết skill

https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/implementing-epss-score-for-vulnerability-prioritization/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/implementing-epss-score-for-vulnerability-prioritization/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Ưu tiên các lỗ hổng bảo mật của tôi dựa trên khả năng bị khai thác.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Công cụ tham khảo một cơ sở dữ liệu trực tuyến (EPSS API) dùng trí tuệ nhân tạo để ước tính khả năng lỗ hổng bị tội phạm sử dụng. Sau đó nó xếp hạng các lỗ hổng theo xác suất này, giúp bạn tập trung vào những vấn đề cấp bách nhất.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Implementing EPSS Score for Vulnerability Prioritization

Overview

The Exploit Prediction Scoring System (EPSS) is a data-driven model developed by FIRST (Forum of Incident Response and Security Teams) that estimates the probability of a CVE being exploited in the wild within the next 30 days. EPSS produces scores from 0.0 to 1.0 (0% to 100%) using machine learning trained on real-world exploitation data. Unlike CVSS which measures severity, EPSS measures likelihood of exploitation, making it essential for risk-based vulnerability prioritization.

When to Use

  • When deploying or configuring implementing epss score for vulnerability prioritization capabilities in your environment
  • When establishing security controls aligned to compliance requirements
  • When building or improving security architecture for this domain
  • When conducting security assessments that require this implementation

Prerequisites

  • Python 3.9+ with requests, pandas, matplotlib
  • Access to FIRST EPSS API (https://api.first.org/data/v1/epss)
  • Vulnerability scan results with CVE identifiers
  • Optional: NVD API key for CVSS enrichment

EPSS API Usage

Query Single CVE

# Get EPSS score for a specific CVE
curl -s "https://api.first.org/data/v1/epss?cve=CVE-2024-3400" | python3 -m json.tool

# Response:
# {
#   "status": "OK",
#   "status-code": 200,
#   "version": "1.0",
#   "total": 1,
#   "data": [
#     {
#       "cve": "CVE-2024-3400",
#       "epss": "0.95732",
#       "percentile": "0.99721",
#       "date": "2024-04-15"
#     }
#   ]
# }

Query Multiple CVEs

# Batch query up to 100 CVEs
curl -s "https://api.first.org/data/v1/epss?cve=CVE-2024-3400,CVE-2024-21887,CVE-2023-44228" | \
  python3 -c "
import sys, json
data = json.load(sys.stdin)
for item in data['data']:
    pct = float(item['epss']) * 100
    print(f\"{item['cve']}: {pct:.2f}% exploitation probability (percentile: {item['percentile']})\")
"

Download Full EPSS Dataset

# Download complete daily EPSS scores (CSV format)
curl -s "https://epss.cyentia.com/epss_scores-current.csv.gz" | gunzip > epss_scores_current.csv

# Check size and preview
wc -l epss_scores_current.csv
head -5 epss_scores_current.csv

Query Historical EPSS Scores

# Get EPSS score for a specific date
curl -s "https://api.first.org/data/v1/epss?cve=CVE-2024-3400&date=2024-04-12"

# Get time series data
curl -s "https://api.first.org/data/v1/epss?cve=CVE-2024-3400&scope=time-series"

Prioritization Strategy

EPSS + CVSS Combined Approach

EPSS Score CVSS Score Priority Action
> 0.7 >= 9.0 P0 - Immediate Remediate within 24 hours
> 0.7 >= 7.0 P1 - Urgent Remediate within 48 hours
> 0.4 >= 7.0 P2 - High Remediate within 7 days
> 0.1 >= 4.0 P3 - Medium Remediate within 30 days
<= 0.1 >= 7.0 P3 - Medium Remediate within 30 days
<= 0.1 < 7.0 P4 - Low Remediate within 90 days

EPSS Percentile Thresholds

  • Top 1% (percentile >= 0.99): Extremely likely to be exploited; treat as Critical
  • Top 5% (percentile >= 0.95): High exploitation probability; prioritize remediation
  • Top 10% (percentile >= 0.90): Elevated risk; schedule for near-term remediation
  • Bottom 50%: Low exploitation probability; handle in normal patch cycle

Implementation

import requests
import pandas as pd
from datetime import datetime

def fetch_epss_scores(cve_list):
    """Fetch EPSS scores for a list of CVEs from FIRST API."""
    scores = {}
    batch_size = 100
    for i in range(0, len(cve_list), batch_size):
        batch = cve_list[i:i + batch_size]
        resp = requests.get(
            "https://api.first.org/data/v1/epss",
            params={"cve": ",".join(batch)},
            timeout=30
        )
        if resp.status_code == 200:
            for entry in resp.json().get("data", []):
                scores[entry["cve"]] = {
                    "epss": float(entry["epss"]),
                    "percentile": float(entry["percentile"]),
                    "date": entry.get("date", ""),
                }
    return scores

def prioritize_vulnerabilities(scan_results_csv, output_csv):
    """Enrich scan results with EPSS scores and assign priorities."""
    df = pd.read_csv(scan_results_csv)
    cve_list = df["cve_id"].dropna().unique().tolist()

    epss_data = fetch_epss_scores(cve_list)


…
Câu hỏi thường gặp

EPSS là gì?

EPSS là viết tắt của Exploit Prediction Scoring System. Đây là hệ thống dùng dữ liệu thực tế để dự đoán xác suất một lỗ hổng bảo mật bị khai thác trong 30 ngày tới.

Khác biệt giữa EPSS và CVSS là gì?

CVSS đo mức độ nghiêm trọng của lỗ hổng (nó nguy hiểm đến đâu), còn EPSS đo khả năng nó bị hacker khai thác trong thực tế.

EPSS giúp ưu tiên thế nào?

Khi biết lỗ hổng nào có khả năng bị khai thác cao hơn, bạn có thể ưu tiên vá chúng trước, giúp hệ thống được bảo vệ tốt hơn trước các cuộc tấn công thực tế.

Chi tiết

Mô tả gốc của tác giả

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 likelihood rather than CVSS severity alone.

repo: mukul975/Anthropic-Cybersecurity-Skills

Độ phổ biến

Sao GitHub
35k
Vị trí xếp hạng
#8039
Giấy phép
Apache-2.0
Cập nhật
31/8/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự