Appearance
Why It Matters
A plugin hook that edits shell startup files can create persistence on the host and alter later terminal sessions outside the repository workflow.
What Triggers
SEC647 matches plugin hook command strings that write to .bashrc, .bash_profile, .zshrc, or .profile through redirection or tee.
False Positives
Dotfile-management plugins are the main edge case, but silent startup-file mutation in generic plugin hooks is still risky enough to review.
Remediation
Remove the shell-profile write from the hook. Prefer repo-local state, or require an explicit reviewed install step for host shell configuration changes.