# CVE Vulnerability Research Pipeline
PoC-confirmed CVEs are automatically collected daily, and then **split into two paths**.
```
Collection(auto) ─ Filtering(auto) ─┬─ CTF Problem Creation Materials data/study/, data/high-severity.md
└─ Patch Analysis → Bypass Discovery → Vendor Disclosure
data/analysis.json, reports/
```
Both are primary objectives. Collection is the common input stage for both paths, and in fact, 3 out of the 5 disclosures sent so far have come from this archive.
- Data Sources: [NVD](https://nvd.nist.gov/), [CISA KEV](https://www.cisa.gov/known-exploited-vulnerabilities-catalog), [GitHub Advisory Database](https://github.com/advisories), [GitHub Repository Search](https://github.com/search)
- Collection Frequency: Once daily, `0 3 * * *` UTC (GitHub Actions `.github/workflows/collect.yml`)
- Filter: Save only items with CVSS ≥ 6.0 and confirmed PoC (publication date irrelevant — older CVEs are collected if PoC appears today)
- Format: Markdown file per CVE (`data/<year>/<CVE-ID>.md`)
- Study Full List: Always maintain CVSS ≥ 8.0 items from entire archive in `data/high-severity.md`
- Study Daily Distribution: 5 items per day without duplication to `data/study/<CVE-ID>.md`. Today's new promotions → Existing archive → NVD full DB in CVSS descending order, filled by items with PoC
> This file is auto-generated/overwritten when `scripts/collect.py` runs. Do not edit directly.
## Operation
1. Add newly published CVEs on NVD (CVSS ≥ 6.0) to candidate pool (`data/.pool.json`)
1b. Previously published CVEs also added to pool 5 per day in CVSS order (CRITICAL→HIGH→MEDIUM buckets, date-irrelevant backfill, cursor stored in state file)
2. Cheaply detect candidates where Exploit reference tags newly appear via NVD lastModified bulk query
3. For candidates not caught above, re-check those reaching recheck milestones (3/7/14/30/60/90/180/365 days post-publication) via GitHub repository search
4. When PoC is confirmed, enrich with CISA KEV/GHSA info and save to `data/<year>/<CVE-ID>.md`, remove from pool
5. If no PoC found after completing schedule, give up and remove from pool (not retained in archive)
6. Regenerate `data/high-severity.md` with CVSS ≥ 8.0 items from entire archive each time
6b. Incrementally query GHSA with updatedSince, ingest **only those with patch commits** to analysis queue (`data/analysis.json`) — not to candidate pool (GHSA lacks PoC information)
7. Daily 5-item study distribution → `data/study/<CVE-ID>.md`. Priority 1: Today's new promotions, Priority 2: Existing archive, Priority 3: NVD full DB in CVSS descending order with PoC (date-irrelevant, continue by cursor)
## Local Execution
```bash
pip install -r requirements.txt
cd scripts
python collect.py # Incremental collection (by state file)
python collect.py --days 3 # Force recent 3 days' new CVEs (backfill)
python collect.py --verify # Archive PoC verification
```