Appearance
Why It Matters
Writing to .bashrc, .zshrc, .profile, or .bash_profile is a persistence mechanism. A hook that edits shell startup files can survive beyond the repository workflow and alter later shells.
What Triggers
SEC635 matches executable hook lines that write to shell startup files through redirection or tee, such as >> ~/.bashrc or tee -a ~/.zshrc.
False Positives
There are legitimate dotfile-management repos, but in a shared AI-executable hook this behavior still deserves review because it changes host startup state outside the project tree.
Remediation
Remove the startup-file write. Store state in a repo-local file or use an explicit installation step outside the hook if host shell configuration is truly required.