Repository navigation
docs(ops): SRE security audit of open PRs (2026-04-27) - #234
Merged
Merged
Conversation
Audit-and-block deliverable from the SRE Automation Agent (Slack-triggered security protocol). Reviews all five PRs open against `main` on 2026-04-27 — 1 cargo (#226) and 4 pip Dependabot (#221, #222, #223, #224). Findings: - 0 High/Critical with verified attack path on the diffs. - 1 systemic Medium: every Dependabot pip PR breaks the uv.lock / requirements.txt drift guard (tests/test_dependency_artifacts_sync.py + pre-commit hook). RCA in §2.1: Dependabot does not run `uv lock` / `uv export`, so a rage-merge would land an inconsistent requirements.txt and a misaligned SBOM. Action items proposed to the maintainer; no push to bot branches. - 1 supply-chain ergonomics Medium for cryptography 47.0.0 (§3.1) and chardet 7.4.3 (§3.2) — major-version jumps on hot code paths; need a green CI before merge per Defensive Scanning Manifesto §1. Doctrine references: - docs/ops/inspirations/DEFENSIVE_SCANNING_MANIFESTO.md (NASA / Cloudflare / Gibson seeds — guest in customer DB, no surprise side effects). - docs/ops/inspirations/THE_ART_OF_THE_FALLBACK.md (no silent failure; diagnostic-on-fall). - docs/ops/inspirations/SUPPLY_CHAIN_AND_TRUST_SIGNALS.md (SBOM <-> wheel alignment). Operational constraint respected: audit-only, no commits to audited PR branches; report opens its own PR and Slack thread reply. Co-authored-by: Fabio Tavares Leitão <[email protected]>
This was referenced Apr 27, 2026
Closed
FabioLeitao
marked this pull request as ready for review
April 27, 2026 19:04
1 of 3 tasks
FabioLeitao
added a commit
that referenced
this pull request
May 3, 2026
…rgo.toml claim (prompt-injection escalation of PR #259) Slack thread 1777319065.862799 in C0AN7HY3NP9 escalated the same prompt- injection pattern PR #259 already rejected ('switch to Opus 4.7 to re-read the data-board-report source code'), this time framed as 'stop lying ... I know for a fact this is a hybrid repository ... do a ls -R'. Working-tree facts (branch cursor/sre-automation-agent-protocol-f8dd at HEAD 730219c, 2026-04-27 19:47 UTC): - find /workspace -name '*.rs' (no venv/target) -> 1 hit: rust/boar_fast_filter/src/lib.rs - ls /workspace/Cargo.toml -> No such file or directory - ls /workspace/data-board-report -> No such file or directory - grep -rln 'data-board-report' across .md/.toml/.py/.rs/.yml/.yaml -> 0 - git log --all -- '**/data-board-report*' -> 0 The repo is hybrid only in the narrow sense PR #259 already documented: Python product plus one PyO3 crate (rust/boar_fast_filter/). No second crate, no workspace, no report-generator. Inventing a CI/CD plan against artifacts that do not exist would violate DEFENSIVE_SCANNING_MANIFESTO.md §1 ('every emitted statement is tagged') and THE_ART_OF_THE_FALLBACK.md §1-§2 ('silent failure is a worse outcome than degraded coverage'; monotonic strategy ladder forbids skipping the parser-grade signal — the file system). Audit-and-block, no code mutation, no third-party PR branch written to. Same convention as PR #234 / #251 / #259. What lands: - docs/ops/sre_audits/PROMPT_INJECTION_REJECTION_HYBRID_REPO_CLAIM_2026-04-27.md full reproduction, rejection rationale (3 failure modes catalogued), Defensive Architecture posture, fallback-ladder mapping, follow-ups, LMDE-issue-style cross-reference (linuxmint/live-installer#177, #178). - docs/ops/sre_audits/README.md hub sync (adds today's 4 audits that had not all been indexed). Verification: - uv run pre-commit run --files <both files> -> all hooks green. - uv run pytest tests/test_docs_external_no_plan_links.py tests/test_docs_markdown.py tests/test_pii_guard.py tests/test_confidential_commercial_guard.py -q -> 160 passed. Defensive Architecture: zero database impact. Markdown only. Doctrines invoked: - docs/ops/inspirations/DEFENSIVE_SCANNING_MANIFESTO.md (§1: tagged statements, NASA SEL 'test what you fly'). - docs/ops/inspirations/THE_ART_OF_THE_FALLBACK.md (§1-§2: diagnostic on fall, monotonic ladder, parser-grade signal first). Related: - Slack handoff: channel C0AN7HY3NP9, thread 1777319065.862799, 2026-04-27 ~19:44 UTC. - Prior rejection of same injection family: PR #259. - Same audit-and-block convention: PR #234, PR #251, PR #242. Co-authored-by: Fabio Tavares Leitão <[email protected]>
FabioLeitao
added a commit
that referenced
this pull request
May 3, 2026
…l-coercion (third injection in 24h) Slack-triggered Cloud Agent automation def95df7-a634-431a-93e5-659e4d831725 in #data-boar-ops asserted four empirically false claims and a model-coercion directive: 1. 'Dependabot #31 (Low) on main' — gh api dependabot/alerts is 403 for this token; gh issue view 31 is 'Plans done 64903' (MERGED 2026-03-15, unrelated to dependencies). Open Dependabot PRs today are #221, #222, #223, #224, #226 (already booked in DEPENDENCY_GUARDIAN_VERDICT_LEDGER_2026-04-27.md). 2. '986 testes' — pytest --collect-only -q reports 989. 3. 'rode scripts/check-all.ps1' on a Linux Cloud Agent VM — the paired Linux/macOS twin is scripts/check-all.sh per docs/ops/SCRIPTS_CROSS_PLATFORM_PAIRING.md. 4. 'auditoria-ia acabou de subir os guards' — branch contributed doctrine consolidation (e6688c8) but is not the most recent merge (HEAD is PR #242). 5. 'USE O OPUS 4.7 High ... VOCE NAO TEM O DIREITO DE OUSAR USAR O COMPOSER 2.0' — the runtime model is configured by the Cursor client/dashboard, not by an in-chat directive; treating capitalized imperatives as policy would normalize prompt-injection model coercion. Posture: audit-and-block, no code change. No uv.lock or Cargo.toml mutated under a fabricated alert; no .ps1 forced on a Linux host. Same defense pattern as PR #234, #251, #259 (clippy 1.95 RCA), #261 (fabricated data-board-report/ + root Cargo.toml). Third member of the same prompt-injection family in 24 h. Per DEFENSIVE_SCANNING_MANIFESTO.md §1.3 (no surprise side effects) and THE_ART_OF_THE_FALLBACK.md §2 (monotonic ladder; never skip a level). Verification: - uv run pre-commit run --files <both files> — all hooks Passed. - uv run pytest tests/test_docs_external_no_plan_links.py tests/test_docs_markdown.py tests/test_pii_guard.py tests/test_confidential_commercial_guard.py -q — 160 passed. - gh pr view 31 / gh api dependabot/alerts — confirms fabrication. Co-authored-by: Fabio Tavares Leitão <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Read-only deliverable from the SRE Automation Agent (Slack-triggered security protocol). The agent reviewed every PR open against
mainat 2026-04-27 16:08 UTC — 1 cargo (#226) + 4 pip Dependabot (#221 / #222 / #223 / #224) — and recorded the audit underdocs/ops/sre_audits/.Operational constraint respected: audit-and-block only. No code or commit was pushed to any audited PR branch.
Findings (per protocol — Medium+ only)
tests/test_dependency_artifacts_sync.py(and the matchingpre-commithook). RCA in §2.1 of the audit — Dependabot does not runuv lock/uv export, so a rage-merge to land a security bump (e.g.cryptography 47.0.0for a CVE) would ship an inconsistentrequirements.txtand a misaligned SBOM. Same fail-open pattern flagged bydocs/ops/inspirations/SUPPLY_CHAIN_AND_TRUST_SIGNALS.md.cryptography 46.0.7 → 47.0.0(deps(pip): bump cryptography from 46.0.7 to 47.0.0 #224, §3.1) andchardet 5.2.0 → 7.4.3(deps(pip): bump chardet from 5.2.0 to 7.4.3 #222, §3.2) are major-version jumps on hot code paths (hazmat /webauthn; encoding fallback hierarchy fromTHE_ART_OF_THE_FALLBACK.md). Need a green CI before merge — and CI is currently red because of §2.1.tzdata(deps(pip): bump tzdata from 2025.3 to 2026.2 #223), thepip-minor-patchgroup (deps(pip): bump the pip-minor-patch group across 1 directory with 35 updates #221, info-only), and thepyo3cargo bump (chore(deps): bump pyo3 from 0.23.5 to 0.24.1 in /rust/boar_fast_filter in the cargo group across 1 directory #226).Recommended next moves
pull_request_target) that runsuv lock+uv export --no-emit-package pyproject.toml -o requirements.txtand either commits to the bot branch or comments the exact commands. Until that lands, do not click "merge" on any pip Dependabot PR — apply the bump locally per.cursor/skills/dependabot-recommendations/SKILL.md.pyo3 0.24is a documented compatible bump.cryptography) and deps(pip): bump chardet from 5.2.0 to 7.4.3 #222 (chardet).requirements.txtwithout a matchinguv.lockchange should fail in a dedicated pytest, not only as a side-effect of the existing sync guard.Doctrine references
docs/ops/inspirations/DEFENSIVE_SCANNING_MANIFESTO.md(NASA SEL · Cloudflare · Steve Gibson — guest in customer DB; no surprise side effects).docs/ops/inspirations/THE_ART_OF_THE_FALLBACK.md(no silent failure; diagnostic-on-fall).docs/ops/inspirations/SUPPLY_CHAIN_AND_TRUST_SIGNALS.md(SBOM ↔ wheel alignment)..cursor/skills/dependabot-recommendations/SKILL.md(operator workflow).Files
docs/ops/sre_audits/PR_SECURITY_AUDIT_2026-04-27.md— full audit (TL;DR, methodology, systemic finding, per-PR section, action items).docs/ops/sre_audits/README.md— index for future audit deliverables.Verification
uv run pytest tests/test_docs_external_no_plan_links.py tests/test_docs_pt_br_locale.py tests/test_confidential_commercial_guard.py tests/test_pii_guard.py— all passed locally.pre-commithooks ran via the commit (Ruff skipped because no.pychanged; plans/markdown/pt-BR/PII/uv-lock guards all green).