Skip to content

feat(security): ship pre-release security posture docs/tests/fuzz/CI#54

Merged
bb-connor merged 16 commits intomainfrom
audit-fix/2026-02-10-wave3-remediation
Feb 10, 2026
Merged

feat(security): ship pre-release security posture docs/tests/fuzz/CI#54
bb-connor merged 16 commits intomainfrom
audit-fix/2026-02-10-wave3-remediation

Conversation

@bb-connor
Copy link
Copy Markdown
Collaborator

Summary

This PR upgrades the repo to a security-grade pre-release posture with additive docs, contract regressions, fuzz coverage, CI sensors, and a deterministic blackbox abuse battery.

Docs and governance

  • Add root security docs: THREAT_MODEL.md, NON_GOALS.md
  • Rewrite SECURITY.md for pre-release disclosure policy and GHSA/CVE guidance
  • Add operator docs: docs/ops/safe-defaults.md, docs/ops/operational-limits.md
  • Enforce advisory governance metadata via tools/scripts/check-advisory-expiry.sh

Security contract tests

  • Add crates/libs/clawdstrike/tests/security_regressions.rs
  • Add crates/services/hushd/tests/security_regressions.rs
  • Add crates/services/hush-cli/tests/abuse_harness.rs (slowloris, flood, DNS rebind-like pinning, stalled forwarder, CONNECT/SNI mismatch)

Deterministic test hooks (no default behavior change)

  • Add env-driven test overrides and resolver sequencing hook in crates/services/hush-cli/src/hush_run.rs
  • Expose doc-hidden parse/validation wrappers in crates/services/hushd/src/remote_extends.rs for fuzz/test surfaces

Fuzzing

  • Add fuzz targets:
    • fuzz_irm_fs_parse
    • fuzz_irm_net_parse
    • fuzz_remote_extends_parse
  • Wire targets in fuzz/Cargo.toml and document usage in fuzz/README.md
  • Update fuzz/Cargo.lock

CI / sensors

  • Add Fast Security Regressions gate before heavier jobs
  • Add PR fuzz smoke job (30s targets)
  • Increase scheduled fuzz depth and include new targets
  • Add scheduled Miri workflow (.github/workflows/miri.yml)
  • Add scheduled ASAN smoke workflow (.github/workflows/sanitizers.yml)
  • Enforce advisory metadata check in CI security-audit

Validation

Executed locally:

  • cargo fmt --all -- --check
  • cargo clippy --all-targets --all-features -- -D warnings
  • cargo test --workspace
  • cargo test -p clawdstrike --test security_regressions -- --nocapture
  • cargo test -p hushd --test security_regressions -- --nocapture
  • cargo test -p hush-cli --test abuse_harness -- --nocapture
  • cargo test -p hush-cli hush_run::tests::connect_proxy_rejects_ip_target_with_allowlisted_sni_mismatch -- --exact
  • cargo test -p hush-cli hush_run::tests::connect_proxy_hostname_target_is_ip_pinned_after_policy_check -- --exact
  • tools/scripts/check-advisory-expiry.sh
  • cargo deny check
  • cargo audit --deny warnings --ignore RUSTSEC-2024-0375 --ignore RUSTSEC-2025-0141 --ignore RUSTSEC-2024-0388 --ignore RUSTSEC-2024-0436 --ignore RUSTSEC-2025-0134 --ignore RUSTSEC-2021-0145
  • cargo +nightly fuzz run fuzz_policy_parse -- -max_total_time=10 -verbosity=0 -print_final_stats=1
  • cargo +nightly fuzz run fuzz_irm_net_parse -- -max_total_time=10 -verbosity=0 -print_final_stats=1
  • cargo +nightly fuzz run fuzz_remote_extends_parse -- -max_total_time=10 -verbosity=0 -print_final_stats=1

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f4c81b4cff

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@bb-connor bb-connor force-pushed the audit-fix/2026-02-10-wave3-remediation branch from f4c81b4 to ec15c3e Compare February 10, 2026 15:51
@bb-connor
Copy link
Copy Markdown
Collaborator Author

@codex

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a2f500c3fb

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@bb-connor
Copy link
Copy Markdown
Collaborator Author

@codex

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e6cc36a877

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Also defer git host IP DNS checks until after cache hit checks in hush-cli remote extends, with regression coverage for offline cached git policy resolution.
@bb-connor
Copy link
Copy Markdown
Collaborator Author

@codex

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e0d88a8f26

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@bb-connor
Copy link
Copy Markdown
Collaborator Author

@codex

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Chef's kiss.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@bb-connor bb-connor merged commit 2378321 into main Feb 10, 2026
40 checks passed
@bb-connor bb-connor deleted the audit-fix/2026-02-10-wave3-remediation branch March 3, 2026 05:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant