mirror of
https://github.com/elementalsouls/Claude-BugHunter.git
synced 2026-11-24 20:30:23 +01:00
Closes the "currency drift" gap. Pulls the CISA Known Exploited
Vulnerabilities catalog, greps the repo for indexed CVE IDs, surfaces
missing entries from vendors that map to our skill stack.
Components shipped:
- scripts/refresh-cve-index.py — pulls KEV JSON, scope-filters by vendor
(Apache, Atlassian, Cisco, Citrix, F5, Fortinet, GitLab, Ivanti,
Jenkins, Microsoft, Oracle, Palo Alto, Pulse, Red Hat, SonicWall,
Spring, VMware, WordPress, Drupal, Joomla, PHP, Adobe). Out-of-scope
filter for browser/kernel/mobile-internal CVEs that don't map to
bug-bounty / external-red-team work. --markdown flag for the snapshot
file format.
- docs/cve-coverage.md — committed snapshot (KEV 2026.05.15: 1592 total
vulns, 91 indexed in this repo, 54 in-scope gaps in 180-day lookback).
- docs/automation/cve-refresh.yml.template — GitHub Actions workflow
template. To install, move it to .github/workflows/ after granting
the workflow scope:
gh auth refresh -h github.com -s workflow
mkdir -p .github/workflows
mv docs/automation/cve-refresh.yml.template .github/workflows/cve-refresh.yml
git add .github/workflows/cve-refresh.yml && git commit && git push
The workflow runs weekly (Mondays 14:00 UTC), opens/updates a single
tracking issue if gaps are detected, labels it cve-coverage + automation.
First run found 91 already-indexed CVEs covering Log4Shell, ToolShell,
Jenkins CVE-2024-23897, Spring CVE-2022-22963, Apache CVE-2021-41773
plus the ~85 cited across the Pattern Library docs from Phase 3.
Highest-priority coverage gaps detected (from KEV last 180 days):
CVE-2026-42897 (Microsoft Exchange XSS), CVE-2026-20182 (Cisco
SD-WAN auth bypass), CVE-2026-6973 (Ivanti EPMM), CVE-2026-0300
(PAN-OS), CVE-2026-34197 (Apache ActiveMQ), CVE-2025-53521 (F5 BIG-IP).
Each is a candidate for a new disclosed-reports / skill entry.
Currency drift problem solved: the repo can now answer "are we current
with CISA KEV?" every Monday, not "we were current when we last looked".
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
89 lines
2.9 KiB
Plaintext
89 lines
2.9 KiB
Plaintext
name: CVE Coverage Refresh
|
|
|
|
# Weekly check against CISA KEV — surfaces CVEs added to the catalog
|
|
# that aren't yet documented in our skills or disclosed-reports library.
|
|
#
|
|
# When coverage gaps appear, the job opens (or updates) a tracking issue
|
|
# so the team can pick up the highest-priority entries.
|
|
|
|
on:
|
|
schedule:
|
|
# Every Monday at 14:00 UTC
|
|
- cron: "0 14 * * 1"
|
|
workflow_dispatch: # allow manual runs
|
|
|
|
permissions:
|
|
contents: read
|
|
issues: write
|
|
|
|
jobs:
|
|
cve-refresh:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.12"
|
|
|
|
- name: Run CVE coverage check
|
|
id: cve_check
|
|
run: |
|
|
# 90-day lookback window — newer entries are higher priority
|
|
OUTPUT=$(scripts/refresh-cve-index.py --days 90 --max 30 2>&1)
|
|
EXIT=$?
|
|
echo "$OUTPUT"
|
|
{
|
|
echo "report<<EOF"
|
|
echo "$OUTPUT"
|
|
echo "EOF"
|
|
} >> "$GITHUB_OUTPUT"
|
|
# Exit 0 even if gaps found — we open an issue instead
|
|
echo "exit_status=$EXIT" >> "$GITHUB_OUTPUT"
|
|
|
|
- name: Open or update tracking issue (if gaps)
|
|
if: steps.cve_check.outputs.exit_status != '0'
|
|
uses: actions/github-script@v7
|
|
env:
|
|
REPORT: ${{ steps.cve_check.outputs.report }}
|
|
with:
|
|
script: |
|
|
const report = process.env.REPORT;
|
|
const issueTitle = "CISA KEV coverage gaps — weekly refresh";
|
|
const body = [
|
|
"**Automated weekly CVE coverage check.** Lookback window: 90 days. In-scope vendor list at `scripts/refresh-cve-index.py`.",
|
|
"",
|
|
"To close a gap: add a Pattern Library entry in `docs/disclosed-reports/hunt-<class>.md` and an exploit summary in `skills/hunt-<class>/SKILL.md`.",
|
|
"",
|
|
"```",
|
|
report,
|
|
"```",
|
|
].join("\n");
|
|
|
|
const { data: existing } = await github.rest.issues.listForRepo({
|
|
owner: context.repo.owner,
|
|
repo: context.repo.repo,
|
|
state: "open",
|
|
labels: "cve-coverage",
|
|
});
|
|
const found = existing.find(i => i.title === issueTitle);
|
|
if (found) {
|
|
await github.rest.issues.update({
|
|
owner: context.repo.owner,
|
|
repo: context.repo.repo,
|
|
issue_number: found.number,
|
|
body,
|
|
});
|
|
console.log(`Updated existing issue #${found.number}`);
|
|
} else {
|
|
await github.rest.issues.create({
|
|
owner: context.repo.owner,
|
|
repo: context.repo.repo,
|
|
title: issueTitle,
|
|
body,
|
|
labels: ["cve-coverage", "automation"],
|
|
});
|
|
console.log("Opened new tracking issue");
|
|
}
|