Repository navigation
Conversation
|
Thank you @drk-ram, this is careful work and it is tied to a roadmap issue. Holding it for now: it adds a large new cyber-pack subsystem to |
0b9d2ea to
4dacbfd
Compare
|
Draft review: what blocks moving this out of draft. Blocker: To un-draft: rebase on #3024 and replace What looks right already:
Local merge with main at |
Refs xerj-org#2776, xerj-org#2767, xerj-org#2769 Signed-off-by: Raghuvar Karthik Durga <177662415+drk-ram@users.noreply.github.com>
4dacbfd to
f219562
Compare
What this changes, and why
Add
xerj_common::cyber_advisorywithCveContextandCyberAdvisory. Known CVE/GHSA identifiers resolve only from supplied OSV, RustSec, or CVE corpus records and return cited affected/patched versions, exact affected-code locations, a full fix SHA, and cited similar bugs. Malformed or absent identifiers returnAdvisoryError::UnknownAdvisoryIdwithout fabricated data. Advisory drafting is citation-checked line by line, rejects uncited or slop prose, supports optional CVSS/EPSS/KEV summaries, and seals RFC 8785 JSON withreport_sha256.Refs #2776, #2767, #2769
Audit: reviewed malformed and unknown identifiers, GHSA case normalization, full-SHA constraints, citation/reference integrity, exact code locations, uncited factual claims, filler/placeholders, and tamper detection. No network fetch, persistence, publication, or recommendation behavior is introduced.
Evidence
Checks
cargo fmt --all(CI runsrustfmt --checkandclippy -D warnings)cargo build --release -j 32 -p xerj-commoncargo test -p xerj-commonpasses (cargo checkis not sufficient — targetedcyber_advisorycoverage shown above)cargo run --release -p es-yaml-runner -- --dir tests/es-compat-yaml/yaml) — N/A: no ES query/index behavior changed.engine/tests/es-compat-yaml/yaml/— N/A: no ES-compatible behavior added.docs/CONTRIBUTION_REVIEW.mddocs/cyber-advisory.mddocuments a library API, not an operational or runnable recipe; no artifact is extracted, installed, published, or served.Not run: Full crate/workspace test suites and ES-YAML conformance were not run; the requested scoped module validation and release build are listed above. External corpus fetching and recipe-runner wiring remain outside this PR.
Provenance
cyber.scoreremains caller-owned in this isolated module PR.