feat(vex): draft ENISA notifications of actively exploited vulnerabilities (CRA Art. 14) (#498, 4/4) #513

Merged
sharang merged 1 commits from feat/498-enisa into main 2026-10-06 15:16:20 +00:00
Owner

Part 4 of 4 for #498: draft notifications of actively exploited vulnerabilities under CRA Art. 14(1)–(2), for the manufacturer to check, complete and enter by hand in ENISA's single reporting platform (SRP). Prüfwerk submits nothing.

Sources

  • Regulation (EU) 2024/2847, Art. 14 and 16: the verbatim text from the Publications Office (EUR-Lex blocks scripted access). Art. 14 applies from 11 September 2026.
  • ENISA CRA SRP Glossary, version 1.4, last update 2026-10-01 (https://www.enisa.europa.eu/cra-srp-glossary), parsed from its HTML table.
    • It has 42 numbered fields: 18 common, 12 vulnerability (v19–v30 including v26a), 9 incident (i31–i39), plus 40/41.
    • The drafts use the 31 that apply to a vulnerability: no incident fields, and not the CSIRT's own note.
    • The glossary version is recorded in every draft and in the docs, so a change at ENISA is noticed.
  • What the glossary does not have: no "severity level" or "notification level" field. The AR User Manual (v1.0, 2026-09-09) doesn't mention them either; the stages are separate submissions.
  • v26 caveat: the glossary marks v26 ("Date and time when you become aware…") as required at 24 h, but notes the field "will be available in the next release of the Platform".

What

  • compliance_core::enisa_docs. One draft per actively exploited alert (CISA KEV, or SSVC active).
    • Shape: three stages (early warning 24 h, vulnerability notification 72 h, final report). Each holds the glossary's fields in its order, as arrays, because JSON objects don't keep order. Every field has its number, name, the requirement ENISA states for that stage, a value, and a cra_art14_ref.
    • Filled by Prüfwerk:
      • type, title and summary;
      • manufacturer, product and component;
      • CVE (v19) and general information (v21: the advisory plus KEV/SSVC/EPSS);
      • user measures (VEX action statement, else the fixed version);
      • severity (v24), impact (v25: VEX impact, else the LLM impact summary);
      • awareness time (v26) and ransomware use (v27, from KEV);
      • for a fixed vulnerability, the fix date (v22).
    • to_complete: lists each required field Prüfwerk cannot fill. The Member States (field 5) are always on it.
    • Stamp and deadlines: "Draft, not submitted" and submitted: false. Deadlines are 24 h / 72 h after aware_at, and 14 days after v22.
  • Reportable: actively exploited and not not_affected. A fixed one stays reportable when a scan found it exploited while the product contained it, because fixing the product starts the final report's 14 days rather than discharging the notification. This corrects the design confirmed earlier, which had excluded fixed alerts.
  • CveAlert.exploited_seen_at: set once, by the first scan that finds the alert actively exploited (kept on later upserts). The deadlines run from it, or from ?aware_at=.
  • API:
    • GET /api/v1/targets/{id}/enisa: reportability per exploited alert.
    • GET /api/v1/cves/{id}/enisa?aware_at=: the draft. Returns 422 with the reason when the alert is not reportable, 400 for a bad timestamp.
  • Evidence pack: enisa-drafts.json when any alert is reportable.
  • Dashboard: "ENISA-Meldung (Entwurf)" and "Frühwarnung fällig bis …" on reportable rows of the VEX card.
  • Docs: DE/EN ENISA section with the glossary version, and the API line in the SBOM guide.

Known limits

  • Deadline on stage: every alert already in KEV gets the first post-deploy scan as exploited_seen_at, so long-known CVEs show a due time from that scan. Test plan check 31 says so. aware_at overrides it.
  • Duplicate drafts: a GHSA alert and a CVE alert for the same CVE in two components give two drafts. CSAF merges them; ENISA doesn't yet (follow-up).
  • No overdue label: the dashboard's browser build has no clock (chrono without wasmbind), so a past due time isn't flagged.

Tests

  • Core: reportability (including fixed after exploitation), the 24 h required set equals the glossary's eight, the draft's fields and to_complete, and the final-report date from v22.
  • Agent:
    • Mongo vex_lifecycle: exploited_seen_at is set once and kept;
    • evidence pack: the drafts file appears only when an alert is reportable;
    • the existing VEX handler tests still pass.
  • Dashboard: draft file name.
  • clippy -D warnings: core, agent, dashboard (web and server), MCP.

Test plan check 31, marked [visible]. Stage only; no tag.

🤖 Generated with Claude Code

https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p

Part 4 of 4 for #498: **draft notifications of actively exploited vulnerabilities under CRA Art. 14(1)–(2)**, for the manufacturer to check, complete and enter by hand in ENISA's single reporting platform (SRP). Prüfwerk submits nothing. ## Sources - **Regulation (EU) 2024/2847, Art. 14 and 16:** the verbatim text from the Publications Office (EUR-Lex blocks scripted access). Art. 14 applies from **11 September 2026**. - **ENISA CRA SRP Glossary, version 1.4, last update 2026-10-01** (https://www.enisa.europa.eu/cra-srp-glossary), parsed from its HTML table. - It has 42 numbered fields: 18 common, 12 vulnerability (v19–v30 including v26a), 9 incident (i31–i39), plus 40/41. - The drafts use the 31 that apply to a vulnerability: no incident fields, and not the CSIRT's own note. - The glossary version is recorded in every draft and in the docs, so a change at ENISA is noticed. - **What the glossary does not have:** no "severity level" or "notification level" field. The AR User Manual (v1.0, 2026-09-09) doesn't mention them either; the stages are separate submissions. - **v26 caveat:** the glossary marks v26 ("Date and time when you become aware…") as required at 24 h, but notes the field "will be available in the next release of the Platform". ## What - **`compliance_core::enisa_docs`.** One draft per actively exploited alert (CISA KEV, or SSVC `active`). - **Shape:** three stages (early warning 24 h, vulnerability notification 72 h, final report). Each holds the glossary's fields in its order, as arrays, because JSON objects don't keep order. Every field has its number, name, the requirement ENISA states for that stage, a value, and a `cra_art14_ref`. - **Filled by Prüfwerk:** - type, title and summary; - manufacturer, product and component; - CVE (v19) and general information (v21: the advisory plus KEV/SSVC/EPSS); - user measures (VEX action statement, else the fixed version); - severity (v24), impact (v25: VEX impact, else the LLM impact summary); - awareness time (v26) and ransomware use (v27, from KEV); - for a fixed vulnerability, the fix date (v22). - **`to_complete`:** lists each required field Prüfwerk cannot fill. The Member States (field 5) are always on it. - **Stamp and deadlines:** "Draft, not submitted" and `submitted: false`. Deadlines are 24 h / 72 h after `aware_at`, and 14 days after v22. - **Reportable:** actively exploited and not `not_affected`. A `fixed` one stays reportable when a scan found it exploited while the product contained it, because fixing the product starts the final report's 14 days rather than discharging the notification. This **corrects the design confirmed earlier**, which had excluded fixed alerts. - **`CveAlert.exploited_seen_at`:** set once, by the first scan that finds the alert actively exploited (kept on later upserts). The deadlines run from it, or from `?aware_at=`. - **API:** - `GET /api/v1/targets/{id}/enisa`: reportability per exploited alert. - `GET /api/v1/cves/{id}/enisa?aware_at=`: the draft. Returns 422 with the reason when the alert is not reportable, 400 for a bad timestamp. - **Evidence pack:** `enisa-drafts.json` when any alert is reportable. - **Dashboard:** "ENISA-Meldung (Entwurf)" and "Frühwarnung fällig bis …" on reportable rows of the VEX card. - **Docs:** DE/EN ENISA section with the glossary version, and the API line in the SBOM guide. ## Known limits - **Deadline on stage:** every alert already in KEV gets the first post-deploy scan as `exploited_seen_at`, so long-known CVEs show a due time from that scan. Test plan check 31 says so. `aware_at` overrides it. - **Duplicate drafts:** a GHSA alert and a CVE alert for the same CVE in two components give two drafts. CSAF merges them; ENISA doesn't yet (follow-up). - **No overdue label:** the dashboard's browser build has no clock (chrono without `wasmbind`), so a past due time isn't flagged. ## Tests - **Core:** reportability (including fixed after exploitation), the 24 h required set equals the glossary's eight, the draft's fields and `to_complete`, and the final-report date from v22. - **Agent:** - Mongo `vex_lifecycle`: `exploited_seen_at` is set once and kept; - evidence pack: the drafts file appears only when an alert is reportable; - the existing VEX handler tests still pass. - **Dashboard:** draft file name. - **clippy** `-D warnings`: core, agent, dashboard (web and server), MCP. Test plan check 31, marked [visible]. Stage only; no tag. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
sharang added 1 commit 2026-10-06 15:06:49 +00:00
feat(vex): draft ENISA notifications of actively exploited vulnerabilities (CRA Art. 14) (#498, 4/4)
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Check (pull_request) Successful in 8m29s
55aa4d7249
- compliance_core::enisa_docs: per actively exploited CVE alert (CISA KEV,
  SSVC active) whose product is affected or under investigation, a draft of
  the three CRA Article 14(2) stages (early warning 24 h, vulnerability
  notification 72 h, final report 14 days after a fix) in the fields of
  ENISA's single reporting platform: numbers, names and per-stage
  requirements of the ENISA CRA SRP Glossary v1.4 (2026-10-01, recorded in
  the output), each with its cra_art14_ref. Filled from the alert, its
  exploitation and the VEX statement; required fields Prüfwerk cannot fill
  (always the Member States) are listed under to_complete. Stamped "Draft,
  not submitted"; nothing is submitted.
- CveAlert.exploited_seen_at: set once, by the first scan that finds the
  alert actively exploited; the deadlines run from it (or ?aware_at=).
- API: GET /api/v1/targets/{id}/enisa (reportability per alert),
  GET /api/v1/cves/{id}/enisa?aware_at= (draft; 422 with the reason when not
  reportable). Evidence pack: enisa-drafts.json when any is reportable.
- Dashboard: "ENISA-Meldung (Entwurf)" and the early warning's due time on
  reportable rows of the VEX card.
- Docs DE/EN (ENISA section, glossary version); test plan check 31.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
sharang merged commit 5f8fbe9802 into main 2026-10-06 15:16:20 +00:00
Sign in to join this conversation.