# Security gate R5.4, round 6 (fresh, blind) Branch `feature/rust-r5-pipeline-core`, HEAD `aeb5050`. Scope: `git diff c6e0d85..HEAD -- crates/core packages/anatomy/tests docs/development/RUST.md` (25 files). Mode: audit (this file is the only write). The brief carried a list of earlier findings; per the auditor contract it was not used as a checklist. The scan below is complete on its own and covers those areas anyway. ``` SECURITY — VERDICT: PASS TOOL: semgrep 1.168.0 — p/security-audit, p/secrets, p/owasp-top-ten SCOPE: 25 files BLOCKING: (none) REPORTED (non-blocking): - [MEDIUM] resource/changelog-table-amplification — crates/core/src/curation/draft/changelog.rs:100 (via crates/core/src/curation/markdown.rs:133) - [LOW] resource/per-view-drawing-amplification — crates/core/src/curation/draft/pipeline.rs:204 - [LOW] resource/guard-underscore-pairing-quadratic-in-isolation — crates/core/src/curation/report_guard.rs:216 - [LOW] markdown/invisible-hangul-fillers-admitted — crates/core/src/curation/report_guard.rs:159 - [LOW] markdown/unpadded-wiki-link-in-table-cell (context, by design) — crates/core/src/curation/report_guard.rs:58 - [LOW] anti-gaming/clippy-allow-in-new-test-file (context, convention) — crates/core/tests/curation_markdown.rs:6 - [LOW] anti-gaming/clippy-allow-in-new-test-file (context, convention) — crates/core/tests/curation_review.rs:6 PROOF: semgrep 162 rules on 25 files → 0 findings; checklist 13 checks → 7 findings ``` ## What was run - semgrep 1.168.0, the three pinned packs, `--metrics=off`, on the 25 existing files of the diff: 162 rules, 25 files scanned, 0 results, 0 errors. - Checklist greps on the added lines: secrets, SQL concatenation, unsafe render, logging, suppressions, tracked `.env` / credential files (only `.env.example` is tracked). Nothing found. No endpoint in scope (authz check N/A). - Guardrails scanner (`--domain api,supabase`): 0 FAIL, 1 WARN, 1 MANUAL. The WARN (`SB-POLICY-NOT-OWNER`, `supabase/migrations/20261008110000_anatomical_sheets.sql:1177`) is outside the diff, not counted. - `cargo test -p faunosteo-core --features curation`: every suite green. `cargo clippy --all-targets -D warnings` (curation): clean. No `std::fs`, `std::env`, clock or process use in the new core modules (only the binary, which already carried its documented allow). - `import-equine --check`: legacy 6 files 0 differences; draft 12 files 0 differences, one `declared:` line for `review/app-main.svg`. - Differential fuzz of `report_guard::format_report` against Prettier 3.8.3 (the TypeScript formatter, same options as `packages/anatomy/src/format.ts`), through a scratch binary on the core library. 10,201 generated reports (seeded random strings over the admitted alphabet plus Markdown tokens: URL starts, entities, `**`, `[[`, `](`, ` "`, `\t \n \r` as references in attributes); XML-invalid code points and CR refused (`drawing.rs:41`); file names built from stable view ids. - `--check`: the tree fallback only for `review/app-*`, only with the declared rule, and only when the committed file rebuilds from its tree byte for byte, the rule changes it and the result equals the produced bytes; the committed file goes through the core reader's prescan first. - `--out`: `..` refused, final symbolic link refused (trailing slash handled), parent canonicalised, seed refused by path and by (device, inode) of every seed folder, existing destination identity-checked and must be empty, folders `create_dir`, files `create_new`, components all `Normal`. The swap window between check and use stays as declared (§11.13).