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 |
4d6ecbf to
55f6059
Compare
|
Draft review: what blocks moving this out of draft. Blocker: To un-draft: rebase on #2968 after it lands. Then emit Also, please describe Local merge with main at |
Refs xerj-org#2771, xerj-org#2767, xerj-org#2769 Signed-off-by: Raghuvar Karthik Durga <177662415+drk-ram@users.noreply.github.com>
55f6059 to
ec5976f
Compare
What this changes, and why
Add
xerj_common::cyber_code_reviewfor deterministic, evidence-gated taint-to-sink review. Built-in Rust, Python, TypeScript/JavaScript, Go, and SQL recipes can be extended with custom rules. Candidates are ranked by exact CWE/rule structure and token similarity, sanitizer or guard paths abstain, and every emitted finding requires an exact file/line location plus at least one pinned corpus vulnerability or fix citation. Unevidenced candidates are explicit abstentions rather than guesses. Reports seal validated RFC 8785 JSON withreport_sha256.Refs #2771, #2767, #2769
Audit: reviewed no-evidence behavior, source/sink and line invariants, deterministic ranking ties, sanitizer suppression, corpus pin checks, tamper detection, and seeded benchmark false-positive accounting. No network, repository mutation, persistence, or authorization 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_code_reviewcoverage 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-code-review.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. No recipe-runner or external corpus-fetch wiring is included.
Provenance