Transport security regression guard
A deterministic Claude Code PreToolUse gate for proposed file content that detects explicit TLS certificate-verification disablement and insecure non-local registry endpoints while ignoring comments.
Runs on
Scope
$npx @youdede/toolkit add transport-security-regression-guard --target claude-code
What it does
Block high-confidence source and configuration changes that disable transport verification.
When it fires
- implementation
- review
How it behaves
Inspect bounded proposed content for explicit transport-verification regressions.
It does not infer the security of an entire network architecture.
It does not rewrite insecure endpoints or certificate settings.
It does not treat an inline suppression as authorization.
Configuration
targets/claude-code/transport-security-regression-guard.mjs
- Version
- 1.0.0
- Requires
- node
- Licence
- RiskThis automatic gate blocks high-confidence source and configuration changes that disable transport verification; a false denial can interrupt legitimate work, but it does not execute the blocked action.
- Medium
- ModeHow it works: fixed rules, model instructions, or both.
- Deterministic only
- Behaviour
- Enforces, blocks on violation
- On failure
- Denies and blocks
- LatencyThe entrypoint handles one intercepted event to block high-confidence source and configuration changes that disable transport verification without deferred work.
- Immediate
- Data retentionWhether data remains after use and who manages its storage.
- Not retained
Often used with
All in Security