Appearance
Why It Matters
Dumping environment variables and sending them to a remote destination is high-confidence credential theft behavior.
What Triggers
SEC736 matches executable hook lines that invoke explicit environment enumeration primitives such as printenv, env used as a dump, export -p, declare -xp, or compgen -v, and also transmit data to remote sinks such as curl, wget, scp, rsync, nc, or HTTP(S) endpoints.
False Positives
Shared committed hooks should not dump and transmit environment state. Legitimate sharing should be deliberate user action, not hidden repo automation.
Remediation
Remove environment dumping and remote transfer behavior from the shared hook and keep shell state local unless the user explicitly chooses to share it.