Appearance
Why It Matters
Dumping environment variables and sending them to a remote destination is high-confidence credential theft behavior.
What Triggers
SEC742 matches plugin hook commands 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 plugin 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 committed plugin hook and keep shell state local unless the user explicitly chooses to share it.